@indexnetwork/protocol 13.2.0-rc.466.1 → 13.2.1-rc.467.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 (59) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/communities/public/index.d.ts +2 -2
  3. package/dist/communities/public/index.js +2 -2
  4. package/dist/contacts/public/index.d.ts +1 -1
  5. package/dist/contacts/public/index.js +1 -1
  6. package/dist/integrations/public/index.d.ts +1 -1
  7. package/dist/integrations/public/index.js +1 -1
  8. package/dist/mcp/mcp.server.d.ts +1 -1
  9. package/dist/mcp/mcp.server.js +1 -1
  10. package/dist/negotiation/public/index.d.ts +1 -1
  11. package/dist/negotiation/public/index.js +1 -1
  12. package/dist/participant-agents/public/index.d.ts +1 -1
  13. package/dist/participant-agents/public/index.js +1 -1
  14. package/dist/participant-context/application/index.js +1 -1
  15. package/dist/participant-context/domain/index.d.ts +1 -1
  16. package/dist/participant-context/domain/index.js +1 -1
  17. package/dist/participant-context/public/index.d.ts +2 -2
  18. package/dist/participant-context/public/index.js +2 -2
  19. package/dist/questions/public/index.d.ts +1 -1
  20. package/dist/questions/public/index.js +1 -1
  21. package/dist/shared/agent/tool.factory.d.ts +15 -4
  22. package/dist/shared/agent/tool.factory.js +233 -4
  23. package/dist/shared/agent/tool.registry.d.ts +21 -9
  24. package/dist/shared/agent/tool.registry.js +80 -12
  25. package/dist/signals/application/index.d.ts +1 -1
  26. package/dist/signals/application/index.js +1 -1
  27. package/dist/signals/public/index.d.ts +2 -2
  28. package/dist/signals/public/index.js +2 -2
  29. package/package.json +1 -1
  30. package/dist/communities/index.d.ts +0 -14
  31. package/dist/communities/index.js +0 -14
  32. package/dist/contacts/index.d.ts +0 -18
  33. package/dist/contacts/index.js +0 -18
  34. package/dist/integrations/index.d.ts +0 -22
  35. package/dist/integrations/index.js +0 -22
  36. package/dist/negotiation/index.d.ts +0 -25
  37. package/dist/negotiation/index.js +0 -25
  38. package/dist/opportunity/index.d.ts +0 -29
  39. package/dist/opportunity/index.js +0 -29
  40. package/dist/participant-agents/index.d.ts +0 -17
  41. package/dist/participant-agents/index.js +0 -17
  42. package/dist/platform/index.d.ts +0 -19
  43. package/dist/platform/index.js +0 -23
  44. package/dist/public/index.d.ts +0 -17
  45. package/dist/public/index.js +0 -17
  46. package/dist/questions/index.d.ts +0 -15
  47. package/dist/questions/index.js +0 -15
  48. package/dist/runtime/background/index.d.ts +0 -14
  49. package/dist/runtime/background/index.js +0 -14
  50. package/dist/runtime/foreground/composition/tool.factory.d.ts +0 -17
  51. package/dist/runtime/foreground/composition/tool.factory.js +0 -235
  52. package/dist/runtime/foreground/composition/tool.registry.d.ts +0 -24
  53. package/dist/runtime/foreground/composition/tool.registry.js +0 -80
  54. package/dist/runtime/foreground/index.d.ts +0 -13
  55. package/dist/runtime/foreground/index.js +0 -13
  56. package/dist/runtime/foreground/signals/intent.tools.d.ts +0 -13
  57. package/dist/runtime/foreground/signals/intent.tools.js +0 -13
  58. package/dist/signals/index.d.ts +0 -13
  59. package/dist/signals/index.js +0 -13
