@indexnetwork/protocol 18.0.0-rc.481.1 → 20.0.0-rc.483.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 (52) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/IMPLEMENTATION.md +27 -10
  3. package/dist/contacts/application/contact.tools.js +1 -3
  4. package/dist/contacts/domain/contact.types.d.ts +0 -2
  5. package/dist/contexts/application/index.d.ts +0 -1
  6. package/dist/contexts/application/index.js +0 -1
  7. package/dist/enrichment/enrichment.graph.js +1 -36
  8. package/dist/index.d.ts +2 -3
  9. package/dist/index.js +4 -3
  10. package/dist/networks/{application/indexer.graph.d.ts → indexer.graph.d.ts} +11 -7
  11. package/dist/networks/{application/indexer.graph.js → indexer.graph.js} +6 -6
  12. package/dist/networks/{application/indexer.state.d.ts → indexer.state.d.ts} +7 -17
  13. package/dist/networks/{application/indexer.state.js → indexer.state.js} +6 -10
  14. package/dist/networks/{application/membership.graph.d.ts → membership.graph.d.ts} +2 -4
  15. package/dist/networks/{application/membership.graph.js → membership.graph.js} +3 -3
  16. package/dist/networks/{domain/membership.state.d.ts → membership.state.d.ts} +0 -2
  17. package/dist/networks/{domain/membership.state.js → membership.state.js} +0 -2
  18. package/dist/networks/{application/network.graph.d.ts → network.graph.d.ts} +2 -4
  19. package/dist/networks/{application/network.graph.js → network.graph.js} +3 -3
  20. package/dist/networks/network.module.d.ts +1314 -0
  21. package/dist/networks/network.module.js +83 -0
  22. package/dist/networks/{application/network.recommender.d.ts → network.recommender.d.ts} +0 -2
  23. package/dist/networks/{application/network.recommender.js → network.recommender.js} +4 -6
  24. package/dist/networks/{domain/network.state.d.ts → network.state.d.ts} +0 -2
  25. package/dist/networks/{domain/network.state.js → network.state.js} +0 -2
  26. package/dist/networks/{application/network.tools.d.ts → network.tools.d.ts} +5 -4
  27. package/dist/networks/{application/network.tools.js → network.tools.js} +5 -7
  28. package/dist/opportunities/application/opportunity.tools.cards.d.ts +1 -2
  29. package/dist/opportunities/application/opportunity.tools.cards.js +1 -2
  30. package/dist/opportunities/application/opportunity.tools.list.js +0 -4
  31. package/dist/opportunities/radar/radar.graph.js +0 -4
  32. package/dist/opportunities/radar/radar.state.d.ts +0 -2
  33. package/dist/shared/agent/tool.factory.js +6 -6
  34. package/dist/shared/agent/tool.registry.js +2 -2
  35. package/dist/shared/agent/utility.tools.js +1 -2
  36. package/dist/shared/interfaces/database.capabilities.d.ts +2 -2
  37. package/dist/shared/interfaces/database.entities.d.ts +0 -3
  38. package/dist/shared/interfaces/database.identity-queries.d.ts +0 -28
  39. package/dist/shared/interfaces/database.member-queries.d.ts +0 -2
  40. package/package.json +1 -1
  41. package/dist/enrichment/enrichment.enricher.d.ts +0 -18
  42. package/dist/enrichment/enrichment.enricher.js +0 -30
  43. package/dist/networks/application/index.d.ts +0 -45
  44. package/dist/networks/application/index.js +0 -50
  45. package/dist/networks/domain/index.d.ts +0 -29
  46. package/dist/networks/domain/index.js +0 -31
  47. package/dist/networks/index.d.ts +0 -9
  48. package/dist/networks/index.js +0 -8
  49. package/dist/networks/ports/communities.tools.port.d.ts +0 -5
  50. package/dist/networks/ports/communities.tools.port.js +0 -1
  51. package/dist/networks/ports/index.d.ts +0 -27
  52. package/dist/networks/ports/index.js +0 -23
