@indexnetwork/protocol 20.0.1-rc.485.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/CHANGELOG.md +24 -0
- package/IMPLEMENTATION.md +1 -1
- 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 -7
- package/dist/chat/chat.agent.js +0 -94
- package/dist/chat/chat.persona.d.ts +1 -2
- package/dist/chat/chat.prompt.js +1 -1
- package/dist/chat/chat.prompt.modules.d.ts +0 -2
- 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 -87
- package/dist/index.js +61 -62
- 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 -10
- package/dist/shared/agent/tool.helpers.d.ts +4 -12
- package/dist/shared/agent/tool.helpers.js +1 -2
- 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 -22
- package/dist/agents/index.js +0 -12
- package/dist/agents/ports/index.d.ts +0 -27
- package/dist/agents/ports/index.js +0 -25
- package/dist/chat/reporter.action.contracts.d.ts +0 -36
- package/dist/chat/reporter.action.tools.d.ts +0 -17
- package/dist/chat/reporter.action.tools.js +0 -145
- package/dist/chat/reporter.persona.d.ts +0 -31
- package/dist/chat/reporter.persona.js +0 -207
- package/dist/chat/reporter.prompt.d.ts +0 -24
- package/dist/chat/reporter.prompt.js +0 -149
- 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/domain/index.js +0 -1
- 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/{chat/reporter.action.contracts.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/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,30 @@ 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
|
+
## 21.0.0 - 2026-08-17
|
|
24
|
+
|
|
25
|
+
### Removed
|
|
26
|
+
|
|
27
|
+
- **Breaking:** remove the Agent reporter persona. `REPORTER_PERSONA`,
|
|
28
|
+
`REPORTER_PERSONA_ID`, `REPORTER_BRIEFING_KICKOFF`, `REPORTER_TOOL_NAMES`,
|
|
29
|
+
`createReporterTools`, `filterReporterTools` and `narrowReporterTools` are
|
|
30
|
+
gone from the package entry point, along with `reporter.persona.ts`,
|
|
31
|
+
`reporter.prompt.ts` and the `propose_cleanup_actions` tool
|
|
32
|
+
(`reporter.action.tools.ts`, `reporter.action.contracts.ts`). Hosts that named
|
|
33
|
+
the `reporter` persona must pick another; unknown personas already fail closed.
|
|
34
|
+
- **Breaking:** drop `actionToolsEnabled` from `ToolContext`/`ToolDeps`/
|
|
35
|
+
`ResolvedToolContext` and `actionProposalStore` from `ToolDeps`. Both existed
|
|
36
|
+
solely to gate the reporter's cleanup-action tool. `resolveChatContext()` no
|
|
37
|
+
longer accepts or returns `actionToolsEnabled`.
|
|
38
|
+
- Remove `ChatAgent.hasPriorAgentActionProposal()`, the
|
|
39
|
+
```agent_action_proposal``` fence parser behind it, and
|
|
40
|
+
`IterationContext.hasPriorAgentActionProposal`. The reporter prompt was the
|
|
41
|
+
only consumer, so all of it became dead with the persona.
|
|
42
|
+
|
|
43
|
+
`read_activity_summary` and the whole `activity-projection` module are
|
|
44
|
+
**unchanged** — they are shared utility tools registered for every persona and
|
|
45
|
+
exposed on the MCP server, not reporter-specific.
|
|
46
|
+
|
|
23
47
|
## 20.0.1 - 2026-08-17
|
|
24
48
|
|
|
25
49
|
### Changed
|
package/IMPLEMENTATION.md
CHANGED
|
@@ -173,7 +173,7 @@ The intent and community graphs are the exceptions: they are reached through the
|
|
|
173
173
|
|
|
174
174
|
### Persisted chat personas
|
|
175
175
|
|
|
176
|
-
`ChatGraphFactory.withPersona()` keeps the runtime neutral while selecting an exported persona configuration. `SIGNAL_PERSONA
|
|
176
|
+
`ChatGraphFactory.withPersona()` keeps the runtime neutral while selecting an exported persona configuration. `SIGNAL_PERSONA` and `ONBOARDING_PERSONA` each own an exact positive tool allowlist; shared tools added later remain unavailable until reviewed. `ONBOARDING_PERSONA` reuses Signal's proposal-only, live-membership-narrowed `create_intent` contract and otherwise exposes only privacy consent, approved self-context preview/confirmation, guided questions, and validated completion. Hosts must persist the exported persona ID on session creation and treat it as authoritative on follow-ups.
|
|
177
177
|
|
|
178
178
|
## Intents
|
|
179
179
|
|
|
@@ -13,7 +13,7 @@
|
|
|
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) → agents/
|
|
16
|
+
* (shim) → agents/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
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* IND-548: agents/ports re-exports the dispatcher contract
|
|
23
23
|
* established in shared/interfaces/agent-dispatcher.interface.ts.
|
|
24
24
|
*/
|
|
25
|
-
export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from '
|
|
25
|
+
export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from '../shared/interfaces/agent-dispatcher.interface.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* participant-agents — the capability's sole cross-capability surface.
|
|
3
|
+
*
|
|
4
|
+
* Anything outside this capability imports from here and nowhere else.
|
|
5
|
+
*/
|
|
6
|
+
export type { DebugMetaAgent } from "../chat/chat-streaming.types.js";
|
|
7
|
+
export { ChatGraphFactory } from "../chat/chat.graph.js";
|
|
8
|
+
export { ChatInterruptClassifier } from "../chat/chat.interrupt.classifier.js";
|
|
9
|
+
export type { ChatPersonaConfig } from "../chat/chat.persona.js";
|
|
10
|
+
export { SuggestionGenerator } from "../chat/chat.suggester.js";
|
|
11
|
+
export { ChatSummarizer } from "../chat/chat.summarizer.js";
|
|
12
|
+
export { ChatTitleGenerator } from "../chat/chat.title.generator.js";
|
|
13
|
+
export { createChatTools } from "../chat/chat.tools.js";
|
|
14
|
+
export { createNegotiatorPersona, NEGOTIATOR_PERSONA_ID } from "../chat/negotiator.persona.js";
|
|
15
|
+
export { createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, ONBOARDING_PERSONA, ONBOARDING_PERSONA_ID, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, } from "../chat/onboarding.persona.js";
|
|
16
|
+
export { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
|
|
17
|
+
export { createAgentTools } from "./agent.tools.js";
|
|
18
|
+
export { SYSTEM_AGENT_IDS } from "./agent.types.js";
|
|
19
|
+
export type { AgentToolDeps } from "./agent.tools.port.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { createSignalTools, filterSignalTools, narrowSignalTools, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_PERSONA, SIGNAL_PERSONA_ID, SIGNAL_TOOL_NAMES, } from "../chat/signal.persona.js";
|
|
10
|
+
export { createAgentTools } from "./agent.tools.js";
|
|
11
|
+
export { SYSTEM_AGENT_IDS } from "./agent.types.js";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* IND-548: extracted from shared/interfaces/agent.interface.ts into the
|
|
8
8
|
* participant-agents capability's dedicated ports layer.
|
|
9
9
|
*/
|
|
10
|
-
import type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput } from "
|
|
10
|
+
import type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput } from "./agent.types.js";
|
|
11
11
|
/**
|
|
12
12
|
* Database adapter interface for agent registry operations.
|
|
13
13
|
*
|
|
@@ -11,6 +11,6 @@
|
|
|
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.
|
|
13
13
|
*/
|
|
14
|
-
import type { DefineTool } from '
|
|
15
|
-
import type { AgentToolDeps } from '
|
|
14
|
+
import type { DefineTool } from '../shared/agent/tool.helpers.js';
|
|
15
|
+
import type { AgentToolDeps } from './agent.tools.port.js';
|
|
16
16
|
export declare function createAgentTools(defineTool: DefineTool, deps: AgentToolDeps): never[] | readonly [any, any, any, any, any, any, any];
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Legacy path (src/agent/agent.tools.ts) is a thin compatibility shim.
|
|
13
13
|
*/
|
|
14
14
|
import { z } from 'zod';
|
|
15
|
-
import { error, success } from '
|
|
16
|
-
import { protocolLogger } from '
|
|
15
|
+
import { error, success } from '../shared/agent/tool.helpers.js';
|
|
16
|
+
import { protocolLogger } from '../shared/observability/protocol.logger.js';
|
|
17
17
|
const logger = protocolLogger('ChatTools:Agent');
|
|
18
18
|
const AGENT_ACTIONS = [
|
|
19
19
|
'manage:identity',
|
|
@@ -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/question.module.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/question.module.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.
|
|
@@ -195,12 +195,6 @@ export declare class ChatAgent {
|
|
|
195
195
|
* Extracts the text content of the most recent HumanMessage.
|
|
196
196
|
*/
|
|
197
197
|
private static getCurrentUserMessage;
|
|
198
|
-
/**
|
|
199
|
-
* Detects a prior visible action proposal without considering current-turn
|
|
200
|
-
* tool calls. The reporter uses this only to make typed confirmation
|
|
201
|
-
* language contextual rather than executable on its own.
|
|
202
|
-
*/
|
|
203
|
-
static hasPriorAgentActionProposal(messages: BaseMessage[]): boolean;
|
|
204
198
|
/**
|
|
205
199
|
* Async factory: creates a ChatAgent with resolved user/index context.
|
|
206
200
|
* Resolves user/network identity from DB during tool initialization.
|
package/dist/chat/chat.agent.js
CHANGED
|
@@ -19,55 +19,6 @@ import { sanitizeForDebugMeta } from "../shared/observability/debug-meta.sanitiz
|
|
|
19
19
|
import { Timed } from "../shared/observability/performance.js";
|
|
20
20
|
import { requestContext } from "../shared/observability/request-context.js";
|
|
21
21
|
import { deduplicateQuestions } from "./chat.question-dedup.js";
|
|
22
|
-
const AGENT_ACTION_PROPOSAL_FENCE_PATTERN = /```agent_action_proposal\s*\n([\s\S]*?)\n```/g;
|
|
23
|
-
const AGENT_ACTION_PROPOSAL_KEYS = new Set(["proposalId", "actions"]);
|
|
24
|
-
const AGENT_ACTION_KEYS = new Set([
|
|
25
|
-
"type",
|
|
26
|
-
"entityId",
|
|
27
|
-
"currentState",
|
|
28
|
-
"proposedOperation",
|
|
29
|
-
"skipped",
|
|
30
|
-
"reason",
|
|
31
|
-
"description",
|
|
32
|
-
"evidence",
|
|
33
|
-
]);
|
|
34
|
-
const AGENT_ACTION_OPERATIONS = {
|
|
35
|
-
retract_premise: "RETRACT_PREMISE",
|
|
36
|
-
narrow_signal: "NARROW_SIGNAL",
|
|
37
|
-
pause_signal: "PAUSE_SIGNAL",
|
|
38
|
-
};
|
|
39
|
-
function isVisibleAgentActionProposal(payload) {
|
|
40
|
-
if (!payload || typeof payload !== "object" || Array.isArray(payload))
|
|
41
|
-
return false;
|
|
42
|
-
const proposal = payload;
|
|
43
|
-
if (Object.keys(proposal).some((key) => !AGENT_ACTION_PROPOSAL_KEYS.has(key)))
|
|
44
|
-
return false;
|
|
45
|
-
if (typeof proposal.proposalId !== "string"
|
|
46
|
-
|| !/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(proposal.proposalId)
|
|
47
|
-
|| !Array.isArray(proposal.actions)
|
|
48
|
-
|| proposal.actions.length < 1
|
|
49
|
-
|| proposal.actions.length > 5)
|
|
50
|
-
return false;
|
|
51
|
-
return proposal.actions.every((rawAction) => {
|
|
52
|
-
if (!rawAction || typeof rawAction !== "object" || Array.isArray(rawAction))
|
|
53
|
-
return false;
|
|
54
|
-
const action = rawAction;
|
|
55
|
-
if (Object.keys(action).some((key) => !AGENT_ACTION_KEYS.has(key)))
|
|
56
|
-
return false;
|
|
57
|
-
if (typeof action.type !== "string" || !(action.type in AGENT_ACTION_OPERATIONS))
|
|
58
|
-
return false;
|
|
59
|
-
const type = action.type;
|
|
60
|
-
if (action.proposedOperation !== AGENT_ACTION_OPERATIONS[type])
|
|
61
|
-
return false;
|
|
62
|
-
if (typeof action.entityId !== "string" || !action.entityId.trim())
|
|
63
|
-
return false;
|
|
64
|
-
if (typeof action.currentState !== "string" || !action.currentState.trim())
|
|
65
|
-
return false;
|
|
66
|
-
if (action.skipped !== undefined && typeof action.skipped !== "boolean")
|
|
67
|
-
return false;
|
|
68
|
-
return ["reason", "description", "evidence"].every((key) => action[key] === undefined || typeof action[key] === "string");
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
22
|
const logger = protocolLogger("ChatAgent");
|
|
72
23
|
// Re-export for external consumers
|
|
73
24
|
export { ITERATION_NUDGE } from "./chat.prompt.js";
|
|
@@ -143,48 +94,6 @@ export class ChatAgent {
|
|
|
143
94
|
}
|
|
144
95
|
return undefined;
|
|
145
96
|
}
|
|
146
|
-
/**
|
|
147
|
-
* Detects a prior visible action proposal without considering current-turn
|
|
148
|
-
* tool calls. The reporter uses this only to make typed confirmation
|
|
149
|
-
* language contextual rather than executable on its own.
|
|
150
|
-
*/
|
|
151
|
-
static hasPriorAgentActionProposal(messages) {
|
|
152
|
-
let currentHumanIndex = -1;
|
|
153
|
-
let previousHumanIndex = -1;
|
|
154
|
-
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
155
|
-
if (messages[index]._getType() !== "human")
|
|
156
|
-
continue;
|
|
157
|
-
if (currentHumanIndex < 0) {
|
|
158
|
-
currentHumanIndex = index;
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
previousHumanIndex = index;
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if (currentHumanIndex < 0 || previousHumanIndex < 0)
|
|
166
|
-
return false;
|
|
167
|
-
let latestAssistant;
|
|
168
|
-
for (let index = currentHumanIndex - 1; index > previousHumanIndex; index -= 1) {
|
|
169
|
-
if (messages[index]._getType() === "ai") {
|
|
170
|
-
latestAssistant = messages[index];
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
if (!latestAssistant || typeof latestAssistant.content !== "string")
|
|
175
|
-
return false;
|
|
176
|
-
AGENT_ACTION_PROPOSAL_FENCE_PATTERN.lastIndex = 0;
|
|
177
|
-
for (const match of latestAssistant.content.matchAll(AGENT_ACTION_PROPOSAL_FENCE_PATTERN)) {
|
|
178
|
-
try {
|
|
179
|
-
if (isVisibleAgentActionProposal(JSON.parse(match[1])))
|
|
180
|
-
return true;
|
|
181
|
-
}
|
|
182
|
-
catch {
|
|
183
|
-
// An invalid prior fence is not visible proposal context.
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return false;
|
|
187
|
-
}
|
|
188
97
|
/**
|
|
189
98
|
* Async factory: creates a ChatAgent with resolved user/index context.
|
|
190
99
|
* Resolves user/network identity from DB during tool initialization.
|
|
@@ -204,7 +113,6 @@ export class ChatAgent {
|
|
|
204
113
|
userId: context.userId,
|
|
205
114
|
networkId: scopedNetworkId,
|
|
206
115
|
sessionId: context.sessionId,
|
|
207
|
-
actionToolsEnabled: context.actionToolsEnabled,
|
|
208
116
|
});
|
|
209
117
|
if (explicitScope.scopeType && explicitScope.scopeId) {
|
|
210
118
|
resolved.scopeType = explicitScope.scopeType;
|
|
@@ -224,7 +132,6 @@ export class ChatAgent {
|
|
|
224
132
|
const iterCtx = {
|
|
225
133
|
recentTools: extractRecentToolCalls(messages),
|
|
226
134
|
currentMessage: ChatAgent.getCurrentUserMessage(messages),
|
|
227
|
-
hasPriorAgentActionProposal: ChatAgent.hasPriorAgentActionProposal(messages),
|
|
228
135
|
ctx: this.resolvedContext,
|
|
229
136
|
};
|
|
230
137
|
const deterministicResponse = this.persona.resolveDeterministicResponse?.(this.resolvedContext, iterCtx);
|
|
@@ -583,7 +490,6 @@ export class ChatAgent {
|
|
|
583
490
|
const iterCtx = {
|
|
584
491
|
recentTools: extractRecentToolCalls(messages),
|
|
585
492
|
currentMessage: ChatAgent.getCurrentUserMessage(messages),
|
|
586
|
-
hasPriorAgentActionProposal: ChatAgent.hasPriorAgentActionProposal(messages),
|
|
587
493
|
ctx: this.resolvedContext,
|
|
588
494
|
};
|
|
589
495
|
const deterministicResponse = this.persona.resolveDeterministicResponse?.(this.resolvedContext, iterCtx);
|
|
@@ -9,8 +9,7 @@ export interface ChatPersonaLoopBehaviors {
|
|
|
9
9
|
* Detect hallucinated ```opportunity / ```intent_proposal code blocks in model
|
|
10
10
|
* text, auto-invoke the corresponding tool, and strip unbacked blocks from the
|
|
11
11
|
* final response. Only meaningful for personas whose toolset can legitimately
|
|
12
|
-
* produce those blocks — enabled for onboarding, signal and negotiator
|
|
13
|
-
* for reporter.
|
|
12
|
+
* produce those blocks — enabled for onboarding, signal and negotiator.
|
|
14
13
|
*/
|
|
15
14
|
hallucinationRecovery: boolean;
|
|
16
15
|
}
|
package/dist/chat/chat.prompt.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
//
|
|
5
5
|
// Persona-neutral prompt text owned by the agent loop rather than by any one
|
|
6
6
|
// persona. Each persona builds its own system prompt (see signal.prompt.ts,
|
|
7
|
-
// negotiator.prompt.ts,
|
|
7
|
+
// negotiator.prompt.ts, onboarding.prompt.ts); what remains
|
|
8
8
|
// here is only what the loop itself injects regardless of persona.
|
|
9
9
|
/**
|
|
10
10
|
* Nudge message injected after SOFT_ITERATION_LIMIT iterations.
|
|
@@ -11,8 +11,6 @@ export interface IterationContext {
|
|
|
11
11
|
}>;
|
|
12
12
|
/** Text of the latest user message (for regex matching). */
|
|
13
13
|
currentMessage?: string;
|
|
14
|
-
/** Whether an earlier assistant turn visibly contained a valid action proposal. */
|
|
15
|
-
hasPriorAgentActionProposal?: boolean;
|
|
16
14
|
/** Resolved tool context (user, profile, indexes, etc.). */
|
|
17
15
|
ctx: ResolvedToolContext;
|
|
18
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedToolContext } from "../shared/agent/tool.factory.js";
|
|
2
|
-
import { type NegotiatorMemoryEntry } from "../negotiations/
|
|
2
|
+
import { type NegotiatorMemoryEntry } from "../negotiations/negotiation.module.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 "../negotiations/
|
|
2
|
+
import { renderNegotiatorChatMemorySection } from "../negotiations/negotiation.module.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
|
|
@@ -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
|
+
*/
|
|
6
|
+
export { createContactTools } from "./contact.tools.js";
|
|
7
|
+
export type { ContactServiceAdapter } from "./contact.repository.port.js";
|
|
8
|
+
export type { ContactToolDeps } from "./contact.tools.port.js";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* network. Contact rows are created by the opportunity accept / start-chat
|
|
10
10
|
* flow, not through this port.
|
|
11
11
|
*/
|
|
12
|
-
import type { ContactEntry, ContactSearchResult } from "
|
|
12
|
+
import type { ContactEntry, ContactSearchResult } from "./contact.types.js";
|
|
13
13
|
/**
|
|
14
14
|
* Contact management operations used by chat tools.
|
|
15
15
|
* Consumers must provide a concrete implementation (e.g. backed by ContactService).
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* and start-chat write the mutual `contact` memberships. There is no import or
|
|
9
9
|
* manual-add path, and no ghost users: every contact is a real account.
|
|
10
10
|
*/
|
|
11
|
-
import type { DefineTool } from '
|
|
12
|
-
import type { ContactToolDeps } from '
|
|
11
|
+
import type { DefineTool } from '../shared/agent/tool.helpers.js';
|
|
12
|
+
import type { ContactToolDeps } from './contact.tools.port.js';
|
|
13
13
|
/**
|
|
14
14
|
* Creates contact management tools for the chat agent.
|
|
15
15
|
* Enables listing, searching, and removing entries in the user's network.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* manual-add path, and no ghost users: every contact is a real account.
|
|
10
10
|
*/
|
|
11
11
|
import { z } from 'zod';
|
|
12
|
-
import { success, error } from '
|
|
13
|
-
import { protocolLogger } from '
|
|
12
|
+
import { success, error } from '../shared/agent/tool.helpers.js';
|
|
13
|
+
import { protocolLogger } from '../shared/observability/protocol.logger.js';
|
|
14
14
|
const logger = protocolLogger('ChatTools:Contact');
|
|
15
15
|
/**
|
|
16
16
|
* Creates contact management tools for the chat agent.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* contexts — 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
|
+
export { createEnrichmentTools } from "../enrichment/enrichment.tools.js";
|
|
9
|
+
export { createPremiseTools } from "../premises/premise.tools.js";
|
|
10
|
+
export { EnrichmentGraphFactory } from "../enrichment/enrichment.graph.js";
|
|
11
|
+
export { PremiseGraphFactory } from "../premises/premise.graph.js";
|
|
12
|
+
export { UserContextGenerator } from "./context.generator.js";
|
|
13
|
+
export type { EnrichmentToolDeps, PremiseToolDeps } from "./context.tools.port.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* contexts — 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
|
+
export { createEnrichmentTools } from "../enrichment/enrichment.tools.js";
|
|
9
|
+
export { createPremiseTools } from "../premises/premise.tools.js";
|
|
10
|
+
export { EnrichmentGraphFactory } from "../enrichment/enrichment.graph.js";
|
|
11
|
+
export { PremiseGraphFactory } from "../premises/premise.graph.js";
|
|
12
|
+
export { UserContextGenerator } from "./context.generator.js";
|
|
@@ -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">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DebugMetaAgent } from '../agents/
|
|
1
|
+
import type { DebugMetaAgent } from '../agents/agent.module.js';
|
|
2
2
|
import type { HydeCache } from '../shared/interfaces/cache.interface.js';
|
|
3
3
|
import type { HydeGraphDatabase } from '../shared/interfaces/database.interface.js';
|
|
4
4
|
import type { EmbeddingGenerator } from '../shared/interfaces/embedder.interface.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { Id } from '../shared/interfaces/database.interface.js';
|
|
6
6
|
import type { Lens, HydeTargetCorpus } from './lens.inferrer.js';
|
|
7
7
|
import type { HydeSourceFrame } from './hyde.frame.js';
|
|
8
|
-
import type { DebugMetaAgent } from '../agents/
|
|
8
|
+
import type { DebugMetaAgent } from '../agents/agent.module.js';
|
|
9
9
|
export type HydeDocumentOrigin = 'cache' | 'db' | 'generated';
|
|
10
10
|
export type HydeValidationStatus = 'valid' | 'invalid' | 'failed_open';
|
|
11
11
|
/** Single HyDE document (text + embedding) for one lens. */
|
|
@@ -2,7 +2,7 @@ import { EnrichmentGraphState } from "./enrichment.state.js";
|
|
|
2
2
|
import { EnrichmentGraphDatabase, PremiseProvenance } from "../shared/interfaces/database.interface.js";
|
|
3
3
|
import { Scraper } from "../shared/interfaces/scraper.interface.js";
|
|
4
4
|
import type { ProfileEnricher } from "../shared/interfaces/enrichment.interface.js";
|
|
5
|
-
import type { DebugMetaAgent } from "../agents/
|
|
5
|
+
import type { DebugMetaAgent } from "../agents/agent.module.js";
|
|
6
6
|
import { PremiseDecomposer } from "../premises/premise.decomposer.js";
|
|
7
7
|
/**
|
|
8
8
|
* Compiled premise graph interface. Matches the invoke signature of a compiled LangGraph.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Enrichment tools that read or preview a user context.
|
|
3
3
|
*/
|
|
4
4
|
import type { DefineTool } from "../shared/agent/tool.helpers.js";
|
|
5
|
-
import type { EnrichmentToolDeps } from "../contexts/
|
|
5
|
+
import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
|
|
6
6
|
export declare function createUserContextReadTools(defineTool: DefineTool, deps: EnrichmentToolDeps): {
|
|
7
7
|
readUserContexts: any;
|
|
8
8
|
previewUserContext: any;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Enrichment tools that create or update a user context.
|
|
3
3
|
*/
|
|
4
4
|
import type { DefineTool } from "../shared/agent/tool.helpers.js";
|
|
5
|
-
import type { EnrichmentToolDeps } from "../contexts/
|
|
5
|
+
import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
|
|
6
6
|
export declare function createUserContextWriteTools(defineTool: DefineTool, deps: EnrichmentToolDeps): {
|
|
7
7
|
createUserContext: any;
|
|
8
8
|
updateUserContext: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* and onboarding tools and assembles the registry.
|
|
7
7
|
*/
|
|
8
8
|
import type { DefineTool } from "../shared/agent/tool.helpers.js";
|
|
9
|
-
import type { EnrichmentToolDeps } from "../contexts/
|
|
9
|
+
import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
|
|
10
10
|
import type { ToolSurface } from "../shared/agent/utility.tools.js";
|
|
11
11
|
export declare function createEnrichmentTools(defineTool: DefineTool, deps: EnrichmentToolDeps, options?: {
|
|
12
12
|
surface?: ToolSurface;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import type { ResolvedToolContext } from "../shared/agent/tool.helpers.js";
|
|
10
|
-
import type { EnrichmentToolDeps } from "../contexts/
|
|
10
|
+
import type { EnrichmentToolDeps } from "../contexts/context.tools.port.js";
|
|
11
11
|
import type { EnrichmentResult } from "../shared/interfaces/enrichment.interface.js";
|
|
12
12
|
import type { OnboardingProfileSeed, OnboardingState, UserRecord } from "../shared/interfaces/database.interface.js";
|
|
13
13
|
import type { EnrichmentRunInput, EnrichmentRunOperation } from "../shared/interfaces/enrichment-run.interface.js";
|