@@ -1,12 +1,80 @@
1
- /**
2
- * Compatibility re-export shim — IND-543.
3
- *
4
- * The canonical implementation has moved to
5
- * runtime/foreground/composition/tool.registry.ts
6
- * (interaction-composition concern).
7
- *
8
- * This shim preserves all existing import paths inside the package and in
9
- * src/index.ts so that consumers need zero changes from this relocation.
10
- * It will be removed once direct importers are migrated.
11
- */
12
- export { createToolRegistry } from '../../runtime/foreground/composition/tool.registry.js';
1
+ import { error, redactSensitiveFields } from './tool.helpers.js';
2
+ import { createEnrichmentTools } from '../../enrichment/enrichment.tools.js';
3
+ import { createIntentTools } from '../../signals/application/intent.tools.js';
4
+ import { createNetworkTools } from '../../capabilities/communities.facade.js';
5
+ import { createOpportunityTools } from '../../capabilities/opportunities.facade.js';
6
+ import { createUtilityTools } from './utility.tools.js';
7
+ import { createIntegrationTools } from '../../capabilities/integrations.facade.js';
8
+ import { createContactTools } from '../../capabilities/contacts.facade.js';
9
+ import { createAgentTools } from '../../capabilities/participant-agents.tools.facade.js';
10
+ import { createNegotiationTools } from '../../capabilities/negotiation.facade.js';
11
+ import { createChatTools } from '../../chat/chat.tools.js';
12
+ import { createPremiseTools } from '../../premise/premise.tools.js';
13
+ import { createQuestionerTools } from '../../capabilities/questions.facade.js';
14
+ import { protocolLogger } from '../observability/protocol.logger.js';
15
+ import { requestContext } from '../observability/request-context.js';
16
+ const logger = protocolLogger('ToolRegistry');
17
+ export function createToolRegistry(deps, options = {}) {
18
+ const registry = new Map();
19
+ const isMcpSurface = options.surface === 'mcp';
20
+ // defineTool that captures raw handlers into the registry
21
+ function defineTool(opts) {
22
+ const entry = {
23
+ name: opts.name,
24
+ description: opts.description,
25
+ schema: opts.querySchema,
26
+ handler: async (input) => {
27
+ logger.verbose('Tool invoked', {
28
+ toolName: opts.name,
29
+ context: { userId: input.context.userId, scopeType: input.context.scopeType, scopeId: input.context.scopeId },
30
+ query: redactSensitiveFields(input.query),
31
+ });
32
+ try {
33
+ return await opts.handler({ context: input.context, query: input.query });
34
+ }
35
+ catch (err) {
36
+ const abortSignal = requestContext.getStore()?.abortSignal;
37
+ if (abortSignal?.aborted) {
38
+ throw err;
39
+ }
40
+ logger.error('Tool failed', {
41
+ toolName: opts.name,
42
+ error: err instanceof Error ? err.message : String(err),
43
+ });
44
+ return error(`Failed to execute ${opts.name}: ${err instanceof Error ? err.message : String(err)}`);
45
+ }
46
+ },
47
+ };
48
+ registry.set(opts.name, entry);
49
+ // Return a dummy — create*Tools functions collect return values into arrays,
50
+ // but for the registry path we only need the side-effect on the Map.
51
+ return null;
52
+ }
53
+ // Create all tool domains -- each one calls defineTool() which populates the registry.
54
+ // The local defineTool is compatible with DefineTool (which returns any).
55
+ const dt = defineTool;
56
+ createEnrichmentTools(dt, deps);
57
+ createIntentTools(dt, deps);
58
+ createNetworkTools(dt, deps);
59
+ createOpportunityTools(dt, deps);
60
+ // Utility tools always register read_docs + read_activity_summary; on the
61
+ // MCP surface scrape_url is omitted and read_docs guidance is sanitized
62
+ // (IND-597). The retired report_agent_activity name retains no alias on
63
+ // either surface (IND-605).
64
+ createUtilityTools(dt, deps, { surface: isMcpSurface ? 'mcp' : 'rest' });
65
+ // Contact/Gmail import tools are omitted from the MCP surface (IND-596). Their
66
+ // implementations remain available to the REST Tool API and chat agent.
67
+ if (!isMcpSurface) {
68
+ createIntegrationTools(dt, deps);
69
+ createContactTools(dt, deps);
70
+ }
71
+ createAgentTools(dt, deps);
72
+ createNegotiationTools(dt, deps);
73
+ createPremiseTools(dt, deps);
74
+ createQuestionerTools(dt, deps);
75
+ if (deps.chatSession) {
76
+ createChatTools(dt, deps);
77
+ }
78
+ logger.verbose('Tool registry created', { toolCount: registry.size, surface: options.surface ?? 'rest' });
79
+ return registry;
80
+ }
@@ -4,7 +4,7 @@
4
4
  * Houses the LangGraph factory, model-binding adapters (inferrer, clarifier,
5
5
  * verifier, reconciler, indexer), and the tool-definition factory.