@@ -1,29 +0,0 @@
1
- /**
2
- * networks/domain — pure community contracts.
3
- *
4
- * Value types and graph-state shapes that define the communities capability's
5
- * domain language. No LLM calls, no LangGraph edges, no cross-capability
6
- * imports beyond domain-level @langchain/langgraph annotations.
7
- *
8
- * ## What lives here
9
- *
10
- * - **NetworkGraphState** — input/output envelope for network lifecycle CRUD
11
- * (create, read, update, delete). Scope semantics (showAll, networkId filter)
12
- * are part of this state.
13
- * - **NetworkMembershipGraphState** — input/output envelope for membership CRUD
14
- * (add member, list members, remove member). Membership authority policy
15
- * (join-policy enforcement, owner-only removals) is implemented in the
16
- * application layer but expressed through this state's inputs.
17
- *
18
- * ## What does NOT live here
19
- *
20
- * - IntentNetworkGraphState: it carries `IntentIndexerOutput` (a signals type)
21
- * and `DebugMetaAgent` (a participant-agents type), so it belongs in the
22
- * application layer (networks/application/indexer.state.ts).
23
- *
24
- * IND-546: canonical home for pure community state types.
25
- * Legacy paths (network/network.state.ts, network/membership/membership.state.ts)
26
- * are thin compatibility re-exports pointing here.
27
- */
28
- export { NetworkGraphState } from "./network.state.js";
29
- export { NetworkMembershipGraphState } from "./membership.state.js";
@@ -1,31 +0,0 @@
1
- /**
2
- * networks/domain — pure community contracts.
3
- *
4
- * Value types and graph-state shapes that define the communities capability's
5
- * domain language. No LLM calls, no LangGraph edges, no cross-capability
6
- * imports beyond domain-level @langchain/langgraph annotations.
7
- *
8
- * ## What lives here
9
- *
10
- * - **NetworkGraphState** — input/output envelope for network lifecycle CRUD
11
- * (create, read, update, delete). Scope semantics (showAll, networkId filter)
12
- * are part of this state.
13
- * - **NetworkMembershipGraphState** — input/output envelope for membership CRUD
14
- * (add member, list members, remove member). Membership authority policy
15
- * (join-policy enforcement, owner-only removals) is implemented in the
16
- * application layer but expressed through this state's inputs.
17
- *
18
- * ## What does NOT live here
19
- *
20
- * - IntentNetworkGraphState: it carries `IntentIndexerOutput` (a signals type)
21
- * and `DebugMetaAgent` (a participant-agents type), so it belongs in the
22
- * application layer (networks/application/indexer.state.ts).
23
- *
24
- * IND-546: canonical home for pure community state types.
25
- * Legacy paths (network/network.state.ts, network/membership/membership.state.ts)
26
- * are thin compatibility re-exports pointing here.
27
- */
28
- // ── Network lifecycle state ───────────────────────────────────────────────────
29
- export { NetworkGraphState } from "./network.state.js";
30
- // ── Membership state ──────────────────────────────────────────────────────────
31
- export { NetworkMembershipGraphState } from "./membership.state.js";
@@ -1,9 +0,0 @@
1
- /**
2
- * communities — the capability's sole cross-capability surface.
3
- *
4
- * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + networks/public/ pair; the export
6
- * list is the union of the facades it replaces, so the contract is unchanged.
7
- */
8
- export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
9
- export type { NetworkToolDeps, } from "./ports/communities.tools.port.js";
@@ -1,8 +0,0 @@
1
- /**
2
- * communities — the capability's sole cross-capability surface.
3
- *
4
- * Anything outside this capability imports from here and nowhere else.
5
- * Supersedes the capabilities/*.facade.ts + networks/public/ pair; the export
6
- * list is the union of the facades it replaces, so the contract is unchanged.
7
- */
8
- export { createNetworkTools, IntentNetworkGraphFactory, NetworkGraphFactory, NetworkMembershipGraphFactory, } from "./application/index.js";
@@ -1,5 +0,0 @@
1
- import type { ToolRegistryCompositionDeps } from "../../shared/agent/tool.helpers.js";
2
- /** Host capabilities consumed by community discovery and membership tools. */
3
- export type NetworkToolDeps = Pick<ToolRegistryCompositionDeps, "userDb" | "systemDb" | "getUserContextText" | "networkRanker" | "reportToolError"> & {
4
- graphs: Pick<ToolRegistryCompositionDeps["graphs"], "index" | "networkMembership">;
5
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- /**
2
- * networks/ports — narrow injected dependency contracts.
3
- *
4
- * Re-exports the subset of types that the communities capability declares as
5
- * explicit injected ports. Consumers of the communities module should import
6
- * these types from here rather than from the broader shared/interfaces barrel
7
- * to keep the dependency surface narrow and auditable.
8
- *
9
- * ## Port groups
10
- *
11
- * ### Persistence ports
12
- * - NetworkGraphDatabase — network lifecycle CRUD (membership + owner queries).
13
- * - NetworkMembershipGraphDatabase — cross-user membership operations.
14
- * - IntentNetworkGraphDatabase — intent–network link CRUD + context queries.
15
- *
16
- * ### Signal-assignment port
17
- * - IntentIndexer, IntentIndexerOutput — LLM evaluator interface injected into
18
- * IntentNetworkGraphFactory. Sourced from capabilities/signals.facade.ts (the
19
- * signals public facade) so that communities never imports signals internals.
20
- *
21
- * IND-546: explicit port layer for communities; signals consumed via capabilities/signals.facade.ts.
22
- */
23
- export type { NetworkGraphDatabase, NetworkMembershipGraphDatabase, IntentNetworkGraphDatabase, } from "../../shared/interfaces/database.interface.js";
24
- import type { Intents } from "../../intents/intent.module.js";
25
- /** The one intents method communities calls: score a signal against a network. */
26
- export type IntentNetworkIndexer = Pick<Intents, "indexIntent">;
27
- export type { IntentIndexerOutput } from "../../intents/intent.module.js";
@@ -1,23 +0,0 @@
1
- /**
2
- * networks/ports — narrow injected dependency contracts.
3
- *
4
- * Re-exports the subset of types that the communities capability declares as
5
- * explicit injected ports. Consumers of the communities module should import
6
- * these types from here rather than from the broader shared/interfaces barrel
7
- * to keep the dependency surface narrow and auditable.
8
- *
9
- * ## Port groups
10
- *
11
- * ### Persistence ports
12
- * - NetworkGraphDatabase — network lifecycle CRUD (membership + owner queries).
13
- * - NetworkMembershipGraphDatabase — cross-user membership operations.
14
- * - IntentNetworkGraphDatabase — intent–network link CRUD + context queries.
15
- *
16
- * ### Signal-assignment port
17
- * - IntentIndexer, IntentIndexerOutput — LLM evaluator interface injected into
18
- * IntentNetworkGraphFactory. Sourced from capabilities/signals.facade.ts (the
19
- * signals public facade) so that communities never imports signals internals.
20
- *
21
- * IND-546: explicit port layer for communities; signals consumed via capabilities/signals.facade.ts.
22
- */
23
- export {};