@indexnetwork/protocol 14.1.0-rc.469.1 → 14.2.0-rc.470.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/dist/chat/chat-streaming.types.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/chat/negotiator.prompt.d.ts +1 -1
- package/dist/chat/negotiator.prompt.js +1 -1
- package/dist/communities/application/indexer.graph.d.ts +1 -1
- package/dist/communities/application/indexer.state.d.ts +1 -1
- package/dist/communities/application/network.tools.d.ts +1 -1
- package/dist/communities/index.d.ts +9 -0
- package/dist/communities/index.js +8 -0
- package/dist/{capabilities → communities/ports}/communities.tools.port.d.ts +1 -1
- package/dist/communities/ports/index.d.ts +2 -2
- package/dist/communities/ports/index.js +1 -1
- package/dist/contacts/application/contact.inviter.js +1 -1
- package/dist/contacts/index.d.ts +9 -0
- package/dist/contacts/index.js +8 -0
- package/dist/enrichment/enrichment.graph.d.ts +1 -1
- package/dist/enrichment/enrichment.state.d.ts +1 -1
- package/dist/enrichment/enrichment.tools.d.ts +1 -1
- package/dist/index.d.ts +125 -125
- package/dist/index.js +85 -85
- package/dist/integrations/index.d.ts +10 -0
- package/dist/integrations/index.js +8 -0
- package/dist/mcp/mcp.authorization-policy.d.ts +8 -8
- package/dist/negotiation/application/negotiation.graph.d.ts +1 -1
- package/dist/negotiation/domain/negotiation.question-safety.js +1 -1
- package/dist/negotiation/index.d.ts +12 -0
- package/dist/negotiation/index.js +9 -0
- package/dist/opportunity/application/negotiation-context.loader.d.ts +1 -1
- package/dist/opportunity/application/opportunity.card-presentation.js +1 -1
- package/dist/opportunity/application/opportunity.discovery-negotiation-summary.js +1 -1
- package/dist/opportunity/application/opportunity.evaluator.js +1 -1
- package/dist/opportunity/application/opportunity.graph.d.ts +3 -3
- package/dist/opportunity/application/opportunity.graph.js +3 -3
- package/dist/opportunity/application/opportunity.presenter.d.ts +6 -6
- package/dist/opportunity/application/opportunity.presenter.js +1 -1
- package/dist/opportunity/application/opportunity.tools.js +1 -1
- package/dist/opportunity/discriminator/discriminator.adjustments.d.ts +1 -1
- package/dist/opportunity/discriminator/discriminator.push.d.ts +1 -1
- package/dist/opportunity/discriminator/discriminator.question.d.ts +1 -1
- package/dist/opportunity/domain/index.d.ts +1 -1
- package/dist/opportunity/domain/index.js +1 -1
- package/dist/opportunity/domain/negotiation-summary.builder.d.ts +1 -1
- package/dist/opportunity/domain/opportunity.presentation.js +1 -1
- package/dist/opportunity/domain/opportunity.safe-presentation.js +1 -1
- package/dist/opportunity/domain/opportunity.state.d.ts +1 -1
- package/dist/opportunity/index.d.ts +54 -0
- package/dist/opportunity/index.js +39 -0
- package/dist/opportunity/radar/radar.graph.d.ts +1 -1
- package/dist/opportunity/radar/radar.state.d.ts +1 -1
- package/dist/participant-agents/index.d.ts +22 -0
- package/dist/participant-agents/index.js +12 -0
- package/dist/participant-context/index.d.ts +9 -12
- package/dist/participant-context/index.js +10 -12
- package/dist/{capabilities → participant-context/ports}/participant-context.tools.port.d.ts +1 -1
- package/dist/premise/premise.graph.d.ts +1 -1
- package/dist/premise/premise.state.d.ts +1 -1
- package/dist/premise/premise.tools.d.ts +1 -1
- package/dist/questions/application/question.input.d.ts +1 -1
- package/dist/questions/application/question.input.js +1 -1
- package/dist/questions/application/question.presets.js +1 -1
- package/dist/questions/domain/question.schema.d.ts +3 -3
- package/dist/questions/domain/question.schema.js +2 -6
- package/dist/questions/index.d.ts +13 -0
- package/dist/questions/index.js +2 -0
- package/dist/shared/agent/tool.factory.js +13 -10
- package/dist/shared/agent/tool.registry.js +7 -7
- package/dist/shared/schemas/mcp-auth.schema.d.ts +4 -4
- package/dist/shared/schemas/underspecification.schema.d.ts +13 -0
- package/dist/shared/schemas/underspecification.schema.js +16 -0
- package/dist/signals/application/intent.clarifier.js +1 -1
- package/dist/signals/application/intent.graph.d.ts +2 -2
- package/dist/signals/application/intent.tools.d.ts +1 -1
- package/dist/signals/domain/intent.state.d.ts +1 -1
- package/dist/signals/index.d.ts +18 -0
- package/dist/signals/index.js +14 -0
- package/dist/{capabilities → signals/ports}/signals.tools.port.d.ts +1 -1
- package/package.json +1 -1
- package/dist/capabilities/communities.facade.d.ts +0 -13
- package/dist/capabilities/communities.facade.js +0 -12
- package/dist/capabilities/contacts.facade.d.ts +0 -9
- package/dist/capabilities/contacts.facade.js +0 -8
- package/dist/capabilities/integrations.facade.d.ts +0 -8
- package/dist/capabilities/integrations.facade.js +0 -7
- package/dist/capabilities/interaction-composition.facade.d.ts +0 -10
- package/dist/capabilities/interaction-composition.facade.js +0 -9
- package/dist/capabilities/negotiation.discovery.facade.d.ts +0 -9
- package/dist/capabilities/negotiation.discovery.facade.js +0 -7
- package/dist/capabilities/negotiation.facade.d.ts +0 -26
- package/dist/capabilities/negotiation.facade.js +0 -18
- package/dist/capabilities/negotiation.memory.facade.d.ts +0 -6
- package/dist/capabilities/negotiation.memory.facade.js +0 -5
- package/dist/capabilities/negotiation.questions.facade.d.ts +0 -6
- package/dist/capabilities/negotiation.questions.facade.js +0 -5
- package/dist/capabilities/negotiation.state.facade.d.ts +0 -5
- package/dist/capabilities/negotiation.state.facade.js +0 -1
- package/dist/capabilities/negotiation.summary.facade.d.ts +0 -5
- package/dist/capabilities/negotiation.summary.facade.js +0 -5
- package/dist/capabilities/opportunities.facade.d.ts +0 -56
- package/dist/capabilities/opportunities.facade.js +0 -55
- package/dist/capabilities/opportunities.safety.facade.d.ts +0 -2
- package/dist/capabilities/opportunities.safety.facade.js +0 -2
- package/dist/capabilities/participant-agents.debug.facade.d.ts +0 -2
- package/dist/capabilities/participant-agents.debug.facade.js +0 -1
- package/dist/capabilities/participant-agents.facade.d.ts +0 -34
- package/dist/capabilities/participant-agents.facade.js +0 -34
- package/dist/capabilities/participant-agents.tools.facade.d.ts +0 -8
- package/dist/capabilities/participant-agents.tools.facade.js +0 -8
- package/dist/capabilities/participant-context.facade.d.ts +0 -13
- package/dist/capabilities/participant-context.facade.js +0 -14
- package/dist/capabilities/questions.enqueue.facade.d.ts +0 -5
- package/dist/capabilities/questions.enqueue.facade.js +0 -1
- package/dist/capabilities/questions.facade.d.ts +0 -8
- package/dist/capabilities/questions.facade.js +0 -7
- package/dist/capabilities/questions.runtime.facade.d.ts +0 -5
- package/dist/capabilities/questions.runtime.facade.js +0 -5
- package/dist/capabilities/signals.facade.d.ts +0 -19
- package/dist/capabilities/signals.facade.js +0 -17
- package/dist/capabilities/signals.indexing.facade.d.ts +0 -12
- package/dist/capabilities/signals.indexing.facade.js +0 -11
- package/dist/communities/public/index.d.ts +0 -30
- package/dist/communities/public/index.js +0 -33
- package/dist/contacts/public/index.d.ts +0 -36
- package/dist/contacts/public/index.js +0 -33
- package/dist/integrations/public/index.d.ts +0 -37
- package/dist/integrations/public/index.js +0 -34
- package/dist/negotiation/public/index.d.ts +0 -63
- package/dist/negotiation/public/index.js +0 -64
- package/dist/opportunity/public/index.d.ts +0 -61
- package/dist/opportunity/public/index.js +0 -54
- package/dist/participant-agents/public/index.d.ts +0 -39
- package/dist/participant-agents/public/index.js +0 -36
- package/dist/participant-context/public/index.d.ts +0 -48
- package/dist/participant-context/public/index.js +0 -55
- package/dist/questions/public/index.d.ts +0 -47
- package/dist/questions/public/index.js +0 -49
- package/dist/signals/public/index.d.ts +0 -15
- package/dist/signals/public/index.js +0 -16
- /package/dist/{capabilities → communities/ports}/communities.tools.port.js +0 -0
- /package/dist/{capabilities → participant-context/ports}/participant-context.tools.port.js +0 -0
- /package/dist/{opportunity/domain/opportunity.claim-safety.d.ts → shared/utils/claim-safety.d.ts} +0 -0
- /package/dist/{opportunity/domain/opportunity.claim-safety.js → shared/utils/claim-safety.js} +0 -0
- /package/dist/{capabilities → signals/ports}/signals.tools.port.js +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* communities/public — curated public surface of the communities capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (graph factories, tool factories) is accessible
|
|
6
|
-
* via capabilities/communities.facade.ts for package consumers and via the
|
|
7
|
-
* tool composition root (shared/agent) for internal registries.
|
|
8
|
-
*
|
|
9
|
-
* Boundary: public-compatibility. References only communities/domain,
|
|
10
|
-
* communities/application, and communities/ports — never the tool composition root (shared/agent)
|
|
11
|
-
* or host implementations.
|
|
12
|
-
*
|
|
13
|
-
* ## Intentionally excluded from public surface
|
|
14
|
-
*
|
|
15
|
-
* The following are application-internal:
|
|
16
|
-
* - IntentNetworkGraphState, IntentForIndexing, IndexMemberContext,
|
|
17
|
-
* AssignmentResult — indexer graph execution state types; import from
|
|
18
|
-
* communities/application/ when genuinely needed.
|
|
19
|
-
* - NetworkRecommender — LLM ranking agent used only inside createNetworkTools;
|
|
20
|
-
* import from communities/application/ if required for testing overrides.
|
|
21
|
-
*
|
|
22
|
-
* IND-546: canonical public surface for communities capability.
|
|
23
|
-
* Legacy paths (capabilities/communities.facade.ts) re-export from here.
|
|
24
|
-
*/
|
|
25
|
-
export { NetworkGraphState, NetworkMembershipGraphState, } from "../domain/index.js";
|
|
26
|
-
export { NetworkGraphFactory } from "../application/index.js";
|
|
27
|
-
export { NetworkMembershipGraphFactory } from "../application/index.js";
|
|
28
|
-
export { IntentNetworkGraphFactory } from "../application/index.js";
|
|
29
|
-
export { createNetworkTools } from "../application/index.js";
|
|
30
|
-
export type { NetworkGraphDatabase, NetworkMembershipGraphDatabase, IntentNetworkGraphDatabase, } from "../ports/index.js";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* communities/public — curated public surface of the communities capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (graph factories, tool factories) is accessible
|
|
6
|
-
* via capabilities/communities.facade.ts for package consumers and via the
|
|
7
|
-
* tool composition root (shared/agent) for internal registries.
|
|
8
|
-
*
|
|
9
|
-
* Boundary: public-compatibility. References only communities/domain,
|
|
10
|
-
* communities/application, and communities/ports — never the tool composition root (shared/agent)
|
|
11
|
-
* or host implementations.
|
|
12
|
-
*
|
|
13
|
-
* ## Intentionally excluded from public surface
|
|
14
|
-
*
|
|
15
|
-
* The following are application-internal:
|
|
16
|
-
* - IntentNetworkGraphState, IntentForIndexing, IndexMemberContext,
|
|
17
|
-
* AssignmentResult — indexer graph execution state types; import from
|
|
18
|
-
* communities/application/ when genuinely needed.
|
|
19
|
-
* - NetworkRecommender — LLM ranking agent used only inside createNetworkTools;
|
|
20
|
-
* import from communities/application/ if required for testing overrides.
|
|
21
|
-
*
|
|
22
|
-
* IND-546: canonical public surface for communities capability.
|
|
23
|
-
* Legacy paths (capabilities/communities.facade.ts) re-export from here.
|
|
24
|
-
*/
|
|
25
|
-
// ── Domain contracts ──────────────────────────────────────────────────────────
|
|
26
|
-
export { NetworkGraphState, NetworkMembershipGraphState, } from "../domain/index.js";
|
|
27
|
-
// ── Application seams ─────────────────────────────────────────────────────────
|
|
28
|
-
// Graph factories (foreground + ambient adapter entry points)
|
|
29
|
-
export { NetworkGraphFactory } from "../application/index.js";
|
|
30
|
-
export { NetworkMembershipGraphFactory } from "../application/index.js";
|
|
31
|
-
export { IntentNetworkGraphFactory } from "../application/index.js";
|
|
32
|
-
// Tool factory (foreground adapter composition entry point)
|
|
33
|
-
export { createNetworkTools } from "../application/index.js";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* contacts/public — curated public surface of the contacts capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (tool factories) is accessible here for package
|
|
6
|
-
* consumers; internal module details remain private to the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Boundary
|
|
9
|
-
*
|
|
10
|
-
* References only contacts/domain, contacts/application, and contacts/ports.
|
|
11
|
-
* Never imports from the tool composition root (shared/agent), host implementations, or other
|
|
12
|
-
* capability internals.
|
|
13
|
-
*
|
|
14
|
-
* ## Intentionally excluded from public surface
|
|
15
|
-
*
|
|
16
|
-
* The following are application-internal or use-site specific:
|
|
17
|
-
* - Invite generator system prompt constants — internal to contact.inviter.ts.
|
|
18
|
-
* - InviteInputSchema, InviteOutputSchema — Zod validation internals.
|
|
19
|
-
*
|
|
20
|
-
* ## Foreground adapters (participant-directed, authenticated)
|
|
21
|
-
*
|
|
22
|
-
* - `createContactTools` — import, list, add, remove, search MCP tools for
|
|
23
|
-
* the authenticated user's personal network. Write-path tools (import,
|
|
24
|
-
* add) are feature-gated behind `contactsEnabled`.
|
|
25
|
-
* - `generateInviteMessage` — LLM-based invite message generator for ghost
|
|
26
|
-
* user outreach.
|
|
27
|
-
*
|
|
28
|
-
* IND-549: canonical public surface for the contacts capability.
|
|
29
|
-
* Legacy path (capabilities/contacts.facade.ts) re-exports from here.
|
|
30
|
-
*/
|
|
31
|
-
export type { ContactInput, ContactResult, ContactImportResult, ContactEntry, ContactSearchResult, } from "../domain/index.js";
|
|
32
|
-
export type { ContactServiceAdapter } from "../ports/index.js";
|
|
33
|
-
export type { ContactToolDeps } from "../ports/index.js";
|
|
34
|
-
export { createContactTools } from "../application/index.js";
|
|
35
|
-
export { generateInviteMessage } from "../application/index.js";
|
|
36
|
-
export type { InviteInput, InviteOutput } from "../application/index.js";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* contacts/public — curated public surface of the contacts capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (tool factories) is accessible here for package
|
|
6
|
-
* consumers; internal module details remain private to the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Boundary
|
|
9
|
-
*
|
|
10
|
-
* References only contacts/domain, contacts/application, and contacts/ports.
|
|
11
|
-
* Never imports from the tool composition root (shared/agent), host implementations, or other
|
|
12
|
-
* capability internals.
|
|
13
|
-
*
|
|
14
|
-
* ## Intentionally excluded from public surface
|
|
15
|
-
*
|
|
16
|
-
* The following are application-internal or use-site specific:
|
|
17
|
-
* - Invite generator system prompt constants — internal to contact.inviter.ts.
|
|
18
|
-
* - InviteInputSchema, InviteOutputSchema — Zod validation internals.
|
|
19
|
-
*
|
|
20
|
-
* ## Foreground adapters (participant-directed, authenticated)
|
|
21
|
-
*
|
|
22
|
-
* - `createContactTools` — import, list, add, remove, search MCP tools for
|
|
23
|
-
* the authenticated user's personal network. Write-path tools (import,
|
|
24
|
-
* add) are feature-gated behind `contactsEnabled`.
|
|
25
|
-
* - `generateInviteMessage` — LLM-based invite message generator for ghost
|
|
26
|
-
* user outreach.
|
|
27
|
-
*
|
|
28
|
-
* IND-549: canonical public surface for the contacts capability.
|
|
29
|
-
* Legacy path (capabilities/contacts.facade.ts) re-exports from here.
|
|
30
|
-
*/
|
|
31
|
-
// ── Application: foreground adapter tools ─────────────────────────────────────
|
|
32
|
-
export { createContactTools } from "../application/index.js";
|
|
33
|
-
export { generateInviteMessage } from "../application/index.js";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* integrations/public — curated public surface of the integrations capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (tool factories) is accessible here for package
|
|
6
|
-
* consumers; internal module details remain private to the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Boundary
|
|
9
|
-
*
|
|
10
|
-
* References only integrations/domain, integrations/application, and
|
|
11
|
-
* integrations/ports. Never imports from the tool composition root (shared/agent), host
|
|
12
|
-
* implementations, or other capability internals.
|
|
13
|
-
*
|
|
14
|
-
* ## Intentionally excluded from public surface
|
|
15
|
-
*
|
|
16
|
-
* The following are application-internal or use-site specific:
|
|
17
|
-
* - OAuth callback URL derivation — runtime context detail in integration.tools.ts.
|
|
18
|
-
* - AuthorizeFn cast — internal type coercion for integration platform SDK.
|
|
19
|
-
*
|
|
20
|
-
* ## Foreground adapters (participant-directed, authenticated)
|
|
21
|
-
*
|
|
22
|
-
* - `createIntegrationTools` — import_gmail_contacts MCP tool for importing
|
|
23
|
-
* the user's Google contacts. Gated behind `contactsEnabled`.
|
|
24
|
-
*
|
|
25
|
-
* ## Allowed outbound dependencies
|
|
26
|
-
*
|
|
27
|
-
* integrations has no allowed capability dependencies (empty set in
|
|
28
|
-
* capability-boundaries.ts). It may only depend on shared/ primitives.
|
|
29
|
-
*
|
|
30
|
-
* IND-549: canonical public surface for the integrations capability.
|
|
31
|
-
* Legacy path (capabilities/integrations.facade.ts) re-exports from here.
|
|
32
|
-
*/
|
|
33
|
-
export type { IntegrationSession, IntegrationSessionOptions, ToolActionResponse, IntegrationConnection, } from "../domain/index.js";
|
|
34
|
-
export type { IntegrationAdapter } from "../ports/index.js";
|
|
35
|
-
export type { IntegrationImporter, IntegrationImportResult } from "../ports/index.js";
|
|
36
|
-
export type { IntegrationToolDeps } from "../ports/index.js";
|
|
37
|
-
export { createIntegrationTools } from "../application/index.js";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* integrations/public — curated public surface of the integrations capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (tool factories) is accessible here for package
|
|
6
|
-
* consumers; internal module details remain private to the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Boundary
|
|
9
|
-
*
|
|
10
|
-
* References only integrations/domain, integrations/application, and
|
|
11
|
-
* integrations/ports. Never imports from the tool composition root (shared/agent), host
|
|
12
|
-
* implementations, or other capability internals.
|
|
13
|
-
*
|
|
14
|
-
* ## Intentionally excluded from public surface
|
|
15
|
-
*
|
|
16
|
-
* The following are application-internal or use-site specific:
|
|
17
|
-
* - OAuth callback URL derivation — runtime context detail in integration.tools.ts.
|
|
18
|
-
* - AuthorizeFn cast — internal type coercion for integration platform SDK.
|
|
19
|
-
*
|
|
20
|
-
* ## Foreground adapters (participant-directed, authenticated)
|
|
21
|
-
*
|
|
22
|
-
* - `createIntegrationTools` — import_gmail_contacts MCP tool for importing
|
|
23
|
-
* the user's Google contacts. Gated behind `contactsEnabled`.
|
|
24
|
-
*
|
|
25
|
-
* ## Allowed outbound dependencies
|
|
26
|
-
*
|
|
27
|
-
* integrations has no allowed capability dependencies (empty set in
|
|
28
|
-
* capability-boundaries.ts). It may only depend on shared/ primitives.
|
|
29
|
-
*
|
|
30
|
-
* IND-549: canonical public surface for the integrations capability.
|
|
31
|
-
* Legacy path (capabilities/integrations.facade.ts) re-exports from here.
|
|
32
|
-
*/
|
|
33
|
-
// ── Application: foreground adapter tools ─────────────────────────────────────
|
|
34
|
-
export { createIntegrationTools } from "../application/index.js";
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiation/public — curated public surface of the negotiation capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
*
|
|
6
|
-
* ## Boundary
|
|
7
|
-
*
|
|
8
|
-
* References only negotiation/domain, negotiation/application, and
|
|
9
|
-
* negotiation/ports. Never imports from the tool composition root (shared/agent), host
|
|
10
|
-
* implementations, or other capability internals.
|
|
11
|
-
*
|
|
12
|
-
* ## Intentionally excluded from public surface
|
|
13
|
-
*
|
|
14
|
-
* Internal prompt constants, Zod schemas (ScreenDecisionSchema is accessible
|
|
15
|
-
* but not surface-forced), test-only helpers.
|
|
16
|
-
*
|
|
17
|
-
* ## Runtime adapters
|
|
18
|
-
*
|
|
19
|
-
* ### Foreground (participant-directed)
|
|
20
|
-
* - `createNegotiationTools` — MCP tools for the negotiation turn protocol.
|
|
21
|
-
* - `AMBIENT_PARK_WINDOW_MS` — personal-agent park window constant.
|
|
22
|
-
* - `buildLifecycleNarration` — opportunity feed lifecycle mapper.
|
|
23
|
-
*
|
|
24
|
-
* ### Ambient (background, graph-driven)
|
|
25
|
-
* - `NegotiationGraphFactory` — LangGraph state machine for bilateral turns.
|
|
26
|
-
* - `negotiateCandidates` — parallel discovery negotiation runner.
|
|
27
|
-
*
|
|
28
|
-
* IND-550: canonical public surface for the negotiation capability.
|
|
29
|
-
* Legacy paths (capabilities/negotiation*.facade.ts) re-export from here.
|
|
30
|
-
*/
|
|
31
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, expectedNegotiationSpeaker, allowedActionsFor, isTerminalAction, isRejectLikeAction, readProtocolVersion, configuredProtocolVersion, configuredAskUserEnabled, askUserAnswerWindowMs, ASK_USER_LOCK_SLACK_MS, DEFAULT_ASK_USER_WINDOW_MS, resolveSeat, seatViolationMessage, fallbackActionFor, rejectActionFor, turnSchemaFor, InitiatorTurnSchema, CounterpartyTurnSchema, FinalInitiatorTurnSchema, FinalCounterpartyTurnSchema, InitiatorAskUserTurnSchema, CounterpartyAskUserTurnSchema, } from "../domain/index.js";
|
|
32
|
-
export type { NegotiationSpeakerParticipants, NegotiationSpeakerMessage, } from "../domain/index.js";
|
|
33
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "../domain/index.js";
|
|
34
|
-
export type { HermesNegotiationAction, HermesNegotiationResponse, HermesOwnerDirective, HermesRoleAlignment, } from "../domain/index.js";
|
|
35
|
-
export { NegotiationTurnSchema, SystemNegotiationTurnSchema, FinalNegotiationTurnSchema, NegotiationOutcomeSchema, NegotiationGraphState, } from "../domain/index.js";
|
|
36
|
-
export type { NegotiationTurn, NegotiationOutcome, UserNegotiationContext, SeedAssessment, NegotiationGraphLike, NegotiationMessage, } from "../domain/index.js";
|
|
37
|
-
export { NEGOTIATION_SCREEN_MODES, configuredScreenMode, ScreenDecisionSchema, blocksNegotiationBeforeFirstTurn, } from "../domain/index.js";
|
|
38
|
-
export type { NegotiationScreenMode, ScreenDecision, ScreenDecisionRecord, } from "../domain/index.js";
|
|
39
|
-
export { NEGOTIATOR_STANCES, DEFAULT_NEGOTIATOR_STANCE, configuredNegotiatorStance, stanceAppliesValueBar, stanceQueryMatchIsNecessaryNotSufficient, stanceResolvesDeadlockByStalemate, stanceJobFraming, stanceActionRules, stanceQuerySatisfiedRule, } from "../domain/index.js";
|
|
40
|
-
export type { NegotiatorStance } from "../domain/index.js";
|
|
41
|
-
export { assessDeadlock, configuredDeadlockShiftEnabled, configuredDeadlockThreshold, renderBargainingShiftSection, DEFAULT_DEADLOCK_THRESHOLD, MIN_DEADLOCK_THRESHOLD, } from "../domain/index.js";
|
|
42
|
-
export type { DeadlockAssessment, DeadlockShiftRecord, } from "../domain/index.js";
|
|
43
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode, } from "../domain/index.js";
|
|
44
|
-
export type { NegotiationConsultationPolicyMode, NegotiationConsultationReason, ConsultationEligibility, ConsultationEligibilityInput, } from "../domain/index.js";
|
|
45
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, validateInflightAskUserFields, negotiationQuestionSettlementId, } from "../domain/index.js";
|
|
46
|
-
export { NEGOTIATOR_MEMORY_KINDS, renderNegotiatorMemorySection, renderNegotiatorChatMemorySection, } from "../domain/index.js";
|
|
47
|
-
export type { DistilledMemoryKind, NegotiatorMemoryEntry, NegotiatorMemoryScope, NegotiatorMemoryRetrieveFn, NegotiatorMemoryQuery, } from "../domain/index.js";
|
|
48
|
-
export { buildLifecycleNarration } from "../domain/index.js";
|
|
49
|
-
export type { NegotiationLifecycleNarration } from "../domain/index.js";
|
|
50
|
-
export { holdsNegotiationConversationLock } from "../domain/index.js";
|
|
51
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "../application/index.js";
|
|
52
|
-
export type { NegotiationCandidate, OnNegotiationResolved } from "../application/index.js";
|
|
53
|
-
export { createNegotiationTools, AMBIENT_PARK_WINDOW_MS } from "../application/index.js";
|
|
54
|
-
export { IndexNegotiator } from "../application/index.js";
|
|
55
|
-
export { NegotiationScreener } from "../application/index.js";
|
|
56
|
-
export type { NegotiationScreenerInput } from "../application/index.js";
|
|
57
|
-
export { NegotiationReflector } from "../application/index.js";
|
|
58
|
-
export type { DistilledMemory, ReflectionTranscriptEntry, NegotiationReflectionInput, ChatReflectionInput, NegotiationReflectJobData, ReflectEnqueueFn, } from "../application/index.js";
|
|
59
|
-
export { NegotiationSummarizer, buildFallbackDigest } from "../application/index.js";
|
|
60
|
-
export { NegotiationInsightsGenerator } from "../application/index.js";
|
|
61
|
-
export type { NegotiationDigest } from "../application/index.js";
|
|
62
|
-
export { readAuthorizedNegotiationDetail } from "../application/index.js";
|
|
63
|
-
export type { NegotiationToolDeps } from "../ports/index.js";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* negotiation/public — curated public surface of the negotiation capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
*
|
|
6
|
-
* ## Boundary
|
|
7
|
-
*
|
|
8
|
-
* References only negotiation/domain, negotiation/application, and
|
|
9
|
-
* negotiation/ports. Never imports from the tool composition root (shared/agent), host
|
|
10
|
-
* implementations, or other capability internals.
|
|
11
|
-
*
|
|
12
|
-
* ## Intentionally excluded from public surface
|
|
13
|
-
*
|
|
14
|
-
* Internal prompt constants, Zod schemas (ScreenDecisionSchema is accessible
|
|
15
|
-
* but not surface-forced), test-only helpers.
|
|
16
|
-
*
|
|
17
|
-
* ## Runtime adapters
|
|
18
|
-
*
|
|
19
|
-
* ### Foreground (participant-directed)
|
|
20
|
-
* - `createNegotiationTools` — MCP tools for the negotiation turn protocol.
|
|
21
|
-
* - `AMBIENT_PARK_WINDOW_MS` — personal-agent park window constant.
|
|
22
|
-
* - `buildLifecycleNarration` — opportunity feed lifecycle mapper.
|
|
23
|
-
*
|
|
24
|
-
* ### Ambient (background, graph-driven)
|
|
25
|
-
* - `NegotiationGraphFactory` — LangGraph state machine for bilateral turns.
|
|
26
|
-
* - `negotiateCandidates` — parallel discovery negotiation runner.
|
|
27
|
-
*
|
|
28
|
-
* IND-550: canonical public surface for the negotiation capability.
|
|
29
|
-
* Legacy paths (capabilities/negotiation*.facade.ts) re-export from here.
|
|
30
|
-
*/
|
|
31
|
-
// ── Domain: protocol rules ────────────────────────────────────────────────────
|
|
32
|
-
export { DEFAULT_NEGOTIATION_MAX_TURNS, isNegotiationTurnCapReached, expectedNegotiationSpeaker, allowedActionsFor, isTerminalAction, isRejectLikeAction, readProtocolVersion, configuredProtocolVersion, configuredAskUserEnabled, askUserAnswerWindowMs, ASK_USER_LOCK_SLACK_MS, DEFAULT_ASK_USER_WINDOW_MS, resolveSeat, seatViolationMessage, fallbackActionFor, rejectActionFor, turnSchemaFor, InitiatorTurnSchema, CounterpartyTurnSchema, FinalInitiatorTurnSchema, FinalCounterpartyTurnSchema, InitiatorAskUserTurnSchema, CounterpartyAskUserTurnSchema, } from "../domain/index.js";
|
|
33
|
-
// ── Domain: Hermes structural response contract ──────────────────────────────
|
|
34
|
-
export { HERMES_OWNER_DIRECTIVE, HERMES_SHARED_MESSAGE_TEMPLATES, HermesNegotiationActionSchema, HermesNegotiationResponseSchema, HermesOwnerDirectiveSchema, HermesRoleAlignmentSchema, allowedHermesActionsFor, buildHermesNegotiationTurn, } from "../domain/index.js";
|
|
35
|
-
// ── Domain: graph state types ─────────────────────────────────────────────────
|
|
36
|
-
export { NegotiationTurnSchema, SystemNegotiationTurnSchema, FinalNegotiationTurnSchema, NegotiationOutcomeSchema, NegotiationGraphState, } from "../domain/index.js";
|
|
37
|
-
// ── Domain: screen contracts ──────────────────────────────────────────────────
|
|
38
|
-
export { NEGOTIATION_SCREEN_MODES, configuredScreenMode, ScreenDecisionSchema, blocksNegotiationBeforeFirstTurn, } from "../domain/index.js";
|
|
39
|
-
// ── Domain: stance contracts (IND-611) ───────────────────────────────────────
|
|
40
|
-
export { NEGOTIATOR_STANCES, DEFAULT_NEGOTIATOR_STANCE, configuredNegotiatorStance, stanceAppliesValueBar, stanceQueryMatchIsNecessaryNotSufficient, stanceResolvesDeadlockByStalemate, stanceJobFraming, stanceActionRules, stanceQuerySatisfiedRule, } from "../domain/index.js";
|
|
41
|
-
// ── Domain: deadlock ──────────────────────────────────────────────────────────
|
|
42
|
-
export { assessDeadlock, configuredDeadlockShiftEnabled, configuredDeadlockThreshold, renderBargainingShiftSection, DEFAULT_DEADLOCK_THRESHOLD, MIN_DEADLOCK_THRESHOLD, } from "../domain/index.js";
|
|
43
|
-
// ── Domain: consultation policy ───────────────────────────────────────────────
|
|
44
|
-
export { assessConsultationEligibility, consultationPromptFor, negotiationConsultationPolicyMode, } from "../domain/index.js";
|
|
45
|
-
// ── Domain: question safety ───────────────────────────────────────────────────
|
|
46
|
-
export { NEGOTIATION_QUESTION_GENERIC_COUNTERPARTY, NEGOTIATION_QUESTION_GENERIC_NETWORK, NEGOTIATION_QUESTION_GENERIC_UPTAKE_ACTIVITY, isSafeNegotiationQuestionText, validateInflightAskUserFields, negotiationQuestionSettlementId, } from "../domain/index.js";
|
|
47
|
-
// ── Domain: memory vocabulary and renderers ───────────────────────────────────
|
|
48
|
-
export { NEGOTIATOR_MEMORY_KINDS, renderNegotiatorMemorySection, renderNegotiatorChatMemorySection, } from "../domain/index.js";
|
|
49
|
-
// ── Domain: lifecycle narration ───────────────────────────────────────────────
|
|
50
|
-
export { buildLifecycleNarration } from "../domain/index.js";
|
|
51
|
-
// ── Domain: task lock policy ──────────────────────────────────────────────────
|
|
52
|
-
export { holdsNegotiationConversationLock } from "../domain/index.js";
|
|
53
|
-
// ── Application: graph factory ────────────────────────────────────────────────
|
|
54
|
-
export { NegotiationGraphFactory, negotiateCandidates } from "../application/index.js";
|
|
55
|
-
// ── Application: tool factory ─────────────────────────────────────────────────
|
|
56
|
-
export { createNegotiationTools, AMBIENT_PARK_WINDOW_MS } from "../application/index.js";
|
|
57
|
-
// ── Application: system agents ────────────────────────────────────────────────
|
|
58
|
-
export { IndexNegotiator } from "../application/index.js";
|
|
59
|
-
export { NegotiationScreener } from "../application/index.js";
|
|
60
|
-
export { NegotiationReflector } from "../application/index.js";
|
|
61
|
-
export { NegotiationSummarizer, buildFallbackDigest } from "../application/index.js";
|
|
62
|
-
export { NegotiationInsightsGenerator } from "../application/index.js";
|
|
63
|
-
// ── Application: detail projection ───────────────────────────────────────────
|
|
64
|
-
export { readAuthorizedNegotiationDetail } from "../application/index.js";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* opportunity/public — curated public surface of the opportunities capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Cross-capability consumers MUST import through this surface or through
|
|
6
|
-
* capabilities/opportunities.facade.ts (which re-exports from here).
|
|
7
|
-
*
|
|
8
|
-
* IND-551: canonical public surface for the opportunities capability.
|
|
9
|
-
*/
|
|
10
|
-
export { OpportunityGraphState, } from "../domain/opportunity.state.js";
|
|
11
|
-
export type { SourceProfileData, IndexedIntent, TargetNetwork, CandidateMatch, EvaluatedCandidate, EvaluatedOpportunityActor, EvaluatedOpportunity, OpportunityPersistenceOutcome, OpportunityGraphOptions, } from "../domain/opportunity.state.js";
|
|
12
|
-
export { MINIMAL_MAIN_TEXT_MAX_CHARS, PRIMARY_ACTION_LABEL_INTRODUCER, PRIMARY_ACTION_LABEL_DEFAULT, SECONDARY_ACTION_LABEL, getPrimaryActionLabel, } from "../domain/opportunity.labels.js";
|
|
13
|
-
export { deriveRolesFromCorpus, validateOpportunityActors, canUserSeeOpportunity, isActionableForViewer, classifyOpportunity, selectByComposition, deduplicateByPerson, selectDigestCandidates, RADAR_SOFT_TARGETS, DIGEST_REDELIVERY_COOLDOWN_DAYS, } from "../domain/opportunity.utils.js";
|
|
14
|
-
export type { OpportunityActorRole, DerivedRoles, FeedCategory, DigestDeliveredRow, } from "../domain/opportunity.utils.js";
|
|
15
|
-
export { normalizeOpportunityActorIntent, resolveOpportunityActorIntent, normalizeOpportunityActors, normalizeCreateOpportunityActorIntents, } from "../domain/opportunity.actor.js";
|
|
16
|
-
export { buildCandidateEvidence, mergeOpportunityEvidence, withCandidateEvidence, withMatchedStrategies, renderOpportunityEvidenceForPrompt, } from "../domain/opportunity.evidence.js";
|
|
17
|
-
export type { EvidenceCandidateInput } from "../domain/opportunity.evidence.js";
|
|
18
|
-
export { hasUnsupportedOpportunityClaim, isUnsupportedOpportunityClaimSentence, stripUnsupportedOpportunityClaims, } from "../domain/opportunity.claim-safety.js";
|
|
19
|
-
export { presentOpportunity, stripUuids, truncateAtBoundary, viewerCentricCardSummary, narratorRemarkFromReasoning, stripIntroducerMentions, } from "../domain/opportunity.presentation.js";
|
|
20
|
-
export type { OpportunityPresentation, UserInfo, } from "../domain/opportunity.presentation.js";
|
|
21
|
-
export { safeFallbackSummary, SAFE_FALLBACK_MAX_CHARS, DEFAULT_EMPTY_FALLBACK_TEXT, } from "../domain/opportunity.safe-presentation.js";
|
|
22
|
-
export { OPPORTUNITY_PRESENTATION_CACHE_VERSION, buildRadarCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildApiChatCardPresentationCacheKey, } from "../domain/opportunity.presentation-cache.js";
|
|
23
|
-
export { buildDiscoverySummary, toDiscoveryNegotiation, } from "../domain/negotiation-summary.builder.js";
|
|
24
|
-
export type { NegotiationResolution } from "../domain/negotiation-summary.builder.js";
|
|
25
|
-
export type { PoolCandidate, DiscriminatorMiningInput, MinedDiscriminator, ScoredDiscriminator, DiscriminatorShadowResult, } from "../discriminator/discriminator.types.js";
|
|
26
|
-
export { poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsStampNewborn, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_QUESTION_MIN_VOI, POOL_QUESTION_MAX_PENDING_PER_INTENT, poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS, poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS, } from "../discriminator/discriminator.env.js";
|
|
27
|
-
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "../discovery.env.js";
|
|
28
|
-
export type { DiscoveryMatchType, DiscoveryProfileSource, } from "../discovery.env.js";
|
|
29
|
-
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment, } from "../discriminator/discriminator.adjustments.js";
|
|
30
|
-
export type { PoolAdjustment, PoolAdjustmentSignal, } from "../discriminator/discriminator.adjustments.js";
|
|
31
|
-
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL, } from "../discriminator/discriminator.question.js";
|
|
32
|
-
export { poolQuestionCycleKey, buildPoolQuestionPushMessage, } from "../discriminator/discriminator.push.js";
|
|
33
|
-
export type { RawEvidenceTurn, RawEvidenceOutcome, RawEvidenceOwnerAnswer, RawEvidenceSegment, } from "../negotiation-evidence/negotiation-evidence.types.js";
|
|
34
|
-
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, } from "../negotiation-evidence/negotiation-evidence.env.js";
|
|
35
|
-
export type { OutcomeLabel, OutcomeExample, OutcomeShadowResult, } from "../outcome/outcome.types.js";
|
|
36
|
-
export { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS, } from "../outcome/outcome.env.js";
|
|
37
|
-
export { computeRadarHealth } from "../radar/radar.health.js";
|
|
38
|
-
export type { RadarHealthInput } from "../radar/radar.health.js";
|
|
39
|
-
export { isIntroducerDiscoveryEnabled } from "../application/opportunity.introducer-feature.js";
|
|
40
|
-
export { OpportunityGraphFactory } from "../application/opportunity.graph.js";
|
|
41
|
-
export type { OpportunityGraphThresholdOverrides } from "../application/opportunity.graph.js";
|
|
42
|
-
export type { StampNewbornOpportunitiesFn, StampNewbornOpportunitiesInput, } from "../application/opportunity.newborn-stamping.js";
|
|
43
|
-
export { OpportunityEvaluator } from "../application/opportunity.evaluator.js";
|
|
44
|
-
export type { EvaluatorInput } from "../application/opportunity.evaluator.js";
|
|
45
|
-
export { OpportunityPresenter, gatherPresenterContext, } from "../application/opportunity.presenter.js";
|
|
46
|
-
export type { PresenterDatabase } from "../application/opportunity.presenter.js";
|
|
47
|
-
export { persistOpportunities } from "../application/opportunity.persist.js";
|
|
48
|
-
export { selectContactsForDiscovery, shouldRunIntroducerDiscovery, runIntroducerDiscovery, MAX_CONTACTS_PER_CYCLE, MAX_CANDIDATES_PER_CONTACT, INTRODUCER_DISCOVERY_SOURCE, } from "../application/opportunity.introducer.js";
|
|
49
|
-
export type { IntroducerDiscoveryDatabase, IntroducerDiscoveryQueue, ContactWithIntents, } from "../application/opportunity.introducer.js";
|
|
50
|
-
export { getOrCreateDeliveryCardBatch } from "../application/delivery-card.cache.js";
|
|
51
|
-
export { buildPrioritizedNegotiationIntents } from "../application/opportunity.existing-negotiation.js";
|
|
52
|
-
export { PoolDiscriminatorMiner } from "../discriminator/discriminator.miner.js";
|
|
53
|
-
export { PoolDiscriminatorAssigner } from "../discriminator/discriminator.assigner.js";
|
|
54
|
-
export type { PoolDiscriminatorAssignmentInput, PoolDiscriminatorAssignedAxis, } from "../discriminator/discriminator.assigner.js";
|
|
55
|
-
export { runPoolDiscriminatorShadow } from "../discriminator/discriminator.shadow.js";
|
|
56
|
-
export { NegotiationEvidenceMiner } from "../negotiation-evidence/negotiation-evidence.miner.js";
|
|
57
|
-
export { runNegotiationEvidenceShadow } from "../negotiation-evidence/negotiation-evidence.shadow.js";
|
|
58
|
-
export { runOutcomeShadow } from "../outcome/outcome.shadow.js";
|
|
59
|
-
export { RadarGraphFactory } from "../radar/radar.graph.js";
|
|
60
|
-
export { createOpportunityTools } from "../application/opportunity.tools.js";
|
|
61
|
-
export type { OpportunityToolDeps } from "../ports/index.js";
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* opportunity/public — curated public surface of the opportunities capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Cross-capability consumers MUST import through this surface or through
|
|
6
|
-
* capabilities/opportunities.facade.ts (which re-exports from here).
|
|
7
|
-
*
|
|
8
|
-
* IND-551: canonical public surface for the opportunities capability.
|
|
9
|
-
*/
|
|
10
|
-
// ── Domain exports ────────────────────────────────────────────────────────────
|
|
11
|
-
export {
|
|
12
|
-
// state
|
|
13
|
-
OpportunityGraphState, } from "../domain/opportunity.state.js";
|
|
14
|
-
export { MINIMAL_MAIN_TEXT_MAX_CHARS, PRIMARY_ACTION_LABEL_INTRODUCER, PRIMARY_ACTION_LABEL_DEFAULT, SECONDARY_ACTION_LABEL, getPrimaryActionLabel, } from "../domain/opportunity.labels.js";
|
|
15
|
-
export { deriveRolesFromCorpus, validateOpportunityActors, canUserSeeOpportunity, isActionableForViewer, classifyOpportunity, selectByComposition, deduplicateByPerson, selectDigestCandidates, RADAR_SOFT_TARGETS, DIGEST_REDELIVERY_COOLDOWN_DAYS, } from "../domain/opportunity.utils.js";
|
|
16
|
-
export { normalizeOpportunityActorIntent, resolveOpportunityActorIntent, normalizeOpportunityActors, normalizeCreateOpportunityActorIntents, } from "../domain/opportunity.actor.js";
|
|
17
|
-
export { buildCandidateEvidence, mergeOpportunityEvidence, withCandidateEvidence, withMatchedStrategies, renderOpportunityEvidenceForPrompt, } from "../domain/opportunity.evidence.js";
|
|
18
|
-
export { hasUnsupportedOpportunityClaim, isUnsupportedOpportunityClaimSentence, stripUnsupportedOpportunityClaims, } from "../domain/opportunity.claim-safety.js";
|
|
19
|
-
export { presentOpportunity, stripUuids, truncateAtBoundary, viewerCentricCardSummary, narratorRemarkFromReasoning, stripIntroducerMentions, } from "../domain/opportunity.presentation.js";
|
|
20
|
-
export { safeFallbackSummary, SAFE_FALLBACK_MAX_CHARS, DEFAULT_EMPTY_FALLBACK_TEXT, } from "../domain/opportunity.safe-presentation.js";
|
|
21
|
-
export { OPPORTUNITY_PRESENTATION_CACHE_VERSION, buildRadarCardPresentationCacheKey, buildDeliveryCardPresentationCacheKey, buildApiChatCardPresentationCacheKey, } from "../domain/opportunity.presentation-cache.js";
|
|
22
|
-
export { buildDiscoverySummary, toDiscoveryNegotiation, } from "../domain/negotiation-summary.builder.js";
|
|
23
|
-
export { poolQuestionsMiningMode, poolQuestionsMode, poolQuestionsPushMode, poolQuestionsStampNewborn, POOL_DISCRIMINATOR_MIN_POOL_SIZE, POOL_DISCRIMINATOR_MAX_CANDIDATES, POOL_DISCRIMINATOR_MAX_PUBLIC_CONTEXT_CHARS, POOL_QUESTION_MIN_VOI, POOL_QUESTION_MAX_PENDING_PER_INTENT, poolQuestionsRanking, POOL_RERUN_DEBOUNCE_MS, poolQuestionsVisitTrigger, POOL_VISIT_MINING_DEBOUNCE_MS, } from "../discriminator/discriminator.env.js";
|
|
24
|
-
// discovery env accessors
|
|
25
|
-
export { DISCOVERY_EVALUATOR_MIN_SCORE_DEFAULT, DISCOVERY_MIN_SIMILARITY_DEFAULT, discoveryAllowedTypes, discoveryEvaluatorMinScore, discoveryIntentMatchingEnabled, discoveryMinSimilarity, discoveryProfileMatchingEnabled, discoveryProfileSource, resetDiscoveryEnvWarningsForTests, validateDiscoveryEvaluatorMinScore, validateDiscoveryMinSimilarity, } from "../discovery.env.js";
|
|
26
|
-
export { buildPoolAdjustment, planPoolAdjustments, mergePoolAdjustment, } from "../discriminator/discriminator.adjustments.js";
|
|
27
|
-
export { synthesizePoolQuestion, selectQuestionDiscriminators, toQuestionDiscriminator, BOTH_MATTER_LABEL, } from "../discriminator/discriminator.question.js";
|
|
28
|
-
export { poolQuestionCycleKey, buildPoolQuestionPushMessage, } from "../discriminator/discriminator.push.js";
|
|
29
|
-
export { negotiationEvidenceQuestionsMode, NEGOTIATION_EVIDENCE_MAX_OPPORTUNITIES, } from "../negotiation-evidence/negotiation-evidence.env.js";
|
|
30
|
-
export { isOutcomeQuestionsActivated, OUTCOME_MIN_INDEPENDENT_EXAMPLES, OUTCOME_MAX_CANDIDATES, OUTCOME_MAX_PUBLIC_CONTEXT_CHARS, } from "../outcome/outcome.env.js";
|
|
31
|
-
// radar domain
|
|
32
|
-
export { computeRadarHealth } from "../radar/radar.health.js";
|
|
33
|
-
// ── Application exports ───────────────────────────────────────────────────────
|
|
34
|
-
export { isIntroducerDiscoveryEnabled } from "../application/opportunity.introducer-feature.js";
|
|
35
|
-
export { OpportunityGraphFactory } from "../application/opportunity.graph.js";
|
|
36
|
-
export { OpportunityEvaluator } from "../application/opportunity.evaluator.js";
|
|
37
|
-
export { OpportunityPresenter, gatherPresenterContext, } from "../application/opportunity.presenter.js";
|
|
38
|
-
export { persistOpportunities } from "../application/opportunity.persist.js";
|
|
39
|
-
export { selectContactsForDiscovery, shouldRunIntroducerDiscovery, runIntroducerDiscovery, MAX_CONTACTS_PER_CYCLE, MAX_CANDIDATES_PER_CONTACT, INTRODUCER_DISCOVERY_SOURCE, } from "../application/opportunity.introducer.js";
|
|
40
|
-
export { getOrCreateDeliveryCardBatch } from "../application/delivery-card.cache.js";
|
|
41
|
-
export { buildPrioritizedNegotiationIntents } from "../application/opportunity.existing-negotiation.js";
|
|
42
|
-
// discriminator application
|
|
43
|
-
export { PoolDiscriminatorMiner } from "../discriminator/discriminator.miner.js";
|
|
44
|
-
export { PoolDiscriminatorAssigner } from "../discriminator/discriminator.assigner.js";
|
|
45
|
-
export { runPoolDiscriminatorShadow } from "../discriminator/discriminator.shadow.js";
|
|
46
|
-
// negotiation-evidence application
|
|
47
|
-
export { NegotiationEvidenceMiner } from "../negotiation-evidence/negotiation-evidence.miner.js";
|
|
48
|
-
export { runNegotiationEvidenceShadow } from "../negotiation-evidence/negotiation-evidence.shadow.js";
|
|
49
|
-
// outcome application
|
|
50
|
-
export { runOutcomeShadow } from "../outcome/outcome.shadow.js";
|
|
51
|
-
// radar application
|
|
52
|
-
export { RadarGraphFactory } from "../radar/radar.graph.js";
|
|
53
|
-
// ── Tools ────────────────────────────────────────────────────────────────────
|
|
54
|
-
export { createOpportunityTools } from "../application/opportunity.tools.js";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* participant-agents/public — curated public surface of the participant-agents capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (tool factories) is accessible here for package
|
|
6
|
-
* consumers; internal module details (persona definitions, prompt builders,
|
|
7
|
-
* graph state) remain private to the application layer.
|
|
8
|
-
*
|
|
9
|
-
* ## Boundary
|
|
10
|
-
*
|
|
11
|
-
* References only participant-agents/domain, participant-agents/application,
|
|
12
|
-
* and participant-agents/ports. Never imports from the tool composition root (shared/agent), host
|
|
13
|
-
* implementations, or other capability internals.
|
|
14
|
-
*
|
|
15
|
-
* ## Intentionally excluded from public surface
|
|
16
|
-
*
|
|
17
|
-
* The following are application-internal or runtime-owned:
|
|
18
|
-
* - ChatGraphFactory, ChatPersonaConfig, ChatPersona — runtime graph wiring;
|
|
19
|
-
* consumers should import via capabilities/participant-agents.facade.ts.
|
|
20
|
-
* - Persona constants (SIGNAL_PERSONA, REPORTER_PERSONA, etc.) — chat
|
|
21
|
-
* runtime internals; import from capabilities/participant-agents.facade.ts.
|
|
22
|
-
* - ChatTitleGenerator, ChatSummarizer, etc. — runtime tool composition; import
|
|
23
|
-
* via capabilities/participant-agents.facade.ts.
|
|
24
|
-
*
|
|
25
|
-
* ## Foreground adapters (participant-directed, authenticated)
|
|
26
|
-
*
|
|
27
|
-
* - `createAgentTools` — registration, permission grant/revoke, listing, CRUD
|
|
28
|
-
* MCP tools for authenticated agent management paths.
|
|
29
|
-
*
|
|
30
|
-
* IND-548: canonical public surface for the participant-agents capability.
|
|
31
|
-
* Legacy paths (capabilities/participant-agents.facade.ts) re-export from here
|
|
32
|
-
* for the agent-registry portion of the facade.
|
|
33
|
-
*/
|
|
34
|
-
export type { AgentRecord, AgentTransportRecord, AgentPermissionRecord, AgentWithRelations, CreateAgentInput, CreateTransportInput, GrantPermissionInput, } from "../domain/index.js";
|
|
35
|
-
export { SYSTEM_AGENT_IDS } from "../domain/index.js";
|
|
36
|
-
export type { AgentDatabase } from "../ports/index.js";
|
|
37
|
-
export type { AgentDispatcher, AgentDispatchResult, NegotiationTurnPayload, } from "../ports/index.js";
|
|
38
|
-
export type { AgentToolDeps } from "../ports/index.js";
|
|
39
|
-
export { createAgentTools } from "../application/index.js";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* participant-agents/public — curated public surface of the participant-agents capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (tool factories) is accessible here for package
|
|
6
|
-
* consumers; internal module details (persona definitions, prompt builders,
|
|
7
|
-
* graph state) remain private to the application layer.
|
|
8
|
-
*
|
|
9
|
-
* ## Boundary
|
|
10
|
-
*
|
|
11
|
-
* References only participant-agents/domain, participant-agents/application,
|
|
12
|
-
* and participant-agents/ports. Never imports from the tool composition root (shared/agent), host
|
|
13
|
-
* implementations, or other capability internals.
|
|
14
|
-
*
|
|
15
|
-
* ## Intentionally excluded from public surface
|
|
16
|
-
*
|
|
17
|
-
* The following are application-internal or runtime-owned:
|
|
18
|
-
* - ChatGraphFactory, ChatPersonaConfig, ChatPersona — runtime graph wiring;
|
|
19
|
-
* consumers should import via capabilities/participant-agents.facade.ts.
|
|
20
|
-
* - Persona constants (SIGNAL_PERSONA, REPORTER_PERSONA, etc.) — chat
|
|
21
|
-
* runtime internals; import from capabilities/participant-agents.facade.ts.
|
|
22
|
-
* - ChatTitleGenerator, ChatSummarizer, etc. — runtime tool composition; import
|
|
23
|
-
* via capabilities/participant-agents.facade.ts.
|
|
24
|
-
*
|
|
25
|
-
* ## Foreground adapters (participant-directed, authenticated)
|
|
26
|
-
*
|
|
27
|
-
* - `createAgentTools` — registration, permission grant/revoke, listing, CRUD
|
|
28
|
-
* MCP tools for authenticated agent management paths.
|
|
29
|
-
*
|
|
30
|
-
* IND-548: canonical public surface for the participant-agents capability.
|
|
31
|
-
* Legacy paths (capabilities/participant-agents.facade.ts) re-export from here
|
|
32
|
-
* for the agent-registry portion of the facade.
|
|
33
|
-
*/
|
|
34
|
-
export { SYSTEM_AGENT_IDS } from "../domain/index.js";
|
|
35
|
-
// ── Application: foreground adapter tools ─────────────────────────────────────
|
|
36
|
-
export { createAgentTools } from "../application/index.js";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* participant-context/public — curated public surface of the participant-context capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the stable contracts from domain, application, and ports.
|
|
5
|
-
* Runtime adapter creation (graph factories, tool factories) is accessible via
|
|
6
|
-
* capabilities/participant-context.facade for package consumers and via
|
|
7
|
-
* the tool composition root (shared/agent) for internal registries.
|
|
8
|
-
*
|
|
9
|
-
* Boundary: public-compatibility. References only participant-context/domain,
|
|
10
|
-
* participant-context/application, and participant-context/ports — never
|
|
11
|
-
* the tool composition root (shared/agent) or host implementations.
|
|
12
|
-
*
|
|
13
|
-
* ## Intentionally excluded from public surface
|
|
14
|
-
*
|
|
15
|
-
* The following are application-internal and should be imported from
|
|
16
|
-
* participant-context/application/ by code that genuinely needs them:
|
|
17
|
-
* - `PremiseDecomposer`, `PremiseAnalyzer`, `PremiseIndexer` — used only inside
|
|
18
|
-
* PremiseGraphFactory and EnrichmentGraphFactory nodes.
|
|
19
|
-
* - `EnrichmentGenerator` — used only inside EnrichmentGraphFactory.
|
|
20
|
-
* - `HydeValidator`, `HydeSourceFrame`, `buildHydeValidationPrompt` — used only
|
|
21
|
-
* inside HydeGraphFactory nodes.
|
|
22
|
-
* - `FRAME_SYSTEM_PROMPT`, `FrameResponseSchema` — LensInferrer internal prompts.
|
|
23
|
-
*
|
|
24
|
-
* ## Profile-domain compatibility note
|
|
25
|
-
*
|
|
26
|
-
* Several identifiers in the underlying database interface retain "profile" naming
|
|
27
|
-
* (e.g. `getProfile`, `saveProfile`, `deleteProfile`, `UserIdentity`) — these are
|
|
28
|
-
* deliberately frozen compatibility names. The domain model's canonical term for
|
|
29
|
-
* the synthesized global identity representation is the "global context paragraph"
|
|
30
|
-
* (stored as a `user_contexts` row with `networkId = null`).
|
|
31
|
-
*
|
|
32
|
-
* IND-545: canonical public surface for participant-context, previously
|
|
33
|
-
* fragmentary across capabilities/participant-context.facade, shared/hyde exports
|
|
34
|
-
* in root index.ts, and direct premise/enrichment/context imports in tool.factory.
|
|
35
|
-
*/
|
|
36
|
-
export { PremiseGraphState, EnrichmentGraphState, HydeGraphState, type HydeDocumentState, type HydeDocumentOrigin, type HydeValidationStatus, type UserContextInput, type IncrementalContextInput, type GlobalContextInput, type GlobalIncrementalContextInput, type UserContextResult, type PremiseAssertion, type PremiseProvenance, type PremiseAnalysis, type PremiseValidity, type PremiseRecord, } from "../domain/index.js";
|
|
37
|
-
export { PremiseGraphFactory } from "../application/index.js";
|
|
38
|
-
export { EnrichmentGraphFactory, type CompiledPremiseGraph, } from "../application/index.js";
|
|
39
|
-
export { HydeGraphFactory, type HydeLensInferrerLike, type HydeGeneratorLike, type HydeValidatorLike, type HydeGraphOptions, } from "../application/index.js";
|
|
40
|
-
export { UserContextGenerator } from "../application/index.js";
|
|
41
|
-
export { HydeGenerator, type HydeGeneratorOutput, type HydeGenerateInput, } from "../application/index.js";
|
|
42
|
-
export { LensInferrer, type LensInferenceInput, type LensInferenceOutput, } from "../application/index.js";
|
|
43
|
-
export { getHydeGenerationMode, type HydeGenerationMode, HYDE_FRAME_GENERATION_VERSION, computeHydeSourceTextHash, selectHydeDocumentsForGeneration, HYDE_DEFAULT_CACHE_TTL, HYDE_CORPUS_PROMPTS, } from "../application/index.js";
|
|
44
|
-
export { createEnrichmentTools } from "../application/index.js";
|
|
45
|
-
export { createPremiseTools } from "../application/index.js";
|
|
46
|
-
export { shouldEnrichGhostDisplayNameFromParallel, isEnrichedNameMeaningful, } from "../application/index.js";
|
|
47
|
-
export type { PremiseGraphDatabase, EnrichmentGraphDatabase, HydeGraphDatabase, ProfileEnricher, EnrichmentResult, EnrichmentRequest, Scraper, ExtractUrlContentOptions, EmbeddingGenerator, Embedder, } from "../ports/index.js";
|
|
48
|
-
export type { EnrichmentToolDeps, PremiseToolDeps } from "../../capabilities/participant-context.tools.port.js";
|