@indexnetwork/protocol 5.4.0-rc.374.1 → 6.0.0-rc.375.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +50 -121
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -55
- package/dist/index.js.map +1 -1
- package/dist/intent/intent.graph.d.ts +19 -19
- package/dist/intent/intent.indexer.d.ts +3 -3
- package/dist/intent/intent.inferrer.d.ts +8 -8
- package/dist/intent/intent.reconciler.d.ts +11 -11
- package/dist/intent/intent.state.d.ts +4 -4
- package/dist/intent/intent.verifier.d.ts +6 -6
- package/dist/negotiation/negotiation.graph.d.ts +1 -1
- package/dist/network/indexer/indexer.graph.d.ts +15 -15
- package/dist/network/indexer/indexer.state.d.ts +4 -4
- package/dist/network/membership/membership.graph.d.ts +4 -4
- package/dist/network/membership/membership.state.d.ts +1 -1
- package/dist/network/network.graph.d.ts +4 -4
- package/dist/network/network.state.d.ts +1 -1
- package/dist/opportunity/discriminator/discriminator.assigner.d.ts +4 -4
- package/dist/opportunity/opportunity.evaluator.d.ts +9 -9
- package/dist/opportunity/opportunity.graph.d.ts +6 -6
- package/dist/opportunity/opportunity.state.d.ts +1 -1
- package/dist/premise/premise.analyzer.d.ts +2 -2
- package/dist/premise/premise.decomposer.d.ts +2 -2
- package/dist/premise/premise.indexer.d.ts +2 -2
- package/dist/shared/hyde/hyde.frame.d.ts +4 -4
- package/dist/shared/hyde/hyde.validator.d.ts +4 -4
- package/dist/shared/hyde/lens.inferrer.d.ts +6 -6
- package/dist/shared/schemas/negotiation-digest.schema.d.ts +2 -2
- package/dist/shared/schemas/question.schema.d.ts +36 -36
- package/package.json +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,6CAA6C;AAC7C,EAAE;AACF,4DAA4D;AAC5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,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErG,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAOvE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAIzG,+EAA+E;AAE/E,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,oBAAoB,GACrB,MAAM,uCAAuC,CAAC;AAE/C,iFAAiF;AAEjF,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["// =============================================================================\n// @indexnetwork/protocol — public API barrel\n//\n// This file is the ONLY supported entry point. Deep imports\n// (\"@indexnetwork/protocol/src/...\") are not part of the contract and may break\n// in any release. Every symbol is re-exported explicitly (no wildcards) so the\n// surface is reviewable and changes are intentional.\n//\n// Stability tiers are defined in STABILITY.md. In short:\n// • Stable — Interfaces, Graph factories, Agents, createChatTools,\n// the tool/runtime helpers, and shared schemas.\n// • Experimental — Sections marked @experimental below (advanced graph state\n// types and internal helpers); may change in a minor release.\n// =============================================================================\n\n// ─── Public API (recommended for external consumers) ──────────────────────────\n\nexport { createChatTools } from \"./shared/agent/tool.factory.js\";\nexport { getModelName } from \"./shared/agent/model.config.js\";\nexport type { ChatTools } from \"./shared/agent/tool.factory.js\";\nexport type { ModelConfig, ModelSettings } from \"./shared/agent/model.config.js\";\nexport type { ToolContext, ResolvedToolContext, ToolDeps, ProtocolDeps, RawToolDefinition, CompiledGraph } from \"./shared/agent/tool.helpers.js\";\nexport { ChatContextAccessError, resolveChatContext } from \"./shared/agent/tool.helpers.js\";\nexport {\n deriveAllowedNetworkIds,\n deriveDiscoveryNetworkIds,\n focusedNetworkId,\n focusedNetworkLabel,\n hasNetworkScope,\n scopeFromNetworkId,\n} from \"./shared/agent/tool.scope.js\";\nexport type { ToolScopeEnvelope, ToolScopeType, ScopeMembership, DeriveNetworkScopeInput } from \"./shared/agent/tool.scope.js\";\nexport { requestContext } from \"./shared/observability/request-context.js\";\nexport { setLoggerFactory } from \"./shared/observability/log.js\";\nexport type { LoggerWithSource as ProtocolLoggerWithSource } from \"./shared/observability/log.js\";\nexport { setTimingWrapper } from \"./shared/observability/performance.js\";\nexport { ToolRuntimeError, getToolTimeoutPolicy, invokeToolRuntime, toolRuntimeErrorToResult } from \"./shared/agent/tool.runtime.js\";\nexport type { ToolRuntimeErrorCode, ToolTimeoutClass, ToolTimeoutPolicy } from \"./shared/agent/tool.runtime.js\";\n\n// ─── Interfaces (implement these to wire up your infrastructure) ───────────────\n\nexport type { McpAuthResolver } from \"./shared/interfaces/auth.interface.js\";\nexport type { Cache, CacheOptions, HydeCache, OpportunityCache } from \"./shared/interfaces/cache.interface.js\";\nexport type { ChatSessionReader, ChatSessionDetail, ChatSessionSummary } from \"./shared/interfaces/chat-session.interface.js\";\nexport type { ChatSummaryReader } from \"./shared/interfaces/chat-summary.interface.js\";\nexport type { ChatMessageWriter } from \"./shared/interfaces/chat-message-writer.interface.js\";\nexport type { QuestionGeneratorReader } from \"./shared/interfaces/question-generator.interface.js\";\nexport type { QuestionerDatabase, PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionsHost, ChatQuestionAnswerOutcome } from \"./shared/interfaces/questioner.interface.js\";\nexport type { NegotiationSummaryReader } from \"./shared/interfaces/negotiation-summary.interface.js\";\nexport type { DiscoveryNegotiationDigest } from \"./shared/schemas/negotiation-digest.schema.js\";\nexport { NegotiationSummarizer, buildFallbackDigest } from \"./negotiation/negotiation.summarizer.js\";\nexport type { ContactServiceAdapter, ContactEntry, ContactImportResult, ContactInput, ContactResult, ContactSearchResult } from \"./shared/interfaces/contact.interface.js\";\nexport type {\n ChatGraphCompositeDatabase, UserDatabase, SystemDatabase, Database,\n OpportunityGraphDatabase, OpportunityControllerDatabase, OutcomeOutbox, HomeGraphDatabase,\n IntentGraphDatabase, IntentNetworkGraphDatabase, NetworkGraphDatabase, NetworkMembershipGraphDatabase,\n HydeGraphDatabase, EnrichmentGraphDatabase, PremiseGraphDatabase, NegotiationGraphDatabase,\n NegotiationQueries, NegotiationUserAnswer,\n Opportunity, OpportunityActor, OpportunityContext, OpportunityDetection, OpportunityInterpretation,\n OpportunityQueryOptions, OpportunitySignal, OpportunityStatus,\n ActiveIntent, CreatedIntent, CreateIntentData, UpdateIntentData, IntentRecord, SimilarIntent, SimilarIntentSearchOptions,\n IndexedIntentDetails, IndexMemberDetails, AssignmentNetworkMembership, NetworkAssignmentContext, NetworkMembership, OwnedIndex,\n CreateHydeDocumentData, HydeDocument, HydeSourceType, CreateOpportunityData,\n PremiseAnalysis, PremiseAssertion, PremiseProvenance, PremiseRecord, PremiseValidity,\n OnboardingPrivacyState, OnboardingProfileSeed, OnboardingState, PrivacyConsentDecision, PrivacyConsentSource,\n UpdateIndexSettingsData, UserRecord, UserSocial, ArchiveResult, Id,\n} from \"./shared/interfaces/database.interface.js\";\nexport type {\n Embedder, EmbeddingGenerator, EmbeddingGenerateOptions,\n VectorStore, VectorStoreOption, VectorSearchResult,\n HydeCandidate, HydeSearchOptions, LensEmbedding,\n} from \"./shared/interfaces/embedder.interface.js\";\nexport type { ProfileEnricher, EnrichmentRequest, EnrichmentResult } from \"./shared/interfaces/enrichment.interface.js\";\nexport type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, ToolActionResponse } from \"./shared/interfaces/integration.interface.js\";\nexport type { IntentGraphQueue } from \"./shared/interfaces/queue.interface.js\";\nexport type { Scraper, ExtractUrlContentOptions } from \"./shared/interfaces/scraper.interface.js\";\nexport type { DeliveryLedger, DeliveredOpportunityRow } from \"./shared/interfaces/delivery-ledger.interface.js\";\nexport type { MintConnectLink, ConnectLinkKind } from \"./shared/interfaces/connect-link.interface.js\";\nexport type {\n DiscoveryRunStore, DiscoveryRunQueue, DiscoveryRunInput, CreateDiscoveryRunInput,\n DiscoveryRunRecord, DiscoveryRunStatus,\n} from \"./shared/interfaces/discovery-run.interface.js\";\nexport type {\n EnrichmentRunStore, EnrichmentRunQueue, EnrichmentRunInput, CreateEnrichmentRunInput,\n UpdateUserEnrichmentRunInput, PreviewUserEnrichmentRunInput,\n EnrichmentRunRecord, EnrichmentRunStatus, EnrichmentRunOperation,\n} from \"./shared/interfaces/enrichment-run.interface.js\";\nexport type { NegotiationTimeoutQueue, AskUserExpiryPayload } from \"./shared/interfaces/negotiation-events.interface.js\";\nexport type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload } from \"./shared/interfaces/agent-dispatcher.interface.js\";\nexport type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput, AgentDatabase } from './shared/interfaces/agent.interface.js';\nexport { SYSTEM_AGENT_IDS } from './shared/interfaces/agent.interface.js';\n\n// ─── Shared schemas ───────────────────────────────────────────────────────────\n\nexport { ChatContextDigestSchema, type ChatContextDigest } from \"./shared/schemas/chat-context.schema.js\";\nexport { QuestionOptionSchema, QuestionSchema, UnderspecificationTypeSchema, QuestionStrategySchema, QuestionWithStrategySchema, QuestionGeneratorResponseSchema, QuestionPurposeSchema, QuestionModeSchema, QuestionDetectionSchema, QuestionPoolPushSchema, QuestionVoidedReasonSchema, QuestionPoolPushRequestStatusSchema, QuestionPoolPushRequestReasonSchema, QuestionActorSchema, QuestionAnswerSchema, type Question, type QuestionOption, type UnderspecificationType, type QuestionStrategy, type QuestionWithStrategy, type QuestionGeneratorResponse, type QuestionGenerationResult, type QuestionPurpose, type QuestionMode, type QuestionDetection, type QuestionPoolPush, type QuestionVoidedReason, type QuestionPoolPushRequestStatus, type QuestionPoolPushRequestReason, type QuestionActor, type QuestionAnswer } from \"./shared/schemas/question.schema.js\";\nexport type { PendingQuestionSummary } from \"./shared/schemas/pending-question.schema.js\";\nexport type { McpAuthInput } from \"./shared/schemas/mcp-auth.schema.js\";\nexport { UserIdentitySchema, type UserIdentity } from \"./shared/schemas/identity.schema.js\";\nexport type { DiscoverySourceProfile, DiscoverySummary, DiscoveryNegotiation, DiscoveryTurn, DiscoveryOutcome, DiscoveryQuestionInput, NegotiationRole } from \"./shared/schemas/discovery-question.schema.js\";\nexport { NetworkAssignmentResourceTypeSchema, NetworkAssignmentModeSchema, NetworkAssignmentScopeSchema, NetworkAssignmentPromptPresenceSchema, NetworkAssignmentPolicySchema, NetworkAssignmentRawScoresSchema, NetworkAssignmentMetadataSchema, OpportunityEvidenceKindSchema, OpportunityEvidenceSchema } from \"./shared/schemas/network-assignment.schema.js\";\nexport type { NetworkAssignmentResourceType, NetworkAssignmentMode, NetworkAssignmentScope, NetworkAssignmentPromptPresence, NetworkAssignmentPolicy, NetworkAssignmentRawScores, NetworkAssignmentMetadata, OpportunityEvidenceKind, OpportunityEvidence } from \"./shared/schemas/network-assignment.schema.js\";\nexport { DEFAULT_NETWORK_ASSIGNMENT_THRESHOLD, classifyPromptPresence, resolveAssignmentNetworkScope, buildNetworkAssignmentDecision, combineAssignmentScores } from \"./shared/assignment/network-assignment.policy.js\";\nexport type { PromptPresenceInput, ResolveAssignmentNetworkScopeArgs, AssignmentScopeMembership, BuildNetworkAssignmentDecisionArgs, NetworkAssignmentDecision } from \"./shared/assignment/network-assignment.policy.js\";\nexport { buildCandidateEvidence, withCandidateEvidence, mergeOpportunityEvidence, withMatchedStrategies, renderOpportunityEvidenceForPrompt } from \"./opportunity/opportunity.evidence.js\";\nexport type { EvidenceCandidateInput } from \"./opportunity/opportunity.evidence.js\";\n\n// ─── Intent clarification ─────────────────────────────────────────────────────\n\nexport { IntentClarifier, type IntentClarifierOutput } from \"./intent/intent.clarifier.js\";\n\n// ─── Graph factories ──────────────────────────────────────────────────────────\n\nexport { ChatGraphFactory } from \"./chat/chat.graph.js\";\nexport {\n ORCHESTRATOR_PERSONA,\n ORCHESTRATOR_PERSONA_ID,\n type ChatPersonaConfig,\n type ChatPersonaLoopBehaviors,\n} from \"./chat/chat.persona.js\";\nexport {\n NEGOTIATOR_PERSONA_ID,\n NEGOTIATOR_TOOL_NAMES,\n createNegotiatorPersona,\n createNegotiatorTools,\n filterNegotiatorTools,\n} from \"./chat/negotiator.persona.js\";\nexport { buildNegotiatorSystemContent, type NegotiatorPromptOptions } from \"./chat/negotiator.prompt.js\";\nexport { createNegotiatorMemoryTools } from \"./chat/negotiator.tools.js\";\nexport type {\n NegotiatorMemoryToolsHost,\n NegotiatorMemoryRememberInput,\n NegotiatorMemoryToolView,\n NegotiatorMemoryForgetResult,\n RememberableMemoryKind,\n} from \"./shared/interfaces/negotiator-memory.interface.js\";\nexport { HomeGraphFactory } from \"./opportunity/feed/feed.graph.js\";\nexport { HydeGraphFactory } from \"./shared/hyde/hyde.graph.js\";\nexport type { HydeGraphOptions, HydeLensInferrerLike, HydeGeneratorLike, HydeValidatorLike } from \"./shared/hyde/hyde.graph.js\";\nexport { getHydeGenerationMode, HYDE_FRAME_GENERATION_VERSION } from \"./shared/hyde/hyde.env.js\";\nexport type { HydeGenerationMode } from \"./shared/hyde/hyde.env.js\";\nexport { sanitizeHydeSourceFrame } from \"./shared/hyde/hyde.frame.js\";\nexport type { HydeSourceFrame, HydeFrameRole, HydeFrameHardConstraint, HydeFrameNamedEntity, HydeFrameVocabulary, HydeHardConstraintType, HydeNamedEntityType } from \"./shared/hyde/hyde.frame.js\";\nexport { HydeValidator } from \"./shared/hyde/hyde.validator.js\";\nexport type { HydeValidationInput, HydeValidationDocument, HydeValidationOutput, HydeValidationVerdict } from \"./shared/hyde/hyde.validator.js\";\nexport { NetworkGraphFactory } from \"./network/network.graph.js\";\nexport { NetworkMembershipGraphFactory } from \"./network/membership/membership.graph.js\";\nexport { IntentGraphFactory } from \"./intent/intent.graph.js\";\nexport { SemanticVerifier } from \"./intent/intent.verifier.js\";\nexport type { SemanticVerifierOutput } from \"./intent/intent.verifier.js\";\nexport { IntentNetworkGraphFactory } from \"./network/indexer/indexer.graph.js\";\nexport { MaintenanceGraphFactory } from \"./maintenance/maintenance.graph.js\";\nexport type { MaintenanceGraphDatabase, MaintenanceGraphCache, MaintenanceGraphQueue } from \"./maintenance/maintenance.graph.js\";\nexport { NegotiationGraphFactory, negotiateCandidates } from \"./negotiation/negotiation.graph.js\";\nexport { OpportunityGraphFactory } from \"./opportunity/opportunity.graph.js\";\nexport type { StampNewbornOpportunitiesFn, StampNewbornOpportunitiesInput } from \"./opportunity/opportunity.graph.js\";\nexport { EnrichmentGraphFactory } from \"./enrichment/enrichment.graph.js\";\nexport { PremiseGraphFactory } from \"./premise/premise.graph.js\";\n\n// ─── Agents ───────────────────────────────────────────────────────────────────\n\nexport { UserContextGenerator } from \"./context/context.generator.js\";\nexport type { UserContextInput, IncrementalContextInput, UserContextResult, GlobalContextInput, GlobalIncrementalContextInput } from \"./context/context.generator.js\";\nexport { ChatTitleGenerator } from \"./chat/chat.title.generator.js\";\nexport { ChatInterruptClassifier } from \"./chat/chat.interrupt.classifier.js\";\nexport type { ClassifyInterruptInput } from \"./chat/chat.interrupt.classifier.js\";\nexport { ChatSummarizer } from \"./chat/chat.summarizer.js\";\nexport type { ChatSummarizerInput, ChatSummarizerMessage } from \"./chat/chat.summarizer.js\";\nexport { HydeGenerator } from \"./shared/hyde/hyde.generator.js\";\nexport type { HydeGenerateInput, HydeGeneratorOutput } from \"./shared/hyde/hyde.generator.js\";\nexport { SuggestionGenerator } from \"./chat/chat.suggester.js\";\nexport type { SuggestionGeneratorInput } from \"./chat/chat.suggester.js\";\nexport { generateInviteMessage } from \"./contact/contact.inviter.js\";\nexport type { InviteInput, InviteOutput } from \"./contact/contact.inviter.js\";\nexport { IntentIndexer } from \"./intent/intent.indexer.js\";\nexport type { IntentIndexerOutput } from \"./intent/intent.indexer.js\";\nexport { PremiseAnalyzer } from \"./premise/premise.analyzer.js\";\nexport type { PremiseAnalyzerOutput } from \"./premise/premise.analyzer.js\";\nexport { PremiseDecomposer } from \"./premise/premise.decomposer.js\";\nexport type { PremiseDecomposerOutput, DecomposedPremise } from \"./premise/premise.decomposer.js\";\nexport { PremiseIndexer } from \"./premise/premise.indexer.js\";\nexport type { PremiseIndexerOutput } from \"./premise/premise.indexer.js\";\nexport { LensInferrer } from \"./shared/hyde/lens.inferrer.js\";\nexport type { Lens, LensInferenceInput, LensInferenceOutput, HydeTargetCorpus } from \"./shared/hyde/lens.inferrer.js\";\nexport { NegotiationInsightsGenerator } from \"./negotiation/insight.generator.js\";\nexport type { NegotiationDigest } from \"./negotiation/insight.generator.js\";\nexport { IndexNegotiator } from \"./negotiation/negotiation.agent.js\";\nexport { NegotiationScreener, configuredScreenMode, ScreenDecisionSchema, NEGOTIATION_SCREEN_MODES } from \"./negotiation/negotiation.screen.js\";\nexport type { ScreenDecision, ScreenDecisionRecord, NegotiationScreenMode, NegotiationScreenerInput } from \"./negotiation/negotiation.screen.js\";\nexport { NegotiationReflector, DistilledMemorySchema, ReflectionResultSchema, MAX_DISTILLED_MEMORIES, NEGOTIATOR_MEMORY_KINDS } from \"./negotiation/negotiation.reflect.js\";\nexport type { DistilledMemory, DistilledMemoryKind, ReflectionResult, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn } from \"./negotiation/negotiation.reflect.js\";\nexport { renderNegotiatorMemorySection, renderNegotiatorChatMemorySection } from \"./negotiation/negotiation.memory.js\";\nexport type { NegotiatorMemoryEntry, NegotiatorMemoryQuery, NegotiatorMemoryScope, NegotiatorMemoryRetrieveFn } from \"./negotiation/negotiation.memory.js\";\nexport type { NegotiationAgentInput } from \"./negotiation/negotiation.agent.js\";\nexport { QuestionerAgent } from \"./questioner/questioner.agent.js\";\nexport type { QuestionerAgentConfig } from \"./questioner/questioner.agent.js\";\nexport type { QuestionerInput, UptakeQuestionerInput, QuestionerContext, QuestionerEnqueuePayload, QuestionerEnqueueFn, DiscoveryContext, IntentContext, ProfileContext, NegotiationContext, PostStallNegotiationContext, UptakeNegotiationContext, NegotiationInflightContext, ChatContext, PoolDiscoveryContext } from \"./questioner/questioner.types.js\";\nexport { getPreset } from \"./questioner/questioner.presets.js\";\nexport { QUD_UNDERSPECIFICATION_RULES } from \"./questioner/questioner.qud.js\";\nexport { isQuestionerEnabled, isDiscoveryQuestionsEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold, discoveryQuestionsInputMode, discoveryQuestionsTimeoutMs, chatQuestionWaitTimeoutMs } from \"./questioner/questioner.env.js\";\nexport type { QuestionerPreset } from \"./questioner/questioner.presets.js\";\nexport { PoolDiscriminatorMiner } from \"./opportunity/discriminator/discriminator.miner.js\";\nexport type { PoolDiscriminatorMinerConfig } from \"./opportunity/discriminator/discriminator.miner.js\";\nexport { PoolDiscriminatorAssigner, buildAssignmentPrompt, verifyAssignedAxis } from \"./opportunity/discriminator/discriminator.assigner.js\";\nexport type { PoolDiscriminatorAssignerConfig, PoolDiscriminatorAssignmentAxis, PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis, PoolDiscriminatorCandidateAssignment } from \"./opportunity/discriminator/discriminator.assigner.js\";\nexport { runPoolDiscriminatorShadow } from \"./opportunity/discriminator/discriminator.shadow.js\";\nexport type { DiscriminatorShadowInput } from \"./opportunity/discriminator/discriminator.shadow.js\";\nexport { scoreDiscriminator, computeNovelty, cosineSimilarity } from \"./opportunity/discriminator/discriminator.scorer.js\";\nexport { 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_MIN_EVIDENCE_RATE, POOL_QUESTION_MAX_DISCRIMINATORS, POOL_QUESTION_MAX_PENDING_PER_INTENT, POOL_QUESTION_PUSH_BASE_VOI, POOL_QUESTION_PUSH_DISMISSAL_DECAY, POOL_QUESTION_PUSH_MIN_POOL_SIZE, POOL_QUESTION_PUSH_DAILY_CAP } from \"./opportunity/discriminator/discriminator.env.js\";\nexport type { PoolQuestionsMiningMode, PoolQuestionsMode, PoolQuestionsPushMode, PoolQuestionsRankingMode, PoolQuestionsStampNewbornMode, PoolQuestionsVisitTriggerMode } from \"./opportunity/discriminator/discriminator.env.js\";\nexport { poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS } from \"./opportunity/discriminator/discriminator.env.js\";\nexport { poolQuestionsRanking, POOL_ADJUSTMENT_FACTOR_OTHER, POOL_ADJUSTMENT_FACTOR_UNKNOWN, POOL_ADJUSTMENT_FLOOR, POOL_RERUN_DEBOUNCE_MS } from \"./opportunity/discriminator/discriminator.env.js\";\nexport { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment, readPoolAdjustments, readActivePoolAdjustments, poolAdjustmentMultiplier, adjustedConfidence, latestPoolDemotionDetail } from \"./opportunity/discriminator/discriminator.adjustments.js\";\nexport type { BuildPoolAdjustmentInput, PoolAdjustment, PoolAdjustmentPlanEntry, PoolAdjustmentProvenance, PoolAdjustmentSignal } from \"./opportunity/discriminator/discriminator.adjustments.js\";\nexport { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from \"./opportunity/discriminator/discriminator.question.js\";\nexport { poolQuestionCycleKey, escapePoolPushMarkdown, buildPoolQuestionPushMessage, POOL_QUESTION_PUSH_TITLE_MAX_CHARS } from \"./opportunity/discriminator/discriminator.push.js\";\nexport type { SynthesizePoolQuestionInput, SynthesizedPoolQuestion } from \"./opportunity/discriminator/discriminator.question.js\";\nexport type { QuestionPoolAssignment, QuestionPoolDiscriminator, QuestionPoolSnapshot } from \"./shared/schemas/question.schema.js\";\nexport type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator, ScoredDiscriminator, VerifiedAssignment, DiscriminatorShadowResult } from \"./opportunity/discriminator/discriminator.types.js\";\n\n// Lens C — negotiation-evidence questions (IND-433, shadow).\nexport { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_QUESTIONS_MODES, NEGOTIATION_EVIDENCE_MIN_DISTINCT_OPPORTUNITIES, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, NEGOTIATION_EVIDENCE_MAX_CONTENT_CHARS } from \"./opportunity/negotiation-evidence/negotiation-evidence.env.js\";\nexport type { NegotiationEvidenceQuestionsMode } from \"./opportunity/negotiation-evidence/negotiation-evidence.env.js\";\nexport { extractAllowlistedEvidence } from \"./opportunity/negotiation-evidence/negotiation-evidence.extractor.js\";\nexport type { ExtractionResult } from \"./opportunity/negotiation-evidence/negotiation-evidence.extractor.js\";\nexport { verifyHypotheses, evidenceSpanMatches } from \"./opportunity/negotiation-evidence/negotiation-evidence.verifier.js\";\nexport type { VerificationResult } from \"./opportunity/negotiation-evidence/negotiation-evidence.verifier.js\";\nexport { NegotiationEvidenceMiner, buildEvidencePrompt } from \"./opportunity/negotiation-evidence/negotiation-evidence.miner.js\";\nexport type { NegotiationEvidenceMinerConfig } from \"./opportunity/negotiation-evidence/negotiation-evidence.miner.js\";\nexport { runNegotiationEvidenceShadow } from \"./opportunity/negotiation-evidence/negotiation-evidence.shadow.js\";\nexport type { NegotiationEvidenceShadowInput } from \"./opportunity/negotiation-evidence/negotiation-evidence.shadow.js\";\nexport type { EvidenceKind, EvidenceSpeaker, AllowlistedEvidence, RawEvidenceTurn, RawEvidenceOutcome, RawEvidenceOwnerAnswer, RawEvidenceSegment, EvidenceMiningScope, HypothesisClaimType, ProposedSupportRef, MinedEvidenceHypothesis, VerifiedSupportRef, RetainedEvidenceHypothesis, NegotiationEvidenceTelemetry, NegotiationEvidenceShadowResult } from \"./opportunity/negotiation-evidence/negotiation-evidence.types.js\";\n\n// Lens B — outcome-question shadow (IND-434)\nexport { outcomeQuestionsMode, isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_SUPPORT, OUTCOME_MIN_COMPARED_SIDES, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS } from \"./opportunity/outcome/outcome.env.js\";\nexport type { OutcomeQuestionsMode } from \"./opportunity/outcome/outcome.env.js\";\nexport { joinOutcomeHypotheses } from \"./opportunity/outcome/outcome.hypotheses.js\";\nexport { runOutcomeShadow, deduplicateOutcomeExamples } from \"./opportunity/outcome/outcome.shadow.js\";\nexport type { OutcomeShadowInput } from \"./opportunity/outcome/outcome.shadow.js\";\nexport type { OutcomeLabel, OutcomeExample, OutcomeSideSupport, OutcomeHypothesis, OutcomeShadowResult, JoinOutcomeHypothesesInput } from \"./opportunity/outcome/outcome.types.js\";\nexport { OpportunityEvaluator } from \"./opportunity/opportunity.evaluator.js\";\nexport type { EvaluatorInput, OpportunityEvaluatorOptionsConstructor } from \"./opportunity/opportunity.evaluator.js\";\nexport { OpportunityPresenter, gatherPresenterContext } from \"./opportunity/opportunity.presenter.js\";\nexport { createOpportunityTools } from \"./opportunity/opportunity.tools.js\";\nexport { createEnrichmentTools } from \"./enrichment/enrichment.tools.js\";\nexport type { PresenterDatabase } from \"./opportunity/opportunity.presenter.js\";\n\n// ─── Support utilities ────────────────────────────────────────────────────────\n\nexport { renderNetworkContext } from './shared/network/metadata.renderer.js';\nexport { canUserSeeOpportunity, isActionableForViewer, validateOpportunityActors, classifyOpportunity, selectByComposition, selectDigestCandidates, DIGEST_REDELIVERY_COOLDOWN_DAYS, FEED_SOFT_TARGETS } from \"./opportunity/opportunity.utils.js\";\nexport type { DigestDeliveredRow } from \"./opportunity/opportunity.utils.js\";\nexport { getPrimaryActionLabel } from \"./opportunity/opportunity.labels.js\";\nexport { computeFeedHealth } from \"./opportunity/feed/feed.health.js\";\nexport type { FeedHealthInput, FeedHealthResult } from \"./opportunity/feed/feed.health.js\";\nexport { selectContactsForDiscovery, shouldRunIntroducerDiscovery, runIntroducerDiscovery, MAX_CONTACTS_PER_CYCLE, MAX_CANDIDATES_PER_CONTACT, INTRODUCER_DISCOVERY_SOURCE } from \"./opportunity/opportunity.introducer.js\";\nexport type { IntroducerDiscoveryDatabase, IntroducerDiscoveryQueue, ContactWithIntents } from \"./opportunity/opportunity.introducer.js\";\nexport { persistOpportunities } from \"./opportunity/opportunity.persist.js\";\nexport { presentOpportunity } from \"./opportunity/opportunity.presentation.js\";\nexport type { UserInfo } from \"./opportunity/opportunity.presentation.js\";\nexport { stripUuids, stripIntroducerMentions, truncateAtBoundary } from \"./opportunity/opportunity.presentation.js\";\nexport { hasUnsupportedOpportunityClaim, stripUnsupportedOpportunityClaims } from \"./opportunity/opportunity.claim-safety.js\";\nexport { safeFallbackSummary, getSafePresentationOrSkip, SAFE_FALLBACK_MAX_CHARS, DEFAULT_FALLBACK_HEADLINE, DEFAULT_FALLBACK_ACTION, DEFAULT_EMPTY_FALLBACK_TEXT } from \"./opportunity/opportunity.safe-presentation.js\";\nexport type { SafeFallbackOptions, SafePresentation, SafePresentationOptions, SafePresentationSource } from \"./opportunity/opportunity.safe-presentation.js\";\nexport { buildApiChatCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildHomeCardPresentationCacheKey } from \"./opportunity/opportunity.presentation-cache.js\";\nexport { getOrCreateDeliveryCardBatch, DELIVERY_CARD_CACHE_TTL, type CachedDeliveryCard, type OpportunityWithContext } from \"./opportunity/delivery-card.cache.js\";\n\n// ─── Tools ────────────────────────────────────────────────────────────────────\n\nexport { createToolRegistry } from \"./shared/agent/tool.registry.js\";\nexport { createAgentTools } from './agent/agent.tools.js';\nexport { AMBIENT_PARK_WINDOW_MS } from './negotiation/negotiation.tools.js';\nexport { normalizeTelegramHandle } from './shared/utils/telegram-handle.js';\n\n// ─── MCP ──────────────────────────────────────────────────────────────────────\n\nexport { createMcpServer, buildMcpOnboardingMessage, ONBOARDING_ALLOWED } from \"./mcp/mcp.server.js\";\nexport type { ScopedDepsFactory } from \"./mcp/mcp.server.js\";\nexport { buildElicitationCreate, flattenChoice } from \"./mcp/elicitation.builder.js\";\nexport { dispatchElicitations } from \"./mcp/elicitation.dispatcher.js\";\nexport type { ElicitResultLike, ElicitInputFn, DispatchElicitationsParams } from \"./mcp/elicitation.dispatcher.js\";\n\n// ─── States (for advanced graph consumers) ────────────────────────────────────\n// @experimental — internal graph-state shapes; may change in a minor release.\n\nexport type { UserNegotiationContext, NegotiationTurn, NegotiationOutcome, SeedAssessment } from \"./shared/schemas/negotiation-state.schema.js\";\nexport { NEGOTIATION_ACTIONS, AskUserPayloadSchema } from \"./shared/schemas/negotiation-state.schema.js\";\nexport type { NegotiationAction, NegotiationSeat, NegotiationProtocolVersion, AskUserPayload } from \"./shared/schemas/negotiation-state.schema.js\";\nexport type { NegotiationGraphLike } from \"./negotiation/negotiation.state.js\";\n\n// ─── Negotiation seat rules (v2 client-advocate protocol) ───────────────────\n\nexport {\n InitiatorTurnSchema,\n CounterpartyTurnSchema,\n FinalInitiatorTurnSchema,\n FinalCounterpartyTurnSchema,\n InitiatorAskUserTurnSchema,\n CounterpartyAskUserTurnSchema,\n allowedActionsFor,\n turnSchemaFor,\n isTerminalAction,\n isRejectLikeAction,\n fallbackActionFor,\n rejectActionFor,\n readProtocolVersion,\n configuredProtocolVersion,\n configuredAskUserEnabled,\n askUserAnswerWindowMs,\n DEFAULT_ASK_USER_WINDOW_MS,\n ASK_USER_LOCK_SLACK_MS,\n resolveSeat,\n seatViolationMessage,\n} from \"./negotiation/negotiation.protocol.js\";\n\n// ─── Streamers ────────────────────────────────────────────────────────────────\n\nexport { ChatStreamer } from \"./chat/chat.streamer.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAA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AkB,EAAE,MAAM,qBAAqB,CAAC;AAUrG,+EAA+E;AAE/E,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["// =============================================================================\n// @indexnetwork/protocol — public API barrel\n//\n// This file is the ONLY supported entry point. Deep imports\n// (\"@indexnetwork/protocol/src/...\") are not part of the contract and may break\n// in any release. Every symbol is re-exported explicitly (no wildcards) so the\n// surface is reviewable and changes are intentional.\n//\n// Stability tiers are defined in STABILITY.md. In short:\n// • Stable — Interfaces, Graph factories, Agents, the tool/runtime\n// helpers, and shared schemas.\n// • Experimental — Sections marked @experimental below (advanced graph state\n// types and internal helpers); may change in a minor release.\n// =============================================================================\n\n// ─── Public API (recommended for external consumers) ──────────────────────────\n\nexport { getModelName } from \"./shared/agent/model.config.js\";\nexport type { ResolvedToolContext, ToolDeps, RawToolDefinition, CompiledGraph } from \"./shared/agent/tool.helpers.js\";\nexport { ChatContextAccessError, resolveChatContext } from \"./shared/agent/tool.helpers.js\";\nexport { deriveAllowedNetworkIds, deriveDiscoveryNetworkIds } from \"./shared/agent/tool.scope.js\";\nexport type { ToolScopeType } from \"./shared/agent/tool.scope.js\";\nexport { requestContext } from \"./shared/observability/request-context.js\";\nexport { setLoggerFactory } from \"./shared/observability/log.js\";\nexport { setTimingWrapper } from \"./shared/observability/performance.js\";\nexport { getToolTimeoutPolicy, invokeToolRuntime, toolRuntimeErrorToResult } from \"./shared/agent/tool.runtime.js\";\n\n// ─── Interfaces (implement these to wire up your infrastructure) ───────────────\n\nexport type { McpAuthResolver } from \"./shared/interfaces/auth.interface.js\";\nexport type { Cache, CacheOptions, HydeCache, OpportunityCache } from \"./shared/interfaces/cache.interface.js\";\nexport type { ChatSummaryReader } from \"./shared/interfaces/chat-summary.interface.js\";\nexport type { QuestionGeneratorReader } from \"./shared/interfaces/question-generator.interface.js\";\nexport type { QuestionerDatabase, PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionsHost } from \"./shared/interfaces/questioner.interface.js\";\nexport type { NegotiationSummaryReader } from \"./shared/interfaces/negotiation-summary.interface.js\";\nexport type { DiscoveryNegotiationDigest } from \"./shared/schemas/negotiation-digest.schema.js\";\nexport { NegotiationSummarizer } from \"./negotiation/negotiation.summarizer.js\";\nexport type { ContactServiceAdapter } from \"./shared/interfaces/contact.interface.js\";\nexport type {\n ChatGraphCompositeDatabase,\n UserDatabase,\n SystemDatabase,\n OpportunityGraphDatabase,\n OpportunityControllerDatabase,\n OutcomeOutbox,\n HomeGraphDatabase,\n IntentGraphDatabase,\n HydeGraphDatabase,\n EnrichmentGraphDatabase,\n PremiseGraphDatabase,\n NegotiationGraphDatabase,\n Opportunity,\n OpportunityActor,\n OpportunityStatus,\n AssignmentNetworkMembership,\n CreateOpportunityData,\n} from \"./shared/interfaces/database.interface.js\";\nexport type { Embedder, VectorStoreOption, VectorSearchResult, HydeCandidate, HydeSearchOptions, LensEmbedding } from \"./shared/interfaces/embedder.interface.js\";\nexport type { IntegrationAdapter, IntegrationConnection, IntegrationSession, IntegrationSessionOptions, ToolActionResponse } from \"./shared/interfaces/integration.interface.js\";\nexport type { IntentGraphQueue } from \"./shared/interfaces/queue.interface.js\";\nexport type { Scraper } from \"./shared/interfaces/scraper.interface.js\";\nexport type { DiscoveryRunInput, DiscoveryRunRecord } from \"./shared/interfaces/discovery-run.interface.js\";\nexport type { EnrichmentRunInput, EnrichmentRunRecord } from \"./shared/interfaces/enrichment-run.interface.js\";\nexport type { NegotiationTimeoutQueue, AskUserExpiryPayload } from \"./shared/interfaces/negotiation-events.interface.js\";\nexport type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload } from \"./shared/interfaces/agent-dispatcher.interface.js\";\nexport { SYSTEM_AGENT_IDS } from './shared/interfaces/agent.interface.js';\n\n// ─── Shared schemas ───────────────────────────────────────────────────────────\n\nexport { ChatContextDigestSchema, type ChatContextDigest } from \"./shared/schemas/chat-context.schema.js\";\nexport {\n type Question,\n type UnderspecificationType,\n type QuestionStrategy,\n type QuestionGenerationResult,\n type QuestionPurpose,\n type QuestionPoolPush,\n type QuestionVoidedReason,\n type QuestionPoolPushRequestStatus,\n type QuestionPoolPushRequestReason,\n} from \"./shared/schemas/question.schema.js\";\nexport type { PendingQuestionSummary } from \"./shared/schemas/pending-question.schema.js\";\nexport type { McpAuthInput } from \"./shared/schemas/mcp-auth.schema.js\";\nexport type { DiscoverySummary, DiscoveryNegotiation, DiscoveryTurn, DiscoveryOutcome, DiscoveryQuestionInput, NegotiationRole } from \"./shared/schemas/discovery-question.schema.js\";\nexport type { NetworkAssignmentMetadata } from \"./shared/schemas/network-assignment.schema.js\";\nexport { DEFAULT_NETWORK_ASSIGNMENT_THRESHOLD, resolveAssignmentNetworkScope, buildNetworkAssignmentDecision } from \"./shared/assignment/network-assignment.policy.js\";\nexport { buildCandidateEvidence } from \"./opportunity/opportunity.evidence.js\";\n\n// ─── Graph factories ──────────────────────────────────────────────────────────\n\nexport { ChatGraphFactory } from \"./chat/chat.graph.js\";\nexport { type ChatPersonaConfig } from \"./chat/chat.persona.js\";\nexport { NEGOTIATOR_PERSONA_ID, createNegotiatorPersona } from \"./chat/negotiator.persona.js\";\nexport { HomeGraphFactory } from \"./opportunity/feed/feed.graph.js\";\nexport { HydeGraphFactory } from \"./shared/hyde/hyde.graph.js\";\nexport { NetworkGraphFactory } from \"./network/network.graph.js\";\nexport { NetworkMembershipGraphFactory } from \"./network/membership/membership.graph.js\";\nexport { IntentGraphFactory } from \"./intent/intent.graph.js\";\nexport { SemanticVerifier } from \"./intent/intent.verifier.js\";\nexport { IntentNetworkGraphFactory } from \"./network/indexer/indexer.graph.js\";\nexport { MaintenanceGraphFactory } from \"./maintenance/maintenance.graph.js\";\nexport type { MaintenanceGraphDatabase, MaintenanceGraphCache, MaintenanceGraphQueue } from \"./maintenance/maintenance.graph.js\";\nexport { NegotiationGraphFactory, negotiateCandidates } from \"./negotiation/negotiation.graph.js\";\nexport { OpportunityGraphFactory } from \"./opportunity/opportunity.graph.js\";\nexport type { StampNewbornOpportunitiesFn } from \"./opportunity/opportunity.graph.js\";\nexport { EnrichmentGraphFactory } from \"./enrichment/enrichment.graph.js\";\nexport { PremiseGraphFactory } from \"./premise/premise.graph.js\";\n\n// ─── Agents ───────────────────────────────────────────────────────────────────\n\nexport { UserContextGenerator } from \"./context/context.generator.js\";\nexport { ChatTitleGenerator } from \"./chat/chat.title.generator.js\";\nexport { ChatInterruptClassifier } from \"./chat/chat.interrupt.classifier.js\";\nexport { ChatSummarizer } from \"./chat/chat.summarizer.js\";\nexport { HydeGenerator } from \"./shared/hyde/hyde.generator.js\";\nexport { SuggestionGenerator } from \"./chat/chat.suggester.js\";\nexport { generateInviteMessage } from \"./contact/contact.inviter.js\";\nexport { IntentIndexer } from \"./intent/intent.indexer.js\";\nexport type { IntentIndexerOutput } from \"./intent/intent.indexer.js\";\nexport { LensInferrer } from \"./shared/hyde/lens.inferrer.js\";\nexport { NegotiationInsightsGenerator } from \"./negotiation/insight.generator.js\";\nexport type { NegotiationDigest } from \"./negotiation/insight.generator.js\";\nexport { IndexNegotiator } from \"./negotiation/negotiation.agent.js\";\nexport { NegotiationScreener } from \"./negotiation/negotiation.screen.js\";\nexport { NegotiationReflector } from \"./negotiation/negotiation.reflect.js\";\nexport type { DistilledMemory, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn } from \"./negotiation/negotiation.reflect.js\";\nexport type { NegotiatorMemoryEntry } from \"./negotiation/negotiation.memory.js\";\nexport { QuestionerAgent } from \"./questioner/questioner.agent.js\";\nexport type { QuestionerInput, UptakeQuestionerInput, QuestionerEnqueuePayload, QuestionerEnqueueFn, PoolDiscoveryContext } from \"./questioner/questioner.types.js\";\nexport { isQuestionerEnabled, isUptakeGuardEnabled, uptakeAuthorityThreshold } from \"./questioner/questioner.env.js\";\nexport { PoolDiscriminatorMiner } from \"./opportunity/discriminator/discriminator.miner.js\";\nexport { PoolDiscriminatorAssigner } from \"./opportunity/discriminator/discriminator.assigner.js\";\nexport type { PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis } from \"./opportunity/discriminator/discriminator.assigner.js\";\nexport { runPoolDiscriminatorShadow } from \"./opportunity/discriminator/discriminator.shadow.js\";\nexport {\n poolQuestionsMiningMode,\n poolQuestionsMode,\n poolQuestionsPushMode,\n poolQuestionsStampNewborn,\n POOL_DISCRIMINATOR_MIN_POOL_SIZE,\n POOL_DISCRIMINATOR_MAX_CANDIDATES,\n POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS,\n POOL_QUESTION_MIN_VOI,\n POOL_QUESTION_MAX_PENDING_PER_INTENT,\n} from \"./opportunity/discriminator/discriminator.env.js\";\nexport { poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS } from \"./opportunity/discriminator/discriminator.env.js\";\nexport { poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS } from \"./opportunity/discriminator/discriminator.env.js\";\nexport { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment } from \"./opportunity/discriminator/discriminator.adjustments.js\";\nexport type { PoolAdjustment, PoolAdjustmentSignal } from \"./opportunity/discriminator/discriminator.adjustments.js\";\nexport { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from \"./opportunity/discriminator/discriminator.question.js\";\nexport { poolQuestionCycleKey, buildPoolQuestionPushMessage } from \"./opportunity/discriminator/discriminator.push.js\";\nexport type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from \"./shared/schemas/question.schema.js\";\nexport type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator } from \"./opportunity/discriminator/discriminator.types.js\";\n\n// Lens C — negotiation-evidence questions (IND-433, shadow).\nexport { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES } from \"./opportunity/negotiation-evidence/negotiation-evidence.env.js\";\nexport { NegotiationEvidenceMiner } from \"./opportunity/negotiation-evidence/negotiation-evidence.miner.js\";\nexport { runNegotiationEvidenceShadow } from \"./opportunity/negotiation-evidence/negotiation-evidence.shadow.js\";\nexport type { RawEvidenceTurn, RawEvidenceOutcome, RawEvidenceSegment } from \"./opportunity/negotiation-evidence/negotiation-evidence.types.js\";\n\n// Lens B — outcome-question shadow (IND-434)\nexport { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS } from \"./opportunity/outcome/outcome.env.js\";\nexport { runOutcomeShadow } from \"./opportunity/outcome/outcome.shadow.js\";\nexport type { OutcomeLabel, OutcomeExample, OutcomeShadowResult } from \"./opportunity/outcome/outcome.types.js\";\nexport { OpportunityEvaluator } from \"./opportunity/opportunity.evaluator.js\";\nexport type { EvaluatorInput } from \"./opportunity/opportunity.evaluator.js\";\nexport { OpportunityPresenter, gatherPresenterContext } from \"./opportunity/opportunity.presenter.js\";\nexport { createOpportunityTools } from \"./opportunity/opportunity.tools.js\";\nexport { createEnrichmentTools } from \"./enrichment/enrichment.tools.js\";\nexport type { PresenterDatabase } from \"./opportunity/opportunity.presenter.js\";\n\n// ─── Support utilities ────────────────────────────────────────────────────────\n\nexport { canUserSeeOpportunity, isActionableForViewer, validateOpportunityActors, classifyOpportunity, selectByComposition, FEED_SOFT_TARGETS } from \"./opportunity/opportunity.utils.js\";\nexport { getPrimaryActionLabel } from \"./opportunity/opportunity.labels.js\";\nexport { computeFeedHealth } from \"./opportunity/feed/feed.health.js\";\nexport type { FeedHealthInput } from \"./opportunity/feed/feed.health.js\";\nexport { selectContactsForDiscovery, shouldRunIntroducerDiscovery, runIntroducerDiscovery, MAX_CONTACTS_PER_CYCLE, MAX_CANDIDATES_PER_CONTACT, INTRODUCER_DISCOVERY_SOURCE } from \"./opportunity/opportunity.introducer.js\";\nexport type { IntroducerDiscoveryDatabase, IntroducerDiscoveryQueue, ContactWithIntents } from \"./opportunity/opportunity.introducer.js\";\nexport { persistOpportunities } from \"./opportunity/opportunity.persist.js\";\nexport { presentOpportunity } from \"./opportunity/opportunity.presentation.js\";\nexport type { UserInfo } from \"./opportunity/opportunity.presentation.js\";\nexport { stripUuids, truncateAtBoundary } from \"./opportunity/opportunity.presentation.js\";\nexport { stripUnsupportedOpportunityClaims } from \"./opportunity/opportunity.claim-safety.js\";\nexport { safeFallbackSummary } from \"./opportunity/opportunity.safe-presentation.js\";\nexport { buildApiChatCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildHomeCardPresentationCacheKey } from \"./opportunity/opportunity.presentation-cache.js\";\nexport { getOrCreateDeliveryCardBatch } from \"./opportunity/delivery-card.cache.js\";\n\n// ─── Tools ────────────────────────────────────────────────────────────────────\n\nexport { createToolRegistry } from \"./shared/agent/tool.registry.js\";\nexport { AMBIENT_PARK_WINDOW_MS } from './negotiation/negotiation.tools.js';\nexport { normalizeTelegramHandle } from './shared/utils/telegram-handle.js';\n\n// ─── MCP ──────────────────────────────────────────────────────────────────────\n\nexport { createMcpServer, buildMcpOnboardingMessage, ONBOARDING_ALLOWED } from \"./mcp/mcp.server.js\";\nexport type { ScopedDepsFactory } from \"./mcp/mcp.server.js\";\n\n// ─── States (for advanced graph consumers) ────────────────────────────────────\n// @experimental — internal graph-state shapes; may change in a minor release.\n\nexport type { UserNegotiationContext, NegotiationTurn, NegotiationOutcome, SeedAssessment } from \"./shared/schemas/negotiation-state.schema.js\";\nexport type { NegotiationAction, NegotiationSeat, NegotiationProtocolVersion } from \"./shared/schemas/negotiation-state.schema.js\";\nexport type { NegotiationGraphLike } from \"./negotiation/negotiation.state.js\";\n\n// ─── Negotiation seat rules (v2 client-advocate protocol) ───────────────────\n\nexport { allowedActionsFor, isTerminalAction, isRejectLikeAction, readProtocolVersion, resolveSeat, seatViolationMessage } from \"./negotiation/negotiation.protocol.js\";\n\n"]}
|
|
@@ -25,16 +25,16 @@ export declare class IntentGraphFactory {
|
|
|
25
25
|
userProfile: string;
|
|
26
26
|
inputContent: string | undefined;
|
|
27
27
|
conversationContext: import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined;
|
|
28
|
-
operationMode: "
|
|
28
|
+
operationMode: "delete" | "update" | "propose" | "create" | "read";
|
|
29
29
|
targetIntentIds: string[] | undefined;
|
|
30
30
|
networkId: string | undefined;
|
|
31
31
|
scopeType: import("../index.js").ToolScopeType | undefined;
|
|
32
32
|
scopeId: string | undefined;
|
|
33
33
|
activeIntents: string;
|
|
34
34
|
inferredIntents: {
|
|
35
|
+
reasoning: string;
|
|
35
36
|
type: "goal" | "tombstone";
|
|
36
37
|
confidence: "low" | "medium" | "high";
|
|
37
|
-
reasoning: string;
|
|
38
38
|
description: string;
|
|
39
39
|
}[];
|
|
40
40
|
verifiedIntents: VerifiedIntent[];
|
|
@@ -68,21 +68,21 @@ export declare class IntentGraphFactory {
|
|
|
68
68
|
userProfile?: string | undefined;
|
|
69
69
|
inputContent?: string | undefined;
|
|
70
70
|
conversationContext?: import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined;
|
|
71
|
-
operationMode?: "
|
|
71
|
+
operationMode?: "delete" | "update" | "propose" | "create" | "read" | import("@langchain/langgraph").OverwriteValue<"delete" | "update" | "propose" | "create" | "read"> | undefined;
|
|
72
72
|
targetIntentIds?: string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined;
|
|
73
73
|
networkId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
74
74
|
scopeType?: import("../index.js").ToolScopeType | import("@langchain/langgraph").OverwriteValue<import("../index.js").ToolScopeType | undefined> | undefined;
|
|
75
75
|
scopeId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
76
76
|
activeIntents?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
77
77
|
inferredIntents?: {
|
|
78
|
+
reasoning: string;
|
|
78
79
|
type: "goal" | "tombstone";
|
|
79
80
|
confidence: "low" | "medium" | "high";
|
|
80
|
-
reasoning: string;
|
|
81
81
|
description: string;
|
|
82
82
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
83
|
+
reasoning: string;
|
|
83
84
|
type: "goal" | "tombstone";
|
|
84
85
|
confidence: "low" | "medium" | "high";
|
|
85
|
-
reasoning: string;
|
|
86
86
|
description: string;
|
|
87
87
|
}[]> | undefined;
|
|
88
88
|
verifiedIntents?: VerifiedIntent[] | import("@langchain/langgraph").OverwriteValue<VerifiedIntent[]> | undefined;
|
|
@@ -127,7 +127,7 @@ export declare class IntentGraphFactory {
|
|
|
127
127
|
message?: string;
|
|
128
128
|
networkId?: string;
|
|
129
129
|
} | undefined> | undefined;
|
|
130
|
-
}, "query" | "
|
|
130
|
+
}, "query" | "inference" | "verification" | "__start__" | "prep" | "reconciler" | "executor", {
|
|
131
131
|
userId: {
|
|
132
132
|
(annotation: import("@langchain/langgraph").SingleReducer<string, string>): import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
133
133
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
@@ -144,26 +144,26 @@ export declare class IntentGraphFactory {
|
|
|
144
144
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
145
145
|
};
|
|
146
146
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
147
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"
|
|
147
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "update" | "propose" | "create" | "read", "delete" | "update" | "propose" | "create" | "read" | import("@langchain/langgraph").OverwriteValue<"delete" | "update" | "propose" | "create" | "read">, unknown>;
|
|
148
148
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
149
149
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
150
150
|
scopeType: import("@langchain/langgraph").BaseChannel<import("../index.js").ToolScopeType | undefined, import("../index.js").ToolScopeType | import("@langchain/langgraph").OverwriteValue<import("../index.js").ToolScopeType | undefined> | undefined, unknown>;
|
|
151
151
|
scopeId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
152
152
|
activeIntents: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
153
153
|
inferredIntents: import("@langchain/langgraph").BaseChannel<{
|
|
154
|
+
reasoning: string;
|
|
154
155
|
type: "goal" | "tombstone";
|
|
155
156
|
confidence: "low" | "medium" | "high";
|
|
156
|
-
reasoning: string;
|
|
157
157
|
description: string;
|
|
158
158
|
}[], {
|
|
159
|
+
reasoning: string;
|
|
159
160
|
type: "goal" | "tombstone";
|
|
160
161
|
confidence: "low" | "medium" | "high";
|
|
161
|
-
reasoning: string;
|
|
162
162
|
description: string;
|
|
163
163
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
164
|
+
reasoning: string;
|
|
164
165
|
type: "goal" | "tombstone";
|
|
165
166
|
confidence: "low" | "medium" | "high";
|
|
166
|
-
reasoning: string;
|
|
167
167
|
description: string;
|
|
168
168
|
}[]>, unknown>;
|
|
169
169
|
verifiedIntents: import("@langchain/langgraph").BaseChannel<VerifiedIntent[], VerifiedIntent[] | import("@langchain/langgraph").OverwriteValue<VerifiedIntent[]>, unknown>;
|
|
@@ -241,26 +241,26 @@ export declare class IntentGraphFactory {
|
|
|
241
241
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
242
242
|
};
|
|
243
243
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
244
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"
|
|
244
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "update" | "propose" | "create" | "read", "delete" | "update" | "propose" | "create" | "read" | import("@langchain/langgraph").OverwriteValue<"delete" | "update" | "propose" | "create" | "read">, unknown>;
|
|
245
245
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
246
246
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
247
247
|
scopeType: import("@langchain/langgraph").BaseChannel<import("../index.js").ToolScopeType | undefined, import("../index.js").ToolScopeType | import("@langchain/langgraph").OverwriteValue<import("../index.js").ToolScopeType | undefined> | undefined, unknown>;
|
|
248
248
|
scopeId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
249
249
|
activeIntents: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
250
250
|
inferredIntents: import("@langchain/langgraph").BaseChannel<{
|
|
251
|
+
reasoning: string;
|
|
251
252
|
type: "goal" | "tombstone";
|
|
252
253
|
confidence: "low" | "medium" | "high";
|
|
253
|
-
reasoning: string;
|
|
254
254
|
description: string;
|
|
255
255
|
}[], {
|
|
256
|
+
reasoning: string;
|
|
256
257
|
type: "goal" | "tombstone";
|
|
257
258
|
confidence: "low" | "medium" | "high";
|
|
258
|
-
reasoning: string;
|
|
259
259
|
description: string;
|
|
260
260
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
261
|
+
reasoning: string;
|
|
261
262
|
type: "goal" | "tombstone";
|
|
262
263
|
confidence: "low" | "medium" | "high";
|
|
263
|
-
reasoning: string;
|
|
264
264
|
description: string;
|
|
265
265
|
}[]>, unknown>;
|
|
266
266
|
verifiedIntents: import("@langchain/langgraph").BaseChannel<VerifiedIntent[], VerifiedIntent[] | import("@langchain/langgraph").OverwriteValue<VerifiedIntent[]>, unknown>;
|
|
@@ -377,9 +377,9 @@ export declare class IntentGraphFactory {
|
|
|
377
377
|
};
|
|
378
378
|
inference: {
|
|
379
379
|
inferredIntents: {
|
|
380
|
+
reasoning: string;
|
|
380
381
|
type: "goal" | "tombstone";
|
|
381
382
|
confidence: "low" | "medium" | "high";
|
|
382
|
-
reasoning: string;
|
|
383
383
|
description: string;
|
|
384
384
|
}[];
|
|
385
385
|
agentTimings: DebugMetaAgent[];
|
|
@@ -428,26 +428,26 @@ export declare class IntentGraphFactory {
|
|
|
428
428
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
429
429
|
};
|
|
430
430
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
431
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"
|
|
431
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "update" | "propose" | "create" | "read", "delete" | "update" | "propose" | "create" | "read" | import("@langchain/langgraph").OverwriteValue<"delete" | "update" | "propose" | "create" | "read">, unknown>;
|
|
432
432
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
433
433
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
434
434
|
scopeType: import("@langchain/langgraph").BaseChannel<import("../index.js").ToolScopeType | undefined, import("../index.js").ToolScopeType | import("@langchain/langgraph").OverwriteValue<import("../index.js").ToolScopeType | undefined> | undefined, unknown>;
|
|
435
435
|
scopeId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
436
436
|
activeIntents: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
437
437
|
inferredIntents: import("@langchain/langgraph").BaseChannel<{
|
|
438
|
+
reasoning: string;
|
|
438
439
|
type: "goal" | "tombstone";
|
|
439
440
|
confidence: "low" | "medium" | "high";
|
|
440
|
-
reasoning: string;
|
|
441
441
|
description: string;
|
|
442
442
|
}[], {
|
|
443
|
+
reasoning: string;
|
|
443
444
|
type: "goal" | "tombstone";
|
|
444
445
|
confidence: "low" | "medium" | "high";
|
|
445
|
-
reasoning: string;
|
|
446
446
|
description: string;
|
|
447
447
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
448
|
+
reasoning: string;
|
|
448
449
|
type: "goal" | "tombstone";
|
|
449
450
|
confidence: "low" | "medium" | "high";
|
|
450
|
-
reasoning: string;
|
|
451
451
|
description: string;
|
|
452
452
|
}[]>, unknown>;
|
|
453
453
|
verifiedIntents: import("@langchain/langgraph").BaseChannel<VerifiedIntent[], VerifiedIntent[] | import("@langchain/langgraph").OverwriteValue<VerifiedIntent[]>, unknown>;
|
|
@@ -4,13 +4,13 @@ export declare const IntentIndexerOutputSchema: z.ZodObject<{
|
|
|
4
4
|
memberScore: z.ZodNumber;
|
|
5
5
|
reasoning: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
reasoning: string;
|
|
7
8
|
indexScore: number;
|
|
8
9
|
memberScore: number;
|
|
9
|
-
reasoning: string;
|
|
10
10
|
}, {
|
|
11
|
+
reasoning: string;
|
|
11
12
|
indexScore: number;
|
|
12
13
|
memberScore: number;
|
|
13
|
-
reasoning: string;
|
|
14
14
|
}>;
|
|
15
15
|
/**
|
|
16
16
|
* Output structure for the Intent Indexer agent.
|
|
@@ -75,9 +75,9 @@ export declare class IntentIndexer {
|
|
|
75
75
|
sourceName?: string | null | undefined;
|
|
76
76
|
networkContext?: string | null | undefined;
|
|
77
77
|
}, {
|
|
78
|
+
reasoning: string;
|
|
78
79
|
indexScore: number;
|
|
79
80
|
memberScore: number;
|
|
80
|
-
reasoning: string;
|
|
81
81
|
} | null, unknown, "intent_indexer">;
|
|
82
82
|
}
|
|
83
83
|
//# sourceMappingURL=intent.indexer.d.ts.map
|
|
@@ -30,14 +30,14 @@ declare const InferredIntentSchema: z.ZodObject<{
|
|
|
30
30
|
reasoning: z.ZodString;
|
|
31
31
|
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
reasoning: string;
|
|
33
34
|
type: "goal" | "tombstone";
|
|
34
35
|
confidence: "low" | "medium" | "high";
|
|
35
|
-
reasoning: string;
|
|
36
36
|
description: string;
|
|
37
37
|
}, {
|
|
38
|
+
reasoning: string;
|
|
38
39
|
type: "goal" | "tombstone";
|
|
39
40
|
confidence: "low" | "medium" | "high";
|
|
40
|
-
reasoning: string;
|
|
41
41
|
description: string;
|
|
42
42
|
}>;
|
|
43
43
|
export type InferredIntent = z.infer<typeof InferredIntentSchema>;
|
|
@@ -52,9 +52,9 @@ export declare class ExplicitIntentInferrer {
|
|
|
52
52
|
*/
|
|
53
53
|
invoke(content: string | null, profileContext: string, options?: InferrerOptions): Promise<{
|
|
54
54
|
intents: {
|
|
55
|
+
reasoning: string;
|
|
55
56
|
type: "goal" | "tombstone";
|
|
56
57
|
confidence: "low" | "medium" | "high";
|
|
57
|
-
reasoning: string;
|
|
58
58
|
description: string;
|
|
59
59
|
}[];
|
|
60
60
|
}>;
|
|
@@ -71,22 +71,22 @@ export declare class ExplicitIntentInferrer {
|
|
|
71
71
|
content: z.ZodNullable<z.ZodString>;
|
|
72
72
|
profileContext: z.ZodString;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
content: string | null;
|
|
75
74
|
profileContext: string;
|
|
76
|
-
}, {
|
|
77
75
|
content: string | null;
|
|
76
|
+
}, {
|
|
78
77
|
profileContext: string;
|
|
79
|
-
}>, {
|
|
80
78
|
content: string | null;
|
|
79
|
+
}>, {
|
|
81
80
|
profileContext: string;
|
|
82
|
-
}, {
|
|
83
81
|
content: string | null;
|
|
82
|
+
}, {
|
|
84
83
|
profileContext: string;
|
|
84
|
+
content: string | null;
|
|
85
85
|
}, {
|
|
86
86
|
intents: {
|
|
87
|
+
reasoning: string;
|
|
87
88
|
type: "goal" | "tombstone";
|
|
88
89
|
confidence: "low" | "medium" | "high";
|
|
89
|
-
reasoning: string;
|
|
90
90
|
description: string;
|
|
91
91
|
}[];
|
|
92
92
|
}, unknown, "explicit_intent_inferrer">;
|
|
@@ -8,21 +8,21 @@ declare const CreateIntentActionSchema: z.ZodObject<{
|
|
|
8
8
|
referentialAnchor: z.ZodNullable<z.ZodString>;
|
|
9
9
|
semanticEntropy: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
reasoning: string | null;
|
|
11
12
|
type: "create" | "CREATE";
|
|
12
13
|
score: number | null;
|
|
13
14
|
payload: string;
|
|
14
15
|
semanticEntropy: number | null;
|
|
15
16
|
referentialAnchor: string | null;
|
|
16
17
|
intentMode: "REFERENTIAL" | "ATTRIBUTIVE" | null;
|
|
17
|
-
reasoning: string | null;
|
|
18
18
|
}, {
|
|
19
|
+
reasoning: string | null;
|
|
19
20
|
type: "create" | "CREATE";
|
|
20
21
|
score: number | null;
|
|
21
22
|
payload: string;
|
|
22
23
|
semanticEntropy: number | null;
|
|
23
24
|
referentialAnchor: string | null;
|
|
24
25
|
intentMode: "REFERENTIAL" | "ATTRIBUTIVE" | null;
|
|
25
|
-
reasoning: string | null;
|
|
26
26
|
}>;
|
|
27
27
|
declare const UpdateIntentActionSchema: z.ZodObject<{
|
|
28
28
|
type: z.ZodUnion<[z.ZodLiteral<"update">, z.ZodLiteral<"UPDATE">]>;
|
|
@@ -32,32 +32,32 @@ declare const UpdateIntentActionSchema: z.ZodObject<{
|
|
|
32
32
|
reasoning: z.ZodNullable<z.ZodString>;
|
|
33
33
|
intentMode: z.ZodNullable<z.ZodEnum<["REFERENTIAL", "ATTRIBUTIVE"]>>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
reasoning: string | null;
|
|
36
|
+
id: string;
|
|
35
37
|
type: "update" | "UPDATE";
|
|
36
38
|
score: number | null;
|
|
37
39
|
payload: string;
|
|
38
40
|
intentMode: "REFERENTIAL" | "ATTRIBUTIVE" | null;
|
|
41
|
+
}, {
|
|
39
42
|
reasoning: string | null;
|
|
40
43
|
id: string;
|
|
41
|
-
}, {
|
|
42
44
|
type: "update" | "UPDATE";
|
|
43
45
|
score: number | null;
|
|
44
46
|
payload: string;
|
|
45
47
|
intentMode: "REFERENTIAL" | "ATTRIBUTIVE" | null;
|
|
46
|
-
reasoning: string | null;
|
|
47
|
-
id: string;
|
|
48
48
|
}>;
|
|
49
49
|
declare const ExpireIntentActionSchema: z.ZodObject<{
|
|
50
50
|
type: z.ZodUnion<[z.ZodLiteral<"expire">, z.ZodLiteral<"EXPIRE">]>;
|
|
51
51
|
id: z.ZodString;
|
|
52
52
|
reason: z.ZodString;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
id: string;
|
|
54
55
|
type: "expire" | "EXPIRE";
|
|
55
56
|
reason: string;
|
|
56
|
-
id: string;
|
|
57
57
|
}, {
|
|
58
|
+
id: string;
|
|
58
59
|
type: "expire" | "EXPIRE";
|
|
59
60
|
reason: string;
|
|
60
|
-
id: string;
|
|
61
61
|
}>;
|
|
62
62
|
export type NormalizedIntentAction = Omit<z.infer<typeof CreateIntentActionSchema>, "type"> & {
|
|
63
63
|
type: "create";
|
|
@@ -87,17 +87,17 @@ export declare class IntentReconciler {
|
|
|
87
87
|
inferredIntents: z.ZodString;
|
|
88
88
|
activeIntents: z.ZodString;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
inferredIntents: string;
|
|
91
90
|
activeIntents: string;
|
|
92
|
-
}, {
|
|
93
91
|
inferredIntents: string;
|
|
92
|
+
}, {
|
|
94
93
|
activeIntents: string;
|
|
95
|
-
}>, {
|
|
96
94
|
inferredIntents: string;
|
|
95
|
+
}>, {
|
|
97
96
|
activeIntents: string;
|
|
98
|
-
}, {
|
|
99
97
|
inferredIntents: string;
|
|
98
|
+
}, {
|
|
100
99
|
activeIntents: string;
|
|
100
|
+
inferredIntents: string;
|
|
101
101
|
}, {
|
|
102
102
|
actions: NormalizedIntentAction[];
|
|
103
103
|
}, unknown, "intent_reconciler">;
|
|
@@ -75,7 +75,7 @@ export declare const IntentGraphState: import("@langchain/langgraph").Annotation
|
|
|
75
75
|
*
|
|
76
76
|
* Defaults to 'create' for backward compatibility.
|
|
77
77
|
*/
|
|
78
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"
|
|
78
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "update" | "propose" | "create" | "read", "delete" | "update" | "propose" | "create" | "read" | import("@langchain/langgraph").OverwriteValue<"delete" | "update" | "propose" | "create" | "read">, unknown>;
|
|
79
79
|
/**
|
|
80
80
|
* For update/delete operations, specifies which intent IDs to target.
|
|
81
81
|
* Optional - used when modifying or removing specific intents.
|
|
@@ -100,19 +100,19 @@ export declare const IntentGraphState: import("@langchain/langgraph").Annotation
|
|
|
100
100
|
* List of raw intents extracted from text.
|
|
101
101
|
*/
|
|
102
102
|
inferredIntents: import("@langchain/langgraph").BaseChannel<{
|
|
103
|
+
reasoning: string;
|
|
103
104
|
type: "goal" | "tombstone";
|
|
104
105
|
confidence: "low" | "medium" | "high";
|
|
105
|
-
reasoning: string;
|
|
106
106
|
description: string;
|
|
107
107
|
}[], {
|
|
108
|
+
reasoning: string;
|
|
108
109
|
type: "goal" | "tombstone";
|
|
109
110
|
confidence: "low" | "medium" | "high";
|
|
110
|
-
reasoning: string;
|
|
111
111
|
description: string;
|
|
112
112
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
113
|
+
reasoning: string;
|
|
113
114
|
type: "goal" | "tombstone";
|
|
114
115
|
confidence: "low" | "medium" | "high";
|
|
115
|
-
reasoning: string;
|
|
116
116
|
description: string;
|
|
117
117
|
}[]>, unknown>;
|
|
118
118
|
/**
|
|
@@ -9,13 +9,13 @@ declare const responseFormat: z.ZodObject<{
|
|
|
9
9
|
authority: z.ZodNumber;
|
|
10
10
|
sincerity: z.ZodNumber;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
sincerity: number;
|
|
12
13
|
clarity: number;
|
|
13
14
|
authority: number;
|
|
14
|
-
sincerity: number;
|
|
15
15
|
}, {
|
|
16
|
+
sincerity: number;
|
|
16
17
|
clarity: number;
|
|
17
18
|
authority: number;
|
|
18
|
-
sincerity: number;
|
|
19
19
|
}>;
|
|
20
20
|
semantic_entropy: z.ZodNumber;
|
|
21
21
|
referential_anchor: z.ZodNullable<z.ZodString>;
|
|
@@ -27,9 +27,9 @@ declare const responseFormat: z.ZodObject<{
|
|
|
27
27
|
reasoning: string;
|
|
28
28
|
classification: "COMMISSIVE" | "DIRECTIVE" | "ASSERTIVE" | "EXPRESSIVE" | "DECLARATION" | "UNKNOWN";
|
|
29
29
|
felicity_scores: {
|
|
30
|
+
sincerity: number;
|
|
30
31
|
clarity: number;
|
|
31
32
|
authority: number;
|
|
32
|
-
sincerity: number;
|
|
33
33
|
};
|
|
34
34
|
semantic_entropy: number;
|
|
35
35
|
referential_anchor: string | null;
|
|
@@ -41,9 +41,9 @@ declare const responseFormat: z.ZodObject<{
|
|
|
41
41
|
reasoning: string;
|
|
42
42
|
classification: "COMMISSIVE" | "DIRECTIVE" | "ASSERTIVE" | "EXPRESSIVE" | "DECLARATION" | "UNKNOWN";
|
|
43
43
|
felicity_scores: {
|
|
44
|
+
sincerity: number;
|
|
44
45
|
clarity: number;
|
|
45
46
|
authority: number;
|
|
46
|
-
sincerity: number;
|
|
47
47
|
};
|
|
48
48
|
semantic_entropy: number;
|
|
49
49
|
referential_anchor: string | null;
|
|
@@ -67,9 +67,9 @@ export declare class SemanticVerifier {
|
|
|
67
67
|
reasoning: string;
|
|
68
68
|
classification: "COMMISSIVE" | "DIRECTIVE" | "ASSERTIVE" | "EXPRESSIVE" | "DECLARATION" | "UNKNOWN";
|
|
69
69
|
felicity_scores: {
|
|
70
|
+
sincerity: number;
|
|
70
71
|
clarity: number;
|
|
71
72
|
authority: number;
|
|
72
|
-
sincerity: number;
|
|
73
73
|
};
|
|
74
74
|
semantic_entropy: number;
|
|
75
75
|
referential_anchor: string | null;
|
|
@@ -100,9 +100,9 @@ export declare class SemanticVerifier {
|
|
|
100
100
|
reasoning: string;
|
|
101
101
|
classification: "COMMISSIVE" | "DIRECTIVE" | "ASSERTIVE" | "EXPRESSIVE" | "DECLARATION" | "UNKNOWN";
|
|
102
102
|
felicity_scores: {
|
|
103
|
+
sincerity: number;
|
|
103
104
|
clarity: number;
|
|
104
105
|
authority: number;
|
|
105
|
-
sincerity: number;
|
|
106
106
|
};
|
|
107
107
|
semantic_entropy: number;
|
|
108
108
|
referential_anchor: string | null;
|
|
@@ -148,7 +148,7 @@ export declare class NegotiationGraphFactory {
|
|
|
148
148
|
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
149
149
|
} | null> | null | undefined;
|
|
150
150
|
error?: string | import("@langchain/langgraph").OverwriteValue<string | null> | null | undefined;
|
|
151
|
-
}, "
|
|
151
|
+
}, "screen" | "turn" | "__start__" | "init" | "finalize", {
|
|
152
152
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
153
153
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
154
154
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|