@indexnetwork/protocol 11.0.0-rc.454.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/dist/capabilities/contacts.facade.d.ts +1 -1
  3. package/dist/capabilities/integrations.facade.d.ts +1 -1
  4. package/dist/capabilities/participant-agents.facade.d.ts +2 -2
  5. package/dist/capabilities/participant-agents.facade.js +1 -1
  6. package/dist/capabilities/questions.facade.d.ts +2 -2
  7. package/dist/capabilities/questions.facade.js +1 -1
  8. package/dist/chat/chat-streaming.types.d.ts +1 -1
  9. package/dist/chat/chat.agent.d.ts +1 -1
  10. package/dist/contacts/domain/contact.types.d.ts +0 -2
  11. package/dist/contacts/domain/contact.types.js +0 -2
  12. package/dist/contacts/domain/index.d.ts +0 -2
  13. package/dist/contacts/index.d.ts +1 -2
  14. package/dist/contacts/index.js +1 -2
  15. package/dist/contacts/ports/contact.tools.port.d.ts +3 -5
  16. package/dist/contacts/ports/contact.tools.port.js +3 -5
  17. package/dist/contacts/ports/index.d.ts +0 -2
  18. package/dist/contacts/ports/index.js +0 -2
  19. package/dist/enrichment/enrichment.graph.d.ts +4 -4
  20. package/dist/enrichment/enrichment.state.d.ts +1 -1
  21. package/dist/index.d.ts +6 -7
  22. package/dist/index.js +2 -2
  23. package/dist/integrations/domain/index.d.ts +0 -2
  24. package/dist/integrations/domain/integration.types.d.ts +0 -2
  25. package/dist/integrations/domain/integration.types.js +0 -2
  26. package/dist/integrations/index.d.ts +1 -2
  27. package/dist/integrations/index.js +1 -2
  28. package/dist/integrations/ports/index.d.ts +0 -2
  29. package/dist/integrations/ports/index.js +0 -2
  30. package/dist/integrations/ports/integration.tools.port.d.ts +3 -5
  31. package/dist/integrations/ports/integration.tools.port.js +3 -5
  32. package/dist/mcp/elicitation.builder.d.ts +1 -1
  33. package/dist/mcp/elicitation.dispatcher.d.ts +1 -1
  34. package/dist/opportunity/application/opportunity.graph.d.ts +5 -5
  35. package/dist/opportunity/discriminator/discriminator.adjustments.d.ts +1 -1
  36. package/dist/opportunity/discriminator/discriminator.push.d.ts +1 -1
  37. package/dist/opportunity/discriminator/discriminator.question.d.ts +1 -1
  38. package/dist/opportunity/domain/opportunity.state.d.ts +1 -1
  39. package/dist/participant-agents/domain/index.d.ts +0 -1
  40. package/dist/participant-agents/index.d.ts +2 -6
  41. package/dist/participant-agents/index.js +2 -6
  42. package/dist/participant-agents/ports/agent.tools.port.d.ts +3 -5
  43. package/dist/participant-agents/ports/agent.tools.port.js +3 -5
  44. package/dist/participant-agents/ports/index.d.ts +1 -2
  45. package/dist/participant-agents/ports/index.js +1 -2
  46. package/dist/questions/domain/index.d.ts +0 -1
  47. package/dist/questions/domain/index.js +0 -1
  48. package/dist/questions/domain/question.schema.d.ts +1 -3
  49. package/dist/questions/domain/question.schema.js +1 -3
  50. package/dist/questions/index.d.ts +1 -6
  51. package/dist/questions/index.js +1 -6
  52. package/dist/questions/ports/question.generator.port.d.ts +1 -2
  53. package/dist/questions/ports/question.persistence.port.d.ts +1 -2
  54. package/dist/questions/public/index.d.ts +1 -1
  55. package/dist/shared/agent/tool.helpers.d.ts +6 -6
  56. package/dist/shared/schemas/pending-question.schema.d.ts +1 -1
  57. package/dist/signals/application/intent.clarifier.js +1 -1
  58. package/dist/signals/application/intent.graph.d.ts +1 -1
  59. package/dist/signals/application/intent.verifier.d.ts +6 -6
  60. package/package.json +1 -1
  61. package/dist/shared/interfaces/agent.interface.d.ts +0 -17
  62. package/dist/shared/interfaces/agent.interface.js +0 -15
  63. package/dist/shared/interfaces/contact.interface.d.ts +0 -9
  64. package/dist/shared/interfaces/contact.interface.js +0 -8
  65. package/dist/shared/interfaces/integration.interface.d.ts +0 -9
  66. package/dist/shared/interfaces/integration.interface.js +0 -8
  67. package/dist/shared/interfaces/question-generator.interface.d.ts +0 -5
  68. package/dist/shared/interfaces/question-generator.interface.js +0 -1
  69. package/dist/shared/interfaces/questioner.interface.d.ts +0 -5
  70. package/dist/shared/interfaces/questioner.interface.js +0 -1
  71. package/dist/shared/schemas/question.schema.d.ts +0 -5
  72. 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";