6
6
  * Participant-facing runtime tool registration lives in the foreground shell
7
- * (runtime/foreground/signals/intent.tools).
7
+ * (shared/agent/tool.factory).
8
8
  *
9
9
  * Boundary: may import from signals/domain and signals/ports, plus
10
10
  * only-when-needed LangGraph / model-binding seams inside this directory.
@@ -4,7 +4,7 @@
4
4
  * Houses the LangGraph factory, model-binding adapters (inferrer, clarifier,
5
5
  * verifier, reconciler, indexer), and the tool-definition factory.
6
6
  * Participant-facing runtime tool registration lives in the foreground shell
7
- * (runtime/foreground/signals/intent.tools).
7
+ * (shared/agent/tool.factory).
8
8
  *
9
9
  * Boundary: may import from signals/domain and signals/ports, plus
10
10
  * only-when-needed LangGraph / model-binding seams inside this directory.
@@ -4,10 +4,10 @@
4
4
  * Re-exports the stable contracts from domain, application, and ports.
5
5
  * Runtime adapter creation (createIntentTools) is NOT exported here; it is
6
6
  * accessible via capabilities/signals.facade for package consumers and via
7
- * the foreground shell (runtime/foreground/signals) for internal registries.
7
+ * the tool composition root (shared/agent) for internal registries.
8
8
  *
9
9
  * Boundary: public-compatibility. References only signals/domain,
10
- * signals/application, and signals/ports — never runtime/foreground or
10
+ * signals/application, and signals/ports — never the tool composition root (shared/agent) or
11
11
  * host implementations.
12
12
  */
13
13
  export { type VerifiedIntent, type IntentValidationFailureCategory, type IntentValidationFailure, type ExecutionResult, IntentGraphState, DEFAULT_SPECIFICITY_WARNING, } from "../domain/index.js";
@@ -4,10 +4,10 @@
4
4
  * Re-exports the stable contracts from domain, application, and ports.
5
5
  * Runtime adapter creation (createIntentTools) is NOT exported here; it is
6
6
  * accessible via capabilities/signals.facade for package consumers and via
7
- * the foreground shell (runtime/foreground/signals) for internal registries.
7
+ * the tool composition root (shared/agent) for internal registries.
8
8
  *
9
9
  * Boundary: public-compatibility. References only signals/domain,
10
- * signals/application, and signals/ports — never runtime/foreground or
10
+ * signals/application, and signals/ports — never the tool composition root (shared/agent) or
11
11
  * host implementations.
12
12
  */
13
13
  // ── Domain contracts ──────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "13.2.0-rc.466.1",
