@indexnetwork/protocol 14.1.0-rc.469.1 → 14.2.1-rc.471.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/dist/{participant-agents → agents}/application/agent.tools.d.ts +2 -2
- package/dist/{participant-agents → agents}/application/agent.tools.js +2 -2
- package/dist/{participant-agents → agents}/application/index.d.ts +2 -2
- package/dist/{participant-agents → agents}/application/index.js +2 -2
- package/dist/{participant-agents → agents}/domain/agent.types.d.ts +1 -1
- package/dist/{participant-agents → agents}/domain/agent.types.js +1 -1
- package/dist/{participant-agents → agents}/domain/index.d.ts +4 -4
- package/dist/agents/index.d.ts +22 -0
- package/dist/agents/index.js +12 -0
- package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.d.ts +3 -3
- package/dist/{participant-agents → agents}/ports/agent.repository.port.d.ts +1 -1
- package/dist/{participant-agents → agents}/ports/agent.repository.port.js +1 -1
- package/dist/{participant-agents → agents}/ports/agent.tools.port.d.ts +1 -1
- package/dist/{participant-agents → agents}/ports/agent.tools.port.js +1 -1
- package/dist/{participant-agents → agents}/ports/index.d.ts +1 -1
- package/dist/{participant-agents → agents}/ports/index.js +1 -1
- package/dist/chat/chat-streaming.types.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/chat/chat.state.d.ts +1 -1
- package/dist/chat/chat.state.js +1 -1
- package/dist/chat/negotiator.prompt.d.ts +1 -1
- package/dist/chat/negotiator.prompt.js +1 -1
- package/dist/contacts/application/contact.inviter.js +1 -1
- package/dist/contacts/index.d.ts +9 -0
- package/dist/contacts/index.js +8 -0
- package/dist/{participant-context → contexts}/application/index.d.ts +10 -10
- package/dist/{participant-context → contexts}/application/index.js +10 -10
- package/dist/{participant-context → contexts}/domain/index.d.ts +5 -5
- package/dist/{participant-context → contexts}/domain/index.js +4 -4
- package/dist/contexts/index.d.ts +13 -0
- package/dist/contexts/index.js +14 -0
- package/dist/{participant-context → contexts}/ports/index.d.ts +1 -1
- package/dist/{participant-context → contexts}/ports/index.js +1 -1
- package/dist/{capabilities → contexts/ports}/participant-context.tools.port.d.ts +1 -1
- package/dist/enrichment/enrichment.graph.d.ts +1 -1
- package/dist/enrichment/enrichment.graph.js +1 -1
- package/dist/enrichment/enrichment.state.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.d.ts +1 -1
- package/dist/index.d.ts +125 -125
- package/dist/index.js +85 -85
- package/dist/integrations/index.d.ts +10 -0
- package/dist/integrations/index.js +8 -0
- package/dist/{signals → intents}/application/index.d.ts +2 -2
- package/dist/{signals → intents}/application/index.js +2 -2
- package/dist/{signals → intents}/application/intent.clarifier.js +1 -1
- package/dist/{signals → intents}/application/intent.graph.d.ts +2 -2
- package/dist/{signals → intents}/application/intent.tools.d.ts +1 -1
- package/dist/{signals → intents}/domain/index.d.ts +1 -1
- package/dist/{signals → intents}/domain/index.js +1 -1
- package/dist/{signals → intents}/domain/intent.state.d.ts +1 -1
- package/dist/intents/index.d.ts +18 -0
- package/dist/intents/index.js +14 -0
- package/dist/{signals → intents}/ports/index.d.ts +1 -1
- package/dist/{signals → intents}/ports/index.js +1 -1
- package/dist/{capabilities → intents/ports}/signals.tools.port.d.ts +1 -1
- package/dist/maintenance/maintenance.graph.d.ts +6 -6
- package/dist/maintenance/maintenance.graph.js +4 -4
- package/dist/maintenance/maintenance.state.d.ts +1 -1
- package/dist/mcp/mcp.authorization-policy.d.ts +8 -8
- package/dist/mcp/mcp.server.js +2 -2
- package/dist/{negotiation → negotiations}/application/index.d.ts +2 -2
- package/dist/{negotiation → negotiations}/application/index.js +2 -2
- package/dist/{negotiation → negotiations}/application/negotiation.graph.d.ts +2 -2
- package/dist/{negotiation → negotiations}/domain/index.d.ts +9 -9
- package/dist/{negotiation → negotiations}/domain/index.js +9 -9
- package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.js +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.d.ts +3 -3
- package/dist/{negotiation → negotiations}/domain/negotiation.screen.contracts.js +3 -3
- package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.d.ts +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.stance.contracts.js +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.state.d.ts +1 -1
- package/dist/{negotiation → negotiations}/domain/negotiation.state.js +1 -1
- package/dist/negotiations/index.d.ts +12 -0
- package/dist/negotiations/index.js +9 -0
- package/dist/{negotiation → negotiations}/ports/index.d.ts +1 -1
- package/dist/{negotiation → negotiations}/ports/index.js +1 -1
- package/dist/{communities → networks}/application/index.d.ts +3 -3
- package/dist/{communities → networks}/application/index.js +3 -3
- package/dist/{communities → networks}/application/indexer.graph.d.ts +1 -1
- package/dist/{communities → networks}/application/indexer.state.d.ts +1 -1
- package/dist/{communities → networks}/application/network.tools.d.ts +1 -1
- package/dist/{communities → networks}/domain/index.d.ts +2 -2
- package/dist/{communities → networks}/domain/index.js +2 -2
- package/dist/networks/index.d.ts +9 -0
- package/dist/networks/index.js +8 -0
- package/dist/{capabilities → networks/ports}/communities.tools.port.d.ts +1 -1
- package/dist/{communities → networks}/ports/index.d.ts +3 -3
- package/dist/{communities → networks}/ports/index.js +2 -2
- package/dist/{opportunity → opportunities}/application/index.d.ts +1 -1
- package/dist/{opportunity → opportunities}/application/index.js +1 -1
- package/dist/{opportunity → opportunities}/application/negotiation-context.loader.d.ts +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.evaluator.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.graph.d.ts +3 -3
- package/dist/{opportunity → opportunities}/application/opportunity.graph.js +3 -3
- package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.d.ts +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.presenter.js +1 -1
- package/dist/{opportunity → opportunities}/application/opportunity.tools.js +1 -1
- package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.d.ts +1 -1
- package/dist/{opportunity → opportunities}/discriminator/discriminator.push.d.ts +1 -1
- package/dist/{opportunity → opportunities}/discriminator/discriminator.question.d.ts +1 -1
- package/dist/{opportunity → opportunities}/domain/index.d.ts +2 -2
- package/dist/{opportunity → opportunities}/domain/index.js +2 -2
- package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.d.ts +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.presentation.js +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.js +1 -1
- package/dist/{opportunity → opportunities}/domain/opportunity.state.d.ts +1 -1
- package/dist/opportunities/index.d.ts +54 -0
- package/dist/opportunities/index.js +39 -0
- package/dist/{opportunity → opportunities}/ports/index.d.ts +1 -1
- package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.d.ts +1 -1
- package/dist/{opportunity → opportunities}/radar/radar.graph.d.ts +1 -1
- package/dist/{opportunity → opportunities}/radar/radar.state.d.ts +1 -1
- package/dist/{premise → premises}/premise.graph.d.ts +1 -1
- package/dist/{premise → premises}/premise.state.d.ts +1 -1
- package/dist/{premise → premises}/premise.tools.d.ts +1 -1
- package/dist/questions/application/question.input.d.ts +1 -1
- package/dist/questions/application/question.input.js +1 -1
- package/dist/questions/application/question.presets.js +2 -2
- package/dist/questions/domain/question.schema.d.ts +3 -3
- package/dist/questions/domain/question.schema.js +2 -6
- package/dist/questions/index.d.ts +13 -0
- package/dist/questions/index.js +2 -0
- package/dist/shared/agent/tool.factory.d.ts +1 -1
- package/dist/shared/agent/tool.factory.js +19 -16
- package/dist/shared/agent/tool.helpers.d.ts +5 -5
- package/dist/shared/agent/tool.registry.d.ts +1 -1
- package/dist/shared/agent/tool.registry.js +9 -9
- package/dist/shared/assignment/network-assignment.policy.d.ts +1 -1
- package/dist/shared/assignment/network-assignment.policy.js +1 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +3 -3
- package/dist/shared/interfaces/agent-dispatcher.interface.js +1 -1
- package/dist/shared/schemas/mcp-auth.schema.d.ts +4 -4
- package/dist/shared/schemas/negotiation-state.schema.d.ts +2 -2
- package/dist/shared/schemas/negotiation-state.schema.js +2 -2
- package/dist/shared/schemas/underspecification.schema.d.ts +13 -0
- package/dist/shared/schemas/underspecification.schema.js +16 -0
- package/package.json +1 -1
- package/dist/capabilities/communities.facade.d.ts +0 -13
- package/dist/capabilities/communities.facade.js +0 -12
- package/dist/capabilities/contacts.facade.d.ts +0 -9
- package/dist/capabilities/contacts.facade.js +0 -8
- package/dist/capabilities/integrations.facade.d.ts +0 -8
- package/dist/capabilities/integrations.facade.js +0 -7
- package/dist/capabilities/interaction-composition.facade.d.ts +0 -10
- package/dist/capabilities/interaction-composition.facade.js +0 -9
- package/dist/capabilities/negotiation.discovery.facade.d.ts +0 -9
- package/dist/capabilities/negotiation.discovery.facade.js +0 -7
- package/dist/capabilities/negotiation.facade.d.ts +0 -26
- package/dist/capabilities/negotiation.facade.js +0 -18
- package/dist/capabilities/negotiation.memory.facade.d.ts +0 -6
- package/dist/capabilities/negotiation.memory.facade.js +0 -5
- package/dist/capabilities/negotiation.questions.facade.d.ts +0 -6
- package/dist/capabilities/negotiation.questions.facade.js +0 -5
- package/dist/capabilities/negotiation.state.facade.d.ts +0 -5
- package/dist/capabilities/negotiation.state.facade.js +0 -1
- package/dist/capabilities/negotiation.summary.facade.d.ts +0 -5
- package/dist/capabilities/negotiation.summary.facade.js +0 -5
- package/dist/capabilities/opportunities.facade.d.ts +0 -56
- package/dist/capabilities/opportunities.facade.js +0 -55
- package/dist/capabilities/opportunities.safety.facade.d.ts +0 -2
- package/dist/capabilities/opportunities.safety.facade.js +0 -2
- package/dist/capabilities/participant-agents.debug.facade.d.ts +0 -2
- package/dist/capabilities/participant-agents.debug.facade.js +0 -1
- package/dist/capabilities/participant-agents.facade.d.ts +0 -34
- package/dist/capabilities/participant-agents.facade.js +0 -34
- package/dist/capabilities/participant-agents.tools.facade.d.ts +0 -8
- package/dist/capabilities/participant-agents.tools.facade.js +0 -8
- package/dist/capabilities/participant-context.facade.d.ts +0 -13
- package/dist/capabilities/participant-context.facade.js +0 -14
- package/dist/capabilities/questions.enqueue.facade.d.ts +0 -5
- package/dist/capabilities/questions.enqueue.facade.js +0 -1
- package/dist/capabilities/questions.facade.d.ts +0 -8
- package/dist/capabilities/questions.facade.js +0 -7
- package/dist/capabilities/questions.runtime.facade.d.ts +0 -5
- package/dist/capabilities/questions.runtime.facade.js +0 -5
- package/dist/capabilities/signals.facade.d.ts +0 -19
- package/dist/capabilities/signals.facade.js +0 -17
- package/dist/capabilities/signals.indexing.facade.d.ts +0 -12
- package/dist/capabilities/signals.indexing.facade.js +0 -11
- package/dist/communities/public/index.d.ts +0 -30
- package/dist/communities/public/index.js +0 -33
- package/dist/contacts/public/index.d.ts +0 -36
- package/dist/contacts/public/index.js +0 -33
- package/dist/integrations/public/index.d.ts +0 -37
- package/dist/integrations/public/index.js +0 -34
- package/dist/negotiation/public/index.d.ts +0 -63
- package/dist/negotiation/public/index.js +0 -64
- package/dist/opportunity/public/index.d.ts +0 -61
- package/dist/opportunity/public/index.js +0 -54
- package/dist/participant-agents/public/index.d.ts +0 -39
- package/dist/participant-agents/public/index.js +0 -36
- package/dist/participant-context/index.d.ts +0 -16
- package/dist/participant-context/index.js +0 -16
- package/dist/participant-context/public/index.d.ts +0 -48
- package/dist/participant-context/public/index.js +0 -55
- package/dist/questions/public/index.d.ts +0 -47
- package/dist/questions/public/index.js +0 -49
- package/dist/signals/public/index.d.ts +0 -15
- package/dist/signals/public/index.js +0 -16
- package/dist/{participant-agents → agents}/domain/index.js +0 -0
- package/dist/{participant-agents → agents}/ports/agent.dispatcher.port.js +0 -0
- package/dist/{context → contexts}/context.generator.d.ts +0 -0
- package/dist/{context → contexts}/context.generator.js +0 -0
- package/dist/{capabilities → contexts/ports}/participant-context.tools.port.js +0 -0
- package/dist/{signals → intents}/application/intake.orchestrator.d.ts +0 -0
- package/dist/{signals → intents}/application/intake.orchestrator.js +0 -0
- package/dist/{signals → intents}/application/intake.pack.generator.d.ts +0 -0
- package/dist/{signals → intents}/application/intake.pack.generator.js +0 -0
- package/dist/{signals → intents}/application/intent.clarifier.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.graph.js +0 -0
- package/dist/{signals → intents}/application/intent.indexer.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.indexer.js +0 -0
- package/dist/{signals → intents}/application/intent.inferrer.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.inferrer.js +0 -0
- package/dist/{signals → intents}/application/intent.reconciler.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.reconciler.js +0 -0
- package/dist/{signals → intents}/application/intent.tools.js +0 -0
- package/dist/{signals → intents}/application/intent.verifier.d.ts +0 -0
- package/dist/{signals → intents}/application/intent.verifier.js +0 -0
- package/dist/{signals → intents}/domain/intent.proposal.d.ts +0 -0
- package/dist/{signals → intents}/domain/intent.proposal.js +0 -0
- package/dist/{signals → intents}/domain/intent.state.js +0 -0
- package/dist/{signals → intents}/domain/signal.specificity.d.ts +0 -0
- package/dist/{signals → intents}/domain/signal.specificity.js +0 -0
- package/dist/{capabilities → intents/ports}/signals.tools.port.js +0 -0
- package/dist/{negotiation → negotiations}/application/insight.generator.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/insight.generator.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.agent.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.agent.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.detail-reader.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.graph.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.reflect.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.reflect.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.screen.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.screen.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.summarizer.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.summarizer.js +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.tools.d.ts +0 -0
- package/dist/{negotiation → negotiations}/application/negotiation.tools.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.consultation-policy.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.contracts.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.deadlock.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.expected-speaker.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.hermes-contract.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.intent-snapshot-provenance.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.lifecycle-narration.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.memory.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.memory.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.protocol.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.protocol.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.question-safety.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.task-lock-policy.js +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.d.ts +0 -0
- package/dist/{negotiation → negotiations}/domain/negotiation.turn-cap.js +0 -0
- package/dist/{negotiation → negotiations}/negotiation.attribution.d.ts +0 -0
- package/dist/{negotiation → negotiations}/negotiation.attribution.js +0 -0
- package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.d.ts +0 -0
- package/dist/{negotiation → negotiations}/ports/negotiation.tools.port.js +0 -0
- package/dist/{communities → networks}/application/indexer.graph.js +0 -0
- package/dist/{communities → networks}/application/indexer.state.js +0 -0
- package/dist/{communities → networks}/application/membership.graph.d.ts +0 -0
- package/dist/{communities → networks}/application/membership.graph.js +0 -0
- package/dist/{communities → networks}/application/network.graph.d.ts +0 -0
- package/dist/{communities → networks}/application/network.graph.js +0 -0
- package/dist/{communities → networks}/application/network.recommender.d.ts +0 -0
- package/dist/{communities → networks}/application/network.recommender.js +0 -0
- package/dist/{communities → networks}/application/network.tools.js +0 -0
- package/dist/{communities → networks}/domain/membership.state.d.ts +0 -0
- package/dist/{communities → networks}/domain/membership.state.js +0 -0
- package/dist/{communities → networks}/domain/network.state.d.ts +0 -0
- package/dist/{communities → networks}/domain/network.state.js +0 -0
- package/dist/{capabilities → networks/ports}/communities.tools.port.js +0 -0
- package/dist/{opportunity → opportunities}/application/delivery-card.cache.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/delivery-card.cache.js +0 -0
- package/dist/{opportunity → opportunities}/application/negotiation-context.loader.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.card-presentation.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.discovery-negotiation-summary.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.enricher.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.enricher.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.evaluator.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.existing-negotiation.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.feed-selection.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer-feature.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.introducer.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.lifecycle.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.newborn-stamping.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.owner-approval.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.owner-provenance.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.pending-questions.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persist.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persist.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.d.ts +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.persistence-admission.js +0 -0
- package/dist/{opportunity → opportunities}/application/opportunity.presenter.d.ts +6 -6
- /package/dist/{opportunity → opportunities}/application/opportunity.tools.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/application/opportunity.update-admission.js +0 -0
- /package/dist/{opportunity → opportunities}/discovery.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discovery.env.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.adjustments.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.assigner.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.env.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.miner.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.push.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.question.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.scorer.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.shadow.js +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/discriminator/discriminator.types.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/negotiation-summary.builder.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.actor.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.actor.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.evidence.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.labels.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.labels.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.presentation-cache.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.presentation.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.safe-presentation.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.state.js +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.utils.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/domain/opportunity.utils.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.env.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.extractor.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.miner.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.shadow.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.types.js +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/negotiation-evidence/negotiation-evidence.verifier.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.env.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.env.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.hypotheses.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.shadow.js +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.types.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/outcome/outcome.types.js +0 -0
- /package/dist/{opportunity → opportunities}/ports/index.js +0 -0
- /package/dist/{opportunity → opportunities}/ports/opportunity.tools.port.js +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.graph.js +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.health.d.ts +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.health.js +0 -0
- /package/dist/{opportunity → opportunities}/radar/radar.state.js +0 -0
- /package/dist/{premise → premises}/premise.analyzer.d.ts +0 -0
- /package/dist/{premise → premises}/premise.analyzer.js +0 -0
- /package/dist/{premise → premises}/premise.decomposer.d.ts +0 -0
- /package/dist/{premise → premises}/premise.decomposer.js +0 -0
- /package/dist/{premise → premises}/premise.graph.js +0 -0
- /package/dist/{premise → premises}/premise.indexer.d.ts +0 -0
- /package/dist/{premise → premises}/premise.indexer.js +0 -0
- /package/dist/{premise → premises}/premise.state.js +0 -0
- /package/dist/{premise → premises}/premise.tools.js +0 -0
- /package/dist/{opportunity/domain/opportunity.claim-safety.d.ts → shared/utils/claim-safety.d.ts} +0 -0
- /package/dist/{opportunity/domain/opportunity.claim-safety.js → shared/utils/claim-safety.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,103 @@ went 6.7.1 → 8.0.2 with no 7.x in between because the whole 7.x line shipped a
|
|
|
20
20
|
prereleases between the two promotions. To track every change, read `rc`; to
|
|
21
21
|
pin a supported release, use `latest`.
|
|
22
22
|
|
|
23
|
+
## 14.2.1 - 2026-08-16
|
|
24
|
+
|
|
25
|
+
No public API change: all 443 exported symbols are byte-identical to 14.2.0.
|
|
26
|
+
Directory names only.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Renamed capability directories so each one is named for what the code inside
|
|
31
|
+
it actually says. `Intent*` appears 2,624 times in `src/` against 494 for
|
|
32
|
+
`Signal*` — and roughly half of those are `AbortSignal` — while `Network*`
|
|
33
|
+
appears 1,988 times against 23 for `Communit*`. Every load-bearing surface
|
|
34
|
+
already used intent/network: MCP tool names (`create_intent`, `read_networks`),
|
|
35
|
+
database tables (`intents`, `networks`, `intent_networks`), and exported
|
|
36
|
+
symbols (`IntentGraphFactory`, `NetworkGraphDatabase`). The folders were the
|
|
37
|
+
outlier.
|
|
38
|
+
|
|
39
|
+
| before | after |
|
|
40
|
+
|---|---|
|
|
41
|
+
| `signals/` | `intents/` |
|
|
42
|
+
| `communities/` | `networks/` |
|
|
43
|
+
| `opportunity/` | `opportunities/` |
|
|
44
|
+
| `negotiation/` | `negotiations/` |
|
|
45
|
+
| `premise/` | `premises/` |
|
|
46
|
+
| `participant-agents/` | `agents/` |
|
|
47
|
+
| `participant-context/` + `context/` | `contexts/` |
|
|
48
|
+
|
|
49
|
+
Capability directories are now uniformly plural, and each one's file prefix
|
|
50
|
+
matches its folder (`intents/application/intent.graph.ts`).
|
|
51
|
+
|
|
52
|
+
- The capability identifiers in `scripts/architecture/capability-model.ts`
|
|
53
|
+
follow: the 25 named directions now read `intents → questions`,
|
|
54
|
+
`opportunities → negotiations`, and so on. Dead alias entries for directories
|
|
55
|
+
that no longer exist were removed.
|
|
56
|
+
|
|
57
|
+
### Removed
|
|
58
|
+
|
|
59
|
+
- The six orphaned test directories, which held tests whose subjects had moved
|
|
60
|
+
away in earlier phases: `intent/` (13 files), `questioner/` (6), `network/`
|
|
61
|
+
(6), `contact/` (4), `agent/` (2), `integration/` (1). Each is absorbed into
|
|
62
|
+
its capability's own `tests/`, along with the redundant per-directory
|
|
63
|
+
`tsconfig.json` files that duplicated one already present.
|
|
64
|
+
|
|
65
|
+
## 14.2.0 - 2026-08-16
|
|
66
|
+
|
|
67
|
+
No public API change: all 443 exported symbols are byte-identical to 14.1.0.
|
|
68
|
+
This is internal structure only.
|
|
69
|
+
|
|
70
|
+
### Removed
|
|
71
|
+
|
|
72
|
+
- Removed `src/capabilities/` — 24 files. Twenty-one were `*.facade.ts`
|
|
73
|
+
re-export shims (several two lines long, one with a single caller) and three
|
|
74
|
+
were `*.tools.port.ts` port definitions misfiled into a facade directory. The
|
|
75
|
+
ports moved into their capability's `ports/`.
|
|
76
|
+
- Removed the nine per-capability `public/index.ts` barrels. Three of them
|
|
77
|
+
(`signals`, `communities`, `opportunity`) already had zero importers.
|
|
78
|
+
|
|
79
|
+
### Changed
|
|
80
|
+
|
|
81
|
+
- **Each capability's `index.ts` is now its sole cross-capability surface.**
|
|
82
|
+
What used to be three hops — `capabilities/X.facade.ts` → `X/public/index.ts`
|
|
83
|
+
→ `X/{domain,application,ports}` — is now one. The barrels carry the union of
|
|
84
|
+
the facades they replace, so the contract is unchanged.
|
|
85
|
+
- The boundary rule collapses to one sentence: *a capability may reach another
|
|
86
|
+
capability only through that capability's `index.ts`*. `capability-boundaries.ts`
|
|
87
|
+
checks it from the import path alone; `barrelCapabilityForSourcePath` replaces
|
|
88
|
+
`facadeCapabilityForSourcePath`, and `CAPABILITY_BARREL_DIRECTORIES` names the
|
|
89
|
+
one directory that owns each capability's barrel.
|
|
90
|
+
- Replaced `architecture/tests/capability-facades.spec.ts` with
|
|
91
|
+
`capability-barrels.spec.ts`, which asserts one barrel per capability, no
|
|
92
|
+
`export *`, and that the facade layer does not return.
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
|
|
96
|
+
- Broke a runtime import cycle the barrels would otherwise have introduced.
|
|
97
|
+
`shared/agent/tool.factory.ts` reached `createAgentTools` through
|
|
98
|
+
`participant-agents/index.ts`, which re-exports the chat personas, which
|
|
99
|
+
import the tool factory back. The composition root is exempt from the barrel
|
|
100
|
+
rule precisely because it must reach everything, so it now imports the leaf
|
|
101
|
+
directly. Verified: zero runtime cycles, matching `dev`.
|
|
102
|
+
- Moved two leaf contracts out of the capabilities that happened to host them,
|
|
103
|
+
into the neutral layer both sides already depend on:
|
|
104
|
+
- `opportunity/domain/opportunity.claim-safety.ts` → `shared/utils/claim-safety.ts`
|
|
105
|
+
(three pure text predicates, no imports of its own). `negotiation` and
|
|
106
|
+
`contacts` needed it and were pulling the whole opportunity capability.
|
|
107
|
+
- `UnderspecificationTypeSchema` → `shared/schemas/underspecification.schema.ts`.
|
|
108
|
+
The signals clarifier was importing the entire questions capability — LLM
|
|
109
|
+
agents and tools included — to reach a three-value enum.
|
|
110
|
+
|
|
111
|
+
- `CAPABILITY_DIRECTORIES` mapped `questioner` but not `questions`, so every
|
|
112
|
+
file under `src/questions/` was skipped by the capability boundary checker
|
|
113
|
+
entirely. Adding the mapping surfaced six real violations that had been
|
|
114
|
+
invisible: five imports reaching `questions/domain/question.schema.js`
|
|
115
|
+
directly, and an undeclared `participant-agents → questions` dependency
|
|
116
|
+
(`chat/` uses the question schemas). The imports now go through
|
|
117
|
+
`questions/index.ts` and the direction is declared — 24 named directions
|
|
118
|
+
became 25.
|
|
119
|
+
|
|
23
120
|
## 14.1.0 - 2026-08-16
|
|
24
121
|
|
|
25
122
|
### Added
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/application — agent registration and permission tools.
|
|
3
3
|
*
|
|
4
4
|
* Provides createAgentTools: the canonical factory for participant-agent
|
|
5
5
|
* registration, listing, update, delete, and permission grant/revoke MCP tools.
|
|
6
6
|
*
|
|
7
7
|
* Dependencies:
|
|
8
8
|
* - DefineTool / helpers from shared/agent (unclassified shared infrastructure)
|
|
9
|
-
* - AgentToolDeps from
|
|
9
|
+
* - AgentToolDeps from agents/ports (same capability)
|
|
10
10
|
*
|
|
11
11
|
* IND-548: migrated from src/agent/agent.tools.ts.
|
|
12
12
|
* Legacy path (src/agent/agent.tools.ts) is a thin compatibility shim.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/application — agent registration and permission tools.
|
|
3
3
|
*
|
|
4
4
|
* Provides createAgentTools: the canonical factory for participant-agent
|
|
5
5
|
* registration, listing, update, delete, and permission grant/revoke MCP tools.
|
|
6
6
|
*
|
|
7
7
|
* Dependencies:
|
|
8
8
|
* - DefineTool / helpers from shared/agent (unclassified shared infrastructure)
|
|
9
|
-
* - AgentToolDeps from
|
|
9
|
+
* - AgentToolDeps from agents/ports (same capability)
|
|
10
10
|
*
|
|
11
11
|
* IND-548: migrated from src/agent/agent.tools.ts.
|
|
12
12
|
* Legacy path (src/agent/agent.tools.ts) is a thin compatibility shim.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/application — registration, permission, and dispatch tools.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the application-tier entry points of the participant-agents
|
|
5
5
|
* capability: the agent registration and permission management tool factory.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* ## Boundary
|
|
16
16
|
*
|
|
17
|
-
* Imports from
|
|
17
|
+
* Imports from agents/domain, agents/ports, and
|
|
18
18
|
* shared/ infrastructure — never from runtime/, host implementations, or
|
|
19
19
|
* other capability internals.
|
|
20
20
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/application — registration, permission, and dispatch tools.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the application-tier entry points of the participant-agents
|
|
5
5
|
* capability: the agent registration and permission management tool factory.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* ## Boundary
|
|
16
16
|
*
|
|
17
|
-
* Imports from
|
|
17
|
+
* Imports from agents/domain, agents/ports, and
|
|
18
18
|
* shared/ infrastructure — never from runtime/, host implementations, or
|
|
19
19
|
* other capability internals.
|
|
20
20
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/domain — pure agent entity value types and constants.
|
|
3
3
|
*
|
|
4
4
|
* Contains AgentRecord, AgentTransportRecord, AgentPermissionRecord,
|
|
5
5
|
* AgentWithRelations, CreateAgentInput, CreateTransportInput,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
*
|
|
10
10
|
* ## What does NOT live here
|
|
11
11
|
*
|
|
12
|
-
* - AgentDatabase: persistence port — lives in
|
|
13
|
-
* - AgentDispatcher: dispatch port — lives in
|
|
14
|
-
* - createAgentTools: application layer — lives in
|
|
12
|
+
* - AgentDatabase: persistence port — lives in agents/ports.
|
|
13
|
+
* - AgentDispatcher: dispatch port — lives in agents/ports.
|
|
14
|
+
* - createAgentTools: application layer — lives in agents/application.
|
|
15
15
|
*
|
|
16
16
|
* IND-548: canonical domain layer for the participant-agents capability.
|
|
17
17
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* participant-agents — 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 + agents/public/ pair; the export
|
|
6
|
+
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export type { DebugMetaAgent, } from "../chat/chat-streaming.types.js";
|
|
9
|
+
export { ChatGraphFactory, } from "../chat/chat.graph.js";
|
|
10
|
+
export { ChatInterruptClassifier, } from "../chat/chat.interrupt.classifier.js";
|
|
11
|
+
export type { ChatPersonaConfig, } from "../chat/chat.persona.js";
|
|
12
|
+
export { SuggestionGenerator, } from "../chat/chat.suggester.js";
|
|
13
|
+
export { ChatSummarizer, } from "../chat/chat.summarizer.js";
|
|
14
|
+
export { ChatTitleGenerator, } from "../chat/chat.title.generator.js";
|
|
15
|
+
export { createChatTools, } from "../chat/chat.tools.js";
|
|
16
|
+
export { createNegotiatorPersona, NEGOTIATOR_PERSONA_ID, } from "../chat/negotiator.persona.js";
|
|
17
|
+
export { createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, ONBOARDING_PERSONA, ONBOARDING_PERSONA_ID, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, } from "../chat/onboarding.persona.js";
|
|
18
|
+
export { createReporterTools, filterReporterTools, narrowReporterTools, REPORTER_BRIEFING_KICKOFF, REPORTER_PERSONA, REPORTER_PERSONA_ID, REPORTER_TOOL_NAMES, } from "../chat/reporter.persona.js";
|
|
19
|
+
export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
|
|
20
|
+
export { createAgentTools, } from "./application/index.js";
|
|
21
|
+
export { SYSTEM_AGENT_IDS, } from "./domain/index.js";
|
|
22
|
+
export type { AgentToolDeps, } from "./ports/index.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ChatGraphFactory, } from "../chat/chat.graph.js";
|
|
2
|
+
export { ChatInterruptClassifier, } from "../chat/chat.interrupt.classifier.js";
|
|
3
|
+
export { SuggestionGenerator, } from "../chat/chat.suggester.js";
|
|
4
|
+
export { ChatSummarizer, } from "../chat/chat.summarizer.js";
|
|
5
|
+
export { ChatTitleGenerator, } from "../chat/chat.title.generator.js";
|
|
6
|
+
export { createChatTools, } from "../chat/chat.tools.js";
|
|
7
|
+
export { createNegotiatorPersona, NEGOTIATOR_PERSONA_ID, } from "../chat/negotiator.persona.js";
|
|
8
|
+
export { createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, ONBOARDING_PERSONA, ONBOARDING_PERSONA_ID, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, } from "../chat/onboarding.persona.js";
|
|
9
|
+
export { createReporterTools, filterReporterTools, narrowReporterTools, REPORTER_BRIEFING_KICKOFF, REPORTER_PERSONA, REPORTER_PERSONA_ID, REPORTER_TOOL_NAMES, } from "../chat/reporter.persona.js";
|
|
10
|
+
export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
|
|
11
|
+
export { createAgentTools, } from "./application/index.js";
|
|
12
|
+
export { SYSTEM_AGENT_IDS, } from "./domain/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/ports — AgentDispatcher dispatch port.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the canonical agent dispatcher contract from shared/interfaces.
|
|
5
5
|
*
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* agent.dispatcher.port (participant-agents) → capabilities/negotiation.facade
|
|
14
14
|
* (the facade represents the negotiation implementation boundary) →
|
|
15
15
|
* negotiation.graph.ts → shared/interfaces/agent-dispatcher.interface.ts
|
|
16
|
-
* (shim) →
|
|
16
|
+
* (shim) → agents/ports/index.ts → agent.dispatcher.port
|
|
17
17
|
*
|
|
18
18
|
* The solution is to leave shared/interfaces/agent-dispatcher.interface.ts as
|
|
19
19
|
* the authoritative file and surface its types through the participant-agents
|
|
20
20
|
* ports boundary via re-export.
|
|
21
21
|
*
|
|
22
|
-
* IND-548:
|
|
22
|
+
* IND-548: agents/ports re-exports the dispatcher contract
|
|
23
23
|
* established in shared/interfaces/agent-dispatcher.interface.ts.
|
|
24
24
|
*/
|
|
25
25
|
export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from '../../shared/interfaces/agent-dispatcher.interface.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/ports — AgentDatabase persistence port.
|
|
3
3
|
*
|
|
4
4
|
* Injected boundary for agent registry persistence. Implemented by the
|
|
5
5
|
* host application and passed into the protocol layer at the composition root.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agents/ports — AgentDatabase persistence port.
|
|
3
3
|
*
|
|
4
4
|
* Injected boundary for agent registry persistence. Implemented by the
|
|
5
5
|
* host application and passed into the protocol layer at the composition root.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These types define the structure of events sent during streaming chat responses.
|
|
5
5
|
* Events are sent as Server-Sent Events (SSE) with JSON payloads.
|
|
6
6
|
*/
|
|
7
|
-
import type { Question } from "../questions/
|
|
7
|
+
import type { Question } from "../questions/index.js";
|
|
8
8
|
export type ChatStreamEventType = "status" | "routing" | "thinking" | "subgraph_start" | "subgraph_result" | "token" | "done" | "error" | "tool_start" | "tool_end" | "agent_thinking" | "tool_activity" | "iteration_start" | "llm_start" | "llm_end" | "response_complete" | "response_reset" | "debug_meta" | "graph_start" | "graph_end" | "phase_start" | "phase_end" | "agent_start" | "agent_end" | "hallucination_detected" | "negotiation_session_start" | "negotiation_session_end" | "negotiation_turn" | "negotiation_outcome" | "chat_summarizer_start" | "chat_summarizer_end" | "decision_questions" | "user_question" | "steer_or_queue";
|
|
9
9
|
/**
|
|
10
10
|
* Base interface for all chat stream events.
|
|
@@ -2,7 +2,7 @@ import { BaseMessage } from "@langchain/core/messages";
|
|
|
2
2
|
import type { ToolContext } from "../shared/agent/tool.factory.js";
|
|
3
3
|
import type { ChatPersonaConfig } from "./chat.persona.js";
|
|
4
4
|
import type { DebugMetaToolCall, DebugMetaLlm, DebugMetaOrchestratorNegotiations } from "./chat-streaming.types.js";
|
|
5
|
-
import type { Question } from "../questions/
|
|
5
|
+
import type { Question } from "../questions/index.js";
|
|
6
6
|
export { ITERATION_NUDGE } from "./chat.prompt.js";
|
|
7
7
|
/**
|
|
8
8
|
* Writer callback for streaming custom data out of the graph node.
|
|
@@ -123,7 +123,7 @@ export declare const ChatGraphState: import("@langchain/langgraph").AnnotationRo
|
|
|
123
123
|
} | undefined> | undefined, unknown>;
|
|
124
124
|
/** Router output: target, operationType, extractedContext. */
|
|
125
125
|
routingDecision: import("@langchain/langgraph").BaseChannel<RoutingDecision | undefined, RoutingDecision | import("@langchain/langgraph").OverwriteValue<RoutingDecision | undefined> | undefined, unknown>;
|
|
126
|
-
/** Results from intent/profile/
|
|
126
|
+
/** Results from intent/profile/opportunities/scrape subgraphs. */
|
|
127
127
|
subgraphResults: import("@langchain/langgraph").BaseChannel<SubgraphResults | undefined, SubgraphResults | import("@langchain/langgraph").OverwriteValue<SubgraphResults | undefined> | undefined, unknown>;
|
|
128
128
|
/** User profile context (e.g. for intent nodes). */
|
|
129
129
|
userProfile: import("@langchain/langgraph").BaseChannel<unknown, unknown, unknown>;
|
package/dist/chat/chat.state.js
CHANGED
|
@@ -107,7 +107,7 @@ export const ChatGraphState = Annotation.Root({
|
|
|
107
107
|
reducer: (curr, next) => next,
|
|
108
108
|
default: () => undefined,
|
|
109
109
|
}),
|
|
110
|
-
/** Results from intent/profile/
|
|
110
|
+
/** Results from intent/profile/opportunities/scrape subgraphs. */
|
|
111
111
|
subgraphResults: Annotation({
|
|
112
112
|
reducer: (curr, next) => next,
|
|
113
113
|
default: () => undefined,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedToolContext } from "../shared/agent/tool.factory.js";
|
|
2
|
-
import { type NegotiatorMemoryEntry } from "../
|
|
2
|
+
import { type NegotiatorMemoryEntry } from "../negotiations/index.js";
|
|
3
3
|
import type { IterationContext } from "./chat.prompt.modules.js";
|
|
4
4
|
/** Identity options resolved from the user's personal negotiator agent row. */
|
|
5
5
|
export interface NegotiatorPromptOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { focusedIntentId } from "../shared/agent/tool.scope.js";
|
|
2
|
-
import { renderNegotiatorChatMemorySection } from "../
|
|
2
|
+
import { renderNegotiatorChatMemorySection } from "../negotiations/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Renders the pinned-signal section for intent-scoped sessions (P4.2).
|
|
5
5
|
* Awareness, not a sandbox: the conversation orbits this signal, but the
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { HumanMessage, SystemMessage } from "@langchain/core/messages";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { createStructuredModel } from "../../shared/agent/model.config.js";
|
|
14
|
-
import { stripUnsupportedOpportunityClaims } from "../../
|
|
14
|
+
import { stripUnsupportedOpportunityClaims } from "../../shared/utils/claim-safety.js";
|
|
15
15
|
const InviteInputSchema = z.object({
|
|
16
16
|
recipientName: z.string(),
|
|
17
17
|
senderName: z.string(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* contacts — the capability's sole cross-capability surface.
|
|
3
|
+
*
|
|
4
|
+
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
+
* Supersedes the capabilities/contacts.facade.ts + contacts/public/ pair; the
|
|
6
|
+
* export list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export { createContactTools, generateInviteMessage, } from "./application/index.js";
|
|
9
|
+
export type { ContactServiceAdapter, ContactToolDeps, } from "./ports/index.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* contacts — the capability's sole cross-capability surface.
|
|
3
|
+
*
|
|
4
|
+
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
+
* Supersedes the capabilities/contacts.facade.ts + contacts/public/ pair; the
|
|
6
|
+
* export list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export { createContactTools, generateInviteMessage, } from "./application/index.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* contexts/application — orchestrators, factories, and service classes.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the orchestration tier of the participant-context capability:
|
|
5
5
|
* graph factories (LangGraph compilations), LLM service classes, and utility
|
|
6
6
|
* helpers that belong to the application layer. These are the building blocks
|
|
7
7
|
* that foreground and ambient adapters compose to implement use cases.
|
|
8
8
|
*
|
|
9
|
-
* Boundary: application-layer only. Imports from
|
|
10
|
-
*
|
|
9
|
+
* Boundary: application-layer only. Imports from contexts/domain,
|
|
10
|
+
* contexts/ports, and shared/ infrastructure — never from runtime/,
|
|
11
11
|
* host implementations, or capability facades.
|
|
12
12
|
*
|
|
13
13
|
* ## Foreground use cases (onboarding / explicit enrichment)
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
* prompt-injection and out-of-scope risks.
|
|
52
52
|
*
|
|
53
53
|
* IND-545: canonical application home for participant-context orchestrators
|
|
54
|
-
* previously spread across
|
|
54
|
+
* previously spread across premises/, contexts/, enrichment/, and shared/hyde/.
|
|
55
55
|
*/
|
|
56
|
-
export { PremiseGraphFactory } from "../../
|
|
57
|
-
export { PremiseDecomposer, type PremiseDecomposerOutput, type DecomposedPremise, type ExistingPremiseRef, } from "../../
|
|
58
|
-
export { PremiseAnalyzer, type PremiseAnalyzerOutput, } from "../../
|
|
59
|
-
export { PremiseIndexer, type PremiseIndexerOutput, } from "../../
|
|
56
|
+
export { PremiseGraphFactory } from "../../premises/premise.graph.js";
|
|
57
|
+
export { PremiseDecomposer, type PremiseDecomposerOutput, type DecomposedPremise, type ExistingPremiseRef, } from "../../premises/premise.decomposer.js";
|
|
58
|
+
export { PremiseAnalyzer, type PremiseAnalyzerOutput, } from "../../premises/premise.analyzer.js";
|
|
59
|
+
export { PremiseIndexer, type PremiseIndexerOutput, } from "../../premises/premise.indexer.js";
|
|
60
60
|
export { EnrichmentGraphFactory, type CompiledPremiseGraph, } from "../../enrichment/enrichment.graph.js";
|
|
61
61
|
export { EnrichmentGenerator, type GeneratedProfile } from "../../enrichment/enrichment.generator.js";
|
|
62
62
|
export { shouldEnrichGhostDisplayNameFromParallel, isEnrichedNameMeaningful, } from "../../enrichment/enrichment.enricher.js";
|
|
63
63
|
export { createEnrichmentTools } from "../../enrichment/enrichment.tools.js";
|
|
64
|
-
export { createPremiseTools } from "../../
|
|
65
|
-
export { UserContextGenerator } from "../../
|
|
64
|
+
export { createPremiseTools } from "../../premises/premise.tools.js";
|
|
65
|
+
export { UserContextGenerator } from "../../contexts/context.generator.js";
|
|
66
66
|
export { HydeGraphFactory, type HydeLensInferrerLike, type HydeGeneratorLike, type HydeValidatorLike, type HydeGraphOptions, } from "../../shared/hyde/hyde.graph.js";
|
|
67
67
|
export { HydeGenerator, type HydeGeneratorOutput, type HydeGenerateInput, } from "../../shared/hyde/hyde.generator.js";
|
|
68
68
|
export { LensInferrer, type LensInferenceInput, type LensInferenceOutput, FRAME_SYSTEM_PROMPT, FrameResponseSchema, } from "../../shared/hyde/lens.inferrer.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* contexts/application — orchestrators, factories, and service classes.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the orchestration tier of the participant-context capability:
|
|
5
5
|
* graph factories (LangGraph compilations), LLM service classes, and utility
|
|
6
6
|
* helpers that belong to the application layer. These are the building blocks
|
|
7
7
|
* that foreground and ambient adapters compose to implement use cases.
|
|
8
8
|
*
|
|
9
|
-
* Boundary: application-layer only. Imports from
|
|
10
|
-
*
|
|
9
|
+
* Boundary: application-layer only. Imports from contexts/domain,
|
|
10
|
+
* contexts/ports, and shared/ infrastructure — never from runtime/,
|
|
11
11
|
* host implementations, or capability facades.
|
|
12
12
|
*
|
|
13
13
|
* ## Foreground use cases (onboarding / explicit enrichment)
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
* prompt-injection and out-of-scope risks.
|
|
52
52
|
*
|
|
53
53
|
* IND-545: canonical application home for participant-context orchestrators
|
|
54
|
-
* previously spread across
|
|
54
|
+
* previously spread across premises/, contexts/, enrichment/, and shared/hyde/.
|
|
55
55
|
*/
|
|
56
56
|
// ── Premise graph ─────────────────────────────────────────────────────────────
|
|
57
|
-
export { PremiseGraphFactory } from "../../
|
|
57
|
+
export { PremiseGraphFactory } from "../../premises/premise.graph.js";
|
|
58
58
|
// ── Premise service classes ───────────────────────────────────────────────────
|
|
59
|
-
export { PremiseDecomposer, } from "../../
|
|
60
|
-
export { PremiseAnalyzer, } from "../../
|
|
61
|
-
export { PremiseIndexer, } from "../../
|
|
59
|
+
export { PremiseDecomposer, } from "../../premises/premise.decomposer.js";
|
|
60
|
+
export { PremiseAnalyzer, } from "../../premises/premise.analyzer.js";
|
|
61
|
+
export { PremiseIndexer, } from "../../premises/premise.indexer.js";
|
|
62
62
|
// ── Enrichment graph + service classes ───────────────────────────────────────
|
|
63
63
|
export { EnrichmentGraphFactory, } from "../../enrichment/enrichment.graph.js";
|
|
64
64
|
export { EnrichmentGenerator } from "../../enrichment/enrichment.generator.js";
|
|
@@ -68,9 +68,9 @@ export { shouldEnrichGhostDisplayNameFromParallel, isEnrichedNameMeaningful, } f
|
|
|
68
68
|
// composition. They accept compiled graphs and host deps through the tool-dep
|
|
69
69
|
// ports and produce LangChain-compatible tool arrays.
|
|
70
70
|
export { createEnrichmentTools } from "../../enrichment/enrichment.tools.js";
|
|
71
|
-
export { createPremiseTools } from "../../
|
|
71
|
+
export { createPremiseTools } from "../../premises/premise.tools.js";
|
|
72
72
|
// ── Context synthesis ─────────────────────────────────────────────────────────
|
|
73
|
-
export { UserContextGenerator } from "../../
|
|
73
|
+
export { UserContextGenerator } from "../../contexts/context.generator.js";
|
|
74
74
|
// ── HyDE graph + service classes ─────────────────────────────────────────────
|
|
75
75
|
export { HydeGraphFactory, } from "../../shared/hyde/hyde.graph.js";
|
|
76
76
|
export { HydeGenerator, } from "../../shared/hyde/hyde.generator.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* contexts/domain — pure participant-context contracts.
|
|
3
3
|
*
|
|
4
4
|
* Value types, graph-state shapes, and domain model types that define the
|
|
5
5
|
* participant-context capability's domain language.
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
* refresh): managed by the background runtime shell. They are the consumers of
|
|
54
54
|
* PremiseGraphFactory and EnrichmentGraphFactory in queue-worker mode.
|
|
55
55
|
* - **Cache/enrichment/scraper/model/embedding integrations**: remain injected
|
|
56
|
-
* ports (see
|
|
56
|
+
* ports (see contexts/ports) or protocol-owned technology bindings
|
|
57
57
|
* in shared/agent and shared/hyde.
|
|
58
58
|
*
|
|
59
59
|
* IND-545: canonical home for participant-context domain contracts previously
|
|
60
|
-
* spread across
|
|
60
|
+
* spread across premises/, contexts/, enrichment/, and shared/hyde/.
|
|
61
61
|
* Legacy paths remain as compatibility re-exports pointing here.
|
|
62
62
|
*/
|
|
63
|
-
export { PremiseGraphState } from "../../
|
|
63
|
+
export { PremiseGraphState } from "../../premises/premise.state.js";
|
|
64
64
|
export { EnrichmentGraphState } from "../../enrichment/enrichment.state.js";
|
|
65
65
|
export { HydeGraphState, type HydeDocumentState, type HydeDocumentOrigin, type HydeValidationStatus, } from "../../shared/hyde/hyde.state.js";
|
|
66
|
-
export type { UserContextInput, IncrementalContextInput, GlobalContextInput, GlobalIncrementalContextInput, UserContextResult, } from "../../
|
|
66
|
+
export type { UserContextInput, IncrementalContextInput, GlobalContextInput, GlobalIncrementalContextInput, UserContextResult, } from "../../contexts/context.generator.js";
|
|
67
67
|
export type { PremiseAssertion, PremiseProvenance, PremiseAnalysis, PremiseValidity, PremiseRecord, } from "../../shared/interfaces/database.interface.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* contexts/domain — pure participant-context contracts.
|
|
3
3
|
*
|
|
4
4
|
* Value types, graph-state shapes, and domain model types that define the
|
|
5
5
|
* participant-context capability's domain language.
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
* refresh): managed by the background runtime shell. They are the consumers of
|
|
54
54
|
* PremiseGraphFactory and EnrichmentGraphFactory in queue-worker mode.
|
|
55
55
|
* - **Cache/enrichment/scraper/model/embedding integrations**: remain injected
|
|
56
|
-
* ports (see
|
|
56
|
+
* ports (see contexts/ports) or protocol-owned technology bindings
|
|
57
57
|
* in shared/agent and shared/hyde.
|
|
58
58
|
*
|
|
59
59
|
* IND-545: canonical home for participant-context domain contracts previously
|
|
60
|
-
* spread across
|
|
60
|
+
* spread across premises/, contexts/, enrichment/, and shared/hyde/.
|
|
61
61
|
* Legacy paths remain as compatibility re-exports pointing here.
|
|
62
62
|
*/
|
|
63
63
|
// ── Premise graph state ───────────────────────────────────────────────────────
|
|
64
|
-
export { PremiseGraphState } from "../../
|
|
64
|
+
export { PremiseGraphState } from "../../premises/premise.state.js";
|
|
65
65
|
// ── Enrichment graph state ────────────────────────────────────────────────────
|
|
66
66
|
export { EnrichmentGraphState } from "../../enrichment/enrichment.state.js";
|
|
67
67
|
// ── HyDE graph state and document types ──────────────────────────────────────
|
|
@@ -0,0 +1,13 @@
|
|
|
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, HydeGraphFactory, HydeGenerator, LensInferrer, } from "./application/index.js";
|
|
13
|
+
export type { EnrichmentToolDeps, PremiseToolDeps, } from "./ports/participant-context.tools.port.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
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,
|
|
13
|
+
// HyDE — participant-context technology binding
|
|
14
|
+
HydeGraphFactory, HydeGenerator, LensInferrer, } from "./application/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* contexts/ports — narrow injected dependency contracts.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the subset of shared/interfaces types that the participant-context
|
|
5
5
|
* capability declares as explicit injected ports. Consumers of the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* contexts/ports — narrow injected dependency contracts.
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the subset of shared/interfaces types that the participant-context
|
|
5
5
|
* capability declares as explicit injected ports. Consumers of the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolRegistryCompositionDeps } from "
|
|
1
|
+
import type { ToolRegistryCompositionDeps } from "../../shared/agent/tool.helpers.js";
|
|
2
2
|
/** Host capabilities consumed by enrichment and premise-derived identity tools. */
|
|
3
3
|
export type EnrichmentToolDeps = Pick<ToolRegistryCompositionDeps, "userDb" | "systemDb" | "enricher" | "grantDefaultSystemPermissions" | "reportToolError" | "getUserContextText" | "enrichmentRuns" | "enrichmentRunQueue"> & {
|
|
4
4
|
graphs: Pick<ToolRegistryCompositionDeps["graphs"], "profile">;
|