@@ -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/application/index.js";
23
- export type { AgentToolDeps } from "../participant-agents/ports/index.js";
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/application/index.js";
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 "../shared/schemas/question.schema.js";
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 "../shared/schemas/question.schema.js";
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 {
@@ -4,7 +4,5 @@
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
  export {};
@@ -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";
@@ -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 paths:
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";
@@ -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 paths:
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 (not derived via Pick from
9
- * ToolRegistryCompositionDeps in shared/agent/tool.helpers.ts) to avoid a
10
- * module cycle. ToolRegistryCompositionDeps imports ContactServiceAdapter
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 (not derived via Pick from
9
- * ToolRegistryCompositionDeps in shared/agent/tool.helpers.ts) to avoid a
10
- * module cycle. ToolRegistryCompositionDeps imports ContactServiceAdapter
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";
@@ -14,7 +14,5 @@
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 {};
@@ -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" | "generate" | "write";
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" | "generate" | "write" | import("@langchain/langgraph").OverwriteValue<"query" | "generate" | "write"> | undefined;
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" | "generate" | "write", "query" | "generate" | "write" | import("@langchain/langgraph").OverwriteValue<"query" | "generate" | "write">, unknown>;
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" | "generate" | "write", "query" | "generate" | "write" | import("@langchain/langgraph").OverwriteValue<"query" | "generate" | "write">, unknown>;
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" | "generate" | "write", "query" | "generate" | "write" | import("@langchain/langgraph").OverwriteValue<"query" | "generate" | "write">, unknown>;
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 "./shared/interfaces/question-generator.interface.js";
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 "./shared/interfaces/contact.interface.js";
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 "./shared/interfaces/integration.interface.js";
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 './shared/interfaces/agent.interface.js';
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 "./shared/schemas/question.schema.js";
28
+ export { type Question, type UnderspecificationType, type QuestionStrategy, type QuestionGenerationResult, type QuestionPurpose, type NegotiationQuestionPurpose, type NegotiationQuestionCandidate, type NegotiationQuestionProvenance, NegotiationQuestionCandidateSchema, NegotiationQuestionProvenanceSchema, type QuestionPoolPush, type QuestionRecoverySnapshot, type QuestionVoidedReason, type QuestionPoolPushRequestStatus, type QuestionPoolPushRequestReason, } from "./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";
@@ -97,7 +96,7 @@ export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment } from ".
97
96
  export type { PoolAdjustment, PoolAdjustmentSignal } from "./capabilities/opportunities.facade.js";
98
97
  export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL } from "./capabilities/opportunities.facade.js";
99
98
  export { poolQuestionCycleKey, buildPoolQuestionPushMessage } from "./capabilities/opportunities.facade.js";
100
- export type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from "./shared/schemas/question.schema.js";
99
+ export type { QuestionPoolDiscriminator, QuestionPoolSnapshot } from "./capabilities/questions.facade.js";
101
100
  export type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator } from "./capabilities/opportunities.facade.js";
102
101
  export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES } from "./capabilities/opportunities.facade.js";
