@indexnetwork/protocol 17.0.1-rc.480.1 → 19.0.0-rc.482.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 +65 -0
- package/IMPLEMENTATION.md +46 -3
- package/STABILITY.md +5 -1
- package/dist/contacts/application/contact.tools.js +1 -3
- package/dist/contacts/domain/contact.types.d.ts +0 -2
- package/dist/contexts/application/index.d.ts +0 -1
- package/dist/contexts/application/index.js +0 -1
- package/dist/enrichment/enrichment.graph.js +1 -36
- package/dist/index.d.ts +2 -9
- package/dist/index.js +4 -6
- package/dist/intents/{application → graph}/intent.graph.d.ts +26 -26
- package/dist/intents/{application → graph}/intent.graph.execute.d.ts +1 -1
- package/dist/intents/{application → graph}/intent.graph.execute.js +1 -1
- package/dist/intents/{application → graph}/intent.graph.js +4 -4
- package/dist/intents/{application → graph}/intent.graph.reconcile.d.ts +2 -2
- package/dist/intents/{application → graph}/intent.graph.shared.d.ts +5 -5
- package/dist/intents/{application → graph}/intent.graph.shared.js +1 -1
- package/dist/intents/{domain/intent.state.d.ts → graph/intent.graph.state.d.ts} +3 -3
- package/dist/intents/{application/intent.clarifier.js → intent.clarifier.js} +5 -5
- package/dist/intents/{application/intent.indexer.js → intent.indexer.js} +4 -4
- package/dist/intents/{application/intent.inferrer.js → intent.inferrer.js} +4 -4
- package/dist/intents/intent.module.d.ts +633 -0
- package/dist/intents/intent.module.js +103 -0
- package/dist/intents/{domain/intent.proposal.d.ts → intent.proposal.d.ts} +2 -0
- package/dist/intents/{domain/intent.proposal.js → intent.proposal.js} +2 -0
- package/dist/intents/{application/intent.reconciler.js → intent.reconciler.js} +4 -4
- package/dist/intents/{application/intent.tools.d.ts → intent.tools.d.ts} +6 -3
- package/dist/intents/{application/intent.tools.js → intent.tools.js} +6 -7
- package/dist/intents/{application/intent.verifier.js → intent.verifier.js} +4 -4
- package/dist/networks/application/indexer.graph.d.ts +7 -7
- package/dist/networks/application/indexer.graph.js +2 -2
- package/dist/networks/ports/index.d.ts +4 -2
- package/dist/networks/ports/index.js +1 -5
- package/dist/opportunities/application/opportunity.graph.prep.js +3 -3
- package/dist/opportunities/application/opportunity.tools.cards.d.ts +1 -2
- package/dist/opportunities/application/opportunity.tools.cards.js +1 -2
- package/dist/opportunities/application/opportunity.tools.list.js +0 -4
- package/dist/opportunities/radar/radar.graph.js +0 -4
- package/dist/opportunities/radar/radar.state.d.ts +0 -2
- package/dist/shared/agent/tool.factory.js +10 -6
- package/dist/shared/agent/tool.helpers.d.ts +2 -2
- package/dist/shared/agent/tool.registry.js +2 -2
- package/dist/shared/agent/utility.tools.js +1 -2
- package/dist/shared/interfaces/database.capabilities.d.ts +2 -2
- package/dist/shared/interfaces/database.entities.d.ts +0 -3
- package/dist/shared/interfaces/database.identity-queries.d.ts +0 -28
- package/dist/shared/interfaces/database.member-queries.d.ts +0 -2
- package/package.json +1 -1
- package/dist/enrichment/enrichment.enricher.d.ts +0 -18
- package/dist/enrichment/enrichment.enricher.js +0 -30
- package/dist/intents/application/index.d.ts +0 -21
- package/dist/intents/application/index.js +0 -26
- package/dist/intents/domain/index.d.ts +0 -9
- package/dist/intents/domain/index.js +0 -11
- package/dist/intents/domain/signal.specificity.d.ts +0 -2
- package/dist/intents/domain/signal.specificity.js +0 -2
- package/dist/intents/index.d.ts +0 -18
- package/dist/intents/index.js +0 -14
- package/dist/intents/ports/index.d.ts +0 -15
- package/dist/intents/ports/index.js +0 -13
- package/dist/intents/ports/signals.tools.port.d.ts +0 -5
- package/dist/intents/ports/signals.tools.port.js +0 -1
- /package/dist/intents/{application → graph}/intent.graph.infer.d.ts +0 -0
- /package/dist/intents/{application → graph}/intent.graph.infer.js +0 -0
- /package/dist/intents/{application → graph}/intent.graph.reconcile.js +0 -0
- /package/dist/intents/{domain/intent.state.js → graph/intent.graph.state.js} +0 -0
- /package/dist/intents/{application → intake}/intake.orchestrator.d.ts +0 -0
- /package/dist/intents/{application → intake}/intake.orchestrator.js +0 -0
- /package/dist/intents/{application → intake}/intake.pack.generator.d.ts +0 -0
- /package/dist/intents/{application → intake}/intake.pack.generator.js +0 -0
- /package/dist/intents/{application/intent.clarifier.d.ts → intent.clarifier.d.ts} +0 -0
- /package/dist/intents/{application/intent.indexer.d.ts → intent.indexer.d.ts} +0 -0
- /package/dist/intents/{application/intent.inferrer.d.ts → intent.inferrer.d.ts} +0 -0
- /package/dist/intents/{application/intent.reconciler.d.ts → intent.reconciler.d.ts} +0 -0
- /package/dist/intents/{application/intent.verifier.d.ts → intent.verifier.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true when the enriched name is meaningfully better than the email local-part.
|
|
3
|
-
* A name that is empty, contains '@', or case-insensitively matches the prefix is NOT meaningful.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isEnrichedNameMeaningful(email: string, enrichedName: string): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Decides whether to set {@link users.name} from Parallel `enrichment.identity.name` for ghost users.
|
|
8
|
-
* @remarks Real users (Google login, etc.) are never touched. Ghost users always get
|
|
9
|
-
* their name enriched when Parallel returns a non-empty name that isn't an email.
|
|
10
|
-
* @param user - Current user row (must include `email`, `name`, `isGhost`)
|
|
11
|
-
* @param enrichedName - `enrichment.identity.name` from Parallel (may be untrimmed)
|
|
12
|
-
* @returns True if `users.name` should be updated to the enriched full name
|
|
13
|
-
*/
|
|
14
|
-
export declare function shouldEnrichGhostDisplayNameFromParallel(user: {
|
|
15
|
-
name: string;
|
|
16
|
-
email: string;
|
|
17
|
-
isGhost?: boolean | null;
|
|
18
|
-
}, enrichedName: string): boolean;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true when the enriched name is meaningfully better than the email local-part.
|
|
3
|
-
* A name that is empty, contains '@', or case-insensitively matches the prefix is NOT meaningful.
|
|
4
|
-
*/
|
|
5
|
-
export function isEnrichedNameMeaningful(email, enrichedName) {
|
|
6
|
-
const trimmed = enrichedName.trim();
|
|
7
|
-
if (!trimmed || trimmed.includes('@'))
|
|
8
|
-
return false;
|
|
9
|
-
const localPart = email.split('@')[0].toLowerCase();
|
|
10
|
-
return trimmed.toLowerCase() !== localPart;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Decides whether to set {@link users.name} from Parallel `enrichment.identity.name` for ghost users.
|
|
14
|
-
* @remarks Real users (Google login, etc.) are never touched. Ghost users always get
|
|
15
|
-
* their name enriched when Parallel returns a non-empty name that isn't an email.
|
|
16
|
-
* @param user - Current user row (must include `email`, `name`, `isGhost`)
|
|
17
|
-
* @param enrichedName - `enrichment.identity.name` from Parallel (may be untrimmed)
|
|
18
|
-
* @returns True if `users.name` should be updated to the enriched full name
|
|
19
|
-
*/
|
|
20
|
-
export function shouldEnrichGhostDisplayNameFromParallel(user, enrichedName) {
|
|
21
|
-
if (!user.isGhost)
|
|
22
|
-
return false;
|
|
23
|
-
const trimmed = enrichedName.trim();
|
|
24
|
-
if (!trimmed || trimmed.includes("@"))
|
|
25
|
-
return false;
|
|
26
|
-
// Skip only if exactly the same (case-sensitive)
|
|
27
|
-
if (user.name.trim() === trimmed)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* intents/application — signal lifecycle and graph orchestration seams.
|
|
3
|
-
*
|
|
4
|
-
* Houses the LangGraph factory, model-binding adapters (inferrer, clarifier,
|
|
5
|
-
* verifier, reconciler, indexer), and the tool-definition factory.
|
|
6
|
-
* Participant-facing runtime tool registration lives in the foreground shell
|
|
7
|
-
* (shared/agent/tool.factory).
|
|
8
|
-
*
|
|
9
|
-
* Boundary: may import from intents/domain and intents/ports, plus
|
|
10
|
-
* only-when-needed LangGraph / model-binding seams inside this directory.
|
|
11
|
-
* Must not import host implementations.
|
|
12
|
-
*/
|
|
13
|
-
export { IntentGraphFactory, enforceIntentActionBoundary, buildExplicitUpdateActions } from "./intent.graph.js";
|
|
14
|
-
export { ExplicitIntentInferrer, type InferredIntent, type InferrerOptions } from "./intent.inferrer.js";
|
|
15
|
-
export { IntentClarifier } from "./intent.clarifier.js";
|
|
16
|
-
export { SemanticVerifier, type SemanticVerifierOutput } from "./intent.verifier.js";
|
|
17
|
-
export { IntentReconciler, type IntentReconcilerOutput, type NormalizedIntentAction } from "./intent.reconciler.js";
|
|
18
|
-
export { IntentIndexer, IntentIndexerOutputSchema, type IntentIndexerOutput } from "./intent.indexer.js";
|
|
19
|
-
export { createIntentTools, describeIntentUpdateFailure } from "./intent.tools.js";
|
|
20
|
-
export { SignalIntakePackGenerator, normalizeIntakePack, type IntakePack, type IntakePackInput, type IntakePackQuestion, type IntakePackQuestionOption, } from "./intake.pack.generator.js";
|
|
21
|
-
export { SignalIntakeOrchestrator, answerLabel, FALLBACK_WHO_QUESTION, FALLBACK_BRING_QUESTION, type IntakeAnswer, type IntakeRound, type FollowUpPlan, type FollowUpPlanInput, type SynthesisInput, type SynthesisResult, } from "./intake.orchestrator.js";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* intents/application — signal lifecycle and graph orchestration seams.
|
|
3
|
-
*
|
|
4
|
-
* Houses the LangGraph factory, model-binding adapters (inferrer, clarifier,
|
|
5
|
-
* verifier, reconciler, indexer), and the tool-definition factory.
|
|
6
|
-
* Participant-facing runtime tool registration lives in the foreground shell
|
|
7
|
-
* (shared/agent/tool.factory).
|
|
8
|
-
*
|
|
9
|
-
* Boundary: may import from intents/domain and intents/ports, plus
|
|
10
|
-
* only-when-needed LangGraph / model-binding seams inside this directory.
|
|
11
|
-
* Must not import host implementations.
|
|
12
|
-
*/
|
|
13
|
-
// ── Graph orchestration ───────────────────────────────────────────────────────
|
|
14
|
-
export { IntentGraphFactory, enforceIntentActionBoundary, buildExplicitUpdateActions } from "./intent.graph.js";
|
|
15
|
-
// ── Model-binding adapters ────────────────────────────────────────────────────
|
|
16
|
-
export { ExplicitIntentInferrer } from "./intent.inferrer.js";
|
|
17
|
-
export { IntentClarifier } from "./intent.clarifier.js";
|
|
18
|
-
export { SemanticVerifier } from "./intent.verifier.js";
|
|
19
|
-
export { IntentReconciler } from "./intent.reconciler.js";
|
|
20
|
-
export { IntentIndexer, IntentIndexerOutputSchema } from "./intent.indexer.js";
|
|
21
|
-
// ── Tool factory (signals layer) ──────────────────────────────────────────────
|
|
22
|
-
export { createIntentTools, describeIntentUpdateFailure } from "./intent.tools.js";
|
|
23
|
-
// ── Fast-intake pack ──────────────────────────────────────────────────────────
|
|
24
|
-
export { SignalIntakePackGenerator, normalizeIntakePack, } from "./intake.pack.generator.js";
|
|
25
|
-
// ── Fast-intake orchestrator ──────────────────────────────────────────────────
|
|
26
|
-
export { SignalIntakeOrchestrator, answerLabel, FALLBACK_WHO_QUESTION, FALLBACK_BRING_QUESTION, } from "./intake.orchestrator.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* intents/domain — pure signal contracts.
|
|
3
|
-
*
|
|
4
|
-
* Value types, graph-state shapes, validation-failure enumerations, and
|
|
5
|
-
* domain constants that define the signals capability's domain language.
|
|
6
|
-
* No LLM calls, no LangGraph edges, no host-adapter imports.
|
|
7
|
-
*/
|
|
8
|
-
export { type VerifiedIntent, type IntentValidationFailureCategory, type IntentValidationFailure, type ExecutionResult, IntentGraphState, } from "./intent.state.js";
|
|
9
|
-
export { DEFAULT_SPECIFICITY_WARNING } from "./signal.specificity.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* intents/domain — pure signal contracts.
|
|
3
|
-
*
|
|
4
|
-
* Value types, graph-state shapes, validation-failure enumerations, and
|
|
5
|
-
* domain constants that define the signals capability's domain language.
|
|
6
|
-
* No LLM calls, no LangGraph edges, no host-adapter imports.
|
|
7
|
-
*/
|
|
8
|
-
// ── State and value types ─────────────────────────────────────────────────────
|
|
9
|
-
export { IntentGraphState, } from "./intent.state.js";
|
|
10
|
-
// ── Domain constants ──────────────────────────────────────────────────────────
|
|
11
|
-
export { DEFAULT_SPECIFICITY_WARNING } from "./signal.specificity.js";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/** Default user-facing warning for broad attributive intent proposals. */
|
|
2
|
-
export declare const DEFAULT_SPECIFICITY_WARNING = "This signal is broad and may produce many weak matches. Add a more concrete role, outcome, location, timeframe, domain, or specific need to get better recommendations.";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/** Default user-facing warning for broad attributive intent proposals. */
|
|
2
|
-
export const DEFAULT_SPECIFICITY_WARNING = "This signal is broad and may produce many weak matches. Add a more concrete role, outcome, location, timeframe, domain, or specific need to get better recommendations.";
|
package/dist/intents/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* signals — 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 + intents/public/ pair; the export
|
|
6
|
-
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
-
*/
|
|
8
|
-
export { answerLabel, FALLBACK_BRING_QUESTION, FALLBACK_WHO_QUESTION, SignalIntakeOrchestrator, } from "./application/intake.orchestrator.js";
|
|
9
|
-
export type { FollowUpPlan, FollowUpPlanInput, IntakeAnswer, IntakeRound, SynthesisInput, SynthesisResult, } from "./application/intake.orchestrator.js";
|
|
10
|
-
export { normalizeIntakePack, SignalIntakePackGenerator, } from "./application/intake.pack.generator.js";
|
|
11
|
-
export type { IntakePack, IntakePackInput, IntakePackQuestion, IntakePackQuestionOption, } from "./application/intake.pack.generator.js";
|
|
12
|
-
export { IntentGraphFactory, } from "./application/intent.graph.js";
|
|
13
|
-
export { IntentIndexer, } from "./application/intent.indexer.js";
|
|
14
|
-
export type { IntentIndexerOutput, } from "./application/intent.indexer.js";
|
|
15
|
-
export { createIntentTools, } from "./application/intent.tools.js";
|
|
16
|
-
export { SemanticVerifier, } from "./application/intent.verifier.js";
|
|
17
|
-
export { normalizeIntentDescription, } from "./domain/intent.proposal.js";
|
|
18
|
-
export type { IntentToolDeps, } from "./ports/signals.tools.port.js";
|
package/dist/intents/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* signals — 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 + intents/public/ pair; the export
|
|
6
|
-
* list is the union of the facades it replaces, so the contract is unchanged.
|
|
7
|
-
*/
|
|
8
|
-
export { answerLabel, FALLBACK_BRING_QUESTION, FALLBACK_WHO_QUESTION, SignalIntakeOrchestrator, } from "./application/intake.orchestrator.js";
|
|
9
|
-
export { normalizeIntakePack, SignalIntakePackGenerator, } from "./application/intake.pack.generator.js";
|
|
10
|
-
export { IntentGraphFactory, } from "./application/intent.graph.js";
|
|
11
|
-
export { IntentIndexer, } from "./application/intent.indexer.js";
|
|
12
|
-
export { createIntentTools, } from "./application/intent.tools.js";
|
|
13
|
-
export { SemanticVerifier, } from "./application/intent.verifier.js";
|
|
14
|
-
export { normalizeIntentDescription, } from "./domain/intent.proposal.js";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* intents/ports — narrow injected dependency contracts.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the subset of shared/interfaces types that the signals
|
|
5
|
-
* capability declares as explicit injected ports. Consumers of the
|
|
6
|
-
* signals module should import these port types here rather than from
|
|
7
|
-
* the broader shared/interfaces barrel to keep the dependency surface
|
|
8
|
-
* narrow and auditable.
|
|
9
|
-
*
|
|
10
|
-
* Ports are migrated here incrementally; placeholders name the intended
|
|
11
|
-
* contracts before they are physically relocated.
|
|
12
|
-
*/
|
|
13
|
-
export type { IntentGraphDatabase } from "../../shared/interfaces/database.interface.js";
|
|
14
|
-
export type { EmbeddingGenerator } from "../../shared/interfaces/embedder.interface.js";
|
|
15
|
-
export type { IntentGraphQueue } from "../../shared/interfaces/queue.interface.js";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* intents/ports — narrow injected dependency contracts.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the subset of shared/interfaces types that the signals
|
|
5
|
-
* capability declares as explicit injected ports. Consumers of the
|
|
6
|
-
* signals module should import these port types here rather than from
|
|
7
|
-
* the broader shared/interfaces barrel to keep the dependency surface
|
|
8
|
-
* narrow and auditable.
|
|
9
|
-
*
|
|
10
|
-
* Ports are migrated here incrementally; placeholders name the intended
|
|
11
|
-
* contracts before they are physically relocated.
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ToolRegistryCompositionDeps } from "../../shared/agent/tool.helpers.js";
|
|
2
|
-
/** Host capabilities consumed by signal and intent tools. */
|
|
3
|
-
export type IntentToolDeps = Pick<ToolRegistryCompositionDeps, "userDb" | "systemDb"> & Pick<ToolRegistryCompositionDeps, "intentProposalStore"> & {
|
|
4
|
-
graphs: Pick<ToolRegistryCompositionDeps["graphs"], "intent" | "intentIndex" | "profile">;
|
|
5
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|