3
+ "version": "13.2.1-rc.467.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,14 +0,0 @@
1
- /**
2
- * communities — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the communities
5
- * capability import directly from communities/domain, communities/application,
6
- * or communities/ports; this barrel is for cross-capability consumers that must
7
- * go through the communities public surface.
8
- *
9
- * IND-546: canonical home for network lifecycle, membership, scope, and signal
10
- * assignment behaviour previously spread across network/, network/membership/,
11
- * and network/indexer/. Legacy network/* paths remain as compatibility
12
- * re-exports pointing here.
13
- */
14
- export * from "./public/index.js";
@@ -1,14 +0,0 @@
1
- /**
2
- * communities — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the communities
5
- * capability import directly from communities/domain, communities/application,
6
- * or communities/ports; this barrel is for cross-capability consumers that must
7
- * go through the communities public surface.
8
- *
9
- * IND-546: canonical home for network lifecycle, membership, scope, and signal
10
- * assignment behaviour previously spread across network/, network/membership/,
11
- * and network/indexer/. Legacy network/* paths remain as compatibility
12
- * re-exports pointing here.
13
- */
14
- export * from "./public/index.js";
@@ -1,18 +0,0 @@
1
- /**
2
- * contacts — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the contacts
5
- * capability import directly from contacts/domain, contacts/application, or
6
- * contacts/ports; this barrel is for cross-capability consumers that must
7
- * go through the contacts public surface.
8
- *
9
- * IND-549: canonical home for contact management capabilities.
10
- *
11
- * Retains participant reachability semantics: all operations are scoped to
12
- * the owning user's personal network. Contacts are participants with whom
13
- * opportunity discovery is run.
14
- *
15
- * Compatibility path:
16
- * - capabilities/contacts.facade.ts — thin re-export via contacts/public
17
- */
18
- export * from "./public/index.js";
@@ -1,18 +0,0 @@
1
- /**
2
- * contacts — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the contacts
5
- * capability import directly from contacts/domain, contacts/application, or
6
- * contacts/ports; this barrel is for cross-capability consumers that must
7
- * go through the contacts public surface.
8
- *
9
- * IND-549: canonical home for contact management capabilities.
10
- *
11
- * Retains participant reachability semantics: all operations are scoped to
12
- * the owning user's personal network. Contacts are participants with whom
13
- * opportunity discovery is run.
14
- *
15
- * Compatibility path:
16
- * - capabilities/contacts.facade.ts — thin re-export via contacts/public
17
- */
18
- export * from "./public/index.js";
@@ -1,22 +0,0 @@
1
- /**
2
- * integrations — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the integrations
5
- * capability import directly from integrations/domain, integrations/application,
6
- * or integrations/ports; this barrel is for cross-capability consumers that
7
- * must go through the integrations public surface.
8
- *
9
- * IND-549: canonical home for integration capabilities.
10
- *
11
- * Retains host-integration configuration/actions semantics: the module owns
12
- * the OAuth session lifecycle and bulk contact import pipeline contracts.
13
- * Runtime foreground transport (authentication headers, request context) and
14
- * all-capability composition remain in runtime/foreground.
15
- *
16
- * Allowed outbound capability dependencies: none (empty set). The integrations
17
- * module is a leaf capability that only depends on shared/ primitives.
18
- *
19
- * Compatibility path:
20
- * - capabilities/integrations.facade.ts — thin re-export via integrations/public
21
- */
22
- export * from "./public/index.js";
@@ -1,22 +0,0 @@
1
- /**
2
- * integrations — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the integrations
5
- * capability import directly from integrations/domain, integrations/application,
6
- * or integrations/ports; this barrel is for cross-capability consumers that
7
- * must go through the integrations public surface.
8
- *
9
- * IND-549: canonical home for integration capabilities.
10
- *
11
- * Retains host-integration configuration/actions semantics: the module owns
12
- * the OAuth session lifecycle and bulk contact import pipeline contracts.
13
- * Runtime foreground transport (authentication headers, request context) and
14
- * all-capability composition remain in runtime/foreground.
15
- *
16
- * Allowed outbound capability dependencies: none (empty set). The integrations
17
- * module is a leaf capability that only depends on shared/ primitives.
18
- *
19
- * Compatibility path:
20
- * - capabilities/integrations.facade.ts — thin re-export via integrations/public
21
- */
22
- export * from "./public/index.js";
@@ -1,25 +0,0 @@
1
- /**
2
- * negotiation — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the negotiation
5
- * capability import directly from negotiation/domain, negotiation/application,
6
- * or negotiation/ports; this barrel is for cross-capability consumers that must
7
- * go through the negotiation public surface.
8
- *
9
- * IND-550: canonical home for the bilateral turn protocol, screening, memory,
10
- * consultation, settlement, and summary capabilities previously spread across
11
- * the flat negotiation/ directory and capabilities/negotiation*.facade.ts files.
12
- *
13
- * ## Module topology
14
- *
15
- * ```
16
- * negotiation/
17
- * ├── domain/ — pure types, protocol rules, policy functions, renderers
18
- * ├── application/ — LLM agents, LangGraph factory, MCP tool factory
19
- * ├── ports/ — injected dependency contracts (NegotiationToolDeps)
20
- * ├── public/ — curated re-export surface
21
- * └── index.ts — this file
22
- * ```
23
- *
24
- */
25
- export * from "./public/index.js";
@@ -1,25 +0,0 @@
1
- /**
2
- * negotiation — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the negotiation
5
- * capability import directly from negotiation/domain, negotiation/application,
6
- * or negotiation/ports; this barrel is for cross-capability consumers that must
7
- * go through the negotiation public surface.
8
- *
9
- * IND-550: canonical home for the bilateral turn protocol, screening, memory,
10
- * consultation, settlement, and summary capabilities previously spread across
11
- * the flat negotiation/ directory and capabilities/negotiation*.facade.ts files.
12
- *
13
- * ## Module topology
14
- *
15
- * ```
16
- * negotiation/
17
- * ├── domain/ — pure types, protocol rules, policy functions, renderers
18
- * ├── application/ — LLM agents, LangGraph factory, MCP tool factory
19
- * ├── ports/ — injected dependency contracts (NegotiationToolDeps)
20
- * ├── public/ — curated re-export surface
21
- * └── index.ts — this file
22
- * ```
23
- *
24
- */
25
- export * from "./public/index.js";
@@ -1,29 +0,0 @@
1
- /**
2
- * opportunity — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the opportunity
5
- * capability import directly from opportunity/domain, opportunity/application,
6
- * or opportunity/ports; this barrel is for cross-capability consumers that must
7
- * go through the opportunity public surface.
8
- *
9
- * IND-551: canonical home for candidate generation, evaluation, persistence,
10
- * lifecycle, feed projection, evidence, outcome, and safe presentation.
11
- *
12
- * ## Module topology
13
- *
14
- * ```
15
- * opportunity/
16
- * ├── domain/ — pure types, predicates, policy, safe-presentation
17
- * ├── application/ — LLM agents, LangGraph graphs, effectful orchestration
18
- * ├── ports/ — injected dependency contracts
19
- * ├── public/ — curated re-export surface
20
- * └── index.ts — this file
21
- * ```
22
- *
23
- * ## Subdirectories (domain and application files co-located)
24
- * - discriminator/ — pool question mining, scoring, assignment
25
- * - negotiation-evidence/ — Lens C evidence extraction and mining
26
- * - outcome/ — Lens B outcome hypothesis mining
27
- * - radar/ — radar graph (flat presenter-card list) and radar health
28
- */
29
- export * from "./public/index.js";
@@ -1,29 +0,0 @@
1
- /**
2
- * opportunity — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the opportunity
5
- * capability import directly from opportunity/domain, opportunity/application,
6
- * or opportunity/ports; this barrel is for cross-capability consumers that must
7
- * go through the opportunity public surface.
8
- *
9
- * IND-551: canonical home for candidate generation, evaluation, persistence,
10
- * lifecycle, feed projection, evidence, outcome, and safe presentation.
11
- *
12
- * ## Module topology
13
- *
14
- * ```
15
- * opportunity/
16
- * ├── domain/ — pure types, predicates, policy, safe-presentation
17
- * ├── application/ — LLM agents, LangGraph graphs, effectful orchestration
18
- * ├── ports/ — injected dependency contracts
19
- * ├── public/ — curated re-export surface
20
- * └── index.ts — this file
21
- * ```
22
- *
23
- * ## Subdirectories (domain and application files co-located)
24
- * - discriminator/ — pool question mining, scoring, assignment
25
- * - negotiation-evidence/ — Lens C evidence extraction and mining
26
- * - outcome/ — Lens B outcome hypothesis mining
27
- * - radar/ — radar graph (flat presenter-card list) and radar health
28
- */
29
- export * from "./public/index.js";
@@ -1,17 +0,0 @@
1
- /**
2
- * participant-agents — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the
5
- * participant-agents capability import directly from
6
- * participant-agents/domain, participant-agents/application, or
7
- * participant-agents/ports; this barrel is for cross-capability consumers
8
- * that must go through the participant-agents public surface.
9
- *
10
- * IND-548: canonical home for agent registration, permission-aware behaviour,
11
- * and dispatch contracts.
12
- *
13
- * Compatibility path:
14
- * - shared/interfaces/agent-dispatcher.interface.ts — re-exports from
15
- * participant-agents/ports
16
- */
17
- export * from "./public/index.js";
@@ -1,17 +0,0 @@
1
- /**
2
- * participant-agents — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the
5
- * participant-agents capability import directly from
6
- * participant-agents/domain, participant-agents/application, or
7
- * participant-agents/ports; this barrel is for cross-capability consumers
8
- * that must go through the participant-agents public surface.
9
- *
10
- * IND-548: canonical home for agent registration, permission-aware behaviour,
11
- * and dispatch contracts.
12
- *
13
- * Compatibility path:
14
- * - shared/interfaces/agent-dispatcher.interface.ts — re-exports from
15
- * participant-agents/ports
16
- */
17
- export * from "./public/index.js";
@@ -1,19 +0,0 @@
1
- /**
2
- * platform — IND-543 outer shell.
3
- *
4
- * Curated contracts that are truly cross-domain: model primitives,
5
- * observability extension hooks, timeout/abort/request-context.
6
- *
7
- * Boundary: neutral-platform. MUST NOT import any capability module
8
- * internals (signals, communities, opportunities, negotiation, …).
9
- * Permitted sources: shared/interfaces, shared/schemas, shared/observability,
10
- * shared/agent model + runtime helpers.
11
- *
12
- * These re-exports are temporary aliases; the implementation files remain in
13
- * shared/ until the domain migration issues land.
14
- */
15
- export { getModelName } from '../shared/agent/model.config.js';
16
- export { requestContext } from '../shared/observability/request-context.js';
17
- export { setLoggerFactory } from '../shared/observability/log.js';
18
- export { setTimingWrapper } from '../shared/observability/performance.js';
19
- export { getToolTimeoutPolicy, invokeToolRuntime, toolRuntimeErrorToResult, } from '../shared/agent/tool.runtime.js';
@@ -1,23 +0,0 @@
1
- /**
2
- * platform — IND-543 outer shell.
3
- *
4
- * Curated contracts that are truly cross-domain: model primitives,
5
- * observability extension hooks, timeout/abort/request-context.
6
- *
7
- * Boundary: neutral-platform. MUST NOT import any capability module
8
- * internals (signals, communities, opportunities, negotiation, …).
9
- * Permitted sources: shared/interfaces, shared/schemas, shared/observability,
10
- * shared/agent model + runtime helpers.
11
- *
12
- * These re-exports are temporary aliases; the implementation files remain in
13
- * shared/ until the domain migration issues land.
14
- */
15
- // ── Model primitives ──────────────────────────────────────────────────────────
16
- export { getModelName } from '../shared/agent/model.config.js';
17
- // ── Request / abort context ───────────────────────────────────────────────────
18
- export { requestContext } from '../shared/observability/request-context.js';
19
- // ── Observability extension points ────────────────────────────────────────────
20
- export { setLoggerFactory } from '../shared/observability/log.js';
21
- export { setTimingWrapper } from '../shared/observability/performance.js';
22
- // ── Tool invocation runtime ───────────────────────────────────────────────────
23
- export { getToolTimeoutPolicy, invokeToolRuntime, toolRuntimeErrorToResult, } from '../shared/agent/tool.runtime.js';
@@ -1,17 +0,0 @@
1
- export {};
2
- /**
3
- * public — IND-543 outer shell.
4
- *
5
- * Curated root assembly and temporary compatibility aliases. This shell will
6
- * eventually host a structured sub-barrel that feeds src/index.ts; during
7
- * the outer-seam phase (IND-543) it establishes the boundary and naming
8
- * convention without duplicating the existing root barrel.
9
- *
10
- * Boundary: public-compatibility. May only reference capability contracts
11
- * via capabilities/*.facade.ts — never capability implementation internals.
12
- * Must not introduce a second supported package entry point; src/index.ts
13
- * remains the sole supported entry.
14
- *
15
- * Shell is intentionally declaration-only at this phase. Curated re-exports
16
- * follow in subsequent issues once public/ is wired into src/index.ts.
17
- */
@@ -1,17 +0,0 @@
1
- export {};
2
- /**
3
- * public — IND-543 outer shell.
4
- *
5
- * Curated root assembly and temporary compatibility aliases. This shell will
6
- * eventually host a structured sub-barrel that feeds src/index.ts; during
7
- * the outer-seam phase (IND-543) it establishes the boundary and naming
8
- * convention without duplicating the existing root barrel.
9
- *
10
- * Boundary: public-compatibility. May only reference capability contracts
11
- * via capabilities/*.facade.ts — never capability implementation internals.
12
- * Must not introduce a second supported package entry point; src/index.ts
13
- * remains the sole supported entry.
14
- *
15
- * Shell is intentionally declaration-only at this phase. Curated re-exports
16
- * follow in subsequent issues once public/ is wired into src/index.ts.
17
- */
@@ -1,15 +0,0 @@
1
- /**
2
- * questions — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the questions
5
- * capability import directly from questions/domain, questions/application,
6
- * or questions/ports; this barrel is for cross-capability consumers that must
7
- * go through the questions public surface.
8
- *
9
- * IND-547: canonical home for question generation, eligibility, validation,
10
- * provenance, settlement policy, and continuation behaviour.
11
- *
12
- * Compatibility paths:
13
- * - capabilities/questions.facade.ts — re-exports from questions/public/index.js
14
- */
15
- export * from "./public/index.js";
@@ -1,15 +0,0 @@
1
- /**
2
- * questions — domain-first module root.
3
- *
4
- * Re-exports the curated public surface. Other modules inside the questions
5
- * capability import directly from questions/domain, questions/application,
6
- * or questions/ports; this barrel is for cross-capability consumers that must
7
- * go through the questions public surface.
8
- *
9
- * IND-547: canonical home for question generation, eligibility, validation,
10
- * provenance, settlement policy, and continuation behaviour.
11
- *
12
- * Compatibility paths:
13
- * - capabilities/questions.facade.ts — re-exports from questions/public/index.js
14
- */
15
- export * from "./public/index.js";
@@ -1,14 +0,0 @@
1
- export {};
2
- /**
3
- * runtime/background — IND-543 outer shell.
4
- *
5
- * Entry point for ambient / background workflow adapters: maintenance graphs,
6
- * enrichment runners, negotiation schedulers, and other non-interactive
7
- * entry points that operate without a live participant session.
8
- *
9
- * Boundary: ambient-background. May import from any capability via its
10
- * capabilities/*.facade.ts contract. Must not import host implementations.
11
- *
12
- * Shell is intentionally empty at this phase (IND-543 outer seam only).
13
- * Domain-level adapter relocations follow in subsequent issues.
14
- */
@@ -1,14 +0,0 @@
1
- export {};
2
- /**
3
- * runtime/background — IND-543 outer shell.
4
- *
5
- * Entry point for ambient / background workflow adapters: maintenance graphs,
6
- * enrichment runners, negotiation schedulers, and other non-interactive
7
- * entry points that operate without a live participant session.
8
- *
9
- * Boundary: ambient-background. May import from any capability via its
10
- * capabilities/*.facade.ts contract. Must not import host implementations.
11
- *
12
- * Shell is intentionally empty at this phase (IND-543 outer seam only).
13
- * Domain-level adapter relocations follow in subsequent issues.
14
- */
@@ -1,17 +0,0 @@
1
- import { type ToolContext, type ResolvedToolContext } from "../../../shared/agent/tool.helpers.js";
2
- import type { OpportunityOwnerApprovalDeps } from "../../../opportunity/ports/opportunity.tools.port.js";
3
- export type { ToolContext, ResolvedToolContext, ProtocolDeps } from "../../../shared/agent/tool.helpers.js";
4
- export type { ToolDeps } from "../../../shared/agent/tool.helpers.js";
5
- /**
6
- * Creates all chat tools bound to a specific user context.
7
- * Resolves user/network identity from DB at init time.
8
- * Tools are created fresh for each user session to ensure proper isolation.
9
- *
10
- * All external dependencies (cache, integration, queue, etc.) are provided
11
- * via the `deps` parameter — the protocol lib never imports concrete adapters.
12
- */
13
- export declare function createChatTools(deps: ToolContext & OpportunityOwnerApprovalDeps, preResolvedContext?: ResolvedToolContext): Promise<any[]>;
14
- /**
15
- * Type for the tools array returned by createChatTools.
16
- */
17
- export type ChatTools = Awaited<ReturnType<typeof createChatTools>>;