103
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 './shared/interfaces/agent.interface.js';
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 "./shared/schemas/question.schema.js";
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";
@@ -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 paths:
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 paths:
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 (not derived via Pick from
9
- * ToolRegistryCompositionDeps in shared/agent/tool.helpers.ts) to avoid a
10
- * module cycle. ToolRegistryCompositionDeps imports IntegrationAdapter from
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 (not derived via Pick from
9
- * ToolRegistryCompositionDeps in shared/agent/tool.helpers.ts) to avoid a
10
- * module cycle. ToolRegistryCompositionDeps imports IntegrationAdapter from
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 "../shared/schemas/question.schema.js";
1
+ import type { Question } from "../questions/domain/question.schema.js";
2
2
  type SingleChoiceSchema = {
3
3
  type: "string";
4
4
  enum: string[];
@@ -1,4 +1,4 @@
1
- import type { Question } from "../shared/schemas/question.schema.js";
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 = {
@@ -141,7 +141,7 @@ export declare class OpportunityGraphFactory {
141
141
  targetUserId: Id<"users"> | undefined;
142
142
  onBehalfOfUserId: Id<"users"> | undefined;
143
143
  options: import("../domain/opportunity.state.js").OpportunityGraphOptions;
144
- operationMode: "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction";
144
+ operationMode: "delete" | "send" | "update" | "create" | "read" | "create_introduction" | "continue_discovery" | "negotiate_existing" | "approve_introduction";
145
145
  introductionEntities: EvaluatorEntity[];
146
146
  introductionHint: string | undefined;
147
147
  requiredNetworkId: Id<"networks"> | undefined;
@@ -250,7 +250,7 @@ export declare class OpportunityGraphFactory {
250
250
  targetUserId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined;
251
251
  onBehalfOfUserId?: Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined;
252
252
  options?: import("../domain/opportunity.state.js").OpportunityGraphOptions | import("@langchain/langgraph").OverwriteValue<import("../domain/opportunity.state.js").OpportunityGraphOptions> | undefined;
253
- operationMode?: "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction"> | undefined;
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;
254
254
  introductionEntities?: EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]> | undefined;
255
255
  introductionHint?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
256
256
  requiredNetworkId?: Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined;
@@ -414,7 +414,7 @@ export declare class OpportunityGraphFactory {
414
414
  seedAssessmentScore?: number | undefined;
415
415
  }[]> | undefined;
416
416
  discoverySummary?: import("../../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../../index.js").DiscoverySummary | null> | null | undefined;
417
- }, "scope" | "discovery" | "send" | "update" | "__start__" | "read" | "negotiate_existing" | "approve_introduction" | "prep" | "persist" | "resolve" | "evaluation" | "ranking" | "intro_validation" | "intro_evaluation" | "delete_opp" | "negotiate", {
417
+ }, "scope" | "discovery" | "send" | "update" | "__start__" | "read" | "prep" | "negotiate_existing" | "approve_introduction" | "persist" | "resolve" | "evaluation" | "ranking" | "intro_validation" | "intro_evaluation" | "delete_opp" | "negotiate", {
418
418
  userId: import("@langchain/langgraph").BaseChannel<Id<"users">, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users">>, unknown>;
419
419
  searchQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
420
420
  networkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
@@ -423,7 +423,7 @@ export declare class OpportunityGraphFactory {
423
423
  targetUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
424
424
  onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
425
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>;
426
- operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction">, unknown>;
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>;
427
427
  introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
428
428
  introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
429
429
  requiredNetworkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
@@ -660,7 +660,7 @@ export declare class OpportunityGraphFactory {
660
660
  targetUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
661
661
  onBehalfOfUserId: import("@langchain/langgraph").BaseChannel<Id<"users"> | undefined, Id<"users"> | import("@langchain/langgraph").OverwriteValue<Id<"users"> | undefined> | undefined, unknown>;
662
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>;
663
- operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction">, unknown>;
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>;
664
664
  introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
665
665
  introductionHint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
666
666
  requiredNetworkId: import("@langchain/langgraph").BaseChannel<Id<"networks"> | undefined, Id<"networks"> | import("@langchain/langgraph").OverwriteValue<Id<"networks"> | undefined> | undefined, unknown>;
@@ -1,4 +1,4 @@
1
- import type { QuestionPoolDiscriminator } from "../../shared/schemas/question.schema.js";
1
+ import type { QuestionPoolDiscriminator } from "../../questions/domain/question.schema.js";
2
2
  /** Recipient and intent provenance that scopes one pool preference. */
3
3
  export interface PoolAdjustmentProvenance {
4
4
  recipientUserId: string;
@@ -1,4 +1,4 @@
1
- import type { QuestionPoolSnapshot } from "../../shared/schemas/question.schema.js";
1
+ import type { QuestionPoolSnapshot } from "../../questions/domain/question.schema.js";
2
2
  /** Maximum raw intent-title characters included in a proactive DM line. */
3
3
  export declare const POOL_QUESTION_PUSH_TITLE_MAX_CHARS = 80;
4
4
  /** Stable identity for one pool refresh cycle. Chained alternates retain it. */
@@ -8,7 +8,7 @@
8
8
  * produced (and evidence-verified) at mining time, so synthesis is pure,
9
9
  * auditable, and cheap to re-run for interview-mode chaining.
10
10
  */
11
- import type { Question, QuestionPoolDiscriminator, QuestionPoolSnapshot } from "../../shared/schemas/question.schema.js";
11
+ import type { Question, QuestionPoolDiscriminator, QuestionPoolSnapshot } from "../../questions/domain/question.schema.js";
12
12
  import type { ScoredDiscriminator } from "./discriminator.types.js";
13
13
  /** Fixed option appended to every pool question — the no-preference escape. */
14
14
  export declare const BOTH_MATTER_LABEL = "Both matter";
@@ -176,7 +176,7 @@ export declare const OpportunityGraphState: import("@langchain/langgraph").Annot
176
176
  *
177
177
  * Defaults to 'create' for backward compatibility.
178
178
  */
179
- operationMode: import("@langchain/langgraph").BaseChannel<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction", "delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction" | import("@langchain/langgraph").OverwriteValue<"delete" | "send" | "update" | "create" | "create_introduction" | "continue_discovery" | "read" | "negotiate_existing" | "approve_introduction">, unknown>;
179
+ 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>;
180
180
  /** Introduction mode: pre-gathered entities (profiles + intents per party). */
181
181
  introductionEntities: import("@langchain/langgraph").BaseChannel<EvaluatorEntity[], EvaluatorEntity[] | import("@langchain/langgraph").OverwriteValue<EvaluatorEntity[]>, unknown>;
182
182
  /** Introduction mode: optional hint from the introducer. */
@@ -14,7 +14,6 @@
14
14
  * - createAgentTools: application layer — lives in participant-agents/application.
15
15
  *
16
16
  * IND-548: canonical domain layer for the participant-agents capability.
17
- * Legacy path (shared/interfaces/agent.interface.ts) is a thin compatibility shim.
18
17
  */
19
18
  export type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput, } from "./agent.types.js";
20
19
  export { SYSTEM_AGENT_IDS } from "./agent.types.js";
@@ -8,13 +8,9 @@
8
8
  * that must go through the participant-agents public surface.
9
9
  *
10
10
  * IND-548: canonical home for agent registration, permission-aware behaviour,
11
- * and dispatch contracts previously spread across agent/,
12
- * shared/interfaces/agent.interface.ts, and
13
- * shared/interfaces/agent-dispatcher.interface.ts.
11
+ * and dispatch contracts.
14
12
  *
15
- * Compatibility paths:
16
- * - shared/interfaces/agent.interface.ts — re-exports from participant-agents/domain
17
- * and participant-agents/ports
13
+ * Compatibility path:
18
14
  * - shared/interfaces/agent-dispatcher.interface.ts — re-exports from
19
15
  * participant-agents/ports
20
16
  */
@@ -8,13 +8,9 @@
8
8
  * that must go through the participant-agents public surface.
9
9
  *
10
10
  * IND-548: canonical home for agent registration, permission-aware behaviour,
11
- * and dispatch contracts previously spread across agent/,
12
- * shared/interfaces/agent.interface.ts, and
13
- * shared/interfaces/agent-dispatcher.interface.ts.
11
+ * and dispatch contracts.
14
12
  *
15
- * Compatibility paths:
16
- * - shared/interfaces/agent.interface.ts — re-exports from participant-agents/domain
17
- * and participant-agents/ports
13
+ * Compatibility path:
18
14
  * - shared/interfaces/agent-dispatcher.interface.ts — re-exports from
19
15
  * participant-agents/ports
20
16
  */
@@ -5,11 +5,9 @@
5
5
  * optional AgentDatabase so agent registration tools are compiled only
6
6
  * when the database adapter is wired at the composition root.
7
7
  *
8
- * NOTE: This type is intentionally defined inline (not derived via Pick from
9
- * ToolRegistryCompositionDeps in shared/agent/tool.helpers.ts) to avoid a
10
- * module cycle. ToolRegistryCompositionDeps imports AgentDatabase from
11
- * shared/interfaces/agent.interface.ts, which after IND-548 forwards to
12
- * participant-agents/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
  * Structural equivalence with ToolRegistryCompositionDeps.agentDatabase is
15
13
  * preserved: both have type `AgentDatabase | undefined`.
@@ -5,11 +5,9 @@
5
5
  * optional AgentDatabase so agent registration tools are compiled only
6
6
  * when the database adapter is wired at the composition root.
7
7
  *
8
- * NOTE: This type is intentionally defined inline (not derived via Pick from
9
- * ToolRegistryCompositionDeps in shared/agent/tool.helpers.ts) to avoid a
10
- * module cycle. ToolRegistryCompositionDeps imports AgentDatabase from
11
- * shared/interfaces/agent.interface.ts, which after IND-548 forwards to
12
- * participant-agents/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
  * Structural equivalence with ToolRegistryCompositionDeps.agentDatabase is
15
13
  * preserved: both have type `AgentDatabase | undefined`.
@@ -19,8 +19,7 @@
19
19
  * - AgentToolDeps — host capabilities for registration/permission tools.
20
20
  *
21
21
  * IND-548: canonical ports surface for the participant-agents capability.
22
- * Legacy paths:
23
- * - shared/interfaces/agent.interface.ts → re-exports AgentDatabase from here
22
+ * Compatibility path:
24
23
  * - shared/interfaces/agent-dispatcher.interface.ts → re-exports from here
25
24
  */
26
25
  export type { AgentDatabase } from "./agent.repository.port.js";
@@ -19,8 +19,7 @@
19
19
  * - AgentToolDeps — host capabilities for registration/permission tools.
20
20
  *
21
21
  * IND-548: canonical ports surface for the participant-agents capability.
22
- * Legacy paths:
23
- * - shared/interfaces/agent.interface.ts → re-exports AgentDatabase from here
22
+ * Compatibility path:
24
23
  * - shared/interfaces/agent-dispatcher.interface.ts → re-exports from here
25
24
  */
26
25
  export {};
@@ -20,6 +20,5 @@
20
20
  * - Persistence/generator ports: questions/ports.
21
21
  *
22
22
  * IND-547: canonical home for question domain types.
23
- * Legacy path (shared/schemas/question.schema.ts) is a thin compatibility shim.
24
23
  */
25
24
  export * from "./question.schema.js";
@@ -20,6 +20,5 @@
20
20
  * - Persistence/generator ports: questions/ports.
21
21
  *
22
22
  * IND-547: canonical home for question domain types.
23
- * Legacy path (shared/schemas/question.schema.ts) is a thin compatibility shim.
24
23
  */
25
24
  export * from "./question.schema.js";
@@ -5,9 +5,7 @@
5
5
  * elicitation dispatch, plus internal generator, persistence, and delivery
6
6
  * envelopes used across the questions capability.
7
7
  *
8
- * IND-547: extracted from shared/schemas/question.schema.ts into the
9
- * questions domain layer. Legacy path (shared/schemas/question.schema.ts)
10
- * is a thin compatibility shim pointing here.
8
+ * IND-547: canonical question schema in the questions domain layer.
11
9
  */
12
10
  import { z } from "zod";
13
11
  export declare const QuestionOptionSchema: z.ZodObject<{
@@ -5,9 +5,7 @@
5
5
  * elicitation dispatch, plus internal generator, persistence, and delivery
6
6
  * envelopes used across the questions capability.
7
7
  *
8
- * IND-547: extracted from shared/schemas/question.schema.ts into the
9
- * questions domain layer. Legacy path (shared/schemas/question.schema.ts)
10
- * is a thin compatibility shim pointing here.
8
+ * IND-547: canonical question schema in the questions domain layer.
11
9
  */
12
10
  import { z } from "zod";
13
11
  export const QuestionOptionSchema = z.object({
@@ -7,14 +7,9 @@
7
7
  * go through the questions public surface.
8
8
  *
9
9
  * IND-547: canonical home for question generation, eligibility, validation,
10
- * provenance, settlement policy, and continuation behaviour previously spread
11
- * across questioner/, shared/schemas/question.schema.ts, and
12
- * shared/interfaces/questioner.interface.ts.
10
+ * provenance, settlement policy, and continuation behaviour.
13
11
  *
14
12
  * Compatibility paths:
15
13
  * - capabilities/questions.facade.ts — re-exports from questions/public/index.js
16
- * - shared/schemas/question.schema.ts — re-exports from questions/domain
17
- * - shared/interfaces/questioner.interface.ts — re-exports from questions/ports
18
- * - shared/interfaces/question-generator.interface.ts — re-exports from questions/ports
19
14
  */
20
15
  export * from "./public/index.js";
@@ -7,14 +7,9 @@
7
7
  * go through the questions public surface.
8
8
  *
9
9
  * IND-547: canonical home for question generation, eligibility, validation,
10
- * provenance, settlement policy, and continuation behaviour previously spread
11
- * across questioner/, shared/schemas/question.schema.ts, and
12
- * shared/interfaces/questioner.interface.ts.
10
+ * provenance, settlement policy, and continuation behaviour.
13
11
  *
14
12
  * Compatibility paths:
15
13
  * - capabilities/questions.facade.ts — re-exports from questions/public/index.js
16
- * - shared/schemas/question.schema.ts — re-exports from questions/domain
17
- * - shared/interfaces/questioner.interface.ts — re-exports from questions/ports
18
- * - shared/interfaces/question-generator.interface.ts — re-exports from questions/ports
19
14
  */
20
15
  export * from "./public/index.js";
@@ -11,8 +11,7 @@
11
11
  * `ProtocolDeps`/`ToolContext`. The protocol module never constructs its own
12
12
  * LLM-bound generator — callers inject one (or `undefined` to opt out).
13
13
  *
14
- * IND-547: canonical home previously shared/interfaces/question-generator.interface.ts.
15
- * Legacy path is a thin compatibility shim pointing here.
14
+ * IND-547: canonical question generator port.
16
15
  */
17
16
  import type { DiscoveryQuestionInput } from "../../shared/schemas/discovery-question.schema.js";
18
17
  import type { QuestionGenerationResult } from "../domain/question.schema.js";
@@ -5,8 +5,7 @@
5
5
  * QuestionerAgent. Implementations live in the backend and are injected into
6
6
  * ProtocolDeps.
7
7
  *
8
- * IND-547: canonical home previously shared/interfaces/questioner.interface.ts.
9
- * Legacy path is a thin compatibility shim pointing here.
8
+ * IND-547: canonical question persistence port.
10
9
  */
11
10
  import type { Question, QuestionMode, QuestionPurpose, QuestionStrategy, QuestionDetection, QuestionActor, QuestionAnswer, UnderspecificationType } from "../domain/question.schema.js";
12
11
  /** Shape accepted by `persist()` — everything needed to insert a question row. */
@@ -44,4 +44,4 @@ export { isQuestionerEnabled, isDiscoveryQuestionsEnabled, isUptakeGuardEnabled,
44
44
  export { isValidQuestionerInputContract, } from "../application/index.js";
45
45
  export type { QuestionerInput, QuestionerEnqueuePayload, QuestionerEnqueueFn, PoolDiscoveryContext, RecoveryQuestionerInput, UptakeQuestionerInput, PostStallQuestionerInput, InflightQuestionerInput, } from "../application/index.js";
46
46
  export { createQuestionerTools, createAskUserQuestionTools } from "../application/index.js";
47
- export type { QuestionerToolDeps, AskUserQuestionToolDeps } from "../ports/index.js";
47
+ export type { AskUserQuestionToolDeps, ChatQuestionAnswerOutcome, ChatQuestionsHost, PersistableQuestion, PersistedQuestion, QuestionFilters, QuestionGeneratorReader, QuestionerDatabase, QuestionerToolDeps, } from "../ports/index.js";
@@ -5,25 +5,25 @@ import type { UserIdentity } from "../schemas/identity.schema.js";
5
5
  import type { ChatGraphCompositeDatabase, CreateOpportunityData, NetworkMembership, UserRecord, UserDatabase, SystemDatabase, NegotiationGraphDatabase } from "../interfaces/database.interface.js";
6
6
  import type { Scraper } from "../interfaces/scraper.interface.js";
7
7
  import type { Cache, HydeCache } from "../interfaces/cache.interface.js";
8
- import type { IntegrationAdapter } from "../interfaces/integration.interface.js";
9
- import type { ContactServiceAdapter } from "../interfaces/contact.interface.js";
8
+ import type { IntegrationAdapter } from "../../integrations/ports/index.js";
9
+ import type { ContactServiceAdapter } from "../../contacts/ports/index.js";
10
10
  import type { ProfileEnricher } from "../interfaces/enrichment.interface.js";
11
11
  import type { IntentGraphQueue } from "../interfaces/queue.interface.js";
12
12
  import type { ChatSessionReader } from "../interfaces/chat-session.interface.js";
13
13
  import type { ChatSummaryReader } from "../interfaces/chat-summary.interface.js";
14
14
  import type { ChatMessageWriter } from "../interfaces/chat-message-writer.interface.js";
15
- import type { QuestionGeneratorReader } from "../interfaces/question-generator.interface.js";
15
+ import type { QuestionGeneratorReader } from "../../questions/ports/question.generator.port.js";
16
16
  import type { NegotiationSummaryReader } from "../interfaces/negotiation-summary.interface.js";
17
17
  import type { Embedder } from "../interfaces/embedder.interface.js";
18
- import type { AgentDatabase } from "../interfaces/agent.interface.js";
18
+ import type { AgentDatabase } from "../../participant-agents/ports/index.js";
19
19
  import type { NegotiationTimeoutQueue } from "../interfaces/negotiation-events.interface.js";
20
20
  import type { AgentDispatcher } from "../interfaces/agent-dispatcher.interface.js";
21
21
  import type { DeliveryLedger } from "../interfaces/delivery-ledger.interface.js";
22
- import type { ChatQuestionsHost, QuestionerDatabase } from "../interfaces/questioner.interface.js";
22
+ import type { ChatQuestionsHost, QuestionerDatabase } from "../../questions/ports/index.js";
23
23
  import type { NegotiatorMemoryToolsHost } from "../interfaces/negotiator-memory.interface.js";
24
24
  import type { QuestionerEnqueueFn } from "../../questions/application/question.input.js";
25
25
  import type { PendingQuestionSummary } from "../schemas/pending-question.schema.js";
26
- import type { QuestionMode, QuestionPurpose } from "../schemas/question.schema.js";
26
+ import type { QuestionMode, QuestionPurpose } from "../../questions/domain/question.schema.js";
27
27
  import type { EnrichmentRunQueue, EnrichmentRunStore } from "../interfaces/enrichment-run.interface.js";
28
28
  import type { McpActivityCaller } from "./activity-projection.js";
29
29
  export type IdentityContext = UserIdentity | null;
@@ -3,7 +3,7 @@
3
3
  * in tool results. Omits internal fields (actors, answer, status) that
4
4
  * are not needed by the chat agent or MCP client.
5
5
  */
6
- import type { QuestionMode, QuestionPurpose } from "./question.schema.js";
6
+ import type { QuestionMode, QuestionPurpose } from "../../questions/domain/question.schema.js";
7
7
  export interface PendingQuestionSummary {
8
8
  id: string;
9
9
  title: string;
@@ -13,7 +13,7 @@ import { createStructuredModel } from "../../shared/agent/model.config.js";
13
13
  import { invokeWithAbortSignal } from "../../shared/agent/model-signal.js";
14
14
  import { protocolLogger } from "../../shared/observability/protocol.logger.js";
15
15
  import { Timed } from "../../shared/observability/performance.js";
16
- import { UnderspecificationTypeSchema } from "../../shared/schemas/question.schema.js";
16
+ import { UnderspecificationTypeSchema } from "../../questions/domain/question.schema.js";
17
17
  const logger = protocolLogger("IntentClarifier");
18
18
  const clarificationSchema = z.discriminatedUnion("needsClarification", [
19
19
  z.object({
@@ -150,7 +150,7 @@ export declare class IntentGraphFactory {
150
150
  message?: string;
151
151
  networkId?: string;
152
152
  } | undefined> | undefined;
153
- }, "query" | "__start__" | "inference" | "verification" | "prep" | "reconciler" | "executor", {
153
+ }, "query" | "__start__" | "prep" | "inference" | "verification" | "reconciler" | "executor", {
154
154
  userId: {
155
155
  (annotation: import("@langchain/langgraph").SingleReducer<string, string>): import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
156
156
  (): import("@langchain/langgraph").LastValue<string>;
@@ -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;
13
12
  clarity: number;
14
13
  authority: number;
15
- }, {
16
14
  sincerity: number;
15
+ }, {
17
16
  clarity: number;
18
17
  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;
31
30
  clarity: number;
32
31
  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;
45
44
  clarity: number;
46
45
  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;
71
70
  clarity: number;
72
71
  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;
104
103
  clarity: number;
105
104
  authority: number;
105
+ sincerity: number;
106
106
  };
107
107
  semantic_entropy: number;
108
108
  referential_anchor: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "11.0.0-rc.454.1",
3
+ "version": "11.0.1-rc.455.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,17 +0,0 @@
1
- /**
2
- * @deprecated — compatibility shim.
3
- *
4
- * Canonical types have moved to the participant-agents domain-first module:
5
- * - Domain entity types → participant-agents/domain
6
- * - AgentDatabase port → participant-agents/ports
7
- *
8
- * This re-export exists solely to avoid breaking imports that pre-date IND-548.
9
- * Import directly from participant-agents/domain or participant-agents/ports
10
- * for new code, or use the capabilities/participant-agents.facade.ts surface
11
- * from outside the package.
12
- *
13
- * IND-548: migrated to src/participant-agents/domain/ and src/participant-agents/ports/.
14
- */
15
- export type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput, } from '../../participant-agents/domain/index.js';
16
- export { SYSTEM_AGENT_IDS } from '../../participant-agents/domain/index.js';
17
- export type { AgentDatabase } from '../../participant-agents/ports/index.js';
@@ -1,15 +0,0 @@
1
- /**
2
- * @deprecated — compatibility shim.
3
- *
4
- * Canonical types have moved to the participant-agents domain-first module:
5
- * - Domain entity types → participant-agents/domain
6
- * - AgentDatabase port → participant-agents/ports
7
- *
8
- * This re-export exists solely to avoid breaking imports that pre-date IND-548.
9
- * Import directly from participant-agents/domain or participant-agents/ports
10
- * for new code, or use the capabilities/participant-agents.facade.ts surface
11
- * from outside the package.
12
- *
13
- * IND-548: migrated to src/participant-agents/domain/ and src/participant-agents/ports/.
14
- */
15
- export { SYSTEM_AGENT_IDS } from '../../participant-agents/domain/index.js';
@@ -1,9 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: contacts/ports
3
- * Retained for backward compatibility during IND-549 migration.
4
- *
5
- * IND-549: types and interfaces migrated to src/contacts/domain and
6
- * src/contacts/ports. This file is a thin compatibility shim.
7
- */
8
- export type { ContactInput, ContactResult, ContactImportResult, ContactEntry, ContactSearchResult, } from "../../contacts/domain/index.js";
9
- export type { ContactServiceAdapter } from "../../contacts/ports/index.js";
@@ -1,8 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: contacts/ports
3
- * Retained for backward compatibility during IND-549 migration.
4
- *
5
- * IND-549: types and interfaces migrated to src/contacts/domain and
6
- * src/contacts/ports. This file is a thin compatibility shim.
7
- */
8
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: integrations/ports
3
- * Retained for backward compatibility during IND-549 migration.
4
- *
5
- * IND-549: types and interfaces migrated to src/integrations/domain and
6
- * src/integrations/ports. This file is a thin compatibility shim.
7
- */
8
- export type { IntegrationSession, IntegrationSessionOptions, ToolActionResponse, IntegrationConnection, } from "../../integrations/domain/index.js";
9
- export type { IntegrationAdapter } from "../../integrations/ports/index.js";
@@ -1,8 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: integrations/ports
3
- * Retained for backward compatibility during IND-549 migration.
4
- *
5
- * IND-549: types and interfaces migrated to src/integrations/domain and
6
- * src/integrations/ports. This file is a thin compatibility shim.
7
- */
8
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: questions/ports/question.generator.port — retained
3
- * for backward compatibility (IND-547).
4
- */
5
- export type { QuestionGeneratorReader } from "../../questions/ports/question.generator.port.js";
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: questions/ports/question.persistence.port — retained
3
- * for backward compatibility (IND-547).
4
- */
5
- export type { PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionAnswerOutcome, ChatQuestionsHost, QuestionerDatabase, } from "../../questions/ports/question.persistence.port.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: questions/domain/question.schema — retained
3
- * for backward compatibility (IND-547).
4
- */
5
- export * from "../../questions/domain/question.schema.js";
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated Canonical location: questions/domain/question.schema — retained
3
- * for backward compatibility (IND-547).
4
- */
5
- export * from "../../questions/domain/question.schema.js";