@indexnetwork/protocol 21.0.0-rc.486.1 → 21.0.0-rc.487.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/dist/agents/{ports/agent.dispatcher.port.d.ts → agent.dispatcher.port.d.ts} +2 -2
- package/dist/agents/agent.module.d.ts +19 -0
- package/dist/agents/agent.module.js +11 -0
- package/dist/agents/{ports/agent.repository.port.d.ts → agent.repository.port.d.ts} +1 -1
- package/dist/agents/{application/agent.tools.d.ts → agent.tools.d.ts} +2 -2
- package/dist/agents/{application/agent.tools.js → agent.tools.js} +2 -2
- package/dist/chat/chat-streaming.types.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/chat/negotiator.prompt.d.ts +1 -1
- package/dist/chat/negotiator.prompt.js +1 -1
- package/dist/contacts/contact.module.d.ts +8 -0
- package/dist/contacts/contact.module.js +6 -0
- package/dist/contacts/{ports/contact.repository.port.d.ts → contact.repository.port.d.ts} +1 -1
- package/dist/contacts/{application/contact.tools.d.ts → contact.tools.d.ts} +2 -2
- package/dist/contacts/{application/contact.tools.js → contact.tools.js} +2 -2
- package/dist/contexts/context.module.d.ts +13 -0
- package/dist/contexts/context.module.js +12 -0
- package/dist/contexts/{ports/participant-context.tools.port.d.ts → context.tools.port.d.ts} +1 -1
- package/dist/discovery/hyde.graph.d.ts +1 -1
- package/dist/discovery/hyde.state.d.ts +1 -1
- package/dist/enrichment/enrichment.graph.d.ts +1 -1
- package/dist/enrichment/enrichment.state.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.context-read.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.context-write.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.helpers.d.ts +1 -1
- package/dist/index.d.ts +86 -86
- package/dist/index.js +61 -61
- package/dist/intents/graph/intent.graph.d.ts +1 -1
- package/dist/intents/graph/intent.graph.infer.d.ts +1 -1
- package/dist/intents/graph/intent.graph.reconcile.d.ts +1 -1
- package/dist/intents/graph/intent.graph.shared.d.ts +1 -1
- package/dist/intents/graph/intent.graph.state.d.ts +1 -1
- package/dist/intents/intent.module.d.ts +1 -1
- package/dist/maintenance/maintenance.graph.js +3 -3
- package/dist/mcp/mcp.server.js +1 -1
- package/dist/negotiations/{application/insight.generator.js → insight.generator.js} +4 -4
- package/dist/negotiations/{application/negotiation.agent.d.ts → negotiation.agent.d.ts} +6 -6
- package/dist/negotiations/{application/negotiation.agent.js → negotiation.agent.js} +9 -9
- package/dist/negotiations/negotiation.attribution.d.ts +1 -1
- package/dist/negotiations/{application/negotiation.candidates.d.ts → negotiation.candidates.d.ts} +5 -5
- package/dist/negotiations/{application/negotiation.candidates.js → negotiation.candidates.js} +1 -1
- package/dist/negotiations/{domain/negotiation.consultation-policy.d.ts → negotiation.consultation-policy.d.ts} +2 -2
- package/dist/negotiations/{application/negotiation.detail-reader.d.ts → negotiation.detail-reader.d.ts} +5 -5
- package/dist/negotiations/{application/negotiation.detail-reader.js → negotiation.detail-reader.js} +3 -3
- package/dist/negotiations/{application/negotiation.graph.d.ts → negotiation.graph.d.ts} +81 -81
- package/dist/negotiations/{application/negotiation.graph.finalize.js → negotiation.graph.finalize.js} +4 -4
- package/dist/negotiations/{application/negotiation.graph.init.d.ts → negotiation.graph.init.d.ts} +8 -8
- package/dist/negotiations/{application/negotiation.graph.init.js → negotiation.graph.init.js} +5 -5
- package/dist/negotiations/{application/negotiation.graph.js → negotiation.graph.js} +4 -4
- package/dist/negotiations/{application/negotiation.graph.screen.d.ts → negotiation.graph.screen.d.ts} +1 -1
- package/dist/negotiations/{application/negotiation.graph.screen.js → negotiation.graph.screen.js} +2 -2
- package/dist/negotiations/{application/negotiation.graph.shared.d.ts → negotiation.graph.shared.d.ts} +13 -13
- package/dist/negotiations/{application/negotiation.graph.shared.js → negotiation.graph.shared.js} +2 -2
- package/dist/negotiations/{application/negotiation.graph.turn.d.ts → negotiation.graph.turn.d.ts} +2 -2
- package/dist/negotiations/{application/negotiation.graph.turn.js → negotiation.graph.turn.js} +6 -6
- package/dist/negotiations/{domain/negotiation.hermes-contract.d.ts → negotiation.hermes-contract.d.ts} +1 -1
- package/dist/negotiations/{domain/negotiation.lifecycle-narration.d.ts → negotiation.lifecycle-narration.d.ts} +1 -1
- package/dist/negotiations/negotiation.module.d.ts +28 -0
- package/dist/negotiations/negotiation.module.js +19 -0
- package/dist/negotiations/{domain/negotiation.protocol.d.ts → negotiation.protocol.d.ts} +1 -1
- package/dist/negotiations/{domain/negotiation.protocol.js → negotiation.protocol.js} +1 -1
- package/dist/negotiations/{domain/negotiation.question-safety.js → negotiation.question-safety.js} +1 -1
- package/dist/negotiations/{application/negotiation.reflect.d.ts → negotiation.reflect.d.ts} +3 -3
- package/dist/negotiations/{application/negotiation.reflect.js → negotiation.reflect.js} +5 -5
- package/dist/negotiations/{application/negotiation.screen.d.ts → negotiation.screen.d.ts} +8 -8
- package/dist/negotiations/{application/negotiation.screen.js → negotiation.screen.js} +7 -7
- package/dist/negotiations/{domain/negotiation.state.d.ts → negotiation.state.d.ts} +2 -2
- package/dist/negotiations/{domain/negotiation.state.js → negotiation.state.js} +1 -1
- package/dist/negotiations/{application/negotiation.summarizer.d.ts → negotiation.summarizer.d.ts} +2 -2
- package/dist/negotiations/{application/negotiation.summarizer.js → negotiation.summarizer.js} +4 -4
- package/dist/negotiations/{application/negotiation.tools.d.ts → negotiation.tools.d.ts} +3 -3
- package/dist/negotiations/{application/negotiation.tools.js → negotiation.tools.js} +9 -9
- package/dist/negotiations/{ports/negotiation.tools.port.d.ts → negotiation.tools.port.d.ts} +4 -4
- package/dist/networks/indexer.graph.d.ts +1 -1
- package/dist/networks/indexer.state.d.ts +1 -1
- package/dist/opportunities/{application/delivery-card.cache.d.ts → delivery-card.cache.d.ts} +2 -2
- package/dist/opportunities/{application/delivery-card.cache.js → delivery-card.cache.js} +2 -2
- package/dist/opportunities/discriminator/discriminator.adjustments.d.ts +1 -1
- package/dist/opportunities/discriminator/discriminator.push.d.ts +1 -1
- package/dist/opportunities/discriminator/discriminator.question.d.ts +1 -1
- package/dist/opportunities/{application/negotiation-context.loader.d.ts → negotiation-context.loader.d.ts} +2 -2
- package/dist/opportunities/{application/negotiation-context.loader.js → negotiation-context.loader.js} +1 -1
- package/dist/opportunities/{domain/negotiation-summary.builder.d.ts → negotiation-summary.builder.d.ts} +2 -2
- package/dist/opportunities/{domain/opportunity.actor.d.ts → opportunity.actor.d.ts} +1 -1
- package/dist/opportunities/{application/opportunity.discovery-negotiation-summary.d.ts → opportunity.discovery-negotiation-summary.d.ts} +3 -3
- package/dist/opportunities/{application/opportunity.discovery-negotiation-summary.js → opportunity.discovery-negotiation-summary.js} +3 -3
- package/dist/opportunities/{application/opportunity.enricher.d.ts → opportunity.enricher.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.enricher.js → opportunity.enricher.js} +2 -2
- package/dist/opportunities/{application/opportunity.evaluator.d.ts → opportunity.evaluator.d.ts} +3 -3
- package/dist/opportunities/{application/opportunity.evaluator.js → opportunity.evaluator.js} +7 -7
- package/dist/opportunities/{domain/opportunity.evidence.d.ts → opportunity.evidence.d.ts} +1 -1
- package/dist/opportunities/{application/opportunity.existing-negotiation.d.ts → opportunity.existing-negotiation.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.existing-negotiation.js → opportunity.existing-negotiation.js} +1 -1
- package/dist/opportunities/{application/opportunity.feed-selection.d.ts → opportunity.feed-selection.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.feed-selection.js → opportunity.feed-selection.js} +1 -1
- package/dist/opportunities/{application/opportunity.graph.d.ts → opportunity.graph.d.ts} +130 -130
- package/dist/opportunities/{application/opportunity.graph.discovery-strategies.d.ts → opportunity.graph.discovery-strategies.d.ts} +5 -5
- package/dist/opportunities/{application/opportunity.graph.discovery-strategies.js → opportunity.graph.discovery-strategies.js} +5 -5
- package/dist/opportunities/{application/opportunity.graph.discovery.d.ts → opportunity.graph.discovery.d.ts} +3 -3
- package/dist/opportunities/{application/opportunity.graph.discovery.js → opportunity.graph.discovery.js} +6 -6
- package/dist/opportunities/{application/opportunity.graph.evaluation.d.ts → opportunity.graph.evaluation.d.ts} +3 -3
- package/dist/opportunities/{application/opportunity.graph.evaluation.js → opportunity.graph.evaluation.js} +8 -8
- package/dist/opportunities/{application/opportunity.graph.js → opportunity.graph.js} +13 -13
- package/dist/opportunities/{application/opportunity.graph.modes.d.ts → opportunity.graph.modes.d.ts} +37 -37
- package/dist/opportunities/{application/opportunity.graph.modes.js → opportunity.graph.modes.js} +9 -9
- package/dist/opportunities/{application/opportunity.graph.negotiate.d.ts → opportunity.graph.negotiate.d.ts} +4 -4
- package/dist/opportunities/{application/opportunity.graph.negotiate.js → opportunity.graph.negotiate.js} +6 -6
- package/dist/opportunities/{application/opportunity.graph.persist-node.d.ts → opportunity.graph.persist-node.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.graph.persist-node.js → opportunity.graph.persist-node.js} +9 -9
- package/dist/opportunities/{application/opportunity.graph.prep.d.ts → opportunity.graph.prep.d.ts} +4 -4
- package/dist/opportunities/{application/opportunity.graph.prep.js → opportunity.graph.prep.js} +6 -6
- package/dist/opportunities/{application/opportunity.graph.shared.d.ts → opportunity.graph.shared.d.ts} +28 -28
- package/dist/opportunities/{application/opportunity.graph.shared.js → opportunity.graph.shared.js} +4 -4
- package/dist/opportunities/{application/opportunity.introducer.js → opportunity.introducer.js} +1 -1
- package/dist/opportunities/{application/opportunity.lifecycle.d.ts → opportunity.lifecycle.d.ts} +1 -1
- package/dist/opportunities/{index.d.ts → opportunity.module.d.ts} +24 -24
- package/dist/opportunities/{index.js → opportunity.module.js} +16 -16
- package/dist/opportunities/{application/opportunity.newborn-stamping.d.ts → opportunity.newborn-stamping.d.ts} +1 -1
- package/dist/opportunities/{application/opportunity.owner-provenance.d.ts → opportunity.owner-provenance.d.ts} +1 -1
- package/dist/opportunities/{application/opportunity.pending-questions.d.ts → opportunity.pending-questions.d.ts} +1 -1
- package/dist/opportunities/{application/opportunity.pending-questions.js → opportunity.pending-questions.js} +1 -1
- package/dist/opportunities/{application/opportunity.persist.d.ts → opportunity.persist.d.ts} +3 -3
- package/dist/opportunities/{application/opportunity.persist.js → opportunity.persist.js} +3 -3
- package/dist/opportunities/{application/opportunity.persistence-admission.d.ts → opportunity.persistence-admission.d.ts} +1 -1
- package/dist/opportunities/{application/opportunity.presentation.d.ts → opportunity.presentation.d.ts} +3 -3
- package/dist/opportunities/{application/opportunity.presentation.js → opportunity.presentation.js} +6 -6
- package/dist/opportunities/{domain/opportunity.state.d.ts → opportunity.state.d.ts} +6 -6
- package/dist/opportunities/{application/opportunity.tools.cards.d.ts → opportunity.tools.cards.d.ts} +4 -4
- package/dist/opportunities/{application/opportunity.tools.cards.js → opportunity.tools.cards.js} +2 -2
- package/dist/opportunities/{application/opportunity.tools.d.ts → opportunity.tools.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.tools.js → opportunity.tools.js} +7 -7
- package/dist/opportunities/{application/opportunity.tools.list.d.ts → opportunity.tools.list.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.tools.list.js → opportunity.tools.list.js} +4 -4
- package/dist/opportunities/{ports/opportunity.tools.port.d.ts → opportunity.tools.port.d.ts} +2 -2
- package/dist/opportunities/{application/opportunity.update-admission.d.ts → opportunity.update-admission.d.ts} +1 -1
- package/dist/opportunities/{domain/opportunity.utils.d.ts → opportunity.utils.d.ts} +3 -3
- package/dist/opportunities/{domain/opportunity.utils.js → opportunity.utils.js} +3 -3
- package/dist/opportunities/radar/radar.graph.d.ts +2 -2
- package/dist/opportunities/radar/radar.graph.js +6 -6
- package/dist/opportunities/radar/radar.health.js +1 -1
- package/dist/opportunities/radar/radar.state.d.ts +1 -1
- package/dist/premises/premise.graph.d.ts +1 -1
- package/dist/premises/premise.state.d.ts +1 -1
- package/dist/premises/premise.tools.d.ts +1 -1
- package/dist/questions/question.input.d.ts +1 -1
- package/dist/questions/question.input.js +1 -1
- package/dist/questions/question.presets.js +1 -1
- package/dist/shared/agent/tool.factory.d.ts +1 -1
- package/dist/shared/agent/tool.factory.js +9 -9
- package/dist/shared/agent/tool.helpers.d.ts +4 -4
- package/dist/shared/agent/tool.registry.d.ts +1 -1
- package/dist/shared/agent/tool.registry.js +5 -5
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +1 -1
- package/package.json +1 -1
- package/dist/agents/application/index.d.ts +0 -23
- package/dist/agents/application/index.js +0 -24
- package/dist/agents/domain/index.d.ts +0 -19
- package/dist/agents/domain/index.js +0 -1
- package/dist/agents/index.d.ts +0 -21
- package/dist/agents/index.js +0 -11
- package/dist/agents/ports/index.d.ts +0 -27
- package/dist/agents/ports/index.js +0 -25
- package/dist/contacts/application/index.d.ts +0 -10
- package/dist/contacts/application/index.js +0 -10
- package/dist/contacts/domain/index.d.ts +0 -12
- package/dist/contacts/index.d.ts +0 -9
- package/dist/contacts/index.js +0 -8
- package/dist/contacts/ports/index.d.ts +0 -19
- package/dist/contacts/ports/index.js +0 -18
- package/dist/contexts/application/index.d.ts +0 -72
- package/dist/contexts/application/index.js +0 -82
- package/dist/contexts/domain/index.d.ts +0 -67
- package/dist/contexts/domain/index.js +0 -68
- package/dist/contexts/index.d.ts +0 -13
- package/dist/contexts/index.js +0 -12
- package/dist/contexts/ports/index.d.ts +0 -37
- package/dist/contexts/ports/index.js +0 -34
- package/dist/contexts/ports/participant-context.tools.port.js +0 -1
- package/dist/negotiations/application/index.d.ts +0 -48
- package/dist/negotiations/application/index.js +0 -49
- package/dist/negotiations/domain/index.d.ts +0 -56
- package/dist/negotiations/domain/index.js +0 -57
- package/dist/negotiations/index.d.ts +0 -12
- package/dist/negotiations/index.js +0 -9
- package/dist/negotiations/ports/index.d.ts +0 -16
- package/dist/negotiations/ports/index.js +0 -16
- package/dist/opportunities/application/index.d.ts +0 -59
- package/dist/opportunities/application/index.js +0 -64
- package/dist/opportunities/domain/index.d.ts +0 -51
- package/dist/opportunities/domain/index.js +0 -48
- package/dist/opportunities/ports/index.d.ts +0 -5
- package/dist/opportunities/ports/index.js +0 -1
- /package/dist/agents/{ports/agent.dispatcher.port.js → agent.dispatcher.port.js} +0 -0
- /package/dist/agents/{ports/agent.repository.port.js → agent.repository.port.js} +0 -0
- /package/dist/agents/{ports/agent.tools.port.d.ts → agent.tools.port.d.ts} +0 -0
- /package/dist/agents/{ports/agent.tools.port.js → agent.tools.port.js} +0 -0
- /package/dist/agents/{domain/agent.types.d.ts → agent.types.d.ts} +0 -0
- /package/dist/agents/{domain/agent.types.js → agent.types.js} +0 -0
- /package/dist/contacts/{ports/contact.repository.port.js → contact.repository.port.js} +0 -0
- /package/dist/contacts/{ports/contact.tools.port.d.ts → contact.tools.port.d.ts} +0 -0
- /package/dist/contacts/{ports/contact.tools.port.js → contact.tools.port.js} +0 -0
- /package/dist/contacts/{domain/contact.types.d.ts → contact.types.d.ts} +0 -0
- /package/dist/contacts/{domain/contact.types.js → contact.types.js} +0 -0
- /package/dist/{contacts/domain/index.js → contexts/context.tools.port.js} +0 -0
- /package/dist/negotiations/{application/insight.generator.d.ts → insight.generator.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.consultation-policy.js → negotiation.consultation-policy.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.deadlock.contracts.d.ts → negotiation.deadlock.contracts.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.deadlock.contracts.js → negotiation.deadlock.contracts.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.deadlock.d.ts → negotiation.deadlock.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.deadlock.js → negotiation.deadlock.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.expected-speaker.d.ts → negotiation.expected-speaker.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.expected-speaker.js → negotiation.expected-speaker.js} +0 -0
- /package/dist/negotiations/{application/negotiation.graph.finalize.d.ts → negotiation.graph.finalize.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.hermes-contract.js → negotiation.hermes-contract.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.intent-snapshot-provenance.d.ts → negotiation.intent-snapshot-provenance.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.intent-snapshot-provenance.js → negotiation.intent-snapshot-provenance.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.lifecycle-narration.js → negotiation.lifecycle-narration.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.memory.d.ts → negotiation.memory.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.memory.js → negotiation.memory.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.question-safety.d.ts → negotiation.question-safety.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.screen.contracts.d.ts → negotiation.screen.contracts.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.screen.contracts.js → negotiation.screen.contracts.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.stance.contracts.d.ts → negotiation.stance.contracts.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.stance.contracts.js → negotiation.stance.contracts.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.task-lock-policy.d.ts → negotiation.task-lock-policy.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.task-lock-policy.js → negotiation.task-lock-policy.js} +0 -0
- /package/dist/negotiations/{ports/negotiation.tools.port.js → negotiation.tools.port.js} +0 -0
- /package/dist/negotiations/{domain/negotiation.turn-cap.d.ts → negotiation.turn-cap.d.ts} +0 -0
- /package/dist/negotiations/{domain/negotiation.turn-cap.js → negotiation.turn-cap.js} +0 -0
- /package/dist/opportunities/{domain/negotiation-summary.builder.js → negotiation-summary.builder.js} +0 -0
- /package/dist/opportunities/{domain/opportunity.actor.js → opportunity.actor.js} +0 -0
- /package/dist/opportunities/{domain/opportunity.evidence.js → opportunity.evidence.js} +0 -0
- /package/dist/opportunities/{application/opportunity.introducer-feature.d.ts → opportunity.introducer-feature.d.ts} +0 -0
- /package/dist/opportunities/{application/opportunity.introducer-feature.js → opportunity.introducer-feature.js} +0 -0
- /package/dist/opportunities/{application/opportunity.introducer.d.ts → opportunity.introducer.d.ts} +0 -0
- /package/dist/opportunities/{domain/opportunity.labels.d.ts → opportunity.labels.d.ts} +0 -0
- /package/dist/opportunities/{domain/opportunity.labels.js → opportunity.labels.js} +0 -0
- /package/dist/opportunities/{application/opportunity.lifecycle.js → opportunity.lifecycle.js} +0 -0
- /package/dist/opportunities/{application/opportunity.newborn-stamping.js → opportunity.newborn-stamping.js} +0 -0
- /package/dist/opportunities/{application/opportunity.owner-approval.d.ts → opportunity.owner-approval.d.ts} +0 -0
- /package/dist/opportunities/{application/opportunity.owner-approval.js → opportunity.owner-approval.js} +0 -0
- /package/dist/opportunities/{application/opportunity.owner-provenance.js → opportunity.owner-provenance.js} +0 -0
- /package/dist/opportunities/{application/opportunity.persistence-admission.js → opportunity.persistence-admission.js} +0 -0
- /package/dist/opportunities/{domain/opportunity.state.js → opportunity.state.js} +0 -0
- /package/dist/opportunities/{ports/opportunity.tools.port.js → opportunity.tools.port.js} +0 -0
- /package/dist/opportunities/{application/opportunity.update-admission.js → opportunity.update-admission.js} +0 -0
- /package/dist/questions/{index.d.ts → question.module.d.ts} +0 -0
- /package/dist/questions/{index.js → question.module.js} +0 -0
package/dist/contexts/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* participant-context — the capability's sole cross-capability surface.
|
|
3
|
-
*
|
|
4
|
-
* Enrichment, premises, generated participant context, and HyDE representations
|
|
5
|
-
* are one capability; only orchestration entry points and the read-model
|
|
6
|
-
* generator cross its edge.
|
|
7
|
-
*
|
|
8
|
-
* Anything outside this capability imports from here and nowhere else.
|
|
9
|
-
* Supersedes the capabilities/participant-context.facade.ts + public/ pair; the
|
|
10
|
-
* export list is the union of the facades it replaces, so the contract is unchanged.
|
|
11
|
-
*/
|
|
12
|
-
export { createEnrichmentTools, createPremiseTools, EnrichmentGraphFactory, PremiseGraphFactory, UserContextGenerator, } from "./application/index.js";
|
|
13
|
-
export type { EnrichmentToolDeps, PremiseToolDeps, } from "./ports/participant-context.tools.port.js";
|
package/dist/contexts/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* participant-context — the capability's sole cross-capability surface.
|
|
3
|
-
*
|
|
4
|
-
* Enrichment, premises, generated participant context, and HyDE representations
|
|
5
|
-
* are one capability; only orchestration entry points and the read-model
|
|
6
|
-
* generator cross its edge.
|
|
7
|
-
*
|
|
8
|
-
* Anything outside this capability imports from here and nowhere else.
|
|
9
|
-
* Supersedes the capabilities/participant-context.facade.ts + public/ pair; the
|
|
10
|
-
* export list is the union of the facades it replaces, so the contract is unchanged.
|
|
11
|
-
*/
|
|
12
|
-
export { createEnrichmentTools, createPremiseTools, EnrichmentGraphFactory, PremiseGraphFactory, UserContextGenerator, } from "./application/index.js";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* contexts/ports — narrow injected dependency contracts.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the subset of shared/interfaces types that the participant-context
|
|
5
|
-
* capability declares as explicit injected ports. Consumers of the
|
|
6
|
-
* participant-context module should import these port types here rather than
|
|
7
|
-
* from the broader shared/interfaces barrel to keep the dependency surface
|
|
8
|
-
* narrow and auditable.
|
|
9
|
-
*
|
|
10
|
-
* ## Port taxonomy
|
|
11
|
-
*
|
|
12
|
-
* ### Persistence ports
|
|
13
|
-
* - {@link PremiseGraphDatabase} — premise CRUD, assignment, and dedup queries.
|
|
14
|
-
* - {@link EnrichmentGraphDatabase} — profile read/write and enrichment-run records.
|
|
15
|
-
* - {@link HydeGraphDatabase} — HyDE document cache read/write.
|
|
16
|
-
*
|
|
17
|
-
* ### External-service ports
|
|
18
|
-
* - {@link ProfileEnricher} — resolves structured profile data from external
|
|
19
|
-
* sources (e.g. Parallel Chat API). Protocol depends only on this interface;
|
|
20
|
-
* the concrete adapter lives in the host.
|
|
21
|
-
* - {@link Scraper} — extracts text content from URLs. Protocol depends only on
|
|
22
|
-
* this interface; the concrete adapter (Firecrawl, etc.) lives in the host.
|
|
23
|
-
*
|
|
24
|
-
* ### Embedding port
|
|
25
|
-
* - {@link EmbeddingGenerator} — generates dense vector embeddings. Used by
|
|
26
|
-
* PremiseGraphFactory (premise embedding), UserContextGenerator (context
|
|
27
|
-
* embedding), and HydeGraphFactory (HyDE document embedding).
|
|
28
|
-
* - {@link Embedder} — the superset interface (EmbeddingGenerator + VectorStore)
|
|
29
|
-
* used by the embedding adapter bound at composition time.
|
|
30
|
-
*
|
|
31
|
-
* IND-545: canonical ports home for participant-context injected contracts
|
|
32
|
-
* previously scattered across shared/interfaces.
|
|
33
|
-
*/
|
|
34
|
-
export type { PremiseGraphDatabase, EnrichmentGraphDatabase, HydeGraphDatabase, } from "../../shared/interfaces/database.interface.js";
|
|
35
|
-
export type { ProfileEnricher, EnrichmentResult, EnrichmentRequest, } from "../../shared/interfaces/enrichment.interface.js";
|
|
36
|
-
export type { Scraper, ExtractUrlContentOptions, } from "../../shared/interfaces/scraper.interface.js";
|
|
37
|
-
export type { EmbeddingGenerator, Embedder } from "../../shared/interfaces/embedder.interface.js";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* contexts/ports — narrow injected dependency contracts.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the subset of shared/interfaces types that the participant-context
|
|
5
|
-
* capability declares as explicit injected ports. Consumers of the
|
|
6
|
-
* participant-context module should import these port types here rather than
|
|
7
|
-
* from the broader shared/interfaces barrel to keep the dependency surface
|
|
8
|
-
* narrow and auditable.
|
|
9
|
-
*
|
|
10
|
-
* ## Port taxonomy
|
|
11
|
-
*
|
|
12
|
-
* ### Persistence ports
|
|
13
|
-
* - {@link PremiseGraphDatabase} — premise CRUD, assignment, and dedup queries.
|
|
14
|
-
* - {@link EnrichmentGraphDatabase} — profile read/write and enrichment-run records.
|
|
15
|
-
* - {@link HydeGraphDatabase} — HyDE document cache read/write.
|
|
16
|
-
*
|
|
17
|
-
* ### External-service ports
|
|
18
|
-
* - {@link ProfileEnricher} — resolves structured profile data from external
|
|
19
|
-
* sources (e.g. Parallel Chat API). Protocol depends only on this interface;
|
|
20
|
-
* the concrete adapter lives in the host.
|
|
21
|
-
* - {@link Scraper} — extracts text content from URLs. Protocol depends only on
|
|
22
|
-
* this interface; the concrete adapter (Firecrawl, etc.) lives in the host.
|
|
23
|
-
*
|
|
24
|
-
* ### Embedding port
|
|
25
|
-
* - {@link EmbeddingGenerator} — generates dense vector embeddings. Used by
|
|
26
|
-
* PremiseGraphFactory (premise embedding), UserContextGenerator (context
|
|
27
|
-
* embedding), and HydeGraphFactory (HyDE document embedding).
|
|
28
|
-
* - {@link Embedder} — the superset interface (EmbeddingGenerator + VectorStore)
|
|
29
|
-
* used by the embedding adapter bound at composition time.
|
|
30
|
-
*
|
|
31
|
-
* IND-545: canonical ports home for participant-context injected contracts
|
|
32
|
-
* previously scattered across shared/interfaces.
|
|
33
|
-
*/
|
|
34
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiations/application — LLM agents, graph factory, tool factory, and
|
|
3
|
-
* application services for the negotiation capability.
|
|
4
|
-
*
|
|
5
|
-
* ## Boundary
|
|
6
|
-
*
|
|
7
|
-
* May import from negotiations/domain and negotiations/ports plus shared LangGraph
|
|
8
|
-
* / model-binding seams. Must not import host implementations or other capability
|
|
9
|
-
* internals (use the capabilities/*.facade.ts contracts instead).
|
|
10
|
-
*
|
|
11
|
-
* ## Exports
|
|
12
|
-
*
|
|
13
|
-
* ### Graph factory (ambient runtime adapter)
|
|
14
|
-
* - `NegotiationGraphFactory` — LangGraph state machine; bilateral turn
|
|
15
|
-
* protocol with screen, turn, and finalize nodes.
|
|
16
|
-
* - `negotiateCandidates` — parallel negotiation runner for discovery.
|
|
17
|
-
*
|
|
18
|
-
* ### Tool factory (foreground runtime adapter)
|
|
19
|
-
* - `createNegotiationTools` — MCP tools: list_negotiations, get_negotiation,
|
|
20
|
-
* respond_to_negotiation.
|
|
21
|
-
* - `AMBIENT_PARK_WINDOW_MS` — default park window for personal-agent waits.
|
|
22
|
-
* - `buildLifecycleNarration` — re-exported helper for opportunity feeds.
|
|
23
|
-
*
|
|
24
|
-
* ### System agents (LLM)
|
|
25
|
-
* - `IndexNegotiator` — structured turn-drafting agent.
|
|
26
|
-
* - `NegotiationScreener` — outreach gate (P2.1 shadow/enforce).
|
|
27
|
-
* - `NegotiationReflector` — post-negotiation memory distiller (P5.2).
|
|
28
|
-
* - `NegotiationSummarizer` — turn-transcript compressor for discovery.
|
|
29
|
-
* - `NegotiationInsightsGenerator` — history narrative generator.
|
|
30
|
-
*
|
|
31
|
-
* ### Detail projection
|
|
32
|
-
* - `readAuthorizedNegotiationDetail` — projects authorized task into detail view.
|
|
33
|
-
*
|
|
34
|
-
* IND-550: canonical application layer for the negotiation capability.
|
|
35
|
-
*/
|
|
36
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "./negotiation.graph.js";
|
|
37
|
-
export type { NegotiationCandidate, OnNegotiationResolved } from "./negotiation.graph.js";
|
|
38
|
-
export { createNegotiationTools, AMBIENT_PARK_WINDOW_MS, buildLifecycleNarration } from "./negotiation.tools.js";
|
|
39
|
-
export { IndexNegotiator } from "./negotiation.agent.js";
|
|
40
|
-
export type { NegotiationAgentInput } from "./negotiation.agent.js";
|
|
41
|
-
export { NegotiationScreener, NEGOTIATION_SCREEN_MODES, configuredScreenMode, ScreenDecisionSchema, blocksNegotiationBeforeFirstTurn, } from "./negotiation.screen.js";
|
|
42
|
-
export type { NegotiationScreenerInput, NegotiationScreenerConfig, NegotiationScreenMode, ScreenDecision, ScreenDecisionRecord, } from "./negotiation.screen.js";
|
|
43
|
-
export { NegotiationReflector } from "./negotiation.reflect.js";
|
|
44
|
-
export type { DistilledMemory, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn, NEGOTIATOR_MEMORY_KINDS, } from "./negotiation.reflect.js";
|
|
45
|
-
export { NegotiationSummarizer, buildFallbackDigest } from "./negotiation.summarizer.js";
|
|
46
|
-
export { NegotiationInsightsGenerator } from "./insight.generator.js";
|
|
47
|
-
export type { NegotiationDigest } from "./insight.generator.js";
|
|
48
|
-
export { readAuthorizedNegotiationDetail } from "./negotiation.detail-reader.js";
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiations/application — LLM agents, graph factory, tool factory, and
|
|
3
|
-
* application services for the negotiation capability.
|
|
4
|
-
*
|
|
5
|
-
* ## Boundary
|
|
6
|
-
*
|
|
7
|
-
* May import from negotiations/domain and negotiations/ports plus shared LangGraph
|
|
8
|
-
* / model-binding seams. Must not import host implementations or other capability
|
|
9
|
-
* internals (use the capabilities/*.facade.ts contracts instead).
|
|
10
|
-
*
|
|
11
|
-
* ## Exports
|
|
12
|
-
*
|
|
13
|
-
* ### Graph factory (ambient runtime adapter)
|
|
14
|
-
* - `NegotiationGraphFactory` — LangGraph state machine; bilateral turn
|
|
15
|
-
* protocol with screen, turn, and finalize nodes.
|
|
16
|
-
* - `negotiateCandidates` — parallel negotiation runner for discovery.
|
|
17
|
-
*
|
|
18
|
-
* ### Tool factory (foreground runtime adapter)
|
|
19
|
-
* - `createNegotiationTools` — MCP tools: list_negotiations, get_negotiation,
|
|
20
|
-
* respond_to_negotiation.
|
|
21
|
-
* - `AMBIENT_PARK_WINDOW_MS` — default park window for personal-agent waits.
|
|
22
|
-
* - `buildLifecycleNarration` — re-exported helper for opportunity feeds.
|
|
23
|
-
*
|
|
24
|
-
* ### System agents (LLM)
|
|
25
|
-
* - `IndexNegotiator` — structured turn-drafting agent.
|
|
26
|
-
* - `NegotiationScreener` — outreach gate (P2.1 shadow/enforce).
|
|
27
|
-
* - `NegotiationReflector` — post-negotiation memory distiller (P5.2).
|
|
28
|
-
* - `NegotiationSummarizer` — turn-transcript compressor for discovery.
|
|
29
|
-
* - `NegotiationInsightsGenerator` — history narrative generator.
|
|
30
|
-
*
|
|
31
|
-
* ### Detail projection
|
|
32
|
-
* - `readAuthorizedNegotiationDetail` — projects authorized task into detail view.
|
|
33
|
-
*
|
|
34
|
-
* IND-550: canonical application layer for the negotiation capability.
|
|
35
|
-
*/
|
|
36
|
-
// ── Graph factory ─────────────────────────────────────────────────────────────
|
|
37
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "./negotiation.graph.js";
|
|
38
|
-
// ── Tool factory ──────────────────────────────────────────────────────────────
|
|
39
|
-
export { createNegotiationTools, AMBIENT_PARK_WINDOW_MS, buildLifecycleNarration } from "./negotiation.tools.js";
|
|
40
|
-
// ── System agents ─────────────────────────────────────────────────────────────
|
|
41
|
-
export { IndexNegotiator } from "./negotiation.agent.js";
|
|
42
|
-
export { NegotiationScreener,
|
|
43
|
-
// Screen contract re-exports for backward compat
|
|
44
|
-
NEGOTIATION_SCREEN_MODES, configuredScreenMode, ScreenDecisionSchema, blocksNegotiationBeforeFirstTurn, } from "./negotiation.screen.js";
|
|
45
|
-
export { NegotiationReflector } from "./negotiation.reflect.js";
|
|
46
|
-
export { NegotiationSummarizer, buildFallbackDigest } from "./negotiation.summarizer.js";
|
|
47
|
-
export { NegotiationInsightsGenerator } from "./insight.generator.js";
|
|
48
|
-
// ── Detail projection ─────────────────────────────────────────────────────────
|
|
49
|
-
export { readAuthorizedNegotiationDetail } from "./negotiation.detail-reader.js";
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiations/domain — pure negotiation types, protocol rules, and deterministic
|
|
3
|
-
* policy functions.
|
|
4
|
-
*
|
|
5
|
-
* ## What lives here
|
|
6
|
-
*
|
|
7
|
-
* - NegotiationGraphState and all graph state types (negotiation.state.ts)
|
|
8
|
-
* - Seat-scoped protocol rules and action vocabulary (negotiation.protocol.ts)
|
|
9
|
-
* - Screen-gate pure contracts: mode, decision record, block predicate (negotiation.screen.contracts.ts)
|
|
10
|
-
* - Negotiator stance contracts + prompt fragments (negotiation.stance.contracts.ts)
|
|
11
|
-
* - Deadlock detection + bargaining prompt section (negotiation.deadlock.ts)
|
|
12
|
-
* - Lifecycle narration mapper (negotiation.lifecycle-narration.ts)
|
|
13
|
-
* - Task conversation-lock predicate (negotiation.task-lock-policy.ts)
|
|
14
|
-
* - Immutable intent-snapshot provenance builder (negotiation.intent-snapshot-provenance.ts)
|
|
15
|
-
* - IND-508 consultation policy: eligibility funnel + prompt pairs (negotiation.consultation-policy.ts)
|
|
16
|
-
* - Privacy-gate for question text (negotiation.question-safety.ts)
|
|
17
|
-
* - Memory vocabulary, renderer, retrieve-fn type (negotiation.memory.ts)
|
|
18
|
-
*
|
|
19
|
-
* ## What does NOT live here
|
|
20
|
-
*
|
|
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
|
-
*
|
|
30
|
-
* IND-550: canonical domain layer for the negotiation capability.
|
|
31
|
-
*/
|
|
32
|
-
export { NEGOTIATION_SCREEN_MODES, configuredScreenMode, ScreenDecisionSchema, blocksNegotiationBeforeFirstTurn, } from "./negotiation.screen.contracts.js";
|
|
33
|
-
export type { NegotiationScreenMode, ScreenDecision, ScreenDecisionRecord, } from "./negotiation.screen.contracts.js";
|
|
34
|
-
export { NEGOTIATOR_STANCES, DEFAULT_NEGOTIATOR_STANCE, configuredNegotiatorStance, stanceAppliesValueBar, stanceQueryMatchIsNecessaryNotSufficient, stanceResolvesDeadlockByStalemate, stanceJobFraming, stanceActionRules, stanceQuerySatisfiedRule, } from "./negotiation.stance.contracts.js";
|
|
35
|
-
export type { NegotiatorStance } from "./negotiation.stance.contracts.js";
|
|
36
|
-
export { NegotiationTurnSchema, SystemNegotiationTurnSchema, FinalNegotiationTurnSchema, NegotiationOutcomeSchema, NegotiationGraphState, } from "./negotiation.state.js";
|
|
37
|
-
export type { NegotiationTurn, NegotiationOutcome, UserNegotiationContext, SeedAssessment, NegotiationGraphLike, NegotiationMessage, } from "./negotiation.state.js";
|
|
38
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, } from "./negotiation.turn-cap.js";
|
|
39
|
-
export { expectedNegotiationSpeaker } from "./negotiation.expected-speaker.js";
|
|
40
|
-
export type { NegotiationSpeakerParticipants, NegotiationSpeakerMessage, } from "./negotiation.expected-speaker.js";
|
|
41
|
-
export { InitiatorTurnSchema, CounterpartyTurnSchema, FinalInitiatorTurnSchema, FinalCounterpartyTurnSchema, InitiatorAskUserTurnSchema, CounterpartyAskUserTurnSchema, allowedActionsFor, turnSchemaFor, isTerminalAction, isRejectLikeAction, fallbackActionFor, rejectActionFor, readProtocolVersion, configuredProtocolVersion, configuredAskUserEnabled, askUserAnswerWindowMs, ASK_USER_LOCK_SLACK_MS, DEFAULT_ASK_USER_WINDOW_MS, resolveSeat, seatViolationMessage, } from "./negotiation.protocol.js";
|
|
42
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "./negotiation.hermes-contract.js";
|
|
43
|
-
export type { HermesNegotiationAction, HermesNegotiationResponse, HermesOwnerDirective, HermesRoleAlignment, } from "./negotiation.hermes-contract.js";
|
|
44
|
-
export { configuredDeadlockShiftEnabled, configuredDeadlockThreshold, assessDeadlock, renderBargainingShiftSection, DEFAULT_DEADLOCK_THRESHOLD, MIN_DEADLOCK_THRESHOLD, } from "./negotiation.deadlock.js";
|
|
45
|
-
export type { DeadlockAssessment } from "./negotiation.deadlock.js";
|
|
46
|
-
export type { DeadlockShiftRecord } from "./negotiation.deadlock.contracts.js";
|
|
47
|
-
export { buildLifecycleNarration } from "./negotiation.lifecycle-narration.js";
|
|
48
|
-
export type { NegotiationLifecycleNarration } from "./negotiation.lifecycle-narration.js";
|
|
49
|
-
export { holdsNegotiationConversationLock } from "./negotiation.task-lock-policy.js";
|
|
50
|
-
export { buildIntentSnapshots } from "./negotiation.intent-snapshot-provenance.js";
|
|
51
|
-
export type { IntentSnapshot } from "./negotiation.intent-snapshot-provenance.js";
|
|
52
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode, } from "./negotiation.consultation-policy.js";
|
|
53
|
-
export type { NegotiationConsultationPolicyMode, NegotiationConsultationReason, ConsultationEligibility, ConsultationEligibilityInput, } from "./negotiation.consultation-policy.js";
|
|
54
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, validateInflightAskUserFields, negotiationQuestionSettlementId, } from "./negotiation.question-safety.js";
|
|
55
|
-
export { NEGOTIATOR_MEMORY_KINDS, renderNegotiatorMemorySection, renderNegotiatorChatMemorySection, } from "./negotiation.memory.js";
|
|
56
|
-
export type { DistilledMemoryKind, NegotiatorMemoryEntry, NegotiatorMemoryScope, NegotiatorMemoryRetrieveFn, NegotiatorMemoryQuery, } from "./negotiation.memory.js";
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiations/domain — pure negotiation types, protocol rules, and deterministic
|
|
3
|
-
* policy functions.
|
|
4
|
-
*
|
|
5
|
-
* ## What lives here
|
|
6
|
-
*
|
|
7
|
-
* - NegotiationGraphState and all graph state types (negotiation.state.ts)
|
|
8
|
-
* - Seat-scoped protocol rules and action vocabulary (negotiation.protocol.ts)
|
|
9
|
-
* - Screen-gate pure contracts: mode, decision record, block predicate (negotiation.screen.contracts.ts)
|
|
10
|
-
* - Negotiator stance contracts + prompt fragments (negotiation.stance.contracts.ts)
|
|
11
|
-
* - Deadlock detection + bargaining prompt section (negotiation.deadlock.ts)
|
|
12
|
-
* - Lifecycle narration mapper (negotiation.lifecycle-narration.ts)
|
|
13
|
-
* - Task conversation-lock predicate (negotiation.task-lock-policy.ts)
|
|
14
|
-
* - Immutable intent-snapshot provenance builder (negotiation.intent-snapshot-provenance.ts)
|
|
15
|
-
* - IND-508 consultation policy: eligibility funnel + prompt pairs (negotiation.consultation-policy.ts)
|
|
16
|
-
* - Privacy-gate for question text (negotiation.question-safety.ts)
|
|
17
|
-
* - Memory vocabulary, renderer, retrieve-fn type (negotiation.memory.ts)
|
|
18
|
-
*
|
|
19
|
-
* ## What does NOT live here
|
|
20
|
-
*
|
|
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
|
-
*
|
|
30
|
-
* IND-550: canonical domain layer for the negotiation capability.
|
|
31
|
-
*/
|
|
32
|
-
// ── Screen contracts ──────────────────────────────────────────────────────────
|
|
33
|
-
export { NEGOTIATION_SCREEN_MODES, configuredScreenMode, ScreenDecisionSchema, blocksNegotiationBeforeFirstTurn, } from "./negotiation.screen.contracts.js";
|
|
34
|
-
// ── Stance contracts (IND-611) ────────────────────────────────────────────────
|
|
35
|
-
export { NEGOTIATOR_STANCES, DEFAULT_NEGOTIATOR_STANCE, configuredNegotiatorStance, stanceAppliesValueBar, stanceQueryMatchIsNecessaryNotSufficient, stanceResolvesDeadlockByStalemate, stanceJobFraming, stanceActionRules, stanceQuerySatisfiedRule, } from "./negotiation.stance.contracts.js";
|
|
36
|
-
// ── Graph state and DTOs ──────────────────────────────────────────────────────
|
|
37
|
-
export { NegotiationTurnSchema, SystemNegotiationTurnSchema, FinalNegotiationTurnSchema, NegotiationOutcomeSchema, NegotiationGraphState, } from "./negotiation.state.js";
|
|
38
|
-
// ── Protocol rules ────────────────────────────────────────────────────────────
|
|
39
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, } from "./negotiation.turn-cap.js";
|
|
40
|
-
export { expectedNegotiationSpeaker } from "./negotiation.expected-speaker.js";
|
|
41
|
-
export { InitiatorTurnSchema, CounterpartyTurnSchema, FinalInitiatorTurnSchema, FinalCounterpartyTurnSchema, InitiatorAskUserTurnSchema, CounterpartyAskUserTurnSchema, allowedActionsFor, turnSchemaFor, isTerminalAction, isRejectLikeAction, fallbackActionFor, rejectActionFor, readProtocolVersion, configuredProtocolVersion, configuredAskUserEnabled, askUserAnswerWindowMs, ASK_USER_LOCK_SLACK_MS, DEFAULT_ASK_USER_WINDOW_MS, resolveSeat, seatViolationMessage, } from "./negotiation.protocol.js";
|
|
42
|
-
// ── Hermes structural response contract ──────────────────────────────────────
|
|
43
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "./negotiation.hermes-contract.js";
|
|
44
|
-
// ── Deadlock detection ────────────────────────────────────────────────────────
|
|
45
|
-
export { configuredDeadlockShiftEnabled, configuredDeadlockThreshold, assessDeadlock, renderBargainingShiftSection, DEFAULT_DEADLOCK_THRESHOLD, MIN_DEADLOCK_THRESHOLD, } from "./negotiation.deadlock.js";
|
|
46
|
-
// ── Lifecycle narration ───────────────────────────────────────────────────────
|
|
47
|
-
export { buildLifecycleNarration } from "./negotiation.lifecycle-narration.js";
|
|
48
|
-
// ── Task lock policy ──────────────────────────────────────────────────────────
|
|
49
|
-
export { holdsNegotiationConversationLock } from "./negotiation.task-lock-policy.js";
|
|
50
|
-
// ── Intent snapshot provenance ────────────────────────────────────────────────
|
|
51
|
-
export { buildIntentSnapshots } from "./negotiation.intent-snapshot-provenance.js";
|
|
52
|
-
// ── Consultation policy ───────────────────────────────────────────────────────
|
|
53
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode, } from "./negotiation.consultation-policy.js";
|
|
54
|
-
// ── Question safety ───────────────────────────────────────────────────────────
|
|
55
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, validateInflightAskUserFields, negotiationQuestionSettlementId, } from "./negotiation.question-safety.js";
|
|
56
|
-
// ── Memory vocabulary and renderers ──────────────────────────────────────────
|
|
57
|
-
export { NEGOTIATOR_MEMORY_KINDS, renderNegotiatorMemorySection, renderNegotiatorChatMemorySection, } from "./negotiation.memory.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiation — 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 + negotiations/public/ pair; the export
|
|
6
|
-
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
-
*/
|
|
8
|
-
export { AMBIENT_PARK_WINDOW_MS, buildFallbackDigest, createNegotiationTools, IndexNegotiator, negotiateCandidates, NegotiationGraphFactory, NegotiationInsightsGenerator, NegotiationReflector, NegotiationScreener, NegotiationSummarizer, } from "./application/index.js";
|
|
9
|
-
export type { ChatReflectionInput, DistilledMemory, NegotiationCandidate, NegotiationDigest, NegotiationReflectionInput, NegotiationReflectJobData, OnNegotiationResolved, ReflectEnqueueFn, ReflectionTranscriptEntry, } from "./application/index.js";
|
|
10
|
-
export { allowedActionsFor, allowedHermesActionsFor, ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs, assessConsultationEligibility, buildHermesNegotiationTurn, configuredAskUserEnabled, consultationPromptFor, DEFAULT_NEGOTIATION_MAX_TURNS, expectedNegotiationSpeaker, HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, isNegotiationTurnCapReached, isRejectLikeAction, isSafeNegotiationQuestionText, isTerminalAction, NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, negotiationConsultationPolicyMode, negotiationQuestionSettlementId, readProtocolVersion, renderNegotiatorChatMemorySection, resolveSeat, seatViolationMessage, validateInflightAskUserFields, } from "./domain/index.js";
|
|
11
|
-
export type { ConsultationEligibility, ConsultationEligibilityInput, HermesNegotiationAction, HermesNegotiationResponse, HermesOwnerDirective, HermesRoleAlignment, NegotiationConsultationPolicyMode, NegotiationConsultationReason, NegotiationGraphLike, NegotiationOutcome, NegotiationSpeakerMessage, NegotiationSpeakerParticipants, NegotiationTurn, NegotiatorMemoryEntry, UserNegotiationContext, } from "./domain/index.js";
|
|
12
|
-
export type { NegotiationToolDeps, } from "./ports/index.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiation — 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 + negotiations/public/ pair; the export
|
|
6
|
-
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
-
*/
|
|
8
|
-
export { AMBIENT_PARK_WINDOW_MS, buildFallbackDigest, createNegotiationTools, IndexNegotiator, negotiateCandidates, NegotiationGraphFactory, NegotiationInsightsGenerator, NegotiationReflector, NegotiationScreener, NegotiationSummarizer, } from "./application/index.js";
|
|
9
|
-
export { allowedActionsFor, allowedHermesActionsFor, ASK_USER_LOCK_SLACK_MS, askUserAnswerWindowMs, assessConsultationEligibility, buildHermesNegotiationTurn, configuredAskUserEnabled, consultationPromptFor, DEFAULT_NEGOTIATION_MAX_TURNS, expectedNegotiationSpeaker, HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, isNegotiationTurnCapReached, isRejectLikeAction, isSafeNegotiationQuestionText, isTerminalAction, NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, negotiationConsultationPolicyMode, negotiationQuestionSettlementId, readProtocolVersion, renderNegotiatorChatMemorySection, resolveSeat, seatViolationMessage, validateInflightAskUserFields, } from "./domain/index.js";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiations/ports — injected dependency contracts for the negotiation capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the narrow port types that the negotiation module declares as
|
|
5
|
-
* explicit injected boundaries. Consumers import these to wire host
|
|
6
|
-
* implementations without depending on the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Port groups
|
|
9
|
-
*
|
|
10
|
-
* ### Tool host port
|
|
11
|
-
* - NegotiationToolDeps — host capabilities for the negotiation tool factory:
|
|
12
|
-
* negotiationDatabase, agentDispatcher (optional), negotiationTimeoutQueue (optional).
|
|
13
|
-
*
|
|
14
|
-
* IND-550: canonical ports surface for the negotiation capability.
|
|
15
|
-
*/
|
|
16
|
-
export type { NegotiationToolDeps } from "./negotiation.tools.port.js";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiations/ports — injected dependency contracts for the negotiation capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the narrow port types that the negotiation module declares as
|
|
5
|
-
* explicit injected boundaries. Consumers import these to wire host
|
|
6
|
-
* implementations without depending on the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Port groups
|
|
9
|
-
*
|
|
10
|
-
* ### Tool host port
|
|
11
|
-
* - NegotiationToolDeps — host capabilities for the negotiation tool factory:
|
|
12
|
-
* negotiationDatabase, agentDispatcher (optional), negotiationTimeoutQueue (optional).
|
|
13
|
-
*
|
|
14
|
-
* IND-550: canonical ports surface for the negotiation capability.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* opportunities/application — LLM agents, LangGraph graphs, effectful orchestration.
|
|
3
|
-
*
|
|
4
|
-
* ## What lives here (flat files)
|
|
5
|
-
* - Opportunity lifecycle transitions (opportunity.lifecycle.ts)
|
|
6
|
-
* - Enricher: merge overlapping opportunities (opportunity.enricher.ts)
|
|
7
|
-
* - Persistence coordinator (opportunity.persist.ts)
|
|
8
|
-
* - Persistence admission gate (opportunity.persistence-admission.ts)
|
|
9
|
-
* - Update admission gate (opportunity.update-admission.ts)
|
|
10
|
-
* - Newborn-opportunity stamping (opportunity.newborn-stamping.ts)
|
|
11
|
-
* - LLM evaluator (opportunity.evaluator.ts)
|
|
12
|
-
* - LLM presenter agent (opportunity.presenter.ts)
|
|
13
|
-
* - Introducer discovery (opportunity.introducer.ts)
|
|
14
|
-
* - Existing-negotiation path (opportunity.existing-negotiation.ts)
|
|
15
|
-
* - Opportunity LangGraph (opportunity.graph.ts)
|
|
16
|
-
* - MCP discover flow (opportunity.discover.ts)
|
|
17
|
-
* - Card presentation builder (opportunity.card-presentation.ts)
|
|
18
|
-
* - Discovery continuation finalization (opportunity.discovery-continuation-finalization.ts)
|
|
19
|
-
* - MCP lifecycle finalization (opportunity.discovery-mcp-lifecycle-finalization.ts)
|
|
20
|
-
* - Negotiation summary helper (opportunity.discovery-negotiation-summary.ts)
|
|
21
|
-
* - Negotiation context loader (negotiation-context.loader.ts)
|
|
22
|
-
* - Feed selection (opportunity.feed-selection.ts)
|
|
23
|
-
* - Delivery card cache (delivery-card.cache.ts)
|
|
24
|
-
* - Pending questions merger (opportunity.pending-questions.ts)
|
|
25
|
-
*
|
|
26
|
-
* ## What lives in subdirectories (exported by path, not moved)
|
|
27
|
-
* - discriminator/ — miner, assigner, shadow orchestrator
|
|
28
|
-
* - negotiation-evidence/ — miner, shadow orchestrator
|
|
29
|
-
* - outcome/ — shadow orchestrator
|
|
30
|
-
* - radar/ — radar graph
|
|
31
|
-
*
|
|
32
|
-
* IND-551: canonical application layer for the opportunities capability.
|
|
33
|
-
*/
|
|
34
|
-
export * from "./opportunity.lifecycle.js";
|
|
35
|
-
export * from "./opportunity.enricher.js";
|
|
36
|
-
export * from "./opportunity.persist.js";
|
|
37
|
-
export * from "./opportunity.persistence-admission.js";
|
|
38
|
-
export * from "./opportunity.update-admission.js";
|
|
39
|
-
export * from "./opportunity.newborn-stamping.js";
|
|
40
|
-
export * from "./opportunity.evaluator.js";
|
|
41
|
-
export * from "./opportunity.presentation.js";
|
|
42
|
-
export * from "./opportunity.introducer.js";
|
|
43
|
-
export * from "./opportunity.existing-negotiation.js";
|
|
44
|
-
export * from "./opportunity.graph.js";
|
|
45
|
-
export * from "./opportunity.presentation.js";
|
|
46
|
-
export * from "./opportunity.discovery-negotiation-summary.js";
|
|
47
|
-
export * from "./negotiation-context.loader.js";
|
|
48
|
-
export * from "./opportunity.feed-selection.js";
|
|
49
|
-
export * from "./delivery-card.cache.js";
|
|
50
|
-
export * from "./opportunity.pending-questions.js";
|
|
51
|
-
export * from "./opportunity.tools.js";
|
|
52
|
-
export { PoolDiscriminatorMiner } from "../discriminator/discriminator.miner.js";
|
|
53
|
-
export { PoolDiscriminatorAssigner, } from "../discriminator/discriminator.assigner.js";
|
|
54
|
-
export type { PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis, } from "../discriminator/discriminator.assigner.js";
|
|
55
|
-
export { runPoolDiscriminatorShadow } from "../discriminator/discriminator.shadow.js";
|
|
56
|
-
export { NegotiationEvidenceMiner } from "../negotiation-evidence/negotiation-evidence.miner.js";
|
|
57
|
-
export { runNegotiationEvidenceShadow } from "../negotiation-evidence/negotiation-evidence.shadow.js";
|
|
58
|
-
export { runOutcomeShadow } from "../outcome/outcome.shadow.js";
|
|
59
|
-
export { RadarGraphFactory } from "../radar/radar.graph.js";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* opportunities/application — LLM agents, LangGraph graphs, effectful orchestration.
|
|
3
|
-
*
|
|
4
|
-
* ## What lives here (flat files)
|
|
5
|
-
* - Opportunity lifecycle transitions (opportunity.lifecycle.ts)
|
|
6
|
-
* - Enricher: merge overlapping opportunities (opportunity.enricher.ts)
|
|
7
|
-
* - Persistence coordinator (opportunity.persist.ts)
|
|
8
|
-
* - Persistence admission gate (opportunity.persistence-admission.ts)
|
|
9
|
-
* - Update admission gate (opportunity.update-admission.ts)
|
|
10
|
-
* - Newborn-opportunity stamping (opportunity.newborn-stamping.ts)
|
|
11
|
-
* - LLM evaluator (opportunity.evaluator.ts)
|
|
12
|
-
* - LLM presenter agent (opportunity.presenter.ts)
|
|
13
|
-
* - Introducer discovery (opportunity.introducer.ts)
|
|
14
|
-
* - Existing-negotiation path (opportunity.existing-negotiation.ts)
|
|
15
|
-
* - Opportunity LangGraph (opportunity.graph.ts)
|
|
16
|
-
* - MCP discover flow (opportunity.discover.ts)
|
|
17
|
-
* - Card presentation builder (opportunity.card-presentation.ts)
|
|
18
|
-
* - Discovery continuation finalization (opportunity.discovery-continuation-finalization.ts)
|
|
19
|
-
* - MCP lifecycle finalization (opportunity.discovery-mcp-lifecycle-finalization.ts)
|
|
20
|
-
* - Negotiation summary helper (opportunity.discovery-negotiation-summary.ts)
|
|
21
|
-
* - Negotiation context loader (negotiation-context.loader.ts)
|
|
22
|
-
* - Feed selection (opportunity.feed-selection.ts)
|
|
23
|
-
* - Delivery card cache (delivery-card.cache.ts)
|
|
24
|
-
* - Pending questions merger (opportunity.pending-questions.ts)
|
|
25
|
-
*
|
|
26
|
-
* ## What lives in subdirectories (exported by path, not moved)
|
|
27
|
-
* - discriminator/ — miner, assigner, shadow orchestrator
|
|
28
|
-
* - negotiation-evidence/ — miner, shadow orchestrator
|
|
29
|
-
* - outcome/ — shadow orchestrator
|
|
30
|
-
* - radar/ — radar graph
|
|
31
|
-
*
|
|
32
|
-
* IND-551: canonical application layer for the opportunities capability.
|
|
33
|
-
*/
|
|
34
|
-
// ── Flat application files ────────────────────────────────────────────────────
|
|
35
|
-
export * from "./opportunity.lifecycle.js";
|
|
36
|
-
export * from "./opportunity.enricher.js";
|
|
37
|
-
export * from "./opportunity.persist.js";
|
|
38
|
-
export * from "./opportunity.persistence-admission.js";
|
|
39
|
-
export * from "./opportunity.update-admission.js";
|
|
40
|
-
export * from "./opportunity.newborn-stamping.js";
|
|
41
|
-
export * from "./opportunity.evaluator.js";
|
|
42
|
-
export * from "./opportunity.presentation.js";
|
|
43
|
-
export * from "./opportunity.introducer.js";
|
|
44
|
-
export * from "./opportunity.existing-negotiation.js";
|
|
45
|
-
export * from "./opportunity.graph.js";
|
|
46
|
-
export * from "./opportunity.presentation.js";
|
|
47
|
-
export * from "./opportunity.discovery-negotiation-summary.js";
|
|
48
|
-
export * from "./negotiation-context.loader.js";
|
|
49
|
-
export * from "./opportunity.feed-selection.js";
|
|
50
|
-
export * from "./delivery-card.cache.js";
|
|
51
|
-
export * from "./opportunity.pending-questions.js";
|
|
52
|
-
export * from "./opportunity.tools.js";
|
|
53
|
-
// ── Subdirectory application exports ─────────────────────────────────────────
|
|
54
|
-
// discriminator application
|
|
55
|
-
export { PoolDiscriminatorMiner } from "../discriminator/discriminator.miner.js";
|
|
56
|
-
export { PoolDiscriminatorAssigner, } from "../discriminator/discriminator.assigner.js";
|
|
57
|
-
export { runPoolDiscriminatorShadow } from "../discriminator/discriminator.shadow.js";
|
|
58
|
-
// negotiation-evidence application
|
|
59
|
-
export { NegotiationEvidenceMiner } from "../negotiation-evidence/negotiation-evidence.miner.js";
|
|
60
|
-
export { runNegotiationEvidenceShadow } from "../negotiation-evidence/negotiation-evidence.shadow.js";
|
|
61
|
-
// outcome application
|
|
62
|
-
export { runOutcomeShadow } from "../outcome/outcome.shadow.js";
|
|
63
|
-
// radar application
|
|
64
|
-
export { RadarGraphFactory } from "../radar/radar.graph.js";
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* opportunities/domain — pure types, predicates, policy, and domain contracts.
|
|
3
|
-
*
|
|
4
|
-
* ## What lives here (flat files)
|
|
5
|
-
* - Graph state schema and interfaces (opportunity.state.ts)
|
|
6
|
-
* - Discovery result envelope (opportunity.discovery.contracts.ts)
|
|
7
|
-
* - UI string constants (opportunity.labels.ts)
|
|
8
|
-
* - Core domain predicates and feed algorithms (opportunity.utils.ts)
|
|
9
|
-
* - Actor normalization (opportunity.actor.ts)
|
|
10
|
-
* - Evidence builders and renderers (opportunity.evidence.ts)
|
|
11
|
-
* - Claim-safety guard (opportunity.claim-safety.ts)
|
|
12
|
-
* - Pure presentation transforms (opportunity.presentation.ts)
|
|
13
|
-
* - Safe-presentation pipeline (opportunity.safe-presentation.ts)
|
|
14
|
-
* - Cache key builders (opportunity.presentation-cache.ts)
|
|
15
|
-
* - Discovery-run coalescing (opportunity.discovery-run-coalescing.ts)
|
|
16
|
-
* - Negotiation-summary mappers (negotiation-summary.builder.ts)
|
|
17
|
-
*
|
|
18
|
-
* ## What lives in subdirectories (exported by path, not moved)
|
|
19
|
-
* - discriminator/ — pool discriminator types, env, scorer, adjustments, question, push
|
|
20
|
-
* - negotiation-evidence/ — evidence types, env, extractor, verifier
|
|
21
|
-
* - outcome/ — outcome types, env, hypotheses
|
|
22
|
-
* - radar/ — radar state schema, radar health scorer
|
|
23
|
-
*
|
|
24
|
-
* IND-551: canonical domain layer for the opportunities capability.
|
|
25
|
-
*/
|
|
26
|
-
export * from "./opportunity.state.js";
|
|
27
|
-
export * from "./opportunity.labels.js";
|
|
28
|
-
export * from "./opportunity.utils.js";
|
|
29
|
-
export * from "./opportunity.actor.js";
|
|
30
|
-
export * from "./opportunity.evidence.js";
|
|
31
|
-
export * from "../../shared/utils/claim-safety.js";
|
|
32
|
-
export * from "../application/opportunity.presentation.js";
|
|
33
|
-
export * from "../application/opportunity.presentation.js";
|
|
34
|
-
export * from "../application/opportunity.presentation.js";
|
|
35
|
-
export * from "./negotiation-summary.builder.js";
|
|
36
|
-
export type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator, ScoredDiscriminator, VerifiedAssignment, DiscriminatorShadowResult, } from "../discriminator/discriminator.types.js";
|
|
37
|
-
export { poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsStampNewborn, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_QUESTION_MIN_VOI, POOL_QUESTION_MAX_PENDING_PER_INTENT, poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS, poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS, } from "../discriminator/discriminator.env.js";
|
|
38
|
-
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment, readActivePoolAdjustments, adjustedConfidence, } from "../discriminator/discriminator.adjustments.js";
|
|
39
|
-
export type { PoolAdjustment, PoolAdjustmentSignal, } from "../discriminator/discriminator.adjustments.js";
|
|
40
|
-
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL, } from "../discriminator/discriminator.question.js";
|
|
41
|
-
export { poolQuestionCycleKey, buildPoolQuestionPushMessage, } from "../discriminator/discriminator.push.js";
|
|
42
|
-
export { scoreDiscriminator } from "../discriminator/discriminator.scorer.js";
|
|
43
|
-
export type { AllowlistedEvidence, RawEvidenceSegment, RawEvidenceTurn, RawEvidenceOutcome, RawEvidenceOwnerAnswer, NegotiationEvidenceShadowResult, } from "../negotiation-evidence/negotiation-evidence.types.js";
|
|
44
|
-
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, NEGOTIATION_EVIDENCE_MIN_DISTINCT_OPPORTUNITIES, NEGOTIATION_EVIDENCE_MAX_CONTENT_CHARS, } from "../negotiation-evidence/negotiation-evidence.env.js";
|
|
45
|
-
export { extractAllowlistedEvidence } from "../negotiation-evidence/negotiation-evidence.extractor.js";
|
|
46
|
-
export { verifyHypotheses } from "../negotiation-evidence/negotiation-evidence.verifier.js";
|
|
47
|
-
export type { OutcomeLabel, OutcomeExample, OutcomeSideSupport, OutcomeHypothesis, OutcomeShadowResult, JoinOutcomeHypothesesInput, } from "../outcome/outcome.types.js";
|
|
48
|
-
export { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS, } from "../outcome/outcome.env.js";
|
|
49
|
-
export { joinOutcomeHypotheses } from "../outcome/outcome.hypotheses.js";
|
|
50
|
-
export { computeRadarHealth } from "../radar/radar.health.js";
|
|
51
|
-
export type { RadarHealthResult } from "../radar/radar.health.js";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* opportunities/domain — pure types, predicates, policy, and domain contracts.
|
|
3
|
-
*
|
|
4
|
-
* ## What lives here (flat files)
|
|
5
|
-
* - Graph state schema and interfaces (opportunity.state.ts)
|
|
6
|
-
* - Discovery result envelope (opportunity.discovery.contracts.ts)
|
|
7
|
-
* - UI string constants (opportunity.labels.ts)
|
|
8
|
-
* - Core domain predicates and feed algorithms (opportunity.utils.ts)
|
|
9
|
-
* - Actor normalization (opportunity.actor.ts)
|
|
10
|
-
* - Evidence builders and renderers (opportunity.evidence.ts)
|
|
11
|
-
* - Claim-safety guard (opportunity.claim-safety.ts)
|
|
12
|
-
* - Pure presentation transforms (opportunity.presentation.ts)
|
|
13
|
-
* - Safe-presentation pipeline (opportunity.safe-presentation.ts)
|
|
14
|
-
* - Cache key builders (opportunity.presentation-cache.ts)
|
|
15
|
-
* - Discovery-run coalescing (opportunity.discovery-run-coalescing.ts)
|
|
16
|
-
* - Negotiation-summary mappers (negotiation-summary.builder.ts)
|
|
17
|
-
*
|
|
18
|
-
* ## What lives in subdirectories (exported by path, not moved)
|
|
19
|
-
* - discriminator/ — pool discriminator types, env, scorer, adjustments, question, push
|
|
20
|
-
* - negotiation-evidence/ — evidence types, env, extractor, verifier
|
|
21
|
-
* - outcome/ — outcome types, env, hypotheses
|
|
22
|
-
* - radar/ — radar state schema, radar health scorer
|
|
23
|
-
*
|
|
24
|
-
* IND-551: canonical domain layer for the opportunities capability.
|
|
25
|
-
*/
|
|
26
|
-
// ── Flat domain files ─────────────────────────────────────────────────────────
|
|
27
|
-
export * from "./opportunity.state.js";
|
|
28
|
-
export * from "./opportunity.labels.js";
|
|
29
|
-
export * from "./opportunity.utils.js";
|
|
30
|
-
export * from "./opportunity.actor.js";
|
|
31
|
-
export * from "./opportunity.evidence.js";
|
|
32
|
-
export * from "../../shared/utils/claim-safety.js";
|
|
33
|
-
export * from "../application/opportunity.presentation.js";
|
|
34
|
-
export * from "../application/opportunity.presentation.js";
|
|
35
|
-
export * from "../application/opportunity.presentation.js";
|
|
36
|
-
export * from "./negotiation-summary.builder.js";
|
|
37
|
-
export { poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsStampNewborn, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_QUESTION_MIN_VOI, POOL_QUESTION_MAX_PENDING_PER_INTENT, poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS, poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS, } from "../discriminator/discriminator.env.js";
|
|
38
|
-
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment, readActivePoolAdjustments, adjustedConfidence, } from "../discriminator/discriminator.adjustments.js";
|
|
39
|
-
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL, } from "../discriminator/discriminator.question.js";
|
|
40
|
-
export { poolQuestionCycleKey, buildPoolQuestionPushMessage, } from "../discriminator/discriminator.push.js";
|
|
41
|
-
export { scoreDiscriminator } from "../discriminator/discriminator.scorer.js";
|
|
42
|
-
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, NEGOTIATION_EVIDENCE_MIN_DISTINCT_OPPORTUNITIES, NEGOTIATION_EVIDENCE_MAX_CONTENT_CHARS, } from "../negotiation-evidence/negotiation-evidence.env.js";
|
|
43
|
-
export { extractAllowlistedEvidence } from "../negotiation-evidence/negotiation-evidence.extractor.js";
|
|
44
|
-
export { verifyHypotheses } from "../negotiation-evidence/negotiation-evidence.verifier.js";
|
|
45
|
-
export { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS, } from "../outcome/outcome.env.js";
|
|
46
|
-
export { joinOutcomeHypotheses } from "../outcome/outcome.hypotheses.js";
|
|
47
|
-
// radar domain
|
|
48
|
-
export { computeRadarHealth } from "../radar/radar.health.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|