@indexnetwork/protocol 14.1.0-rc.469.1 → 14.2.0-rc.470.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 +55 -0
- package/dist/chat/chat-streaming.types.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/chat/negotiator.prompt.d.ts +1 -1
- package/dist/chat/negotiator.prompt.js +1 -1
- package/dist/communities/application/indexer.graph.d.ts +1 -1
- package/dist/communities/application/indexer.state.d.ts +1 -1
- package/dist/communities/application/network.tools.d.ts +1 -1
- package/dist/communities/index.d.ts +9 -0
- package/dist/communities/index.js +8 -0
- package/dist/{capabilities → communities/ports}/communities.tools.port.d.ts +1 -1
- package/dist/communities/ports/index.d.ts +2 -2
- package/dist/communities/ports/index.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/enrichment/enrichment.graph.d.ts +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/mcp/mcp.authorization-policy.d.ts +8 -8
- package/dist/negotiation/application/negotiation.graph.d.ts +1 -1
- package/dist/negotiation/domain/negotiation.question-safety.js +1 -1
- package/dist/negotiation/index.d.ts +12 -0
- package/dist/negotiation/index.js +9 -0
- package/dist/opportunity/application/negotiation-context.loader.d.ts +1 -1
- package/dist/opportunity/application/opportunity.card-presentation.js +1 -1
- package/dist/opportunity/application/opportunity.discovery-negotiation-summary.js +1 -1
- package/dist/opportunity/application/opportunity.evaluator.js +1 -1
- package/dist/opportunity/application/opportunity.graph.d.ts +3 -3
- package/dist/opportunity/application/opportunity.graph.js +3 -3
- package/dist/opportunity/application/opportunity.presenter.d.ts +6 -6
- package/dist/opportunity/application/opportunity.presenter.js +1 -1
- package/dist/opportunity/application/opportunity.tools.js +1 -1
- package/dist/opportunity/discriminator/discriminator.adjustments.d.ts +1 -1
- package/dist/opportunity/discriminator/discriminator.push.d.ts +1 -1
- package/dist/opportunity/discriminator/discriminator.question.d.ts +1 -1
- package/dist/opportunity/domain/index.d.ts +1 -1
- package/dist/opportunity/domain/index.js +1 -1
- package/dist/opportunity/domain/negotiation-summary.builder.d.ts +1 -1
- package/dist/opportunity/domain/opportunity.presentation.js +1 -1
- package/dist/opportunity/domain/opportunity.safe-presentation.js +1 -1
- package/dist/opportunity/domain/opportunity.state.d.ts +1 -1
- package/dist/opportunity/index.d.ts +54 -0
- package/dist/opportunity/index.js +39 -0
- package/dist/opportunity/radar/radar.graph.d.ts +1 -1
- package/dist/opportunity/radar/radar.state.d.ts +1 -1
- package/dist/participant-agents/index.d.ts +22 -0
- package/dist/participant-agents/index.js +12 -0
- package/dist/participant-context/index.d.ts +9 -12
- package/dist/participant-context/index.js +10 -12
- package/dist/{capabilities → participant-context/ports}/participant-context.tools.port.d.ts +1 -1
- package/dist/premise/premise.graph.d.ts +1 -1
- package/dist/premise/premise.state.d.ts +1 -1
- package/dist/premise/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 +1 -1
- 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.js +13 -10
- package/dist/shared/agent/tool.registry.js +7 -7
- package/dist/shared/schemas/mcp-auth.schema.d.ts +4 -4
- package/dist/shared/schemas/underspecification.schema.d.ts +13 -0
- package/dist/shared/schemas/underspecification.schema.js +16 -0
- package/dist/signals/application/intent.clarifier.js +1 -1
- package/dist/signals/application/intent.graph.d.ts +2 -2
- package/dist/signals/application/intent.tools.d.ts +1 -1
- package/dist/signals/domain/intent.state.d.ts +1 -1
- package/dist/signals/index.d.ts +18 -0
- package/dist/signals/index.js +14 -0
- package/dist/{capabilities → signals/ports}/signals.tools.port.d.ts +1 -1
- 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/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/{capabilities → communities/ports}/communities.tools.port.js +0 -0
- /package/dist/{capabilities → participant-context/ports}/participant-context.tools.port.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/dist/{capabilities → signals/ports}/signals.tools.port.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,61 @@ 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.0 - 2026-08-16
|
|
24
|
+
|
|
25
|
+
No public API change: all 443 exported symbols are byte-identical to 14.1.0.
|
|
26
|
+
This is internal structure only.
|
|
27
|
+
|
|
28
|
+
### Removed
|
|
29
|
+
|
|
30
|
+
- Removed `src/capabilities/` — 24 files. Twenty-one were `*.facade.ts`
|
|
31
|
+
re-export shims (several two lines long, one with a single caller) and three
|
|
32
|
+
were `*.tools.port.ts` port definitions misfiled into a facade directory. The
|
|
33
|
+
ports moved into their capability's `ports/`.
|
|
34
|
+
- Removed the nine per-capability `public/index.ts` barrels. Three of them
|
|
35
|
+
(`signals`, `communities`, `opportunity`) already had zero importers.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- **Each capability's `index.ts` is now its sole cross-capability surface.**
|
|
40
|
+
What used to be three hops — `capabilities/X.facade.ts` → `X/public/index.ts`
|
|
41
|
+
→ `X/{domain,application,ports}` — is now one. The barrels carry the union of
|
|
42
|
+
the facades they replace, so the contract is unchanged.
|
|
43
|
+
- The boundary rule collapses to one sentence: *a capability may reach another
|
|
44
|
+
capability only through that capability's `index.ts`*. `capability-boundaries.ts`
|
|
45
|
+
checks it from the import path alone; `barrelCapabilityForSourcePath` replaces
|
|
46
|
+
`facadeCapabilityForSourcePath`, and `CAPABILITY_BARREL_DIRECTORIES` names the
|
|
47
|
+
one directory that owns each capability's barrel.
|
|
48
|
+
- Replaced `architecture/tests/capability-facades.spec.ts` with
|
|
49
|
+
`capability-barrels.spec.ts`, which asserts one barrel per capability, no
|
|
50
|
+
`export *`, and that the facade layer does not return.
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- Broke a runtime import cycle the barrels would otherwise have introduced.
|
|
55
|
+
`shared/agent/tool.factory.ts` reached `createAgentTools` through
|
|
56
|
+
`participant-agents/index.ts`, which re-exports the chat personas, which
|
|
57
|
+
import the tool factory back. The composition root is exempt from the barrel
|
|
58
|
+
rule precisely because it must reach everything, so it now imports the leaf
|
|
59
|
+
directly. Verified: zero runtime cycles, matching `dev`.
|
|
60
|
+
- Moved two leaf contracts out of the capabilities that happened to host them,
|
|
61
|
+
into the neutral layer both sides already depend on:
|
|
62
|
+
- `opportunity/domain/opportunity.claim-safety.ts` → `shared/utils/claim-safety.ts`
|
|
63
|
+
(three pure text predicates, no imports of its own). `negotiation` and
|
|
64
|
+
`contacts` needed it and were pulling the whole opportunity capability.
|
|
65
|
+
- `UnderspecificationTypeSchema` → `shared/schemas/underspecification.schema.ts`.
|
|
66
|
+
The signals clarifier was importing the entire questions capability — LLM
|
|
67
|
+
agents and tools included — to reach a three-value enum.
|
|
68
|
+
|
|
69
|
+
- `CAPABILITY_DIRECTORIES` mapped `questioner` but not `questions`, so every
|
|
70
|
+
file under `src/questions/` was skipped by the capability boundary checker
|
|
71
|
+
entirely. Adding the mapping surfaced six real violations that had been
|
|
72
|
+
invisible: five imports reaching `questions/domain/question.schema.js`
|
|
73
|
+
directly, and an undeclared `participant-agents → questions` dependency
|
|
74
|
+
(`chat/` uses the question schemas). The imports now go through
|
|
75
|
+
`questions/index.ts` and the direction is declared — 24 named directions
|
|
76
|
+
became 25.
|
|
77
|
+
|
|
23
78
|
## 14.1.0 - 2026-08-16
|
|
24
79
|
|
|
25
80
|
### Added
|
|
@@ -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.
|
|
@@ -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 "../negotiation/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 "../negotiation/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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntentNetworkGraphDatabase } from "../ports/index.js";
|
|
2
|
-
import type { DebugMetaAgent } from "../../
|
|
2
|
+
import type { DebugMetaAgent } from "../../participant-agents/index.js";
|
|
3
3
|
import type { IntentIndexer } from "../ports/index.js";
|
|
4
4
|
import { type AssignmentResult } from "./indexer.state.js";
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DebugMetaAgent } from "../../
|
|
1
|
+
import type { DebugMetaAgent } from "../../participant-agents/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Intent payload and metadata loaded for network evaluation.
|
|
4
4
|
* Loaded from the database before LLM-based assignment scoring.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefineTool } from "../../shared/agent/tool.helpers.js";
|
|
2
|
-
import type { NetworkToolDeps } from "
|
|
2
|
+
import type { NetworkToolDeps } from "../ports/communities.tools.port.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates all community (network) lifecycle and membership tools.
|
|
5
5
|
*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* communities — 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 + communities/public/ pair; the export
|
|
6
|
+
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
|
|
9
|
+
export type { NetworkToolDeps, } from "./ports/communities.tools.port.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* communities — 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 + communities/public/ pair; the export
|
|
6
|
+
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.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 community discovery and membership tools. */
|
|
3
3
|
export type NetworkToolDeps = Pick<ToolRegistryCompositionDeps, "userDb" | "systemDb" | "getUserContextText" | "networkRanker" | "reportToolError"> & {
|
|
4
4
|
graphs: Pick<ToolRegistryCompositionDeps["graphs"], "index" | "networkMembership">;
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* IND-546: explicit port layer for communities; signals consumed via capabilities/signals.facade.ts.
|
|
22
22
|
*/
|
|
23
23
|
export type { NetworkGraphDatabase, NetworkMembershipGraphDatabase, IntentNetworkGraphDatabase, } from "../../shared/interfaces/database.interface.js";
|
|
24
|
-
export { IntentIndexer } from "../../
|
|
25
|
-
export type { IntentIndexerOutput } from "../../
|
|
24
|
+
export { IntentIndexer } from "../../signals/index.js";
|
|
25
|
+
export type { IntentIndexerOutput } from "../../signals/index.js";
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
// Re-exported from the signals capability facade so that application-layer code
|
|
25
25
|
// (indexer.graph.ts, indexer.state.ts) imports from the communities port, not
|
|
26
26
|
// directly from the signals facade or its implementation.
|
|
27
|
-
export { IntentIndexer } from "../../
|
|
27
|
+
export { IntentIndexer } from "../../signals/index.js";
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { EnrichmentGraphDatabase, PremiseProvenance } from "../shared/interfaces/database.interface.js";
|
|
2
2
|
import { Scraper } from "../shared/interfaces/scraper.interface.js";
|
|
3
3
|
import type { ProfileEnricher } from "../shared/interfaces/enrichment.interface.js";
|
|
4
|
-
import type { DebugMetaAgent } from "../
|
|
4
|
+
import type { DebugMetaAgent } from "../participant-agents/index.js";
|
|
5
5
|
/**
|
|
6
6
|
* Compiled premise graph interface. Matches the invoke signature of a compiled LangGraph.
|
|
7
7
|
* Accepted as an optional dependency so write-mode input can be decomposed into premises.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DefineTool } from "../shared/agent/tool.helpers.js";
|
|
2
|
-
import type { EnrichmentToolDeps } from "../
|
|
2
|
+
import type { EnrichmentToolDeps } from "../participant-context/ports/participant-context.tools.port.js";
|
|
3
3
|
export declare function createEnrichmentTools(defineTool: DefineTool, deps: EnrichmentToolDeps): readonly [any, any, any, any, any, any, any, any];
|
package/dist/index.d.ts
CHANGED
|
@@ -10,140 +10,140 @@ export { getToolTimeoutPolicy, invokeToolRuntime, toolRuntimeErrorToResult } fro
|
|
|
10
10
|
export type { McpAuthResolver } from "./shared/interfaces/auth.interface.js";
|
|
11
11
|
export type { Cache, CacheOptions, HydeCache, OpportunityCache } from "./shared/interfaces/cache.interface.js";
|
|
12
12
|
export type { ChatSummaryReader } from "./shared/interfaces/chat-summary.interface.js";
|
|
13
|
-
export type { QuestionerDatabase, PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionsHost } from "./
|
|
13
|
+
export type { QuestionerDatabase, PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionsHost } from "./questions/index.js";
|
|
14
14
|
export type { NegotiationSummaryReader } from "./shared/interfaces/negotiation-summary.interface.js";
|
|
15
15
|
export type { DiscoveryNegotiationDigest } from "./shared/schemas/negotiation-digest.schema.js";
|
|
16
|
-
export { NegotiationSummarizer } from "./
|
|
17
|
-
export type { ContactServiceAdapter } from "./
|
|
16
|
+
export { NegotiationSummarizer } from "./negotiation/index.js";
|
|
17
|
+
export type { ContactServiceAdapter } from "./contacts/index.js";
|
|
18
18
|
export type { ChatGraphCompositeDatabase, UserDatabase, AgentActivitySummary, SystemDatabase, OpportunityGraphDatabase, OpportunityControllerDatabase, OutcomeOutbox, RadarGraphDatabase, IntentGraphDatabase, HydeGraphDatabase, EnrichmentGraphDatabase, PremiseGraphDatabase, NegotiationGraphDatabase, NegotiationOpportunityLifecycle, NegotiationContinuationExecution, NegotiationContinuationReceipt, Opportunity, OpportunityActor, OpportunityStatus, AssignmentNetworkMembership, IntentNetworkFinalAssignmentResult, CreateOpportunityData, } from "./shared/interfaces/database.interface.js";
|
|
19
19
|
export type { Embedder, VectorStoreOption, VectorSearchResult, HydeCandidate, HydeSearchOptions, LensEmbedding } from "./shared/interfaces/embedder.interface.js";
|
|
20
|
-
export type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, ToolActionResponse } from "./
|
|
20
|
+
export type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, ToolActionResponse } from "./integrations/index.js";
|
|
21
21
|
export type { IntentGraphQueue } from "./shared/interfaces/queue.interface.js";
|
|
22
22
|
export type { Scraper } from "./shared/interfaces/scraper.interface.js";
|
|
23
23
|
export type { EnrichmentRunInput, EnrichmentRunRecord } from "./shared/interfaces/enrichment-run.interface.js";
|
|
24
24
|
export type { NegotiationTimeoutQueue, AskUserExpiryPayload, NegotiationContinuationTimeoutIdentity, } from "./shared/interfaces/negotiation-events.interface.js";
|
|
25
25
|
export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload } from "./shared/interfaces/agent-dispatcher.interface.js";
|
|
26
|
-
export { SYSTEM_AGENT_IDS } from './
|
|
26
|
+
export { SYSTEM_AGENT_IDS } from './participant-agents/index.js';
|
|
27
27
|
export { ChatContextDigestSchema, type ChatContextDigest } from "./shared/schemas/chat-context.schema.js";
|
|
28
|
-
export { type Question, type UnderspecificationType, type QuestionStrategy, type QuestionGenerationResult, type QuestionPurpose, type NegotiationQuestionPurpose, type NegotiationQuestionCandidate, type NegotiationQuestionProvenance, NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, type QuestionPoolPush, type QuestionRecoverySnapshot, type QuestionVoidedReason, type QuestionPoolPushRequestStatus, type QuestionPoolPushRequestReason, } from "./
|
|
28
|
+
export { type Question, type UnderspecificationType, type QuestionStrategy, type QuestionGenerationResult, type QuestionPurpose, type NegotiationQuestionPurpose, type NegotiationQuestionCandidate, type NegotiationQuestionProvenance, NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, type QuestionPoolPush, type QuestionRecoverySnapshot, type QuestionVoidedReason, type QuestionPoolPushRequestStatus, type QuestionPoolPushRequestReason, } from "./questions/index.js";
|
|
29
29
|
export type { PendingQuestionSummary } from "./shared/schemas/pending-question.schema.js";
|
|
30
30
|
export { McpAuthInputSchema, McpApiKeyMetadataSchema, McpResolvedIdentitySchema, } from "./shared/schemas/mcp-auth.schema.js";
|
|
31
31
|
export type { McpAuthInput, McpApiKeyMetadata, McpResolvedIdentity, } from "./shared/schemas/mcp-auth.schema.js";
|
|
32
32
|
export type { DiscoverySummary, DiscoveryNegotiation, DiscoveryTurn, DiscoveryOutcome, NegotiationRole } from "./shared/schemas/discovery-question.schema.js";
|
|
33
33
|
export type { NetworkAssignmentMetadata } from "./shared/schemas/network-assignment.schema.js";
|
|
34
34
|
export { DEFAULT_NETWORK_ASSIGNMENT_THRESHOLD, resolveAssignmentNetworkScope, buildNetworkAssignmentDecision } from "./shared/assignment/network-assignment.policy.js";
|
|
35
|
-
export { buildCandidateEvidence } from "./
|
|
36
|
-
export { ChatGraphFactory } from "./
|
|
37
|
-
export { type ChatPersonaConfig } from "./
|
|
38
|
-
export { NEGOTIATOR_PERSONA_ID, createNegotiatorPersona } from "./
|
|
39
|
-
export { SIGNAL_PERSONA_ID, SIGNAL_PERSONA, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_TOOL_NAMES, createSignalTools, filterSignalTools, narrowSignalTools, } from "./
|
|
40
|
-
export { REPORTER_PERSONA_ID, REPORTER_PERSONA, REPORTER_BRIEFING_KICKOFF, REPORTER_TOOL_NAMES, createReporterTools, filterReporterTools, narrowReporterTools, } from "./
|
|
41
|
-
export { ONBOARDING_PERSONA_ID, ONBOARDING_PERSONA, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, } from "./
|
|
42
|
-
export { RadarGraphFactory } from "./
|
|
43
|
-
export { HydeGraphFactory } from "./
|
|
44
|
-
export { NetworkGraphFactory } from "./
|
|
45
|
-
export { NetworkMembershipGraphFactory } from "./
|
|
46
|
-
export { IntentGraphFactory } from "./
|
|
47
|
-
export { SemanticVerifier } from "./
|
|
48
|
-
export { IntentNetworkGraphFactory } from "./
|
|
49
|
-
export { MaintenanceGraphFactory } from "./
|
|
50
|
-
export type { MaintenanceGraphDatabase, MaintenanceGraphCache, MaintenanceGraphQueue } from "./
|
|
51
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "./
|
|
52
|
-
export { OpportunityGraphFactory } from "./
|
|
53
|
-
export type { OpportunityGraphThresholdOverrides } from "./
|
|
54
|
-
export { hasUnsupportedOpportunityClaim } from "./
|
|
55
|
-
export type { StampNewbornOpportunitiesFn } from "./
|
|
56
|
-
export { opportunityOwnerActionForStatus, bindOwnerApprovalProvenance } from "./
|
|
57
|
-
export type { OpportunityOwnerAction, OpportunityOwnerApprovalAttestation, OpportunityOwnerApprovalAuthority, OpportunityOwnerApprovalBinding, OpportunityOwnerApprovalChallenge, OpportunityOwnerApprovalDenialReason, OpportunityOwnerApprovalVerdict, OpportunityOwnerInteractionProvenance, OpportunityOwnerInteractionSurface, } from "./
|
|
58
|
-
export { EnrichmentGraphFactory } from "./
|
|
59
|
-
export { PremiseGraphFactory } from "./
|
|
60
|
-
export { UserContextGenerator } from "./
|
|
61
|
-
export { ChatTitleGenerator } from "./
|
|
62
|
-
export { ChatInterruptClassifier } from "./
|
|
63
|
-
export { ChatSummarizer } from "./
|
|
64
|
-
export { HydeGenerator } from "./
|
|
65
|
-
export { SuggestionGenerator } from "./
|
|
66
|
-
export { generateInviteMessage } from "./
|
|
67
|
-
export { IntentIndexer } from "./
|
|
68
|
-
export type { IntentIndexerOutput } from "./
|
|
69
|
-
export { SignalIntakePackGenerator, normalizeIntakePack } from "./
|
|
70
|
-
export type { IntakePack, IntakePackInput, IntakePackQuestion, IntakePackQuestionOption, } from "./
|
|
71
|
-
export { SignalIntakeOrchestrator, answerLabel, FALLBACK_WHO_QUESTION, FALLBACK_BRING_QUESTION, } from "./
|
|
72
|
-
export type { IntakeAnswer, IntakeRound, FollowUpPlan, FollowUpPlanInput, SynthesisInput, SynthesisResult, } from "./
|
|
73
|
-
export { normalizeIntentDescription } from "./
|
|
74
|
-
export { LensInferrer } from "./
|
|
75
|
-
export { NegotiationInsightsGenerator } from "./
|
|
76
|
-
export type { NegotiationDigest } from "./
|
|
77
|
-
export { IndexNegotiator } from "./
|
|
78
|
-
export { NegotiationScreener } from "./
|
|
79
|
-
export { NegotiationReflector } from "./
|
|
80
|
-
export type { DistilledMemory, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn } from "./
|
|
81
|
-
export type { NegotiatorMemoryEntry } from "./
|
|
82
|
-
export { QuestionerAgent } from "./
|
|
83
|
-
export { isValidQuestionerInputContract } from "./
|
|
84
|
-
export type { QuestionerInput, RecoveryQuestionerInput, UptakeQuestionerInput, PostStallQuestionerInput, InflightQuestionerInput, QuestionerEnqueuePayload, QuestionerEnqueueFn, PoolDiscoveryContext } from "./
|
|
85
|
-
export { isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, intentQuestionDailyCap, INTENT_QUESTION_DAILY_CAP_DEFAULT, INTENT_QUESTION_DAILY_WINDOW_HOURS } from "./
|
|
86
|
-
export { PoolDiscriminatorMiner } from "./
|
|
87
|
-
export { PoolDiscriminatorAssigner } from "./
|
|
88
|
-
export type { PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis } from "./
|
|
89
|
-
export { runPoolDiscriminatorShadow } from "./
|
|
90
|
-
export { poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsStampNewborn, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_QUESTION_MIN_VOI, POOL_QUESTION_MAX_PENDING_PER_INTENT, } from "./
|
|
91
|
-
export { poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS } from "./
|
|
92
|
-
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "./
|
|
93
|
-
export type { DiscoveryMatchType, DiscoveryProfileSource } from "./
|
|
94
|
-
export { poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS } from "./
|
|
95
|
-
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment } from "./
|
|
96
|
-
export type { PoolAdjustment, PoolAdjustmentSignal } from "./
|
|
97
|
-
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from "./
|
|
98
|
-
export { poolQuestionCycleKey, buildPoolQuestionPushMessage } from "./
|
|
99
|
-
export type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from "./
|
|
100
|
-
export type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator } from "./
|
|
101
|
-
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES } from "./
|
|
102
|
-
export { NegotiationEvidenceMiner } from "./
|
|
103
|
-
export { runNegotiationEvidenceShadow } from "./
|
|
104
|
-
export type { RawEvidenceTurn, RawEvidenceOutcome, RawEvidenceOwnerAnswer, RawEvidenceSegment } from "./
|
|
105
|
-
export { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS } from "./
|
|
106
|
-
export { runOutcomeShadow } from "./
|
|
107
|
-
export type { OutcomeLabel, OutcomeExample, OutcomeShadowResult } from "./
|
|
108
|
-
export { OpportunityEvaluator } from "./
|
|
109
|
-
export type { EvaluatorInput } from "./
|
|
110
|
-
export { OpportunityPresenter, gatherPresenterContext } from "./
|
|
111
|
-
export type { PresenterDatabase } from "./
|
|
112
|
-
export { canUserSeeOpportunity, isActionableForViewer, validateOpportunityActors, classifyOpportunity, selectByComposition, RADAR_SOFT_TARGETS } from "./
|
|
113
|
-
export { getPrimaryActionLabel } from "./
|
|
114
|
-
export { computeRadarHealth } from "./
|
|
115
|
-
export type { RadarHealthInput } from "./
|
|
116
|
-
export { isIntroducerDiscoveryEnabled } from "./
|
|
117
|
-
export { selectContactsForDiscovery, shouldRunIntroducerDiscovery, runIntroducerDiscovery, MAX_CONTACTS_PER_CYCLE, MAX_CANDIDATES_PER_CONTACT, INTRODUCER_DISCOVERY_SOURCE } from "./
|
|
118
|
-
export type { IntroducerDiscoveryDatabase, IntroducerDiscoveryQueue, ContactWithIntents } from "./
|
|
119
|
-
export { persistOpportunities } from "./
|
|
120
|
-
export { presentOpportunity } from "./
|
|
121
|
-
export type { UserInfo } from "./
|
|
122
|
-
export { stripUuids, truncateAtBoundary } from "./
|
|
123
|
-
export { stripUnsupportedOpportunityClaims } from "./
|
|
124
|
-
export { safeFallbackSummary, DEFAULT_FALLBACK_HEADLINE } from "./
|
|
125
|
-
export { buildApiChatCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildRadarCardPresentationCacheKey } from "./
|
|
126
|
-
export { getOrCreateDeliveryCardBatch } from "./
|
|
35
|
+
export { buildCandidateEvidence } from "./opportunity/index.js";
|
|
36
|
+
export { ChatGraphFactory } from "./participant-agents/index.js";
|
|
37
|
+
export { type ChatPersonaConfig } from "./participant-agents/index.js";
|
|
38
|
+
export { NEGOTIATOR_PERSONA_ID, createNegotiatorPersona } from "./participant-agents/index.js";
|
|
39
|
+
export { SIGNAL_PERSONA_ID, SIGNAL_PERSONA, SIGNAL_NEW_SIGNAL_KICKOFF, SIGNAL_TOOL_NAMES, createSignalTools, filterSignalTools, narrowSignalTools, } from "./participant-agents/index.js";
|
|
40
|
+
export { REPORTER_PERSONA_ID, REPORTER_PERSONA, REPORTER_BRIEFING_KICKOFF, REPORTER_TOOL_NAMES, createReporterTools, filterReporterTools, narrowReporterTools, } from "./participant-agents/index.js";
|
|
41
|
+
export { ONBOARDING_PERSONA_ID, ONBOARDING_PERSONA, ONBOARDING_PROFILE_KICKOFF, ONBOARDING_TOOL_NAMES, createOnboardingTools, filterOnboardingTools, narrowOnboardingTools, } from "./participant-agents/index.js";
|
|
42
|
+
export { RadarGraphFactory } from "./opportunity/index.js";
|
|
43
|
+
export { HydeGraphFactory } from "./participant-context/index.js";
|
|
44
|
+
export { NetworkGraphFactory } from "./communities/index.js";
|
|
45
|
+
export { NetworkMembershipGraphFactory } from "./communities/index.js";
|
|
46
|
+
export { IntentGraphFactory } from "./signals/index.js";
|
|
47
|
+
export { SemanticVerifier } from "./signals/index.js";
|
|
48
|
+
export { IntentNetworkGraphFactory } from "./communities/index.js";
|
|
49
|
+
export { MaintenanceGraphFactory } from "./maintenance/maintenance.graph.js";
|
|
50
|
+
export type { MaintenanceGraphDatabase, MaintenanceGraphCache, MaintenanceGraphQueue } from "./maintenance/maintenance.graph.js";
|
|
51
|
+
export { NegotiationGraphFactory, negotiateCandidates } from "./negotiation/index.js";
|
|
52
|
+
export { OpportunityGraphFactory } from "./opportunity/index.js";
|
|
53
|
+
export type { OpportunityGraphThresholdOverrides } from "./opportunity/index.js";
|
|
54
|
+
export { hasUnsupportedOpportunityClaim } from "./opportunity/index.js";
|
|
55
|
+
export type { StampNewbornOpportunitiesFn } from "./opportunity/index.js";
|
|
56
|
+
export { opportunityOwnerActionForStatus, bindOwnerApprovalProvenance } from "./opportunity/index.js";
|
|
57
|
+
export type { OpportunityOwnerAction, OpportunityOwnerApprovalAttestation, OpportunityOwnerApprovalAuthority, OpportunityOwnerApprovalBinding, OpportunityOwnerApprovalChallenge, OpportunityOwnerApprovalDenialReason, OpportunityOwnerApprovalVerdict, OpportunityOwnerInteractionProvenance, OpportunityOwnerInteractionSurface, } from "./opportunity/index.js";
|
|
58
|
+
export { EnrichmentGraphFactory } from "./participant-context/index.js";
|
|
59
|
+
export { PremiseGraphFactory } from "./participant-context/index.js";
|
|
60
|
+
export { UserContextGenerator } from "./participant-context/index.js";
|
|
61
|
+
export { ChatTitleGenerator } from "./participant-agents/index.js";
|
|
62
|
+
export { ChatInterruptClassifier } from "./participant-agents/index.js";
|
|
63
|
+
export { ChatSummarizer } from "./participant-agents/index.js";
|
|
64
|
+
export { HydeGenerator } from "./participant-context/index.js";
|
|
65
|
+
export { SuggestionGenerator } from "./participant-agents/index.js";
|
|
66
|
+
export { generateInviteMessage } from "./contacts/index.js";
|
|
67
|
+
export { IntentIndexer } from "./signals/index.js";
|
|
68
|
+
export type { IntentIndexerOutput } from "./signals/index.js";
|
|
69
|
+
export { SignalIntakePackGenerator, normalizeIntakePack } from "./signals/index.js";
|
|
70
|
+
export type { IntakePack, IntakePackInput, IntakePackQuestion, IntakePackQuestionOption, } from "./signals/index.js";
|
|
71
|
+
export { SignalIntakeOrchestrator, answerLabel, FALLBACK_WHO_QUESTION, FALLBACK_BRING_QUESTION, } from "./signals/index.js";
|
|
72
|
+
export type { IntakeAnswer, IntakeRound, FollowUpPlan, FollowUpPlanInput, SynthesisInput, SynthesisResult, } from "./signals/index.js";
|
|
73
|
+
export { normalizeIntentDescription } from "./signals/index.js";
|
|
74
|
+
export { LensInferrer } from "./participant-context/index.js";
|
|
75
|
+
export { NegotiationInsightsGenerator } from "./negotiation/index.js";
|
|
76
|
+
export type { NegotiationDigest } from "./negotiation/index.js";
|
|
77
|
+
export { IndexNegotiator } from "./negotiation/index.js";
|
|
78
|
+
export { NegotiationScreener } from "./negotiation/index.js";
|
|
79
|
+
export { NegotiationReflector } from "./negotiation/index.js";
|
|
80
|
+
export type { DistilledMemory, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn } from "./negotiation/index.js";
|
|
81
|
+
export type { NegotiatorMemoryEntry } from "./negotiation/index.js";
|
|
82
|
+
export { QuestionerAgent } from "./questions/index.js";
|
|
83
|
+
export { isValidQuestionerInputContract } from "./questions/index.js";
|
|
84
|
+
export type { QuestionerInput, RecoveryQuestionerInput, UptakeQuestionerInput, PostStallQuestionerInput, InflightQuestionerInput, QuestionerEnqueuePayload, QuestionerEnqueueFn, PoolDiscoveryContext } from "./questions/index.js";
|
|
85
|
+
export { isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, intentQuestionDailyCap, INTENT_QUESTION_DAILY_CAP_DEFAULT, INTENT_QUESTION_DAILY_WINDOW_HOURS } from "./questions/index.js";
|
|
86
|
+
export { PoolDiscriminatorMiner } from "./opportunity/index.js";
|
|
87
|
+
export { PoolDiscriminatorAssigner } from "./opportunity/index.js";
|
|
88
|
+
export type { PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis } from "./opportunity/index.js";
|
|
89
|
+
export { runPoolDiscriminatorShadow } from "./opportunity/index.js";
|
|
90
|
+
export { poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsStampNewborn, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_QUESTION_MIN_VOI, POOL_QUESTION_MAX_PENDING_PER_INTENT, } from "./opportunity/index.js";
|
|
91
|
+
export { poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS } from "./opportunity/index.js";
|
|
92
|
+
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "./opportunity/index.js";
|
|
93
|
+
export type { DiscoveryMatchType, DiscoveryProfileSource } from "./opportunity/index.js";
|
|
94
|
+
export { poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS } from "./opportunity/index.js";
|
|
95
|
+
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment } from "./opportunity/index.js";
|
|
96
|
+
export type { PoolAdjustment, PoolAdjustmentSignal } from "./opportunity/index.js";
|
|
97
|
+
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from "./opportunity/index.js";
|
|
98
|
+
export { poolQuestionCycleKey, buildPoolQuestionPushMessage } from "./opportunity/index.js";
|
|
99
|
+
export type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from "./questions/index.js";
|
|
100
|
+
export type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator } from "./opportunity/index.js";
|
|
101
|
+
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES } from "./opportunity/index.js";
|
|
102
|
+
export { NegotiationEvidenceMiner } from "./opportunity/index.js";
|
|
103
|
+
export { runNegotiationEvidenceShadow } from "./opportunity/index.js";
|
|
104
|
+
export type { RawEvidenceTurn, RawEvidenceOutcome, RawEvidenceOwnerAnswer, RawEvidenceSegment } from "./opportunity/index.js";
|
|
105
|
+
export { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS } from "./opportunity/index.js";
|
|
106
|
+
export { runOutcomeShadow } from "./opportunity/index.js";
|
|
107
|
+
export type { OutcomeLabel, OutcomeExample, OutcomeShadowResult } from "./opportunity/index.js";
|
|
108
|
+
export { OpportunityEvaluator } from "./opportunity/index.js";
|
|
109
|
+
export type { EvaluatorInput } from "./opportunity/index.js";
|
|
110
|
+
export { OpportunityPresenter, gatherPresenterContext } from "./opportunity/index.js";
|
|
111
|
+
export type { PresenterDatabase } from "./opportunity/index.js";
|
|
112
|
+
export { canUserSeeOpportunity, isActionableForViewer, validateOpportunityActors, classifyOpportunity, selectByComposition, RADAR_SOFT_TARGETS } from "./opportunity/index.js";
|
|
113
|
+
export { getPrimaryActionLabel } from "./opportunity/index.js";
|
|
114
|
+
export { computeRadarHealth } from "./opportunity/index.js";
|
|
115
|
+
export type { RadarHealthInput } from "./opportunity/index.js";
|
|
116
|
+
export { isIntroducerDiscoveryEnabled } from "./opportunity/index.js";
|
|
117
|
+
export { selectContactsForDiscovery, shouldRunIntroducerDiscovery, runIntroducerDiscovery, MAX_CONTACTS_PER_CYCLE, MAX_CANDIDATES_PER_CONTACT, INTRODUCER_DISCOVERY_SOURCE } from "./opportunity/index.js";
|
|
118
|
+
export type { IntroducerDiscoveryDatabase, IntroducerDiscoveryQueue, ContactWithIntents } from "./opportunity/index.js";
|
|
119
|
+
export { persistOpportunities } from "./opportunity/index.js";
|
|
120
|
+
export { presentOpportunity } from "./opportunity/index.js";
|
|
121
|
+
export type { UserInfo } from "./opportunity/index.js";
|
|
122
|
+
export { stripUuids, truncateAtBoundary } from "./opportunity/index.js";
|
|
123
|
+
export { stripUnsupportedOpportunityClaims } from "./opportunity/index.js";
|
|
124
|
+
export { safeFallbackSummary, DEFAULT_FALLBACK_HEADLINE } from "./opportunity/index.js";
|
|
125
|
+
export { buildApiChatCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildRadarCardPresentationCacheKey } from "./opportunity/index.js";
|
|
126
|
+
export { getOrCreateDeliveryCardBatch } from "./opportunity/index.js";
|
|
127
127
|
export { createToolRegistry } from "./shared/agent/tool.registry.js";
|
|
128
|
-
export { createIntentTools } from "./
|
|
129
|
-
export type { IntentToolDeps } from "./
|
|
130
|
-
export { createEnrichmentTools, createPremiseTools } from "./
|
|
131
|
-
export type { EnrichmentToolDeps, PremiseToolDeps } from "./
|
|
132
|
-
export { createNetworkTools } from "./
|
|
133
|
-
export type { NetworkToolDeps } from "./
|
|
134
|
-
export { createOpportunityTools } from "./
|
|
135
|
-
export type { OpportunityToolDeps } from "./
|
|
136
|
-
export { createNegotiationTools } from "./
|
|
137
|
-
export type { NegotiationToolDeps } from "./
|
|
138
|
-
export { createQuestionerTools, createAskUserQuestionTools } from "./
|
|
139
|
-
export type { AskUserQuestionToolDeps, QuestionerToolDeps } from "./
|
|
140
|
-
export { createChatTools, createAgentTools } from "./
|
|
141
|
-
export type { AgentToolDeps } from "./
|
|
142
|
-
export { createContactTools } from "./
|
|
143
|
-
export type { ContactToolDeps } from "./
|
|
144
|
-
export { createIntegrationTools } from "./
|
|
145
|
-
export type { IntegrationToolDeps } from "./
|
|
146
|
-
export { AMBIENT_PARK_WINDOW_MS } from './
|
|
128
|
+
export { createIntentTools } from "./signals/index.js";
|
|
129
|
+
export type { IntentToolDeps } from "./signals/index.js";
|
|
130
|
+
export { createEnrichmentTools, createPremiseTools } from "./participant-context/index.js";
|
|
131
|
+
export type { EnrichmentToolDeps, PremiseToolDeps } from "./participant-context/index.js";
|
|
132
|
+
export { createNetworkTools } from "./communities/index.js";
|
|
133
|
+
export type { NetworkToolDeps } from "./communities/index.js";
|
|
134
|
+
export { createOpportunityTools } from "./opportunity/index.js";
|
|
135
|
+
export type { OpportunityToolDeps } from "./opportunity/index.js";
|
|
136
|
+
export { createNegotiationTools } from "./negotiation/index.js";
|
|
137
|
+
export type { NegotiationToolDeps } from "./negotiation/index.js";
|
|
138
|
+
export { createQuestionerTools, createAskUserQuestionTools } from "./questions/index.js";
|
|
139
|
+
export type { AskUserQuestionToolDeps, QuestionerToolDeps } from "./questions/index.js";
|
|
140
|
+
export { createChatTools, createAgentTools } from "./participant-agents/index.js";
|
|
141
|
+
export type { AgentToolDeps } from "./participant-agents/index.js";
|
|
142
|
+
export { createContactTools } from "./contacts/index.js";
|
|
143
|
+
export type { ContactToolDeps } from "./contacts/index.js";
|
|
144
|
+
export { createIntegrationTools } from "./integrations/index.js";
|
|
145
|
+
export type { IntegrationToolDeps } from "./integrations/index.js";
|
|
146
|
+
export { AMBIENT_PARK_WINDOW_MS } from './negotiation/index.js';
|
|
147
147
|
export { normalizeTelegramHandle } from './shared/utils/telegram-handle.js';
|
|
148
148
|
export { createMcpServer, buildMcpOnboardingMessage, ONBOARDING_ALLOWED } from "./mcp/mcp.server.js";
|
|
149
149
|
export type { ScopedDepsFactory } from "./mcp/mcp.server.js";
|
|
@@ -154,11 +154,11 @@ export type { McpAuthorizationDenialEvent, McpAuthorizationObserver, McpCapabili
|
|
|
154
154
|
export { AskUserPayloadSchema, NEGOTIATION_CONSULTATION_REASONS, NegotiationConsultationReasonSchema, } from "./shared/schemas/negotiation-state.schema.js";
|
|
155
155
|
export type { UserNegotiationContext, NegotiationTurn, NegotiationOutcome, SeedAssessment } from "./shared/schemas/negotiation-state.schema.js";
|
|
156
156
|
export type { NegotiationAction, NegotiationConsultationReason, NegotiationSeat, NegotiationProtocolVersion } from "./shared/schemas/negotiation-state.schema.js";
|
|
157
|
-
export type { NegotiationGraphLike } from "./
|
|
158
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "./
|
|
159
|
-
export type { HermesNegotiationAction, HermesNegotiationResponse, HermesOwnerDirective, HermesRoleAlignment, } from "./
|
|
160
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, expectedNegotiationSpeaker, allowedActionsFor, askUserAnswerWindowMs, configuredAskUserEnabled, isTerminalAction, isRejectLikeAction, readProtocolVersion, resolveSeat, seatViolationMessage } from "./
|
|
161
|
-
export type { NegotiationSpeakerParticipants, NegotiationSpeakerMessage } from "./
|
|
162
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode } from "./
|
|
163
|
-
export type { ConsultationEligibility, ConsultationEligibilityInput, NegotiationConsultationPolicyMode } from "./
|
|
164
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, negotiationQuestionSettlementId, validateInflightAskUserFields, } from "./
|
|
157
|
+
export type { NegotiationGraphLike } from "./negotiation/index.js";
|
|
158
|
+
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "./negotiation/index.js";
|
|
159
|
+
export type { HermesNegotiationAction, HermesNegotiationResponse, HermesOwnerDirective, HermesRoleAlignment, } from "./negotiation/index.js";
|
|
160
|
+
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, expectedNegotiationSpeaker, allowedActionsFor, askUserAnswerWindowMs, configuredAskUserEnabled, isTerminalAction, isRejectLikeAction, readProtocolVersion, resolveSeat, seatViolationMessage } from "./negotiation/index.js";
|
|
161
|
+
export type { NegotiationSpeakerParticipants, NegotiationSpeakerMessage } from "./negotiation/index.js";
|
|
162
|
+
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode } from "./negotiation/index.js";
|
|
163
|
+
export type { ConsultationEligibility, ConsultationEligibilityInput, NegotiationConsultationPolicyMode } from "./negotiation/index.js";
|
|
164
|
+
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, negotiationQuestionSettlementId, validateInflightAskUserFields, } from "./negotiation/index.js";
|