@indexnetwork/protocol 14.2.0-rc.470.1 → 14.2.1-rc.472.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 +42 -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/{participant-agents → agents}/index.d.ts +1 -1
- 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.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/{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/{participant-context → contexts}/ports/index.d.ts +1 -1
- package/dist/{participant-context → contexts}/ports/index.js +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 +107 -107
- package/dist/index.js +76 -76
- 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.graph.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/{signals → intents}/index.d.ts +1 -1
- package/dist/{signals → intents}/index.js +1 -1
- package/dist/{signals → intents}/ports/index.d.ts +1 -1
- package/dist/{signals → intents}/ports/index.js +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.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 +1 -1
- 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.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/{negotiation → negotiations}/index.d.ts +1 -1
- package/dist/{negotiation → negotiations}/index.js +1 -1
- 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}/domain/index.d.ts +2 -2
- package/dist/{communities → networks}/domain/index.js +2 -2
- package/dist/{communities → networks}/index.d.ts +1 -1
- package/dist/{communities → networks}/index.js +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.discovery-negotiation-summary.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.graph.d.ts +2 -2
- package/dist/{opportunity → opportunities}/application/opportunity.graph.js +2 -2
- 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}/domain/index.d.ts +1 -1
- package/dist/{opportunity → opportunities}/domain/index.js +1 -1
- package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.d.ts +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.state.d.ts +1 -1
- package/dist/{opportunity → opportunities}/index.d.ts +1 -1
- package/dist/{opportunity → opportunities}/index.js +1 -1
- 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/shared/agent/tool.factory.d.ts +1 -1
- package/dist/shared/agent/tool.factory.js +14 -14
- 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 +6 -6
- 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/negotiation-state.schema.d.ts +2 -2
- package/dist/shared/schemas/negotiation-state.schema.js +2 -2
- package/package.json +1 -1
- /package/dist/{participant-agents → agents}/domain/index.js +0 -0
- /package/dist/{participant-agents → agents}/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/{participant-context → contexts}/index.d.ts +0 -0
- /package/dist/{participant-context → contexts}/index.js +0 -0
- /package/dist/{participant-context → contexts}/ports/participant-context.tools.port.d.ts +0 -0
- /package/dist/{participant-context → 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.clarifier.js +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.d.ts +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/{signals → intents}/ports/signals.tools.port.d.ts +0 -0
- /package/dist/{signals → 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.question-safety.js +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.d.ts +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/{communities → networks}/ports/communities.tools.port.d.ts +0 -0
- /package/dist/{communities → 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.card-presentation.js +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.evaluator.js +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 +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.presenter.js +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.tools.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.tools.js +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.d.ts +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.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.push.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.question.d.ts +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.presentation.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.js +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
|
@@ -62,7 +62,7 @@ export declare class MaintenanceGraphFactory {
|
|
|
62
62
|
currentOpportunities: import("../index.js").Opportunity[];
|
|
63
63
|
expiredCount: number;
|
|
64
64
|
lastRediscoveryAt: number | null;
|
|
65
|
-
healthResult: import("../
|
|
65
|
+
healthResult: import("../opportunities/radar/radar.health.js").RadarHealthResult | null;
|
|
66
66
|
rediscoveryJobsEnqueued: number;
|
|
67
67
|
connectorFlowCount: number;
|
|
68
68
|
introducerDiscoveryJobsEnqueued: number;
|
|
@@ -79,7 +79,7 @@ export declare class MaintenanceGraphFactory {
|
|
|
79
79
|
currentOpportunities?: import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]> | undefined;
|
|
80
80
|
expiredCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
81
81
|
lastRediscoveryAt?: number | import("@langchain/langgraph").OverwriteValue<number | null> | null | undefined;
|
|
82
|
-
healthResult?: import("../
|
|
82
|
+
healthResult?: import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null | undefined;
|
|
83
83
|
rediscoveryJobsEnqueued?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
84
84
|
connectorFlowCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
85
85
|
introducerDiscoveryJobsEnqueued?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
@@ -99,7 +99,7 @@ export declare class MaintenanceGraphFactory {
|
|
|
99
99
|
currentOpportunities: import("@langchain/langgraph").BaseChannel<import("../index.js").Opportunity[], import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]>, unknown>;
|
|
100
100
|
expiredCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
101
101
|
lastRediscoveryAt: import("@langchain/langgraph").BaseChannel<number | null, number | import("@langchain/langgraph").OverwriteValue<number | null> | null, unknown>;
|
|
102
|
-
healthResult: import("@langchain/langgraph").BaseChannel<import("../
|
|
102
|
+
healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunities/radar/radar.health.js").RadarHealthResult | null, import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
|
|
103
103
|
rediscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
104
104
|
connectorFlowCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
105
105
|
introducerDiscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
@@ -119,7 +119,7 @@ export declare class MaintenanceGraphFactory {
|
|
|
119
119
|
currentOpportunities: import("@langchain/langgraph").BaseChannel<import("../index.js").Opportunity[], import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]>, unknown>;
|
|
120
120
|
expiredCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
121
121
|
lastRediscoveryAt: import("@langchain/langgraph").BaseChannel<number | null, number | import("@langchain/langgraph").OverwriteValue<number | null> | null, unknown>;
|
|
122
|
-
healthResult: import("@langchain/langgraph").BaseChannel<import("../
|
|
122
|
+
healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunities/radar/radar.health.js").RadarHealthResult | null, import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
|
|
123
123
|
rediscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
124
124
|
connectorFlowCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
125
125
|
introducerDiscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
@@ -140,7 +140,7 @@ export declare class MaintenanceGraphFactory {
|
|
|
140
140
|
currentOpportunities: import("@langchain/langgraph").BaseChannel<import("../index.js").Opportunity[], import("../index.js").Opportunity[] | import("@langchain/langgraph").OverwriteValue<import("../index.js").Opportunity[]>, unknown>;
|
|
141
141
|
expiredCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
142
142
|
lastRediscoveryAt: import("@langchain/langgraph").BaseChannel<number | null, number | import("@langchain/langgraph").OverwriteValue<number | null> | null, unknown>;
|
|
143
|
-
healthResult: import("@langchain/langgraph").BaseChannel<import("../
|
|
143
|
+
healthResult: import("@langchain/langgraph").BaseChannel<import("../opportunities/radar/radar.health.js").RadarHealthResult | null, import("../opportunities/radar/radar.health.js").RadarHealthResult | import("@langchain/langgraph").OverwriteValue<import("../opportunities/radar/radar.health.js").RadarHealthResult | null> | null, unknown>;
|
|
144
144
|
rediscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
145
145
|
connectorFlowCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
146
146
|
introducerDiscoveryJobsEnqueued: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
@@ -151,7 +151,7 @@ export declare class MaintenanceGraphFactory {
|
|
|
151
151
|
connectorFlowCount?: undefined;
|
|
152
152
|
error?: undefined;
|
|
153
153
|
} | {
|
|
154
|
-
healthResult: import("../
|
|
154
|
+
healthResult: import("../opportunities/radar/radar.health.js").RadarHealthResult;
|
|
155
155
|
connectorFlowCount: number;
|
|
156
156
|
error?: undefined;
|
|
157
157
|
} | {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { StateGraph, START, END } from '@langchain/langgraph';
|
|
10
10
|
import { MaintenanceGraphState } from './maintenance.state.js';
|
|
11
|
-
import { computeRadarHealth } from '../
|
|
12
|
-
import { canUserSeeOpportunity, classifyOpportunity, isActionableForViewer, RADAR_SOFT_TARGETS } from '../
|
|
13
|
-
import { shouldRunIntroducerDiscovery, runIntroducerDiscovery } from '../
|
|
14
|
-
import { isIntroducerDiscoveryEnabled } from '../
|
|
11
|
+
import { computeRadarHealth } from '../opportunities/radar/radar.health.js';
|
|
12
|
+
import { canUserSeeOpportunity, classifyOpportunity, isActionableForViewer, RADAR_SOFT_TARGETS } from '../opportunities/domain/opportunity.utils.js';
|
|
13
|
+
import { shouldRunIntroducerDiscovery, runIntroducerDiscovery } from '../opportunities/application/opportunity.introducer.js';
|
|
14
|
+
import { isIntroducerDiscoveryEnabled } from '../opportunities/application/opportunity.introducer-feature.js';
|
|
15
15
|
import { protocolLogger } from '../shared/observability/protocol.logger.js';
|
|
16
16
|
const logger = protocolLogger('MaintenanceGraph');
|
|
17
17
|
const FRESHNESS_WINDOW_MS = 12 * 60 * 60 * 1000; // 12 hours
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Opportunity } from '../shared/interfaces/database.interface.js';
|
|
2
|
-
import type { RadarHealthResult } from '../
|
|
2
|
+
import type { RadarHealthResult } from '../opportunities/radar/radar.health.js';
|
|
3
3
|
/**
|
|
4
4
|
* Maintenance Graph State (Annotation-based).
|
|
5
5
|
* Flow: loadCurrentRadar → scoreRadarHealth → [conditional: rediscover | END] → logMaintenance → END
|
package/dist/mcp/mcp.server.js
CHANGED
|
@@ -11,7 +11,7 @@ import { CANONICAL_GUIDANCE_SUMMARY } from '../shared/agent/canonical-guidance.j
|
|
|
11
11
|
import { resolveChatContext } from '../shared/agent/tool.helpers.js';
|
|
12
12
|
import { deriveAllowedNetworkIds, scopeFromNetworkId } from '../shared/agent/tool.scope.js';
|
|
13
13
|
import { createToolRegistry } from '../shared/agent/tool.registry.js';
|
|
14
|
-
import { bindOwnerApprovalProvenance } from '../
|
|
14
|
+
import { bindOwnerApprovalProvenance } from '../opportunities/application/opportunity.owner-provenance.js';
|
|
15
15
|
import { ToolRuntimeError, invokeToolRuntime, toolRuntimeErrorToResult } from '../shared/agent/tool.runtime.js';
|
|
16
16
|
import { protocolLogger } from '../shared/observability/protocol.logger.js';
|
|
17
17
|
import { buildMcpAuthorizationDenialEvent, McpCapabilityPolicy, ONBOARDING_ALLOWED, resolveMcpActivityCaller, resolveMcpCapabilitySubject } from './mcp.authorization-policy.js';
|
|
@@ -402,7 +402,7 @@ export function createMcpServer(deps, authResolver, scopedDepsFactory, policyOpt
|
|
|
402
402
|
// identity — never a caller-supplied field — marks a direct MCP owner
|
|
403
403
|
// interaction for the opportunity owner-approval boundary. The
|
|
404
404
|
// capability-local extension deliberately keeps this field out of the
|
|
405
|
-
// shared helper's
|
|
405
|
+
// shared helper's negotiations/question cycle.
|
|
406
406
|
bindOwnerApprovalProvenance(context, {
|
|
407
407
|
surface: 'mcp',
|
|
408
408
|
sessionAuthenticated: authenticated.identity.isSessionAuth === true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/application — LLM agents, graph factory, tool factory, and
|
|
3
3
|
* application services for the negotiation capability.
|
|
4
4
|
*
|
|
5
5
|
* ## Boundary
|
|
6
6
|
*
|
|
7
|
-
* May import from
|
|
7
|
+
* May import from negotiations/domain and negotiations/ports plus shared LangGraph
|
|
8
8
|
* / model-binding seams. Must not import host implementations or other capability
|
|
9
9
|
* internals (use the capabilities/*.facade.ts contracts instead).
|
|
10
10
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/application — LLM agents, graph factory, tool factory, and
|
|
3
3
|
* application services for the negotiation capability.
|
|
4
4
|
*
|
|
5
5
|
* ## Boundary
|
|
6
6
|
*
|
|
7
|
-
* May import from
|
|
7
|
+
* May import from negotiations/domain and negotiations/ports plus shared LangGraph
|
|
8
8
|
* / model-binding seams. Must not import host implementations or other capability
|
|
9
9
|
* internals (use the capabilities/*.facade.ts contracts instead).
|
|
10
10
|
*
|
|
@@ -639,7 +639,7 @@ export declare function negotiateCandidates(negotiationGraph: NegotiationGraphLi
|
|
|
639
639
|
/**
|
|
640
640
|
* Initiator seat for every candidate session in this fan-out (v2 stamp).
|
|
641
641
|
* Passed through to the negotiation graph, which may still override it by
|
|
642
|
-
* inheriting from a prior task on the same
|
|
642
|
+
* inheriting from a prior task on the same opportunities/conversation.
|
|
643
643
|
*/
|
|
644
644
|
initiatorUserId?: string;
|
|
645
645
|
/** Exact settled task to resume; only the durable run-existing path sets this. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/domain — pure negotiation types, protocol rules, and deterministic
|
|
3
3
|
* policy functions.
|
|
4
4
|
*
|
|
5
5
|
* ## What lives here
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
*
|
|
19
19
|
* ## What does NOT live here
|
|
20
20
|
*
|
|
21
|
-
* - NegotiationScreener (LLM agent) →
|
|
22
|
-
* - NegotiationGraphFactory, negotiateCandidates (LangGraph) →
|
|
23
|
-
* - IndexNegotiator (LLM structured model) →
|
|
24
|
-
* - NegotiationReflector (LLM memory write) →
|
|
25
|
-
* - NegotiationSummarizer (LLM digest) →
|
|
26
|
-
* - NegotiationInsightsGenerator (LLM narrative) →
|
|
27
|
-
* - createNegotiationTools (MCP tool factory) →
|
|
28
|
-
* - NegotiationToolDeps (host port) →
|
|
21
|
+
* - NegotiationScreener (LLM agent) → negotiations/application
|
|
22
|
+
* - NegotiationGraphFactory, negotiateCandidates (LangGraph) → negotiations/application
|
|
23
|
+
* - IndexNegotiator (LLM structured model) → negotiations/application
|
|
24
|
+
* - NegotiationReflector (LLM memory write) → negotiations/application
|
|
25
|
+
* - NegotiationSummarizer (LLM digest) → negotiations/application
|
|
26
|
+
* - NegotiationInsightsGenerator (LLM narrative) → negotiations/application
|
|
27
|
+
* - createNegotiationTools (MCP tool factory) → negotiations/application
|
|
28
|
+
* - NegotiationToolDeps (host port) → negotiations/ports
|
|
29
29
|
*
|
|
30
30
|
* IND-550: canonical domain layer for the negotiation capability.
|
|
31
31
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/domain — pure negotiation types, protocol rules, and deterministic
|
|
3
3
|
* policy functions.
|
|
4
4
|
*
|
|
5
5
|
* ## What lives here
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
*
|
|
19
19
|
* ## What does NOT live here
|
|
20
20
|
*
|
|
21
|
-
* - NegotiationScreener (LLM agent) →
|
|
22
|
-
* - NegotiationGraphFactory, negotiateCandidates (LangGraph) →
|
|
23
|
-
* - IndexNegotiator (LLM structured model) →
|
|
24
|
-
* - NegotiationReflector (LLM memory write) →
|
|
25
|
-
* - NegotiationSummarizer (LLM digest) →
|
|
26
|
-
* - NegotiationInsightsGenerator (LLM narrative) →
|
|
27
|
-
* - createNegotiationTools (MCP tool factory) →
|
|
28
|
-
* - NegotiationToolDeps (host port) →
|
|
21
|
+
* - NegotiationScreener (LLM agent) → negotiations/application
|
|
22
|
+
* - NegotiationGraphFactory, negotiateCandidates (LangGraph) → negotiations/application
|
|
23
|
+
* - IndexNegotiator (LLM structured model) → negotiations/application
|
|
24
|
+
* - NegotiationReflector (LLM memory write) → negotiations/application
|
|
25
|
+
* - NegotiationSummarizer (LLM digest) → negotiations/application
|
|
26
|
+
* - NegotiationInsightsGenerator (LLM narrative) → negotiations/application
|
|
27
|
+
* - createNegotiationTools (MCP tool factory) → negotiations/application
|
|
28
|
+
* - NegotiationToolDeps (host port) → negotiations/ports
|
|
29
29
|
*
|
|
30
30
|
* IND-550: canonical domain layer for the negotiation capability.
|
|
31
31
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* negotiations/domain — screen-gate pure contracts (P2.1).
|
|
4
4
|
*
|
|
5
5
|
* Extracted from negotiation.screen.ts so that NegotiationGraphState and the
|
|
6
6
|
* application-layer NegotiationScreener can share types without a domain →
|
|
7
7
|
* application cycle.
|
|
8
8
|
*
|
|
9
9
|
* IND-550: canonical location for screen contract types.
|
|
10
|
-
* Legacy path (
|
|
10
|
+
* Legacy path (negotiations/negotiation.screen.ts shim) re-exports from here
|
|
11
11
|
* via the application layer.
|
|
12
12
|
*/
|
|
13
13
|
export declare const NEGOTIATION_SCREEN_MODES: readonly ["off", "shadow", "enforce"];
|
|
@@ -31,7 +31,7 @@ export declare const ScreenDecisionSchema: z.ZodObject<{
|
|
|
31
31
|
/** Suggested opening angle for the outreach turn (only when reaching out). */
|
|
32
32
|
outreachAngle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
evidence: z.ZodObject<{
|
|
34
|
-
/** How well the counterparty's
|
|
34
|
+
/** How well the counterparty's contexts/premises fit the client's need. */
|
|
35
35
|
counterpartyPremiseFit: z.ZodString;
|
|
36
36
|
/** How the client's intents align with what the counterparty seeks. */
|
|
37
37
|
intentAlignment: z.ZodString;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* negotiations/domain — screen-gate pure contracts (P2.1).
|
|
4
4
|
*
|
|
5
5
|
* Extracted from negotiation.screen.ts so that NegotiationGraphState and the
|
|
6
6
|
* application-layer NegotiationScreener can share types without a domain →
|
|
7
7
|
* application cycle.
|
|
8
8
|
*
|
|
9
9
|
* IND-550: canonical location for screen contract types.
|
|
10
|
-
* Legacy path (
|
|
10
|
+
* Legacy path (negotiations/negotiation.screen.ts shim) re-exports from here
|
|
11
11
|
* via the application layer.
|
|
12
12
|
*/
|
|
13
13
|
export const NEGOTIATION_SCREEN_MODES = ["off", "shadow", "enforce"];
|
|
@@ -35,7 +35,7 @@ export const ScreenDecisionSchema = z.object({
|
|
|
35
35
|
/** Suggested opening angle for the outreach turn (only when reaching out). */
|
|
36
36
|
outreachAngle: z.string().nullable().optional(),
|
|
37
37
|
evidence: z.object({
|
|
38
|
-
/** How well the counterparty's
|
|
38
|
+
/** How well the counterparty's contexts/premises fit the client's need. */
|
|
39
39
|
counterpartyPremiseFit: z.string(),
|
|
40
40
|
/** How the client's intents align with what the counterparty seeks. */
|
|
41
41
|
intentAlignment: z.string(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/domain — negotiator stance contracts (IND-611).
|
|
3
3
|
*
|
|
4
4
|
* The acting negotiator prompt is structurally biased toward producing matches
|
|
5
5
|
* rather than finding valuable ones: it frames the job as advocacy, treats a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/domain — negotiator stance contracts (IND-611).
|
|
3
3
|
*
|
|
4
4
|
* The acting negotiator prompt is structurally biased toward producing matches
|
|
5
5
|
* rather than finding valuable ones: it frames the job as advocacy, treats a
|
|
@@ -397,7 +397,7 @@ export declare const NegotiationGraphState: import("@langchain/langgraph").Annot
|
|
|
397
397
|
/**
|
|
398
398
|
* Park-window budget in milliseconds. The annotation default is a safety net
|
|
399
399
|
* for any caller that omits the field — keep it aligned with
|
|
400
|
-
* `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/
|
|
400
|
+
* `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/negotiations/negotiation.tools.ts.
|
|
401
401
|
* Inlined rather than imported to avoid a state↔tools cycle.
|
|
402
402
|
*/
|
|
403
403
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
@@ -239,7 +239,7 @@ export const NegotiationGraphState = Annotation.Root({
|
|
|
239
239
|
/**
|
|
240
240
|
* Park-window budget in milliseconds. The annotation default is a safety net
|
|
241
241
|
* for any caller that omits the field — keep it aligned with
|
|
242
|
-
* `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/
|
|
242
|
+
* `AMBIENT_PARK_WINDOW_MS` in packages/protocol/src/negotiations/negotiation.tools.ts.
|
|
243
243
|
* Inlined rather than imported to avoid a state↔tools cycle.
|
|
244
244
|
*/
|
|
245
245
|
timeoutMs: Annotation({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* negotiation — the capability's sole cross-capability surface.
|
|
3
3
|
*
|
|
4
4
|
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
-
* Supersedes the capabilities/*.facade.ts +
|
|
5
|
+
* Supersedes the capabilities/*.facade.ts + negotiations/public/ pair; the export
|
|
6
6
|
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
7
|
*/
|
|
8
8
|
export { AMBIENT_PARK_WINDOW_MS, buildFallbackDigest, createNegotiationTools, IndexNegotiator, negotiateCandidates, NegotiationGraphFactory, NegotiationInsightsGenerator, NegotiationReflector, NegotiationScreener, NegotiationSummarizer, } from "./application/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* negotiation — the capability's sole cross-capability surface.
|
|
3
3
|
*
|
|
4
4
|
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
-
* Supersedes the capabilities/*.facade.ts +
|
|
5
|
+
* Supersedes the capabilities/*.facade.ts + negotiations/public/ pair; the export
|
|
6
6
|
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
7
|
*/
|
|
8
8
|
export { AMBIENT_PARK_WINDOW_MS, buildFallbackDigest, createNegotiationTools, IndexNegotiator, negotiateCandidates, NegotiationGraphFactory, NegotiationInsightsGenerator, NegotiationReflector, NegotiationScreener, NegotiationSummarizer, } from "./application/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/ports — injected dependency contracts for the negotiation capability.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the narrow port types that the negotiation module declares as
|
|
5
5
|
* explicit injected boundaries. Consumers import these to wire host
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* negotiations/ports — injected dependency contracts for the negotiation capability.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the narrow port types that the negotiation module declares as
|
|
5
5
|
* explicit injected boundaries. Consumers import these to wire host
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* networks/application — orchestrators, factories, tools, and agents.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the orchestration tier of the communities capability: graph
|
|
5
5
|
* factories (LangGraph compilations), tool factories, and agent classes.
|
|
6
6
|
*
|
|
7
|
-
* Boundary: application-layer only. Imports from
|
|
8
|
-
*
|
|
7
|
+
* Boundary: application-layer only. Imports from networks/domain,
|
|
8
|
+
* networks/ports, and shared/ infrastructure — never from runtime/,
|
|
9
9
|
* host implementations, or capability facades (except as injected ports).
|
|
10
10
|
*
|
|
11
11
|
* ## Foreground use cases (participant-directed)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* networks/application — orchestrators, factories, tools, and agents.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the orchestration tier of the communities capability: graph
|
|
5
5
|
* factories (LangGraph compilations), tool factories, and agent classes.
|
|
6
6
|
*
|
|
7
|
-
* Boundary: application-layer only. Imports from
|
|
8
|
-
*
|
|
7
|
+
* Boundary: application-layer only. Imports from networks/domain,
|
|
8
|
+
* networks/ports, and shared/ infrastructure — never from runtime/,
|
|
9
9
|
* host implementations, or capability facades (except as injected ports).
|
|
10
10
|
*
|
|
11
11
|
* ## Foreground use cases (participant-directed)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntentNetworkGraphDatabase } from "../ports/index.js";
|
|
2
|
-
import type { DebugMetaAgent } from "../../
|
|
2
|
+
import type { DebugMetaAgent } from "../../agents/index.js";
|
|
3
3
|
import type { IntentIndexer } from "../ports/index.js";
|
|
4
4
|
import { type AssignmentResult } from "./indexer.state.js";
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* networks/domain — pure community contracts.
|
|
3
3
|
*
|
|
4
4
|
* Value types and graph-state shapes that define the communities capability's
|
|
5
5
|
* domain language. No LLM calls, no LangGraph edges, no cross-capability
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* - IntentNetworkGraphState: it carries `IntentIndexerOutput` (a signals type)
|
|
21
21
|
* and `DebugMetaAgent` (a participant-agents type), so it belongs in the
|
|
22
|
-
* application layer (
|
|
22
|
+
* application layer (networks/application/indexer.state.ts).
|
|
23
23
|
*
|
|
24
24
|
* IND-546: canonical home for pure community state types.
|
|
25
25
|
* Legacy paths (network/network.state.ts, network/membership/membership.state.ts)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* networks/domain — pure community contracts.
|
|
3
3
|
*
|
|
4
4
|
* Value types and graph-state shapes that define the communities capability's
|
|
5
5
|
* domain language. No LLM calls, no LangGraph edges, no cross-capability
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* - IntentNetworkGraphState: it carries `IntentIndexerOutput` (a signals type)
|
|
21
21
|
* and `DebugMetaAgent` (a participant-agents type), so it belongs in the
|
|
22
|
-
* application layer (
|
|
22
|
+
* application layer (networks/application/indexer.state.ts).
|
|
23
23
|
*
|
|
24
24
|
* IND-546: canonical home for pure community state types.
|
|
25
25
|
* Legacy paths (network/network.state.ts, network/membership/membership.state.ts)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* communities — the capability's sole cross-capability surface.
|
|
3
3
|
*
|
|
4
4
|
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
-
* Supersedes the capabilities/*.facade.ts +
|
|
5
|
+
* Supersedes the capabilities/*.facade.ts + networks/public/ pair; the export
|
|
6
6
|
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
7
|
*/
|
|
8
8
|
export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* communities — the capability's sole cross-capability surface.
|
|
3
3
|
*
|
|
4
4
|
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
-
* Supersedes the capabilities/*.facade.ts +
|
|
5
|
+
* Supersedes the capabilities/*.facade.ts + networks/public/ pair; the export
|
|
6
6
|
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
7
|
*/
|
|
8
8
|
export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* networks/ports — narrow injected dependency contracts.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the subset of types that the communities capability declares as
|
|
5
5
|
* explicit injected ports. Consumers of the communities module should import
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* IND-546: explicit port layer for communities; signals consumed via capabilities/signals.facade.ts.
|
|
22
22
|
*/
|
|
23
23
|
export type { NetworkGraphDatabase, NetworkMembershipGraphDatabase, IntentNetworkGraphDatabase, } from "../../shared/interfaces/database.interface.js";
|
|
24
|
-
export { IntentIndexer } from "../../
|
|
25
|
-
export type { IntentIndexerOutput } from "../../
|
|
24
|
+
export { IntentIndexer } from "../../intents/index.js";
|
|
25
|
+
export type { IntentIndexerOutput } from "../../intents/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* networks/ports — narrow injected dependency contracts.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the subset of types that the communities capability declares as
|
|
5
5
|
* explicit injected ports. Consumers of the communities module should import
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
// Re-exported from the signals capability facade so that application-layer code
|
|
25
25
|
// (indexer.graph.ts, indexer.state.ts) imports from the communities port, not
|
|
26
26
|
// directly from the signals facade or its implementation.
|
|
27
|
-
export { IntentIndexer } from "../../
|
|
27
|
+
export { IntentIndexer } from "../../intents/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* opportunities/application — LLM agents, LangGraph graphs, effectful orchestration.
|
|
3
3
|
*
|
|
4
4
|
* ## What lives here (flat files)
|
|
5
5
|
* - Opportunity lifecycle transitions (opportunity.lifecycle.ts)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* opportunities/application — LLM agents, LangGraph graphs, effectful orchestration.
|
|
3
3
|
*
|
|
4
4
|
* ## What lives here (flat files)
|
|
5
5
|
* - Opportunity lifecycle transitions (opportunity.lifecycle.ts)
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* private gate decision as a "counterparty declined" event.
|
|
20
20
|
*/
|
|
21
21
|
import type { NegotiationGraphDatabase, OpportunityStatus } from '../../shared/interfaces/database.interface.js';
|
|
22
|
-
import type { NegotiationOutcome, NegotiationTurn } from '../../
|
|
22
|
+
import type { NegotiationOutcome, NegotiationTurn } from '../../negotiations/index.js';
|
|
23
23
|
/**
|
|
24
24
|
* Narrow slice of {@link NegotiationGraphDatabase} required by the loader. Kept
|
|
25
25
|
* minimal so call sites can opt into a smaller surface.
|
package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildFallbackDigest } from '../../
|
|
1
|
+
import { buildFallbackDigest } from '../../negotiations/index.js';
|
|
2
2
|
import { protocolLogger } from '../../shared/observability/protocol.logger.js';
|
|
3
3
|
import { traceAgent } from '../../shared/observability/trace.js';
|
|
4
4
|
const logger = protocolLogger('OpportunityDiscoveryNegotiationSummary');
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Constructor injects Database, Embedder, and compiled HyDE graph.
|
|
13
13
|
*/
|
|
14
14
|
import type { Id, NegotiationContinuationReceipt } from '../../shared/interfaces/database.interface.js';
|
|
15
|
-
import type { DebugMetaAgent } from '../../
|
|
15
|
+
import type { DebugMetaAgent } from '../../agents/index.js';
|
|
16
16
|
import { type IndexedIntent, type SourceProfileData, type TargetNetwork, type CandidateMatch, type EvaluatedOpportunity, type EvaluatedOpportunityActor } from '../domain/opportunity.state.js';
|
|
17
17
|
import { type CandidateProfile, type EvaluatorEntity, type EvaluatorInput } from './opportunity.evaluator.js';
|
|
18
18
|
import type { OpportunityGraphDatabase } from '../../shared/interfaces/database.interface.js';
|
|
@@ -44,7 +44,7 @@ export type OpportunityEvaluatorLike = {
|
|
|
44
44
|
};
|
|
45
45
|
import type { Embedder } from '../../shared/interfaces/embedder.interface.js';
|
|
46
46
|
import type { Opportunity, OpportunityStatus } from '../../shared/interfaces/database.interface.js';
|
|
47
|
-
import type { NegotiationGraphLike } from "../../
|
|
47
|
+
import type { NegotiationGraphLike } from "../../negotiations/index.js";
|
|
48
48
|
import type { AgentDispatcher } from "../../shared/interfaces/agent-dispatcher.interface.js";
|
|
49
49
|
import { type QueueOpportunityNotificationFn } from './opportunity.lifecycle.js';
|
|
50
50
|
import { type StampNewbornOpportunitiesFn } from './opportunity.newborn-stamping.js';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import { StateGraph, START, END } from '@langchain/langgraph';
|
|
15
15
|
import { OpportunityGraphState } from '../domain/opportunity.state.js';
|
|
16
16
|
import { OpportunityEvaluator } from './opportunity.evaluator.js';
|
|
17
|
-
import { IntentIndexer } from '../../
|
|
17
|
+
import { IntentIndexer } from '../../intents/index.js';
|
|
18
18
|
import { getModelName } from '../../shared/agent/model.config.js';
|
|
19
19
|
import { selectHydeDocumentsForGeneration } from '../../shared/hyde/hyde.documents.js';
|
|
20
20
|
import { getHydeGenerationMode } from '../../shared/hyde/hyde.env.js';
|
|
@@ -23,7 +23,7 @@ import { safeFallbackSummary } from '../domain/opportunity.safe-presentation.js'
|
|
|
23
23
|
import { hasUnsupportedOpportunityClaim } from '../../shared/utils/claim-safety.js';
|
|
24
24
|
import { persistOpportunities } from './opportunity.persist.js';
|
|
25
25
|
import { INTRODUCER_DISCOVERY_SOURCE } from './opportunity.introducer.js';
|
|
26
|
-
import { negotiateCandidates, ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs, AMBIENT_PARK_WINDOW_MS } from "../../
|
|
26
|
+
import { negotiateCandidates, ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs, AMBIENT_PARK_WINDOW_MS } from "../../negotiations/index.js";
|
|
27
27
|
import { buildDiscoverySummary, toDiscoveryNegotiation } from "../domain/negotiation-summary.builder.js";
|
|
28
28
|
import { protocolLogger, withCallLogging } from '../../shared/observability/protocol.logger.js';
|
|
29
29
|
import { timed } from '../../shared/observability/performance.js';
|
|
@@ -63,7 +63,7 @@ export type OpportunityOwnerApprovalDenialReason =
|
|
|
63
63
|
| 'forged'
|
|
64
64
|
/** Proof or underlying challenge has expired. */
|
|
65
65
|
| 'stale'
|
|
66
|
-
/** Proof is not bound to an exact
|
|
66
|
+
/** Proof is not bound to an exact opportunities/action/owner/agent/interaction. */
|
|
67
67
|
| 'generic'
|
|
68
68
|
/** Proof binding mismatches the current server-derived binding. */
|
|
69
69
|
| 'wrong_owner' | 'wrong_agent' | 'wrong_action' | 'wrong_opportunity'
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* before the registry invokes a tool. Tool input schemas never contain this
|
|
6
6
|
* field, so a caller cannot forge a direct-owner interaction through args or
|
|
7
7
|
* generic context data. Keeping this extension here avoids changing the shared
|
|
8
|
-
* helper that is part of the
|
|
8
|
+
* helper that is part of the negotiations/question architecture cycle.
|
|
9
9
|
*/
|
|
10
10
|
const OWNER_APPROVAL_PROVENANCE = Symbol("ownerApprovalProvenance");
|
|
11
11
|
function hasOwnerApprovalProvenance(context) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `DiscoveryNegotiation` / `DiscoverySummary` shapes consumed by the question
|
|
4
4
|
* generator. No DB access, no LLM — safe to import from anywhere.
|
|
5
5
|
*/
|
|
6
|
-
import type { NegotiationTurn, NegotiationOutcome } from "../../
|
|
6
|
+
import type { NegotiationTurn, NegotiationOutcome } from "../../negotiations/index.js";
|
|
7
7
|
import type { DiscoveryNegotiation, DiscoverySummary } from "../../shared/schemas/discovery-question.schema.js";
|
|
8
8
|
/**
|
|
9
9
|
* The input shape collected by the opportunity graph's negotiate node for
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Id, NegotiationContinuationExecution, NegotiationContinuationReceipt, OpportunityStatus, Opportunity } from '../../shared/interfaces/database.interface.js';
|
|
2
2
|
import type { Lens } from '../../shared/interfaces/embedder.interface.js';
|
|
3
3
|
import type { EvaluatorEntity } from '../application/opportunity.evaluator.js';
|
|
4
|
-
import type { DebugMetaAgent } from '../../
|
|
4
|
+
import type { DebugMetaAgent } from '../../agents/index.js';
|
|
5
5
|
import type { OpportunityEvidence } from '../../shared/schemas/network-assignment.schema.js';
|
|
6
6
|
import type { DiscoverySummary } from "../../shared/schemas/discovery-question.schema.js";
|
|
7
7
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* opportunity — the capability's sole cross-capability surface.
|
|
3
3
|
*
|
|
4
4
|
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
-
* Supersedes the capabilities/*.facade.ts +
|
|
5
|
+
* Supersedes the capabilities/*.facade.ts + opportunities/public/ pair; the export
|
|
6
6
|
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
7
|
*/
|
|
8
8
|
export { getOrCreateDeliveryCardBatch, } from "./application/delivery-card.cache.js";
|