@indexnetwork/protocol 10.1.3-rc.453.1 → 11.0.1-rc.455.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 +1 -0
- package/dist/capabilities/contacts.facade.d.ts +1 -1
- package/dist/capabilities/integrations.facade.d.ts +1 -1
- package/dist/capabilities/opportunities.facade.d.ts +2 -1
- package/dist/capabilities/opportunities.facade.js +1 -1
- package/dist/capabilities/participant-agents.facade.d.ts +2 -2
- package/dist/capabilities/participant-agents.facade.js +1 -1
- package/dist/capabilities/questions.facade.d.ts +2 -2
- package/dist/capabilities/questions.facade.js +1 -1
- package/dist/chat/chat-streaming.types.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/contacts/domain/contact.types.d.ts +0 -2
- package/dist/contacts/domain/contact.types.js +0 -2
- package/dist/contacts/domain/index.d.ts +0 -2
- package/dist/contacts/index.d.ts +1 -2
- package/dist/contacts/index.js +1 -2
- package/dist/contacts/ports/contact.tools.port.d.ts +3 -5
- package/dist/contacts/ports/contact.tools.port.js +3 -5
- package/dist/contacts/ports/index.d.ts +0 -2
- package/dist/contacts/ports/index.js +0 -2
- package/dist/enrichment/enrichment.graph.d.ts +4 -4
- package/dist/enrichment/enrichment.state.d.ts +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -3
- package/dist/integrations/domain/index.d.ts +0 -2
- package/dist/integrations/domain/integration.types.d.ts +0 -2
- package/dist/integrations/domain/integration.types.js +0 -2
- package/dist/integrations/index.d.ts +1 -2
- package/dist/integrations/index.js +1 -2
- package/dist/integrations/ports/index.d.ts +0 -2
- package/dist/integrations/ports/index.js +0 -2
- package/dist/integrations/ports/integration.tools.port.d.ts +3 -5
- package/dist/integrations/ports/integration.tools.port.js +3 -5
- package/dist/mcp/elicitation.builder.d.ts +1 -1
- package/dist/mcp/elicitation.dispatcher.d.ts +1 -1
- package/dist/opportunity/application/opportunity.graph.d.ts +14 -8
- package/dist/opportunity/application/opportunity.graph.js +26 -14
- package/dist/opportunity/discovery.env.d.ts +6 -0
- package/dist/opportunity/discovery.env.js +30 -0
- 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/opportunity.state.d.ts +1 -3
- package/dist/opportunity/public/index.d.ts +2 -1
- package/dist/opportunity/public/index.js +1 -1
- package/dist/participant-agents/domain/index.d.ts +0 -1
- package/dist/participant-agents/index.d.ts +2 -6
- package/dist/participant-agents/index.js +2 -6
- package/dist/participant-agents/ports/agent.tools.port.d.ts +3 -5
- package/dist/participant-agents/ports/agent.tools.port.js +3 -5
- package/dist/participant-agents/ports/index.d.ts +1 -2
- package/dist/participant-agents/ports/index.js +1 -2
- package/dist/questions/domain/index.d.ts +0 -1
- package/dist/questions/domain/index.js +0 -1
- package/dist/questions/domain/question.schema.d.ts +1 -3
- package/dist/questions/domain/question.schema.js +1 -3
- package/dist/questions/index.d.ts +1 -6
- package/dist/questions/index.js +1 -6
- package/dist/questions/ports/question.generator.port.d.ts +1 -2
- package/dist/questions/ports/question.persistence.port.d.ts +1 -2
- package/dist/questions/public/index.d.ts +1 -1
- package/dist/shared/agent/tool.helpers.d.ts +6 -6
- package/dist/shared/interfaces/database.interface.d.ts +2 -0
- package/dist/shared/schemas/pending-question.schema.d.ts +1 -1
- package/dist/signals/application/intent.clarifier.js +1 -1
- package/dist/signals/application/intent.graph.d.ts +1 -1
- package/dist/signals/application/intent.verifier.d.ts +6 -6
- package/package.json +1 -1
- package/dist/shared/interfaces/agent.interface.d.ts +0 -17
- package/dist/shared/interfaces/agent.interface.js +0 -15
- package/dist/shared/interfaces/contact.interface.d.ts +0 -9
- package/dist/shared/interfaces/contact.interface.js +0 -8
- package/dist/shared/interfaces/integration.interface.d.ts +0 -9
- package/dist/shared/interfaces/integration.interface.js +0 -8
- package/dist/shared/interfaces/question-generator.interface.d.ts +0 -5
- package/dist/shared/interfaces/question-generator.interface.js +0 -1
- package/dist/shared/interfaces/questioner.interface.d.ts +0 -5
- package/dist/shared/interfaces/questioner.interface.js +0 -1
- package/dist/shared/schemas/question.schema.d.ts +0 -5
- package/dist/shared/schemas/question.schema.js +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,7 @@ pin a supported release, use `latest`.
|
|
|
29
29
|
## [Unreleased]
|
|
30
30
|
|
|
31
31
|
### Removed
|
|
32
|
+
- Remove six unsupported shared interface/schema forwarding shims after migrating repository consumers to capability-owned domain and port modules; stable package-root exports remain unchanged.
|
|
32
33
|
- Remove six unsupported tool-port forwarding shims and the deprecated unused discovery-question mapper; stable package-root exports remain unchanged.
|
|
33
34
|
- Remove the onboarding privacy-consent layer (10.0.0). The
|
|
34
35
|
`record_onboarding_privacy_consent` tool is gone from the tool registry, the
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { generateInviteMessage } from "../contacts/public/index.js";
|
|
8
8
|
export { createContactTools } from "../contacts/public/index.js";
|
|
9
|
-
export type { ContactToolDeps } from "../contacts/public/index.js";
|
|
9
|
+
export type { ContactServiceAdapter, ContactToolDeps } from "../contacts/public/index.js";
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* of the legacy integration/ shim directory.
|
|
6
6
|
*/
|
|
7
7
|
export { createIntegrationTools } from "../integrations/public/index.js";
|
|
8
|
-
export type { IntegrationToolDeps } from "../integrations/public/index.js";
|
|
8
|
+
export type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, IntegrationToolDeps, ToolActionResponse, } from "../integrations/public/index.js";
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { RadarGraphFactory } from "../opportunity/radar/radar.graph.js";
|
|
10
10
|
export { OpportunityGraphFactory } from "../opportunity/application/opportunity.graph.js";
|
|
11
|
+
export type { OpportunityGraphThresholdOverrides } from "../opportunity/application/opportunity.graph.js";
|
|
11
12
|
export type { StampNewbornOpportunitiesFn, StampNewbornOpportunitiesInput } from "../opportunity/application/opportunity.newborn-stamping.js";
|
|
12
13
|
export { hasUnsupportedOpportunityClaim, stripUnsupportedOpportunityClaims } from "../opportunity/domain/opportunity.claim-safety.js";
|
|
13
14
|
export { buildCandidateEvidence } from "../opportunity/domain/opportunity.evidence.js";
|
|
@@ -17,7 +18,7 @@ export { OpportunityPresenter, gatherPresenterContext } from "../opportunity/app
|
|
|
17
18
|
export type { PresenterDatabase } from "../opportunity/application/opportunity.presenter.js";
|
|
18
19
|
export { createOpportunityTools } from "../opportunity/application/opportunity.tools.js";
|
|
19
20
|
export type { OpportunityToolDeps } from "../opportunity/ports/index.js";
|
|
20
|
-
export { discoveryAllowedTypes, discoveryIntentMatchingEnabled, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, } from "../opportunity/discovery.env.js";
|
|
21
|
+
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "../opportunity/discovery.env.js";
|
|
21
22
|
export type { DiscoveryMatchType, DiscoveryProfileSource } from "../opportunity/discovery.env.js";
|
|
22
23
|
export { PoolDiscriminatorMiner } from "../opportunity/discriminator/discriminator.miner.js";
|
|
23
24
|
export { PoolDiscriminatorAssigner } from "../opportunity/discriminator/discriminator.assigner.js";
|
|
@@ -19,7 +19,7 @@ export { OpportunityPresenter, gatherPresenterContext } from "../opportunity/app
|
|
|
19
19
|
// ── MCP tool factory ──────────────────────────────────────────────────────────
|
|
20
20
|
export { createOpportunityTools } from "../opportunity/application/opportunity.tools.js";
|
|
21
21
|
// ── Discovery env accessors ───────────────────────────────────────────────────
|
|
22
|
-
export { discoveryAllowedTypes, discoveryIntentMatchingEnabled, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, } from "../opportunity/discovery.env.js";
|
|
22
|
+
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "../opportunity/discovery.env.js";
|
|
23
23
|
// ── Pool discriminator (Lens A) ───────────────────────────────────────────────
|
|
24
24
|
export { PoolDiscriminatorMiner } from "../opportunity/discriminator/discriminator.miner.js";
|
|
25
25
|
export { PoolDiscriminatorAssigner } from "../opportunity/discriminator/discriminator.assigner.js";
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*
|
|
20
20
|
* IND-548: agent-registry portion now routes through participant-agents/public.
|
|
21
21
|
*/
|
|
22
|
-
export { createAgentTools } from "../participant-agents/
|
|
23
|
-
export type { AgentToolDeps } from "../participant-agents/
|
|
22
|
+
export { createAgentTools, SYSTEM_AGENT_IDS } from "../participant-agents/public/index.js";
|
|
23
|
+
export type { AgentToolDeps } from "../participant-agents/public/index.js";
|
|
24
24
|
export { ChatGraphFactory } from "../chat/chat.graph.js";
|
|
25
25
|
export { ORCHESTRATOR_PERSONA_ID } from "../chat/chat.persona.js";
|
|
26
26
|
export type { ChatPersonaConfig } from "../chat/chat.persona.js";
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* IND-548: agent-registry portion now routes through participant-agents/public.
|
|
21
21
|
*/
|
|
22
22
|
// ── Agent registration and permission management ──────────────────────────────
|
|
23
|
-
export { createAgentTools } from "../participant-agents/
|
|
23
|
+
export { createAgentTools, SYSTEM_AGENT_IDS } from "../participant-agents/public/index.js";
|
|
24
24
|
// ── Runtime chat graph ────────────────────────────────────────────────────────
|
|
25
25
|
export { ChatGraphFactory } from "../chat/chat.graph.js";
|
|
26
26
|
export { ORCHESTRATOR_PERSONA_ID } from "../chat/chat.persona.js";
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* IND-547: updated to re-export from questions/public/index.js.
|
|
5
5
|
* Legacy consumers importing from this path continue to work unchanged.
|
|
6
6
|
*/
|
|
7
|
-
export { QuestionerAgent, isValidQuestionerInputContract, isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, isDiscoveryQuestionsEnabled, discoveryQuestionsInputMode, discoveryQuestionsTimeoutMs, createQuestionerTools, createAskUserQuestionTools, } from "../questions/public/index.js";
|
|
8
|
-
export type { QuestionerInput, RecoveryQuestionerInput, UptakeQuestionerInput, PostStallQuestionerInput, InflightQuestionerInput, QuestionerEnqueuePayload, QuestionerEnqueueFn, PoolDiscoveryContext, QuestionerToolDeps, AskUserQuestionToolDeps, } from "../questions/public/index.js";
|
|
7
|
+
export { QuestionerAgent, isValidQuestionerInputContract, isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, isDiscoveryQuestionsEnabled, discoveryQuestionsInputMode, discoveryQuestionsTimeoutMs, createQuestionerTools, createAskUserQuestionTools, NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, } from "../questions/public/index.js";
|
|
8
|
+
export type { QuestionerInput, RecoveryQuestionerInput, UptakeQuestionerInput, PostStallQuestionerInput, InflightQuestionerInput, QuestionerEnqueuePayload, QuestionerEnqueueFn, PoolDiscoveryContext, QuestionerToolDeps, AskUserQuestionToolDeps, ChatQuestionsHost, NegotiationQuestionCandidate, NegotiationQuestionProvenance, NegotiationQuestionPurpose, PersistableQuestion, PersistedQuestion, Question, QuestionFilters, QuestionGenerationResult, QuestionGeneratorReader, QuestionPoolDiscriminator, QuestionPoolPush, QuestionPoolPushRequestReason, QuestionPoolPushRequestStatus, QuestionPoolSnapshot, QuestionPurpose, QuestionRecoverySnapshot, QuestionStrategy, QuestionVoidedReason, QuestionerDatabase, UnderspecificationType, } from "../questions/public/index.js";
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* IND-547: updated to re-export from questions/public/index.js.
|
|
5
5
|
* Legacy consumers importing from this path continue to work unchanged.
|
|
6
6
|
*/
|
|
7
|
-
export { QuestionerAgent, isValidQuestionerInputContract, isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, isDiscoveryQuestionsEnabled, discoveryQuestionsInputMode, discoveryQuestionsTimeoutMs, createQuestionerTools, createAskUserQuestionTools, } from "../questions/public/index.js";
|
|
7
|
+
export { QuestionerAgent, isValidQuestionerInputContract, isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, isDiscoveryQuestionsEnabled, discoveryQuestionsInputMode, discoveryQuestionsTimeoutMs, createQuestionerTools, createAskUserQuestionTools, NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, } from "../questions/public/index.js";
|
|
@@ -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, QuestionStrategy } from "../
|
|
7
|
+
import type { Question, QuestionStrategy } from "../questions/domain/question.schema.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" | "question_generator_start" | "question_generator_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, DebugMetaDiscoveryQuestions } from "./chat-streaming.types.js";
|
|
5
|
-
import type { Question, QuestionStrategy } from "../
|
|
5
|
+
import type { Question, QuestionStrategy } from "../questions/domain/question.schema.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.
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* No application logic, no LLM calls, no cross-capability imports.
|
|
5
5
|
*
|
|
6
6
|
* IND-549: canonical domain layer for the contacts capability.
|
|
7
|
-
* Legacy path (shared/interfaces/contact.interface.ts) is a thin
|
|
8
|
-
* compatibility shim pointing here.
|
|
9
7
|
*/
|
|
10
8
|
/** Input for importing a single contact. */
|
|
11
9
|
export interface ContactInput {
|
|
@@ -12,7 +12,5 @@
|
|
|
12
12
|
* - generateInviteMessage: application layer — lives in contacts/application.
|
|
13
13
|
*
|
|
14
14
|
* IND-549: canonical domain layer for the contacts capability.
|
|
15
|
-
* Legacy path (shared/interfaces/contact.interface.ts) is a thin
|
|
16
|
-
* compatibility shim.
|
|
17
15
|
*/
|
|
18
16
|
export type { ContactInput, ContactResult, ContactImportResult, ContactEntry, ContactSearchResult, } from "./contact.types.js";
|
package/dist/contacts/index.d.ts
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* the owning user's personal network. Contacts are participants with whom
|
|
13
13
|
* opportunity discovery is run.
|
|
14
14
|
*
|
|
15
|
-
* Compatibility
|
|
16
|
-
* - shared/interfaces/contact.interface.ts — thin compatibility shim → contacts/ports
|
|
15
|
+
* Compatibility path:
|
|
17
16
|
* - capabilities/contacts.facade.ts — thin re-export via contacts/public
|
|
18
17
|
*/
|
|
19
18
|
export * from "./public/index.js";
|
package/dist/contacts/index.js
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* the owning user's personal network. Contacts are participants with whom
|
|
13
13
|
* opportunity discovery is run.
|
|
14
14
|
*
|
|
15
|
-
* Compatibility
|
|
16
|
-
* - shared/interfaces/contact.interface.ts — thin compatibility shim → contacts/ports
|
|
15
|
+
* Compatibility path:
|
|
17
16
|
* - capabilities/contacts.facade.ts — thin re-export via contacts/public
|
|
18
17
|
*/
|
|
19
18
|
export * from "./public/index.js";
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
* ContactServiceAdapter and an optional contactsEnabled flag that gates
|
|
6
6
|
* write-path tools (import_contacts, add_contact).
|
|
7
7
|
*
|
|
8
|
-
* NOTE: This type is intentionally defined inline
|
|
9
|
-
* ToolRegistryCompositionDeps
|
|
10
|
-
*
|
|
11
|
-
* from shared/interfaces/contact.interface.ts, which after IND-549 forwards
|
|
12
|
-
* to contacts/ports — creating a cycle back here.
|
|
8
|
+
* NOTE: This type is intentionally defined inline rather than derived from
|
|
9
|
+
* ToolRegistryCompositionDeps, keeping the capability port independent from
|
|
10
|
+
* the all-capability composition contract.
|
|
13
11
|
*
|
|
14
12
|
* Its shape remains structurally equivalent to the matching
|
|
15
13
|
* ToolRegistryCompositionDeps fields.
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
* ContactServiceAdapter and an optional contactsEnabled flag that gates
|
|
6
6
|
* write-path tools (import_contacts, add_contact).
|
|
7
7
|
*
|
|
8
|
-
* NOTE: This type is intentionally defined inline
|
|
9
|
-
* ToolRegistryCompositionDeps
|
|
10
|
-
*
|
|
11
|
-
* from shared/interfaces/contact.interface.ts, which after IND-549 forwards
|
|
12
|
-
* to contacts/ports — creating a cycle back here.
|
|
8
|
+
* NOTE: This type is intentionally defined inline rather than derived from
|
|
9
|
+
* ToolRegistryCompositionDeps, keeping the capability port independent from
|
|
10
|
+
* the all-capability composition contract.
|
|
13
11
|
*
|
|
14
12
|
* Its shape remains structurally equivalent to the matching
|
|
15
13
|
* ToolRegistryCompositionDeps fields.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* - ContactToolDeps — host capabilities for contact management tools.
|
|
15
15
|
*
|
|
16
16
|
* IND-549: canonical ports surface for the contacts capability.
|
|
17
|
-
* Legacy path:
|
|
18
|
-
* - shared/interfaces/contact.interface.ts → re-exports types from here
|
|
19
17
|
*/
|
|
20
18
|
export type { ContactServiceAdapter } from "./contact.repository.port.js";
|
|
21
19
|
export type { ContactToolDeps } from "./contact.tools.port.js";
|
|
@@ -56,7 +56,7 @@ export declare class EnrichmentGraphFactory {
|
|
|
56
56
|
constructor(database: EnrichmentGraphDatabase, scraper: Scraper, enricher?: ProfileEnricher | undefined, questionerEnqueue?: QuestionerEnqueueFn | undefined, premiseGraph?: CompiledPremiseGraph | undefined);
|
|
57
57
|
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
58
58
|
userId: string;
|
|
59
|
-
operationMode: "query" | "
|
|
59
|
+
operationMode: "query" | "write" | "generate";
|
|
60
60
|
forceUpdate: boolean;
|
|
61
61
|
objective: string | undefined;
|
|
62
62
|
input: string | undefined;
|
|
@@ -93,7 +93,7 @@ export declare class EnrichmentGraphFactory {
|
|
|
93
93
|
} | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
userId?: string | undefined;
|
|
96
|
-
operationMode?: "query" | "
|
|
96
|
+
operationMode?: "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate"> | undefined;
|
|
97
97
|
forceUpdate?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
98
98
|
objective?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
99
99
|
input?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
@@ -156,7 +156,7 @@ export declare class EnrichmentGraphFactory {
|
|
|
156
156
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
157
157
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
158
158
|
};
|
|
159
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "
|
|
159
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate", "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate">, unknown>;
|
|
160
160
|
forceUpdate: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
161
161
|
objective: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
162
162
|
input: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
@@ -241,7 +241,7 @@ export declare class EnrichmentGraphFactory {
|
|
|
241
241
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
242
242
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
243
243
|
};
|
|
244
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "
|
|
244
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate", "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate">, unknown>;
|
|
245
245
|
forceUpdate: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
246
246
|
objective: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
247
247
|
input: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
@@ -18,7 +18,7 @@ export declare const EnrichmentGraphState: import("@langchain/langgraph").Annota
|
|
|
18
18
|
* - 'generate': Auto-enrich from user table data via enrichUserProfile Chat API,
|
|
19
19
|
* then decompose the enrichment into premises
|
|
20
20
|
*/
|
|
21
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "
|
|
21
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate", "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate">, unknown>;
|
|
22
22
|
/**
|
|
23
23
|
* Flag to force profile regeneration even if profile exists.
|
|
24
24
|
* When true with new input, the graph will re-generate and update the profile.
|
package/dist/index.d.ts
CHANGED
|
@@ -10,23 +10,22 @@ 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 { QuestionGeneratorReader } from "./
|
|
14
|
-
export type { QuestionerDatabase, PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionsHost } from "./shared/interfaces/questioner.interface.js";
|
|
13
|
+
export type { QuestionGeneratorReader, QuestionerDatabase, PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionsHost } from "./capabilities/questions.facade.js";
|
|
15
14
|
export type { NegotiationSummaryReader } from "./shared/interfaces/negotiation-summary.interface.js";
|
|
16
15
|
export type { DiscoveryNegotiationDigest } from "./shared/schemas/negotiation-digest.schema.js";
|
|
17
16
|
export { NegotiationSummarizer } from "./capabilities/negotiation.facade.js";
|
|
18
|
-
export type { ContactServiceAdapter } from "./
|
|
17
|
+
export type { ContactServiceAdapter } from "./capabilities/contacts.facade.js";
|
|
19
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";
|
|
20
19
|
export type { Embedder, VectorStoreOption, VectorSearchResult, HydeCandidate, HydeSearchOptions, LensEmbedding } from "./shared/interfaces/embedder.interface.js";
|
|
21
|
-
export type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, ToolActionResponse } from "./
|
|
20
|
+
export type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, ToolActionResponse } from "./capabilities/integrations.facade.js";
|
|
22
21
|
export type { IntentGraphQueue } from "./shared/interfaces/queue.interface.js";
|
|
23
22
|
export type { Scraper } from "./shared/interfaces/scraper.interface.js";
|
|
24
23
|
export type { EnrichmentRunInput, EnrichmentRunRecord } from "./shared/interfaces/enrichment-run.interface.js";
|
|
25
24
|
export type { NegotiationTimeoutQueue, AskUserExpiryPayload } from "./shared/interfaces/negotiation-events.interface.js";
|
|
26
25
|
export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload } from "./shared/interfaces/agent-dispatcher.interface.js";
|
|
27
|
-
export { SYSTEM_AGENT_IDS } from './
|
|
26
|
+
export { SYSTEM_AGENT_IDS } from './capabilities/participant-agents.facade.js';
|
|
28
27
|
export { ChatContextDigestSchema, type ChatContextDigest } from "./shared/schemas/chat-context.schema.js";
|
|
29
|
-
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 "./capabilities/questions.facade.js";
|
|
30
29
|
export type { PendingQuestionSummary } from "./shared/schemas/pending-question.schema.js";
|
|
31
30
|
export { McpAuthInputSchema, McpApiKeyMetadataSchema, McpResolvedIdentitySchema, } from "./shared/schemas/mcp-auth.schema.js";
|
|
32
31
|
export type { McpAuthInput, McpApiKeyMetadata, McpResolvedIdentity, } from "./shared/schemas/mcp-auth.schema.js";
|
|
@@ -51,6 +50,7 @@ export { MaintenanceGraphFactory } from "./capabilities/interaction-composition.
|
|
|
51
50
|
export type { MaintenanceGraphDatabase, MaintenanceGraphCache, MaintenanceGraphQueue } from "./capabilities/interaction-composition.facade.js";
|
|
52
51
|
export { NegotiationGraphFactory, negotiateCandidates } from "./capabilities/negotiation.facade.js";
|
|
53
52
|
export { OpportunityGraphFactory } from "./capabilities/opportunities.facade.js";
|
|
53
|
+
export type { OpportunityGraphThresholdOverrides } from "./capabilities/opportunities.facade.js";
|
|
54
54
|
export { hasUnsupportedOpportunityClaim } from "./capabilities/opportunities.facade.js";
|
|
55
55
|
export type { StampNewbornOpportunitiesFn } from "./capabilities/opportunities.facade.js";
|
|
56
56
|
export { opportunityOwnerActionForStatus, bindOwnerApprovalProvenance } from "./capabilities/opportunities.facade.js";
|
|
@@ -89,14 +89,14 @@ export type { PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis }
|
|
|
89
89
|
export { runPoolDiscriminatorShadow } from "./capabilities/opportunities.facade.js";
|
|
90
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 "./capabilities/opportunities.facade.js";
|
|
91
91
|
export { poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS } from "./capabilities/opportunities.facade.js";
|
|
92
|
-
export { discoveryAllowedTypes, discoveryIntentMatchingEnabled, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, } from "./capabilities/opportunities.facade.js";
|
|
92
|
+
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "./capabilities/opportunities.facade.js";
|
|
93
93
|
export type { DiscoveryMatchType, DiscoveryProfileSource } from "./capabilities/opportunities.facade.js";
|
|
94
94
|
export { poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS } from "./capabilities/opportunities.facade.js";
|
|
95
95
|
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment } from "./capabilities/opportunities.facade.js";
|
|
96
96
|
export type { PoolAdjustment, PoolAdjustmentSignal } from "./capabilities/opportunities.facade.js";
|
|
97
97
|
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from "./capabilities/opportunities.facade.js";
|
|
98
98
|
export { poolQuestionCycleKey, buildPoolQuestionPushMessage } from "./capabilities/opportunities.facade.js";
|
|
99
|
-
export type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from "./
|
|
99
|
+
export type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from "./capabilities/questions.facade.js";
|
|
100
100
|
export type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator } from "./capabilities/opportunities.facade.js";
|
|
101
101
|
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES } from "./capabilities/opportunities.facade.js";
|
|
102
102
|
export { NegotiationEvidenceMiner } from "./capabilities/opportunities.facade.js";
|
package/dist/index.js
CHANGED
|
@@ -21,10 +21,10 @@ export { setLoggerFactory } from "./shared/observability/log.js";
|
|
|
21
21
|
export { setTimingWrapper } from "./shared/observability/performance.js";
|
|
22
22
|
export { getToolTimeoutPolicy, invokeToolRuntime, toolRuntimeErrorToResult } from "./shared/agent/tool.runtime.js";
|
|
23
23
|
export { NegotiationSummarizer } from "./capabilities/negotiation.facade.js";
|
|
24
|
-
export { SYSTEM_AGENT_IDS } from './
|
|
24
|
+
export { SYSTEM_AGENT_IDS } from './capabilities/participant-agents.facade.js';
|
|
25
25
|
// ─── Shared schemas ───────────────────────────────────────────────────────────
|
|
26
26
|
export { ChatContextDigestSchema } from "./shared/schemas/chat-context.schema.js";
|
|
27
|
-
export { NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, } from "./
|
|
27
|
+
export { NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, } from "./capabilities/questions.facade.js";
|
|
28
28
|
export { McpAuthInputSchema, McpApiKeyMetadataSchema, McpResolvedIdentitySchema, } from "./shared/schemas/mcp-auth.schema.js";
|
|
29
29
|
export { DEFAULT_NETWORK_ASSIGNMENT_THRESHOLD, resolveAssignmentNetworkScope, buildNetworkAssignmentDecision } from "./shared/assignment/network-assignment.policy.js";
|
|
30
30
|
export { buildCandidateEvidence } from "./capabilities/opportunities.facade.js";
|
|
@@ -75,7 +75,7 @@ export { runPoolDiscriminatorShadow } from "./capabilities/opportunities.facade.
|
|
|
75
75
|
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 "./capabilities/opportunities.facade.js";
|
|
76
76
|
export { poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS } from "./capabilities/opportunities.facade.js";
|
|
77
77
|
// Discovery env accessors (IND-XXX)
|
|
78
|
-
export { discoveryAllowedTypes, discoveryIntentMatchingEnabled, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, } from "./capabilities/opportunities.facade.js";
|
|
78
|
+
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "./capabilities/opportunities.facade.js";
|
|
79
79
|
export { poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS } from "./capabilities/opportunities.facade.js";
|
|
80
80
|
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment } from "./capabilities/opportunities.facade.js";
|
|
81
81
|
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from "./capabilities/opportunities.facade.js";
|
|
@@ -12,7 +12,5 @@
|
|
|
12
12
|
* - createIntegrationTools: application layer — lives in integrations/application.
|
|
13
13
|
*
|
|
14
14
|
* IND-549: canonical domain layer for the integrations capability.
|
|
15
|
-
* Legacy path (shared/interfaces/integration.interface.ts) is a thin
|
|
16
|
-
* compatibility shim.
|
|
17
15
|
*/
|
|
18
16
|
export type { IntegrationSession, IntegrationSessionOptions, ToolActionResponse, IntegrationConnection, } from "./integration.types.js";
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
* No application logic, no LLM calls, no cross-capability imports.
|
|
6
6
|
*
|
|
7
7
|
* IND-549: canonical domain layer for the integrations capability.
|
|
8
|
-
* Legacy path (shared/interfaces/integration.interface.ts) is a thin
|
|
9
|
-
* compatibility shim pointing here.
|
|
10
8
|
*/
|
|
11
9
|
/**
|
|
12
10
|
* Session for interacting with an external integration platform.
|
|
@@ -5,7 +5,5 @@
|
|
|
5
5
|
* No application logic, no LLM calls, no cross-capability imports.
|
|
6
6
|
*
|
|
7
7
|
* IND-549: canonical domain layer for the integrations capability.
|
|
8
|
-
* Legacy path (shared/interfaces/integration.interface.ts) is a thin
|
|
9
|
-
* compatibility shim pointing here.
|
|
10
8
|
*/
|
|
11
9
|
export {};
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
* Allowed outbound capability dependencies: none (empty set). The integrations
|
|
17
17
|
* module is a leaf capability that only depends on shared/ primitives.
|
|
18
18
|
*
|
|
19
|
-
* Compatibility
|
|
20
|
-
* - shared/interfaces/integration.interface.ts — thin compatibility shim → integrations/ports
|
|
19
|
+
* Compatibility path:
|
|
21
20
|
* - capabilities/integrations.facade.ts — thin re-export via integrations/public
|
|
22
21
|
*/
|
|
23
22
|
export * from "./public/index.js";
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
* Allowed outbound capability dependencies: none (empty set). The integrations
|
|
17
17
|
* module is a leaf capability that only depends on shared/ primitives.
|
|
18
18
|
*
|
|
19
|
-
* Compatibility
|
|
20
|
-
* - shared/interfaces/integration.interface.ts — thin compatibility shim → integrations/ports
|
|
19
|
+
* Compatibility path:
|
|
21
20
|
* - capabilities/integrations.facade.ts — thin re-export via integrations/public
|
|
22
21
|
*/
|
|
23
22
|
export * from "./public/index.js";
|
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
* - IntegrationToolDeps — host capabilities for integration-backed tools.
|
|
20
20
|
*
|
|
21
21
|
* IND-549: canonical ports surface for the integrations capability.
|
|
22
|
-
* Legacy path:
|
|
23
|
-
* - shared/interfaces/integration.interface.ts → re-exports types from here
|
|
24
22
|
*/
|
|
25
23
|
export type { IntegrationAdapter } from "./integration.adapter.port.js";
|
|
26
24
|
export type { IntegrationImporter, IntegrationImportResult } from "./integration.importer.port.js";
|
|
@@ -19,7 +19,5 @@
|
|
|
19
19
|
* - IntegrationToolDeps — host capabilities for integration-backed tools.
|
|
20
20
|
*
|
|
21
21
|
* IND-549: canonical ports surface for the integrations capability.
|
|
22
|
-
* Legacy path:
|
|
23
|
-
* - shared/interfaces/integration.interface.ts → re-exports types from here
|
|
24
22
|
*/
|
|
25
23
|
export {};
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
* IntegrationAdapter, an IntegrationImporter, and the contactsEnabled flag
|
|
6
6
|
* that gates the import_gmail_contacts tool (which creates ghost users).
|
|
7
7
|
*
|
|
8
|
-
* NOTE: This type is intentionally defined inline
|
|
9
|
-
* ToolRegistryCompositionDeps
|
|
10
|
-
*
|
|
11
|
-
* shared/interfaces/integration.interface.ts, which after IND-549 forwards
|
|
12
|
-
* to integrations/ports — creating a cycle back here.
|
|
8
|
+
* NOTE: This type is intentionally defined inline rather than derived from
|
|
9
|
+
* ToolRegistryCompositionDeps, keeping the capability port independent from
|
|
10
|
+
* the all-capability composition contract.
|
|
13
11
|
*
|
|
14
12
|
* Its shape remains structurally equivalent to the matching
|
|
15
13
|
* ToolRegistryCompositionDeps fields.
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
* IntegrationAdapter, an IntegrationImporter, and the contactsEnabled flag
|
|
6
6
|
* that gates the import_gmail_contacts tool (which creates ghost users).
|
|
7
7
|
*
|
|
8
|
-
* NOTE: This type is intentionally defined inline
|
|
9
|
-
* ToolRegistryCompositionDeps
|
|
10
|
-
*
|
|
11
|
-
* shared/interfaces/integration.interface.ts, which after IND-549 forwards
|
|
12
|
-
* to integrations/ports — creating a cycle back here.
|
|
8
|
+
* NOTE: This type is intentionally defined inline rather than derived from
|
|
9
|
+
* ToolRegistryCompositionDeps, keeping the capability port independent from
|
|
10
|
+
* the all-capability composition contract.
|
|
13
11
|
*
|
|
14
12
|
* Its shape remains structurally equivalent to the matching
|
|
15
13
|
* ToolRegistryCompositionDeps fields.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Question } from "../
|
|
1
|
+
import type { Question } from "../questions/domain/question.schema.js";
|
|
2
2
|
import type { ChatMessageWriter } from "../shared/interfaces/chat-message-writer.interface.js";
|
|
3
3
|
import { buildElicitationCreate } from "./elicitation.builder.js";
|
|
4
4
|
export type ElicitResultLike = {
|
|
@@ -51,6 +51,10 @@ import { type StampNewbornOpportunitiesFn } from './opportunity.newborn-stamping
|
|
|
51
51
|
export type { QueueOpportunityNotificationFn } from './opportunity.lifecycle.js';
|
|
52
52
|
export type { StampNewbornOpportunitiesFn, StampNewbornOpportunitiesInput } from './opportunity.newborn-stamping.js';
|
|
53
53
|
export { buildPrioritizedNegotiationIntents } from './opportunity.existing-negotiation.js';
|
|
54
|
+
export interface OpportunityGraphThresholdOverrides {
|
|
55
|
+
retrievalMinSimilarity?: number;
|
|
56
|
+
evaluatorMinScore?: number;
|
|
57
|
+
}
|
|
54
58
|
/**
|
|
55
59
|
* Error text can include provider response bodies, URLs, and credentials. Keep
|
|
56
60
|
* observability useful by retaining only a conservative error class at this
|
|
@@ -97,6 +101,8 @@ export declare class OpportunityGraphFactory {
|
|
|
97
101
|
private queueNegotiateExisting?;
|
|
98
102
|
/** Host-side P4b stamper. Omitted by manual/introducer/enrichment roots. */
|
|
99
103
|
private stampNewbornOpportunities?;
|
|
104
|
+
/** Eval/test-only overrides; production composition resolves from environment. */
|
|
105
|
+
private thresholdOverrides?;
|
|
100
106
|
constructor(database: OpportunityGraphDatabase, embedder: Embedder, hydeGenerator: {
|
|
101
107
|
invoke: (input: HydeGeneratorInvokeInput) => Promise<{
|
|
102
108
|
hydeEmbeddings: Record<string, number[]>;
|
|
@@ -123,7 +129,9 @@ export declare class OpportunityGraphFactory {
|
|
|
123
129
|
*/
|
|
124
130
|
queueNegotiateExisting?: ((opportunityId: string, userId: string) => Promise<void>) | undefined,
|
|
125
131
|
/** Host-side P4b stamper. Omitted by manual/introducer/enrichment roots. */
|
|
126
|
-
stampNewbornOpportunities?: StampNewbornOpportunitiesFn | undefined
|
|
132
|
+
stampNewbornOpportunities?: StampNewbornOpportunitiesFn | undefined,
|
|
133
|
+
/** Eval/test-only overrides; production composition resolves from environment. */
|
|
134
|
+
thresholdOverrides?: OpportunityGraphThresholdOverrides | undefined);
|
|
127
135
|
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
128
136
|
userId: Id<"users">;
|
|
129
137
|
searchQuery: string | undefined;
|
|
@@ -133,7 +141,7 @@ export declare class OpportunityGraphFactory {
|
|
|
133
141
|
targetUserId: Id<"users"> | undefined;
|
|
134
142
|
onBehalfOfUserId: Id<"users"> | undefined;
|
|
135
143
|
options: import("../domain/opportunity.state.js").OpportunityGraphOptions;
|
|
136
|
-
operationMode: "delete" | "send" | "update" | "create" | "
|
|
144
|
+
operationMode: "delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction";
|
|
137
145
|
introductionEntities: EvaluatorEntity[];
|
|
138
146
|
introductionHint: string | undefined;
|
|
139
147
|
requiredNetworkId: Id<"networks"> | undefined;
|
|
@@ -242,7 +250,7 @@ export declare class OpportunityGraphFactory {
|
|
|
242
250
|
targetUserId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined;
|
|
243
251
|
onBehalfOfUserId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined;
|
|
244
252
|
options?: import("../domain/opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("../domain/opportunity.state.js").OpportunityGraphOptions> | undefined;
|
|
245
|
-
operationMode?: "delete" | "send" | "update" | "create" | "
|
|
253
|
+
operationMode?: "delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction"> | undefined;
|
|
246
254
|
introductionEntities?: EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]> | undefined;
|
|
247
255
|
introductionHint?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
248
256
|
requiredNetworkId?: Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined;
|
|
@@ -406,7 +414,7 @@ export declare class OpportunityGraphFactory {
|
|
|
406
414
|
seedAssessmentScore?: number | undefined;
|
|
407
415
|
}[]> | undefined;
|
|
408
416
|
discoverySummary?: import("../../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../../index.js").DiscoverySummary | null> | null | undefined;
|
|
409
|
-
}, "scope" | "discovery" | "send" | "update" | "__start__" | "read" | "
|
|
417
|
+
}, "scope" | "discovery" | "send" | "update" | "__start__" | "read" | "prep" | "negotiate_existing" | "approve_introduction" | "persist" | "resolve" | "evaluation" | "ranking" | "intro_validation" | "intro_evaluation" | "delete_opp" | "negotiate", {
|
|
410
418
|
userId: import("@langchain/langgraph").BaseChannel<Id<"users">, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users">>, unknown>;
|
|
411
419
|
searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
412
420
|
networkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
@@ -415,7 +423,7 @@ export declare class OpportunityGraphFactory {
|
|
|
415
423
|
targetUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
416
424
|
onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
417
425
|
options: import("@langchain/langgraph").BaseChannel<import("../domain/opportunity.state.js").OpportunityGraphOptions, import("../domain/opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("../domain/opportunity.state.js").OpportunityGraphOptions>, unknown>;
|
|
418
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "
|
|
426
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction">, unknown>;
|
|
419
427
|
introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
|
|
420
428
|
introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
421
429
|
requiredNetworkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
@@ -652,7 +660,7 @@ export declare class OpportunityGraphFactory {
|
|
|
652
660
|
targetUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
653
661
|
onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
|
|
654
662
|
options: import("@langchain/langgraph").BaseChannel<import("../domain/opportunity.state.js").OpportunityGraphOptions, import("../domain/opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("../domain/opportunity.state.js").OpportunityGraphOptions>, unknown>;
|
|
655
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "
|
|
663
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction">, unknown>;
|
|
656
664
|
introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
|
|
657
665
|
introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
658
666
|
requiredNetworkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
|
|
@@ -1144,7 +1152,6 @@ export declare class OpportunityGraphFactory {
|
|
|
1144
1152
|
options: {
|
|
1145
1153
|
initialStatus: OpportunityStatus;
|
|
1146
1154
|
negotiationContinuation?: import("../../shared/interfaces/database.interface.js").NegotiationContinuationExecution;
|
|
1147
|
-
minScore?: number;
|
|
1148
1155
|
limit?: number;
|
|
1149
1156
|
lenses?: import("../../shared/hyde/lens.inferrer.js").Lens[];
|
|
1150
1157
|
hydeDescription?: string;
|
|
@@ -1169,7 +1176,6 @@ export declare class OpportunityGraphFactory {
|
|
|
1169
1176
|
options: {
|
|
1170
1177
|
initialStatus: OpportunityStatus;
|
|
1171
1178
|
negotiationContinuation?: import("../../shared/interfaces/database.interface.js").NegotiationContinuationExecution;
|
|
1172
|
-
minScore?: number;
|
|
1173
1179
|
limit?: number;
|
|
1174
1180
|
lenses?: import("../../shared/hyde/lens.inferrer.js").Lens[];
|
|
1175
1181
|
hydeDescription?: string;
|