@lucern/contracts 1.0.3 → 1.0.5
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 +6 -0
- package/dist/context-pack.contract.d.ts +10 -0
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/dsl.d.ts +1 -0
- package/dist/dsl.js +10 -3
- package/dist/dsl.js.map +1 -1
- package/dist/dsl.values.js +10 -3
- package/dist/dsl.values.js.map +1 -1
- package/dist/function-registry/beliefs.js +302 -0
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +302 -0
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.js +302 -0
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +302 -0
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +302 -0
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +302 -0
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.js +302 -0
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.js +302 -0
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.js +302 -0
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +302 -0
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +410 -6
- package/dist/function-registry/index.js +508 -2
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.js +302 -0
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +302 -0
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.js +302 -0
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +2 -2
- package/dist/function-registry/manifest.js +10 -0
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.js +302 -0
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.js +302 -0
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.js +302 -0
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.js +302 -0
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +302 -0
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.js +302 -0
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/worktrees.js +302 -0
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/convexSchemas.js +1 -1
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +9 -9
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/generated/schema-manifest.json +10 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +343 -17
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +3 -3
- package/dist/infisical-runtime.contract.js +3 -3
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/infisical-runtime.platform-secrets.d.ts +3 -3
- package/dist/infisical-runtime.platform-secrets.js +3 -3
- package/dist/infisical-runtime.platform-secrets.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +3 -3
- package/dist/manifests/infisical-runtime-manifest.js +3 -3
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +29 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +60 -25
- package/dist/schemas/manifest.js +29 -2
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +8 -1
- package/dist/schemas/tables/kernel/embedding.js +29 -2
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +4 -4
- package/dist/schemas.values.js +29 -2
- package/dist/schemas.values.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +5 -0
- package/dist/sdk-tools.contract.js +292 -0
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/sdk-tools.contract.registry.js +292 -0
- package/dist/sdk-tools.contract.registry.js.map +1 -1
- package/dist/sdk-tools.contract.values.js +292 -0
- package/dist/sdk-tools.contract.values.js.map +1 -1
- package/dist/tool-contracts.d.ts +2 -0
- package/dist/tool-contracts.embeddings.d.ts +8 -0
- package/dist/tool-contracts.embeddings.js +120 -0
- package/dist/tool-contracts.embeddings.js.map +1 -0
- package/dist/tool-contracts.hybrid-discovery.d.ts +10 -0
- package/dist/tool-contracts.hybrid-discovery.js +148 -0
- package/dist/tool-contracts.hybrid-discovery.js.map +1 -0
- package/dist/tool-contracts.js +293 -1
- package/dist/tool-contracts.js.map +1 -1
- package/dist/tool-contracts.questions-listing.js +20 -0
- package/dist/tool-contracts.questions-listing.js.map +1 -1
- package/dist/tool-contracts.values.d.ts +2 -0
- package/dist/tool-contracts.values.js +292 -0
- package/dist/tool-contracts.values.js.map +1 -1
- package/package.json +10 -2
- package/dist/{edge-policy-manifest-4KOSP4nk.d.ts → edge-policy-manifest-CT8Y4IeW.d.ts} +2 -2
package/dist/tool-contracts.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { McpParameterDef, McpResponseDef } from './tool-contracts.types.js';
|
|
|
3
3
|
export { ADD_EVIDENCE, ARCHIVE_BELIEF, CREATE_BELIEF, CREATE_EPISTEMIC_CONTRACT, FLAG_CONTRADICTION, FORK_BELIEF, GET_BELIEF, MODULATE_CONFIDENCE, REFINE_BELIEF } from './tool-contracts.lifecycle.js';
|
|
4
4
|
export { ADD_WORKTREE, MERGE, OPEN_PULL_REQUEST, PUSH } from './tool-contracts.worktrees.js';
|
|
5
5
|
export { BATCH_CREATE_EDGES, BISECT_CONFIDENCE, CREATE_EDGE, FIND_CONTRADICTIONS, GET_AUDIT_TRAIL, GET_CONFIDENCE_HISTORY, GET_GRAPH_NEIGHBORHOOD, QUERY_LINEAGE, REMOVE_EDGE, REMOVE_EDGES_BETWEEN, SEARCH_BELIEFS, TRACE_ENTITY_IMPACT, TRAVERSE_GRAPH, UPDATE_EDGE } from './tool-contracts.graph.js';
|
|
6
|
+
export { GET_EMBEDDINGS_BY_NODE_IDS, LIST_MISSING_EMBEDDINGS, QUEUE_EMBEDDING_BACKFILL, SEARCH_EMBEDDINGS } from './tool-contracts.embeddings.js';
|
|
7
|
+
export { ANALYZE_GRAPH_IMPACT, DETECT_GRAPH_DRIFT, EXPAND_GRAPH_NEIGHBORHOOD, FIND_RELATED_NODES, HYBRID_DISCOVER, RESOLVE_TOPIC_SEMANTIC } from './tool-contracts.hybrid-discovery.js';
|
|
6
8
|
export { APPLY_LENS_TO_TOPIC, ARCHIVE_EPISTEMIC_NODE, BATCH_CREATE_EPISTEMIC_NODES, CREATE_EPISTEMIC_NODE, CREATE_LENS, GET_EPISTEMIC_NODE, LIST_EPISTEMIC_NODES, LIST_LENSES, RECORD_JUDGMENT, REMOVE_LENS_FROM_TOPIC, SUPERSEDE_EPISTEMIC_NODE, UPDATE_EPISTEMIC_NODE, VERIFY_EPISTEMIC_NODE } from './tool-contracts.nodes-lenses.js';
|
|
7
9
|
export { CREATE_EVIDENCE, DETECT_CONFIRMATION_BIAS, GET_EVIDENCE, GET_FALSIFICATION_QUESTIONS, GET_GRAPH_STRUCTURE_ANALYSIS, LINK_EVIDENCE, LINK_EVIDENCE_TO_BELIEF, LIST_EVIDENCE, LIST_GRAPH_INTELLIGENCE_QUERIES, RUN_GRAPH_INTELLIGENCE_QUERY, SEARCH_EVIDENCE } from './tool-contracts.intelligence-evidence.js';
|
|
8
10
|
export { ACTIVATE_WORKTREE, ANSWER_QUESTION, ARCHIVE_QUESTION, COMPILE_CONTEXT, CREATE_ANSWER, CREATE_QUESTION, FIND_MISSING_QUESTIONS, GET_ANSWER, GET_HIGH_PRIORITY_QUESTIONS, GET_QUESTION, GET_WORKTREE, IDENTITY_WHOAMI, LINK_EVIDENCE_TO_QUESTION, LIST_ALL_WORKTREES, LIST_BELIEFS, LIST_CAMPAIGNS, LIST_QUESTIONS, LIST_WORKTREES, REFINE_QUESTION, RESOLVE_INTERACTIVE_PRINCIPAL, UPDATE_QUESTION_STATUS, UPDATE_WORKTREE_METADATA, UPDATE_WORKTREE_TARGETS } from './tool-contracts.questions-listing.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { McpToolContract } from './tool-contracts.types.js';
|
|
2
|
+
|
|
3
|
+
declare const LIST_MISSING_EMBEDDINGS: McpToolContract;
|
|
4
|
+
declare const SEARCH_EMBEDDINGS: McpToolContract;
|
|
5
|
+
declare const GET_EMBEDDINGS_BY_NODE_IDS: McpToolContract;
|
|
6
|
+
declare const QUEUE_EMBEDDING_BACKFILL: McpToolContract;
|
|
7
|
+
|
|
8
|
+
export { GET_EMBEDDINGS_BY_NODE_IDS, LIST_MISSING_EMBEDDINGS, QUEUE_EMBEDDING_BACKFILL, SEARCH_EMBEDDINGS };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// src/tool-contracts.embeddings.ts
|
|
2
|
+
var sharedEmbeddingParameters = {
|
|
3
|
+
topicId: {
|
|
4
|
+
type: "string",
|
|
5
|
+
description: "Topic whose epistemic node embedding index should be queried."
|
|
6
|
+
},
|
|
7
|
+
workspaceId: {
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "Workspace scope for the embedding operation."
|
|
10
|
+
},
|
|
11
|
+
nodeType: {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "Optional epistemic node type filter."
|
|
14
|
+
},
|
|
15
|
+
embeddingModel: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "Optional embedding model filter."
|
|
18
|
+
},
|
|
19
|
+
limit: {
|
|
20
|
+
type: "number",
|
|
21
|
+
description: "Maximum rows to return."
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var LIST_MISSING_EMBEDDINGS = {
|
|
25
|
+
name: "list_missing_embeddings",
|
|
26
|
+
description: "List epistemic nodes missing fresh Convex embeddings. Like `git status` for the semantic index \u2014 shows which graph nodes still need indexing before retrieval can be trusted.",
|
|
27
|
+
parameters: sharedEmbeddingParameters,
|
|
28
|
+
required: ["topicId", "workspaceId"],
|
|
29
|
+
response: {
|
|
30
|
+
description: "Missing or stale embedding candidates",
|
|
31
|
+
fields: {
|
|
32
|
+
nodes: "array \u2014 node candidates missing fresh embeddings",
|
|
33
|
+
total: "number \u2014 candidate count",
|
|
34
|
+
nextCursor: "string | null"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
ownerModule: "reasoning-kernel",
|
|
38
|
+
ontologyPrimitive: "graph",
|
|
39
|
+
tier: "workhorse"
|
|
40
|
+
};
|
|
41
|
+
var SEARCH_EMBEDDINGS = {
|
|
42
|
+
name: "search_embeddings",
|
|
43
|
+
description: "Search topic-scoped epistemic nodes through the Convex vector index. Like `git grep` with semantic distance \u2014 finds matching beliefs, questions, evidence, and other nodes even when wording differs.",
|
|
44
|
+
parameters: {
|
|
45
|
+
...sharedEmbeddingParameters,
|
|
46
|
+
queryText: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "Natural-language query to embed and search with."
|
|
49
|
+
},
|
|
50
|
+
queryVector: {
|
|
51
|
+
type: "array",
|
|
52
|
+
description: "Optional precomputed query vector."
|
|
53
|
+
},
|
|
54
|
+
minScore: {
|
|
55
|
+
type: "number",
|
|
56
|
+
description: "Optional minimum cosine-similarity score."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
required: ["topicId", "workspaceId"],
|
|
60
|
+
response: {
|
|
61
|
+
description: "Vector search matches",
|
|
62
|
+
fields: {
|
|
63
|
+
results: "array \u2014 semantic matches with nodeId, nodeType, score, text, and provenance",
|
|
64
|
+
total: "number \u2014 match count",
|
|
65
|
+
nextCursor: "string | null"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
ownerModule: "reasoning-kernel",
|
|
69
|
+
ontologyPrimitive: "graph",
|
|
70
|
+
tier: "showcase"
|
|
71
|
+
};
|
|
72
|
+
var GET_EMBEDDINGS_BY_NODE_IDS = {
|
|
73
|
+
name: "get_embeddings_by_node_ids",
|
|
74
|
+
description: "Fetch embedding records for explicit epistemic node IDs. Like `git show` for semantic-index rows \u2014 inspects exactly which vectors exist for named graph nodes.",
|
|
75
|
+
parameters: {
|
|
76
|
+
...sharedEmbeddingParameters,
|
|
77
|
+
nodeIds: {
|
|
78
|
+
type: "array",
|
|
79
|
+
description: "Epistemic node IDs to inspect."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
required: ["topicId", "workspaceId", "nodeIds"],
|
|
83
|
+
response: {
|
|
84
|
+
description: "Embedding records for explicit node IDs",
|
|
85
|
+
fields: {
|
|
86
|
+
embeddings: "array \u2014 embedding metadata records",
|
|
87
|
+
total: "number \u2014 embedding count",
|
|
88
|
+
nextCursor: "string | null"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
ownerModule: "reasoning-kernel",
|
|
92
|
+
ontologyPrimitive: "graph",
|
|
93
|
+
tier: "workhorse"
|
|
94
|
+
};
|
|
95
|
+
var QUEUE_EMBEDDING_BACKFILL = {
|
|
96
|
+
name: "queue_embedding_backfill",
|
|
97
|
+
description: "Queue background embedding generation for explicit epistemic nodes. Like `git add` for semantic-index work \u2014 stages graph nodes for the kernel backfill scheduler.",
|
|
98
|
+
parameters: {
|
|
99
|
+
...sharedEmbeddingParameters,
|
|
100
|
+
nodeIds: {
|
|
101
|
+
type: "array",
|
|
102
|
+
description: "Epistemic node IDs to queue for embedding generation."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
required: ["topicId", "workspaceId", "nodeIds"],
|
|
106
|
+
response: {
|
|
107
|
+
description: "Backfill queue receipt",
|
|
108
|
+
fields: {
|
|
109
|
+
queued: "number \u2014 queued node count",
|
|
110
|
+
nodeIds: "array \u2014 node IDs queued for embedding generation"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
ownerModule: "reasoning-kernel",
|
|
114
|
+
ontologyPrimitive: "graph",
|
|
115
|
+
tier: "workhorse"
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export { GET_EMBEDDINGS_BY_NODE_IDS, LIST_MISSING_EMBEDDINGS, QUEUE_EMBEDDING_BACKFILL, SEARCH_EMBEDDINGS };
|
|
119
|
+
//# sourceMappingURL=tool-contracts.embeddings.js.map
|
|
120
|
+
//# sourceMappingURL=tool-contracts.embeddings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tool-contracts.embeddings.ts"],"names":[],"mappings":"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","file":"tool-contracts.embeddings.js","sourcesContent":["import type { McpToolContract } from \"./tool-contracts.types\";\n\nconst sharedEmbeddingParameters = {\n topicId: {\n type: \"string\",\n description: \"Topic whose epistemic node embedding index should be queried.\",\n },\n workspaceId: {\n type: \"string\",\n description: \"Workspace scope for the embedding operation.\",\n },\n nodeType: {\n type: \"string\",\n description: \"Optional epistemic node type filter.\",\n },\n embeddingModel: {\n type: \"string\",\n description: \"Optional embedding model filter.\",\n },\n limit: {\n type: \"number\",\n description: \"Maximum rows to return.\",\n },\n} satisfies McpToolContract[\"parameters\"];\n\nexport const LIST_MISSING_EMBEDDINGS: McpToolContract = {\n name: \"list_missing_embeddings\",\n description:\n \"List epistemic nodes missing fresh Convex embeddings. \" +\n \"Like `git status` for the semantic index — shows which graph nodes still need indexing before retrieval can be trusted.\",\n parameters: sharedEmbeddingParameters,\n required: [\"topicId\", \"workspaceId\"],\n response: {\n description: \"Missing or stale embedding candidates\",\n fields: {\n nodes: \"array — node candidates missing fresh embeddings\",\n total: \"number — candidate count\",\n nextCursor: \"string | null\",\n },\n },\n ownerModule: \"reasoning-kernel\",\n ontologyPrimitive: \"graph\",\n tier: \"workhorse\",\n};\n\nexport const SEARCH_EMBEDDINGS: McpToolContract = {\n name: \"search_embeddings\",\n description:\n \"Search topic-scoped epistemic nodes through the Convex vector index. \" +\n \"Like `git grep` with semantic distance — finds matching beliefs, questions, evidence, and other nodes even when wording differs.\",\n parameters: {\n ...sharedEmbeddingParameters,\n queryText: {\n type: \"string\",\n description: \"Natural-language query to embed and search with.\",\n },\n queryVector: {\n type: \"array\",\n description: \"Optional precomputed query vector.\",\n },\n minScore: {\n type: \"number\",\n description: \"Optional minimum cosine-similarity score.\",\n },\n },\n required: [\"topicId\", \"workspaceId\"],\n response: {\n description: \"Vector search matches\",\n fields: {\n results: \"array — semantic matches with nodeId, nodeType, score, text, and provenance\",\n total: \"number — match count\",\n nextCursor: \"string | null\",\n },\n },\n ownerModule: \"reasoning-kernel\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n\nexport const GET_EMBEDDINGS_BY_NODE_IDS: McpToolContract = {\n name: \"get_embeddings_by_node_ids\",\n description:\n \"Fetch embedding records for explicit epistemic node IDs. \" +\n \"Like `git show` for semantic-index rows — inspects exactly which vectors exist for named graph nodes.\",\n parameters: {\n ...sharedEmbeddingParameters,\n nodeIds: {\n type: \"array\",\n description: \"Epistemic node IDs to inspect.\",\n },\n },\n required: [\"topicId\", \"workspaceId\", \"nodeIds\"],\n response: {\n description: \"Embedding records for explicit node IDs\",\n fields: {\n embeddings: \"array — embedding metadata records\",\n total: \"number — embedding count\",\n nextCursor: \"string | null\",\n },\n },\n ownerModule: \"reasoning-kernel\",\n ontologyPrimitive: \"graph\",\n tier: \"workhorse\",\n};\n\nexport const QUEUE_EMBEDDING_BACKFILL: McpToolContract = {\n name: \"queue_embedding_backfill\",\n description:\n \"Queue background embedding generation for explicit epistemic nodes. \" +\n \"Like `git add` for semantic-index work — stages graph nodes for the kernel backfill scheduler.\",\n parameters: {\n ...sharedEmbeddingParameters,\n nodeIds: {\n type: \"array\",\n description: \"Epistemic node IDs to queue for embedding generation.\",\n },\n },\n required: [\"topicId\", \"workspaceId\", \"nodeIds\"],\n response: {\n description: \"Backfill queue receipt\",\n fields: {\n queued: \"number — queued node count\",\n nodeIds: \"array — node IDs queued for embedding generation\",\n },\n },\n ownerModule: \"reasoning-kernel\",\n ontologyPrimitive: \"graph\",\n tier: \"workhorse\",\n};\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { McpToolContract } from './tool-contracts.types.js';
|
|
2
|
+
|
|
3
|
+
declare const HYBRID_DISCOVER: McpToolContract;
|
|
4
|
+
declare const RESOLVE_TOPIC_SEMANTIC: McpToolContract;
|
|
5
|
+
declare const EXPAND_GRAPH_NEIGHBORHOOD: McpToolContract;
|
|
6
|
+
declare const FIND_RELATED_NODES: McpToolContract;
|
|
7
|
+
declare const ANALYZE_GRAPH_IMPACT: McpToolContract;
|
|
8
|
+
declare const DETECT_GRAPH_DRIFT: McpToolContract;
|
|
9
|
+
|
|
10
|
+
export { ANALYZE_GRAPH_IMPACT, DETECT_GRAPH_DRIFT, EXPAND_GRAPH_NEIGHBORHOOD, FIND_RELATED_NODES, HYBRID_DISCOVER, RESOLVE_TOPIC_SEMANTIC };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// src/tool-contracts.hybrid-discovery.ts
|
|
2
|
+
var hybridParameters = {
|
|
3
|
+
query: {
|
|
4
|
+
type: "string",
|
|
5
|
+
description: "Natural-language query text to resolve against the typed reasoning graph."
|
|
6
|
+
},
|
|
7
|
+
queryText: {
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "Explicit query text alias for clients that separate command words from search text."
|
|
10
|
+
},
|
|
11
|
+
text: {
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "Raw pasted text to use as a semantic retrieval seed."
|
|
14
|
+
},
|
|
15
|
+
topicId: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "Optional topic scope. When omitted, semantic topic candidates are resolved first."
|
|
18
|
+
},
|
|
19
|
+
workspaceId: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "Optional workspace scope used by semantic topic candidates and vector search."
|
|
22
|
+
},
|
|
23
|
+
nodeId: {
|
|
24
|
+
type: "string",
|
|
25
|
+
description: "Optional source node used for related-node or impact analysis."
|
|
26
|
+
},
|
|
27
|
+
include: {
|
|
28
|
+
type: "array",
|
|
29
|
+
description: "Result families to include, such as topics, nodes, worktrees, tasks, evidence, and edges."
|
|
30
|
+
},
|
|
31
|
+
via: {
|
|
32
|
+
type: "array",
|
|
33
|
+
description: "Retrieval methods to use: bm25, embeddings, edges, topic-tree, state, graph-algorithms."
|
|
34
|
+
},
|
|
35
|
+
depth: {
|
|
36
|
+
type: "number",
|
|
37
|
+
description: "Graph expansion depth. Defaults to 1 and is capped by the server."
|
|
38
|
+
},
|
|
39
|
+
limit: {
|
|
40
|
+
type: "number",
|
|
41
|
+
description: "Maximum rows per result family."
|
|
42
|
+
},
|
|
43
|
+
minScore: {
|
|
44
|
+
type: "number",
|
|
45
|
+
description: "Minimum semantic or fused score for candidate rows."
|
|
46
|
+
},
|
|
47
|
+
campaign: {
|
|
48
|
+
type: "number",
|
|
49
|
+
description: "Optional worktree campaign filter."
|
|
50
|
+
},
|
|
51
|
+
lane: {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "Optional worktree lane filter."
|
|
54
|
+
},
|
|
55
|
+
status: {
|
|
56
|
+
type: "string",
|
|
57
|
+
description: "Optional node, task, or worktree state/status filter."
|
|
58
|
+
},
|
|
59
|
+
nodeTypes: {
|
|
60
|
+
type: "array",
|
|
61
|
+
description: "Optional epistemic node types to include."
|
|
62
|
+
},
|
|
63
|
+
changedPaths: {
|
|
64
|
+
type: "array",
|
|
65
|
+
description: "Changed file paths used as impact-analysis query signals."
|
|
66
|
+
},
|
|
67
|
+
metadata: {
|
|
68
|
+
type: "object",
|
|
69
|
+
description: "Optional planner metadata for receipts and caller provenance."
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var hybridResponse = {
|
|
73
|
+
description: "Hybrid semantic graph planner response with ranked result families and retrieval receipt.",
|
|
74
|
+
fields: {
|
|
75
|
+
results: "array \u2014 ranked mixed graph results with score, kind, source, and ranking signals",
|
|
76
|
+
topics: "array \u2014 candidate or traversed topics",
|
|
77
|
+
nodes: "array \u2014 matching epistemic nodes",
|
|
78
|
+
worktrees: "array \u2014 matching worktrees",
|
|
79
|
+
tasks: "array \u2014 matching tasks",
|
|
80
|
+
evidence: "array \u2014 matching evidence",
|
|
81
|
+
edges: "array \u2014 graph neighborhood edges",
|
|
82
|
+
receipt: "object \u2014 planner steps, candidate counts, ranking weights, source/cache posture"
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var HYBRID_DISCOVER = {
|
|
86
|
+
name: "hybrid_discover",
|
|
87
|
+
description: "Discover typed reasoning graph context with BM25, embeddings, topic tree traversal, and graph neighborhoods. Like `git grep` plus `git log --graph` for Lucern's typed reasoning graph \u2014 finds the relevant branches of thought and explains why.",
|
|
88
|
+
parameters: hybridParameters,
|
|
89
|
+
required: [],
|
|
90
|
+
response: hybridResponse,
|
|
91
|
+
ownerModule: "graph-intelligence",
|
|
92
|
+
ontologyPrimitive: "graph",
|
|
93
|
+
tier: "showcase"
|
|
94
|
+
};
|
|
95
|
+
var RESOLVE_TOPIC_SEMANTIC = {
|
|
96
|
+
name: "resolve_topic_semantic",
|
|
97
|
+
description: "Resolve an ambiguous topic using BM25, vector candidates, and topic-tree context. Like `git remote show` for a reasoning topic \u2014 finds the canonical branch and nearby branches before reading deeper.",
|
|
98
|
+
parameters: hybridParameters,
|
|
99
|
+
required: [],
|
|
100
|
+
response: hybridResponse,
|
|
101
|
+
ownerModule: "graph-intelligence",
|
|
102
|
+
ontologyPrimitive: "graph",
|
|
103
|
+
tier: "showcase"
|
|
104
|
+
};
|
|
105
|
+
var EXPAND_GRAPH_NEIGHBORHOOD = {
|
|
106
|
+
name: "expand_graph_neighborhood",
|
|
107
|
+
description: "Expand a typed graph neighborhood around a query, topic, or node. Like `git log --graph --decorate` for reasoning state \u2014 follows typed edges and surfaces the surrounding context.",
|
|
108
|
+
parameters: hybridParameters,
|
|
109
|
+
required: [],
|
|
110
|
+
response: hybridResponse,
|
|
111
|
+
ownerModule: "graph-intelligence",
|
|
112
|
+
ontologyPrimitive: "graph",
|
|
113
|
+
tier: "showcase"
|
|
114
|
+
};
|
|
115
|
+
var FIND_RELATED_NODES = {
|
|
116
|
+
name: "find_related_nodes",
|
|
117
|
+
description: "Find semantically and structurally related nodes across the reasoning graph. Like `git blame` across branches \u2014 starts from a node or text and finds nearby responsibility, evidence, and related claims.",
|
|
118
|
+
parameters: hybridParameters,
|
|
119
|
+
required: [],
|
|
120
|
+
response: hybridResponse,
|
|
121
|
+
ownerModule: "graph-intelligence",
|
|
122
|
+
ontologyPrimitive: "graph",
|
|
123
|
+
tier: "showcase"
|
|
124
|
+
};
|
|
125
|
+
var ANALYZE_GRAPH_IMPACT = {
|
|
126
|
+
name: "analyze_graph_impact",
|
|
127
|
+
description: "Analyze which graph objects are affected by files, PR text, incidents, or campaign objectives. Like `git diff --name-only` plus semantic blame \u2014 maps a change signal onto topics, beliefs, tasks, and unresolved questions.",
|
|
128
|
+
parameters: hybridParameters,
|
|
129
|
+
required: [],
|
|
130
|
+
response: hybridResponse,
|
|
131
|
+
ownerModule: "graph-intelligence",
|
|
132
|
+
ontologyPrimitive: "graph",
|
|
133
|
+
tier: "showcase"
|
|
134
|
+
};
|
|
135
|
+
var DETECT_GRAPH_DRIFT = {
|
|
136
|
+
name: "detect_graph_drift",
|
|
137
|
+
description: "Detect duplicate, stale, orphaned, or weakly linked reasoning graph surface. Like `git fsck` for the reasoning graph \u2014 finds semantic duplicates, stale docs/code references, and missing links.",
|
|
138
|
+
parameters: hybridParameters,
|
|
139
|
+
required: [],
|
|
140
|
+
response: hybridResponse,
|
|
141
|
+
ownerModule: "graph-intelligence",
|
|
142
|
+
ontologyPrimitive: "graph",
|
|
143
|
+
tier: "showcase"
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export { ANALYZE_GRAPH_IMPACT, DETECT_GRAPH_DRIFT, EXPAND_GRAPH_NEIGHBORHOOD, FIND_RELATED_NODES, HYBRID_DISCOVER, RESOLVE_TOPIC_SEMANTIC };
|
|
147
|
+
//# sourceMappingURL=tool-contracts.hybrid-discovery.js.map
|
|
148
|
+
//# sourceMappingURL=tool-contracts.hybrid-discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tool-contracts.hybrid-discovery.ts"],"names":[],"mappings":"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","file":"tool-contracts.hybrid-discovery.js","sourcesContent":["import type { McpToolContract } from \"./tool-contracts.types\";\n\nconst hybridParameters = {\n query: {\n type: \"string\",\n description: \"Natural-language query text to resolve against the typed reasoning graph.\",\n },\n queryText: {\n type: \"string\",\n description: \"Explicit query text alias for clients that separate command words from search text.\",\n },\n text: {\n type: \"string\",\n description: \"Raw pasted text to use as a semantic retrieval seed.\",\n },\n topicId: {\n type: \"string\",\n description: \"Optional topic scope. When omitted, semantic topic candidates are resolved first.\",\n },\n workspaceId: {\n type: \"string\",\n description: \"Optional workspace scope used by semantic topic candidates and vector search.\",\n },\n nodeId: {\n type: \"string\",\n description: \"Optional source node used for related-node or impact analysis.\",\n },\n include: {\n type: \"array\",\n description:\n \"Result families to include, such as topics, nodes, worktrees, tasks, evidence, and edges.\",\n },\n via: {\n type: \"array\",\n description:\n \"Retrieval methods to use: bm25, embeddings, edges, topic-tree, state, graph-algorithms.\",\n },\n depth: {\n type: \"number\",\n description: \"Graph expansion depth. Defaults to 1 and is capped by the server.\",\n },\n limit: {\n type: \"number\",\n description: \"Maximum rows per result family.\",\n },\n minScore: {\n type: \"number\",\n description: \"Minimum semantic or fused score for candidate rows.\",\n },\n campaign: {\n type: \"number\",\n description: \"Optional worktree campaign filter.\",\n },\n lane: {\n type: \"string\",\n description: \"Optional worktree lane filter.\",\n },\n status: {\n type: \"string\",\n description: \"Optional node, task, or worktree state/status filter.\",\n },\n nodeTypes: {\n type: \"array\",\n description: \"Optional epistemic node types to include.\",\n },\n changedPaths: {\n type: \"array\",\n description: \"Changed file paths used as impact-analysis query signals.\",\n },\n metadata: {\n type: \"object\",\n description: \"Optional planner metadata for receipts and caller provenance.\",\n },\n} satisfies McpToolContract[\"parameters\"];\n\nconst hybridResponse = {\n description: \"Hybrid semantic graph planner response with ranked result families and retrieval receipt.\",\n fields: {\n results: \"array — ranked mixed graph results with score, kind, source, and ranking signals\",\n topics: \"array — candidate or traversed topics\",\n nodes: \"array — matching epistemic nodes\",\n worktrees: \"array — matching worktrees\",\n tasks: \"array — matching tasks\",\n evidence: \"array — matching evidence\",\n edges: \"array — graph neighborhood edges\",\n receipt: \"object — planner steps, candidate counts, ranking weights, source/cache posture\",\n },\n} satisfies McpToolContract[\"response\"];\n\nexport const HYBRID_DISCOVER: McpToolContract = {\n name: \"hybrid_discover\",\n description:\n \"Discover typed reasoning graph context with BM25, embeddings, topic tree traversal, and graph neighborhoods. \" +\n \"Like `git grep` plus `git log --graph` for Lucern's typed reasoning graph — finds the relevant branches of thought and explains why.\",\n parameters: hybridParameters,\n required: [],\n response: hybridResponse,\n ownerModule: \"graph-intelligence\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n\nexport const RESOLVE_TOPIC_SEMANTIC: McpToolContract = {\n name: \"resolve_topic_semantic\",\n description:\n \"Resolve an ambiguous topic using BM25, vector candidates, and topic-tree context. \" +\n \"Like `git remote show` for a reasoning topic — finds the canonical branch and nearby branches before reading deeper.\",\n parameters: hybridParameters,\n required: [],\n response: hybridResponse,\n ownerModule: \"graph-intelligence\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n\nexport const EXPAND_GRAPH_NEIGHBORHOOD: McpToolContract = {\n name: \"expand_graph_neighborhood\",\n description:\n \"Expand a typed graph neighborhood around a query, topic, or node. \" +\n \"Like `git log --graph --decorate` for reasoning state — follows typed edges and surfaces the surrounding context.\",\n parameters: hybridParameters,\n required: [],\n response: hybridResponse,\n ownerModule: \"graph-intelligence\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n\nexport const FIND_RELATED_NODES: McpToolContract = {\n name: \"find_related_nodes\",\n description:\n \"Find semantically and structurally related nodes across the reasoning graph. \" +\n \"Like `git blame` across branches — starts from a node or text and finds nearby responsibility, evidence, and related claims.\",\n parameters: hybridParameters,\n required: [],\n response: hybridResponse,\n ownerModule: \"graph-intelligence\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n\nexport const ANALYZE_GRAPH_IMPACT: McpToolContract = {\n name: \"analyze_graph_impact\",\n description:\n \"Analyze which graph objects are affected by files, PR text, incidents, or campaign objectives. \" +\n \"Like `git diff --name-only` plus semantic blame — maps a change signal onto topics, beliefs, tasks, and unresolved questions.\",\n parameters: hybridParameters,\n required: [],\n response: hybridResponse,\n ownerModule: \"graph-intelligence\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n\nexport const DETECT_GRAPH_DRIFT: McpToolContract = {\n name: \"detect_graph_drift\",\n description:\n \"Detect duplicate, stale, orphaned, or weakly linked reasoning graph surface. \" +\n \"Like `git fsck` for the reasoning graph — finds semantic duplicates, stale docs/code references, and missing links.\",\n parameters: hybridParameters,\n required: [],\n response: hybridResponse,\n ownerModule: \"graph-intelligence\",\n ontologyPrimitive: \"graph\",\n tier: \"showcase\",\n};\n"]}
|
package/dist/tool-contracts.js
CHANGED
|
@@ -1057,6 +1057,268 @@ var BATCH_CREATE_EDGES = {
|
|
|
1057
1057
|
tier: "workhorse"
|
|
1058
1058
|
};
|
|
1059
1059
|
|
|
1060
|
+
// src/tool-contracts.embeddings.ts
|
|
1061
|
+
var sharedEmbeddingParameters = {
|
|
1062
|
+
topicId: {
|
|
1063
|
+
type: "string",
|
|
1064
|
+
description: "Topic whose epistemic node embedding index should be queried."
|
|
1065
|
+
},
|
|
1066
|
+
workspaceId: {
|
|
1067
|
+
type: "string",
|
|
1068
|
+
description: "Workspace scope for the embedding operation."
|
|
1069
|
+
},
|
|
1070
|
+
nodeType: {
|
|
1071
|
+
type: "string",
|
|
1072
|
+
description: "Optional epistemic node type filter."
|
|
1073
|
+
},
|
|
1074
|
+
embeddingModel: {
|
|
1075
|
+
type: "string",
|
|
1076
|
+
description: "Optional embedding model filter."
|
|
1077
|
+
},
|
|
1078
|
+
limit: {
|
|
1079
|
+
type: "number",
|
|
1080
|
+
description: "Maximum rows to return."
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
var LIST_MISSING_EMBEDDINGS = {
|
|
1084
|
+
name: "list_missing_embeddings",
|
|
1085
|
+
description: "List epistemic nodes missing fresh Convex embeddings. Like `git status` for the semantic index \u2014 shows which graph nodes still need indexing before retrieval can be trusted.",
|
|
1086
|
+
parameters: sharedEmbeddingParameters,
|
|
1087
|
+
required: ["topicId", "workspaceId"],
|
|
1088
|
+
response: {
|
|
1089
|
+
description: "Missing or stale embedding candidates",
|
|
1090
|
+
fields: {
|
|
1091
|
+
nodes: "array \u2014 node candidates missing fresh embeddings",
|
|
1092
|
+
total: "number \u2014 candidate count",
|
|
1093
|
+
nextCursor: "string | null"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
ownerModule: "reasoning-kernel",
|
|
1097
|
+
ontologyPrimitive: "graph",
|
|
1098
|
+
tier: "workhorse"
|
|
1099
|
+
};
|
|
1100
|
+
var SEARCH_EMBEDDINGS = {
|
|
1101
|
+
name: "search_embeddings",
|
|
1102
|
+
description: "Search topic-scoped epistemic nodes through the Convex vector index. Like `git grep` with semantic distance \u2014 finds matching beliefs, questions, evidence, and other nodes even when wording differs.",
|
|
1103
|
+
parameters: {
|
|
1104
|
+
...sharedEmbeddingParameters,
|
|
1105
|
+
queryText: {
|
|
1106
|
+
type: "string",
|
|
1107
|
+
description: "Natural-language query to embed and search with."
|
|
1108
|
+
},
|
|
1109
|
+
queryVector: {
|
|
1110
|
+
type: "array",
|
|
1111
|
+
description: "Optional precomputed query vector."
|
|
1112
|
+
},
|
|
1113
|
+
minScore: {
|
|
1114
|
+
type: "number",
|
|
1115
|
+
description: "Optional minimum cosine-similarity score."
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
required: ["topicId", "workspaceId"],
|
|
1119
|
+
response: {
|
|
1120
|
+
description: "Vector search matches",
|
|
1121
|
+
fields: {
|
|
1122
|
+
results: "array \u2014 semantic matches with nodeId, nodeType, score, text, and provenance",
|
|
1123
|
+
total: "number \u2014 match count",
|
|
1124
|
+
nextCursor: "string | null"
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
ownerModule: "reasoning-kernel",
|
|
1128
|
+
ontologyPrimitive: "graph",
|
|
1129
|
+
tier: "showcase"
|
|
1130
|
+
};
|
|
1131
|
+
var GET_EMBEDDINGS_BY_NODE_IDS = {
|
|
1132
|
+
name: "get_embeddings_by_node_ids",
|
|
1133
|
+
description: "Fetch embedding records for explicit epistemic node IDs. Like `git show` for semantic-index rows \u2014 inspects exactly which vectors exist for named graph nodes.",
|
|
1134
|
+
parameters: {
|
|
1135
|
+
...sharedEmbeddingParameters,
|
|
1136
|
+
nodeIds: {
|
|
1137
|
+
type: "array",
|
|
1138
|
+
description: "Epistemic node IDs to inspect."
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
required: ["topicId", "workspaceId", "nodeIds"],
|
|
1142
|
+
response: {
|
|
1143
|
+
description: "Embedding records for explicit node IDs",
|
|
1144
|
+
fields: {
|
|
1145
|
+
embeddings: "array \u2014 embedding metadata records",
|
|
1146
|
+
total: "number \u2014 embedding count",
|
|
1147
|
+
nextCursor: "string | null"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
ownerModule: "reasoning-kernel",
|
|
1151
|
+
ontologyPrimitive: "graph",
|
|
1152
|
+
tier: "workhorse"
|
|
1153
|
+
};
|
|
1154
|
+
var QUEUE_EMBEDDING_BACKFILL = {
|
|
1155
|
+
name: "queue_embedding_backfill",
|
|
1156
|
+
description: "Queue background embedding generation for explicit epistemic nodes. Like `git add` for semantic-index work \u2014 stages graph nodes for the kernel backfill scheduler.",
|
|
1157
|
+
parameters: {
|
|
1158
|
+
...sharedEmbeddingParameters,
|
|
1159
|
+
nodeIds: {
|
|
1160
|
+
type: "array",
|
|
1161
|
+
description: "Epistemic node IDs to queue for embedding generation."
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
required: ["topicId", "workspaceId", "nodeIds"],
|
|
1165
|
+
response: {
|
|
1166
|
+
description: "Backfill queue receipt",
|
|
1167
|
+
fields: {
|
|
1168
|
+
queued: "number \u2014 queued node count",
|
|
1169
|
+
nodeIds: "array \u2014 node IDs queued for embedding generation"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
ownerModule: "reasoning-kernel",
|
|
1173
|
+
ontologyPrimitive: "graph",
|
|
1174
|
+
tier: "workhorse"
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
// src/tool-contracts.hybrid-discovery.ts
|
|
1178
|
+
var hybridParameters = {
|
|
1179
|
+
query: {
|
|
1180
|
+
type: "string",
|
|
1181
|
+
description: "Natural-language query text to resolve against the typed reasoning graph."
|
|
1182
|
+
},
|
|
1183
|
+
queryText: {
|
|
1184
|
+
type: "string",
|
|
1185
|
+
description: "Explicit query text alias for clients that separate command words from search text."
|
|
1186
|
+
},
|
|
1187
|
+
text: {
|
|
1188
|
+
type: "string",
|
|
1189
|
+
description: "Raw pasted text to use as a semantic retrieval seed."
|
|
1190
|
+
},
|
|
1191
|
+
topicId: {
|
|
1192
|
+
type: "string",
|
|
1193
|
+
description: "Optional topic scope. When omitted, semantic topic candidates are resolved first."
|
|
1194
|
+
},
|
|
1195
|
+
workspaceId: {
|
|
1196
|
+
type: "string",
|
|
1197
|
+
description: "Optional workspace scope used by semantic topic candidates and vector search."
|
|
1198
|
+
},
|
|
1199
|
+
nodeId: {
|
|
1200
|
+
type: "string",
|
|
1201
|
+
description: "Optional source node used for related-node or impact analysis."
|
|
1202
|
+
},
|
|
1203
|
+
include: {
|
|
1204
|
+
type: "array",
|
|
1205
|
+
description: "Result families to include, such as topics, nodes, worktrees, tasks, evidence, and edges."
|
|
1206
|
+
},
|
|
1207
|
+
via: {
|
|
1208
|
+
type: "array",
|
|
1209
|
+
description: "Retrieval methods to use: bm25, embeddings, edges, topic-tree, state, graph-algorithms."
|
|
1210
|
+
},
|
|
1211
|
+
depth: {
|
|
1212
|
+
type: "number",
|
|
1213
|
+
description: "Graph expansion depth. Defaults to 1 and is capped by the server."
|
|
1214
|
+
},
|
|
1215
|
+
limit: {
|
|
1216
|
+
type: "number",
|
|
1217
|
+
description: "Maximum rows per result family."
|
|
1218
|
+
},
|
|
1219
|
+
minScore: {
|
|
1220
|
+
type: "number",
|
|
1221
|
+
description: "Minimum semantic or fused score for candidate rows."
|
|
1222
|
+
},
|
|
1223
|
+
campaign: {
|
|
1224
|
+
type: "number",
|
|
1225
|
+
description: "Optional worktree campaign filter."
|
|
1226
|
+
},
|
|
1227
|
+
lane: {
|
|
1228
|
+
type: "string",
|
|
1229
|
+
description: "Optional worktree lane filter."
|
|
1230
|
+
},
|
|
1231
|
+
status: {
|
|
1232
|
+
type: "string",
|
|
1233
|
+
description: "Optional node, task, or worktree state/status filter."
|
|
1234
|
+
},
|
|
1235
|
+
nodeTypes: {
|
|
1236
|
+
type: "array",
|
|
1237
|
+
description: "Optional epistemic node types to include."
|
|
1238
|
+
},
|
|
1239
|
+
changedPaths: {
|
|
1240
|
+
type: "array",
|
|
1241
|
+
description: "Changed file paths used as impact-analysis query signals."
|
|
1242
|
+
},
|
|
1243
|
+
metadata: {
|
|
1244
|
+
type: "object",
|
|
1245
|
+
description: "Optional planner metadata for receipts and caller provenance."
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
var hybridResponse = {
|
|
1249
|
+
description: "Hybrid semantic graph planner response with ranked result families and retrieval receipt.",
|
|
1250
|
+
fields: {
|
|
1251
|
+
results: "array \u2014 ranked mixed graph results with score, kind, source, and ranking signals",
|
|
1252
|
+
topics: "array \u2014 candidate or traversed topics",
|
|
1253
|
+
nodes: "array \u2014 matching epistemic nodes",
|
|
1254
|
+
worktrees: "array \u2014 matching worktrees",
|
|
1255
|
+
tasks: "array \u2014 matching tasks",
|
|
1256
|
+
evidence: "array \u2014 matching evidence",
|
|
1257
|
+
edges: "array \u2014 graph neighborhood edges",
|
|
1258
|
+
receipt: "object \u2014 planner steps, candidate counts, ranking weights, source/cache posture"
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
var HYBRID_DISCOVER = {
|
|
1262
|
+
name: "hybrid_discover",
|
|
1263
|
+
description: "Discover typed reasoning graph context with BM25, embeddings, topic tree traversal, and graph neighborhoods. Like `git grep` plus `git log --graph` for Lucern's typed reasoning graph \u2014 finds the relevant branches of thought and explains why.",
|
|
1264
|
+
parameters: hybridParameters,
|
|
1265
|
+
required: [],
|
|
1266
|
+
response: hybridResponse,
|
|
1267
|
+
ownerModule: "graph-intelligence",
|
|
1268
|
+
ontologyPrimitive: "graph",
|
|
1269
|
+
tier: "showcase"
|
|
1270
|
+
};
|
|
1271
|
+
var RESOLVE_TOPIC_SEMANTIC = {
|
|
1272
|
+
name: "resolve_topic_semantic",
|
|
1273
|
+
description: "Resolve an ambiguous topic using BM25, vector candidates, and topic-tree context. Like `git remote show` for a reasoning topic \u2014 finds the canonical branch and nearby branches before reading deeper.",
|
|
1274
|
+
parameters: hybridParameters,
|
|
1275
|
+
required: [],
|
|
1276
|
+
response: hybridResponse,
|
|
1277
|
+
ownerModule: "graph-intelligence",
|
|
1278
|
+
ontologyPrimitive: "graph",
|
|
1279
|
+
tier: "showcase"
|
|
1280
|
+
};
|
|
1281
|
+
var EXPAND_GRAPH_NEIGHBORHOOD = {
|
|
1282
|
+
name: "expand_graph_neighborhood",
|
|
1283
|
+
description: "Expand a typed graph neighborhood around a query, topic, or node. Like `git log --graph --decorate` for reasoning state \u2014 follows typed edges and surfaces the surrounding context.",
|
|
1284
|
+
parameters: hybridParameters,
|
|
1285
|
+
required: [],
|
|
1286
|
+
response: hybridResponse,
|
|
1287
|
+
ownerModule: "graph-intelligence",
|
|
1288
|
+
ontologyPrimitive: "graph",
|
|
1289
|
+
tier: "showcase"
|
|
1290
|
+
};
|
|
1291
|
+
var FIND_RELATED_NODES = {
|
|
1292
|
+
name: "find_related_nodes",
|
|
1293
|
+
description: "Find semantically and structurally related nodes across the reasoning graph. Like `git blame` across branches \u2014 starts from a node or text and finds nearby responsibility, evidence, and related claims.",
|
|
1294
|
+
parameters: hybridParameters,
|
|
1295
|
+
required: [],
|
|
1296
|
+
response: hybridResponse,
|
|
1297
|
+
ownerModule: "graph-intelligence",
|
|
1298
|
+
ontologyPrimitive: "graph",
|
|
1299
|
+
tier: "showcase"
|
|
1300
|
+
};
|
|
1301
|
+
var ANALYZE_GRAPH_IMPACT = {
|
|
1302
|
+
name: "analyze_graph_impact",
|
|
1303
|
+
description: "Analyze which graph objects are affected by files, PR text, incidents, or campaign objectives. Like `git diff --name-only` plus semantic blame \u2014 maps a change signal onto topics, beliefs, tasks, and unresolved questions.",
|
|
1304
|
+
parameters: hybridParameters,
|
|
1305
|
+
required: [],
|
|
1306
|
+
response: hybridResponse,
|
|
1307
|
+
ownerModule: "graph-intelligence",
|
|
1308
|
+
ontologyPrimitive: "graph",
|
|
1309
|
+
tier: "showcase"
|
|
1310
|
+
};
|
|
1311
|
+
var DETECT_GRAPH_DRIFT = {
|
|
1312
|
+
name: "detect_graph_drift",
|
|
1313
|
+
description: "Detect duplicate, stale, orphaned, or weakly linked reasoning graph surface. Like `git fsck` for the reasoning graph \u2014 finds semantic duplicates, stale docs/code references, and missing links.",
|
|
1314
|
+
parameters: hybridParameters,
|
|
1315
|
+
required: [],
|
|
1316
|
+
response: hybridResponse,
|
|
1317
|
+
ownerModule: "graph-intelligence",
|
|
1318
|
+
ontologyPrimitive: "graph",
|
|
1319
|
+
tier: "showcase"
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1060
1322
|
// src/lens-workflow.contract.ts
|
|
1061
1323
|
var LENS_PERSPECTIVE_TYPES = [
|
|
1062
1324
|
"investigation",
|
|
@@ -2418,6 +2680,26 @@ var COMPILE_CONTEXT = {
|
|
|
2418
2680
|
type: "string",
|
|
2419
2681
|
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
2420
2682
|
},
|
|
2683
|
+
topicHint: {
|
|
2684
|
+
type: "string",
|
|
2685
|
+
description: "Optional natural-language topic hint used by the resolver when topicId is omitted or stale."
|
|
2686
|
+
},
|
|
2687
|
+
tags: {
|
|
2688
|
+
type: "array",
|
|
2689
|
+
description: "Optional resolver tags. Useful for narrowing topic inference without knowing the exact topic id."
|
|
2690
|
+
},
|
|
2691
|
+
touchedPaths: {
|
|
2692
|
+
type: "array",
|
|
2693
|
+
description: "Optional file or documentation paths used as resolver signals."
|
|
2694
|
+
},
|
|
2695
|
+
sourceRef: {
|
|
2696
|
+
type: "string",
|
|
2697
|
+
description: "Optional source reference used as a resolver signal, such as a worktree id, PR, or feature slug."
|
|
2698
|
+
},
|
|
2699
|
+
sourceKind: {
|
|
2700
|
+
type: "string",
|
|
2701
|
+
description: "Optional source kind used as a resolver signal, such as cli, worktree, commit, or docs."
|
|
2702
|
+
},
|
|
2421
2703
|
budget: {
|
|
2422
2704
|
type: "number",
|
|
2423
2705
|
description: "Token budget for prompt injection planning"
|
|
@@ -4267,6 +4549,16 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
4267
4549
|
search_beliefs: SEARCH_BELIEFS,
|
|
4268
4550
|
find_contradictions: FIND_CONTRADICTIONS,
|
|
4269
4551
|
bisect_confidence: BISECT_CONFIDENCE,
|
|
4552
|
+
list_missing_embeddings: LIST_MISSING_EMBEDDINGS,
|
|
4553
|
+
search_embeddings: SEARCH_EMBEDDINGS,
|
|
4554
|
+
get_embeddings_by_node_ids: GET_EMBEDDINGS_BY_NODE_IDS,
|
|
4555
|
+
queue_embedding_backfill: QUEUE_EMBEDDING_BACKFILL,
|
|
4556
|
+
hybrid_discover: HYBRID_DISCOVER,
|
|
4557
|
+
resolve_topic_semantic: RESOLVE_TOPIC_SEMANTIC,
|
|
4558
|
+
expand_graph_neighborhood: EXPAND_GRAPH_NEIGHBORHOOD,
|
|
4559
|
+
find_related_nodes: FIND_RELATED_NODES,
|
|
4560
|
+
analyze_graph_impact: ANALYZE_GRAPH_IMPACT,
|
|
4561
|
+
detect_graph_drift: DETECT_GRAPH_DRIFT,
|
|
4270
4562
|
// Edges (commit)
|
|
4271
4563
|
create_edge: CREATE_EDGE,
|
|
4272
4564
|
update_edge: UPDATE_EDGE,
|
|
@@ -4393,6 +4685,6 @@ function validateGitSemantics(tool) {
|
|
|
4393
4685
|
return { valid: true };
|
|
4394
4686
|
}
|
|
4395
4687
|
|
|
4396
|
-
export { ACTIVATE_WORKTREE, ADD_EVIDENCE, ADD_WORKTREE, ANALYZE_TOPIC_DENSITY, ANSWER_QUESTION, APPLY_AUTO_BRANCHING, APPLY_LENS_TO_TOPIC, APPLY_ONTOLOGY, ARCHIVE_BELIEF, ARCHIVE_EPISTEMIC_NODE, ARCHIVE_ONTOLOGY, ARCHIVE_QUESTION, BATCH_CREATE_EDGES, BATCH_CREATE_EPISTEMIC_NODES, BEGIN_BUILD_SESSION, BISECT_CONFIDENCE, BROADCAST_MESSAGE, CHECK_PERMISSION, CLAIM_FILES, COMPILE_CONTEXT, COMPLETE_TASK, CREATE_ANSWER, CREATE_BELIEF, CREATE_EDGE, CREATE_EPISTEMIC_CONTRACT, CREATE_EPISTEMIC_NODE, CREATE_EVIDENCE, CREATE_LENS, CREATE_ONTOLOGY, CREATE_ONTOLOGY_VERSION, CREATE_QUESTION, CREATE_TASK, CREATE_TOPIC, DEPRECATE_ONTOLOGY_VERSION, DETECT_CONFIRMATION_BIAS, DISCOVER, DISCOVER_ENTITY_CONNECTIONS, END_SESSION, EVALUATE_CONTRACT, FILTER_BY_PERMISSION, FIND_CONTRADICTIONS, FIND_MISSING_QUESTIONS, FLAG_CONTRADICTION, FORK_BELIEF, GENERATE_SESSION_HANDOFF, GET_AGENT_INBOX, GET_ANSWER, GET_AUDIT_TRAIL, GET_BELIEF, GET_CHANGE_HISTORY, GET_CODE_CONTEXT, GET_CONFIDENCE_HISTORY, GET_CONTRACT_STATUS, GET_EPISTEMIC_NODE, GET_EVIDENCE, GET_FAILURE_LOG, GET_FALSIFICATION_QUESTIONS, GET_GRAPH_GAPS, GET_GRAPH_NEIGHBORHOOD, GET_GRAPH_STRUCTURE_ANALYSIS, GET_HIGH_PRIORITY_QUESTIONS, GET_LATTICE_COVERAGE, GET_OBSERVATION_CONTEXT, GET_ONTOLOGY, GET_QUESTION, GET_TOPIC, GET_TOPIC_COVERAGE, GET_TOPIC_GRAPH_SPINE, GET_TOPIC_TREE, GET_WORKTREE, GIT_SEMANTIC_REQUIRED_TOOLS, HEARTBEAT_SESSION, IDENTITY_WHOAMI, INGEST_OBSERVATION, LINK_EVIDENCE, LINK_EVIDENCE_TO_BELIEF, LINK_EVIDENCE_TO_QUESTION, LIST_ACTIVE_SESSIONS, LIST_ALL_WORKTREES, LIST_BELIEFS, LIST_CAMPAIGNS, LIST_EPISTEMIC_NODES, LIST_EVIDENCE, LIST_GRAPH_INTELLIGENCE_QUERIES, LIST_LENSES, LIST_ONTOLOGIES, LIST_QUESTIONS, LIST_TASKS, LIST_TOPICS, LIST_WORKTREES, MANAGE_WRITE_POLICY, MATCH_ENTITY_TYPE, MATERIALIZE_TOPIC_GRAPH, MCP_TOOL_CONTRACTS, MERGE, MODULATE_CONFIDENCE, OPEN_PULL_REQUEST, PIPELINE_SNAPSHOT, PUBLISH_ONTOLOGY_VERSION, PUSH, QUERY_LINEAGE, RECORD_ATTEMPT, RECORD_JUDGMENT, RECORD_SCOPE_LEARNING, REFINE_BELIEF, REFINE_QUESTION, REGISTER_SESSION, REMOVE_EDGE, REMOVE_EDGES_BETWEEN, REMOVE_LENS_FROM_TOPIC, RESOLVE_EFFECTIVE_ONTOLOGY, RESOLVE_INTERACTIVE_PRINCIPAL, RUN_GRAPH_INTELLIGENCE_QUERY, SEARCH_BELIEFS, SEARCH_EVIDENCE, SEED_BELIEF_LATTICE, SEND_AGENT_MESSAGE, SUPERSEDE_EPISTEMIC_NODE, TRACE_ENTITY_IMPACT, TRAVERSE_GRAPH, TRIGGER_BELIEF_REVIEW, UPDATE_EDGE, UPDATE_EPISTEMIC_NODE, UPDATE_ONTOLOGY, UPDATE_QUESTION_STATUS, UPDATE_TASK, UPDATE_TOPIC, UPDATE_WORKTREE_METADATA, UPDATE_WORKTREE_TARGETS, VERIFY_EPISTEMIC_NODE, validateGitSemantics };
|
|
4688
|
+
export { ACTIVATE_WORKTREE, ADD_EVIDENCE, ADD_WORKTREE, ANALYZE_GRAPH_IMPACT, ANALYZE_TOPIC_DENSITY, ANSWER_QUESTION, APPLY_AUTO_BRANCHING, APPLY_LENS_TO_TOPIC, APPLY_ONTOLOGY, ARCHIVE_BELIEF, ARCHIVE_EPISTEMIC_NODE, ARCHIVE_ONTOLOGY, ARCHIVE_QUESTION, BATCH_CREATE_EDGES, BATCH_CREATE_EPISTEMIC_NODES, BEGIN_BUILD_SESSION, BISECT_CONFIDENCE, BROADCAST_MESSAGE, CHECK_PERMISSION, CLAIM_FILES, COMPILE_CONTEXT, COMPLETE_TASK, CREATE_ANSWER, CREATE_BELIEF, CREATE_EDGE, CREATE_EPISTEMIC_CONTRACT, CREATE_EPISTEMIC_NODE, CREATE_EVIDENCE, CREATE_LENS, CREATE_ONTOLOGY, CREATE_ONTOLOGY_VERSION, CREATE_QUESTION, CREATE_TASK, CREATE_TOPIC, DEPRECATE_ONTOLOGY_VERSION, DETECT_CONFIRMATION_BIAS, DETECT_GRAPH_DRIFT, DISCOVER, DISCOVER_ENTITY_CONNECTIONS, END_SESSION, EVALUATE_CONTRACT, EXPAND_GRAPH_NEIGHBORHOOD, FILTER_BY_PERMISSION, FIND_CONTRADICTIONS, FIND_MISSING_QUESTIONS, FIND_RELATED_NODES, FLAG_CONTRADICTION, FORK_BELIEF, GENERATE_SESSION_HANDOFF, GET_AGENT_INBOX, GET_ANSWER, GET_AUDIT_TRAIL, GET_BELIEF, GET_CHANGE_HISTORY, GET_CODE_CONTEXT, GET_CONFIDENCE_HISTORY, GET_CONTRACT_STATUS, GET_EMBEDDINGS_BY_NODE_IDS, GET_EPISTEMIC_NODE, GET_EVIDENCE, GET_FAILURE_LOG, GET_FALSIFICATION_QUESTIONS, GET_GRAPH_GAPS, GET_GRAPH_NEIGHBORHOOD, GET_GRAPH_STRUCTURE_ANALYSIS, GET_HIGH_PRIORITY_QUESTIONS, GET_LATTICE_COVERAGE, GET_OBSERVATION_CONTEXT, GET_ONTOLOGY, GET_QUESTION, GET_TOPIC, GET_TOPIC_COVERAGE, GET_TOPIC_GRAPH_SPINE, GET_TOPIC_TREE, GET_WORKTREE, GIT_SEMANTIC_REQUIRED_TOOLS, HEARTBEAT_SESSION, HYBRID_DISCOVER, IDENTITY_WHOAMI, INGEST_OBSERVATION, LINK_EVIDENCE, LINK_EVIDENCE_TO_BELIEF, LINK_EVIDENCE_TO_QUESTION, LIST_ACTIVE_SESSIONS, LIST_ALL_WORKTREES, LIST_BELIEFS, LIST_CAMPAIGNS, LIST_EPISTEMIC_NODES, LIST_EVIDENCE, LIST_GRAPH_INTELLIGENCE_QUERIES, LIST_LENSES, LIST_MISSING_EMBEDDINGS, LIST_ONTOLOGIES, LIST_QUESTIONS, LIST_TASKS, LIST_TOPICS, LIST_WORKTREES, MANAGE_WRITE_POLICY, MATCH_ENTITY_TYPE, MATERIALIZE_TOPIC_GRAPH, MCP_TOOL_CONTRACTS, MERGE, MODULATE_CONFIDENCE, OPEN_PULL_REQUEST, PIPELINE_SNAPSHOT, PUBLISH_ONTOLOGY_VERSION, PUSH, QUERY_LINEAGE, QUEUE_EMBEDDING_BACKFILL, RECORD_ATTEMPT, RECORD_JUDGMENT, RECORD_SCOPE_LEARNING, REFINE_BELIEF, REFINE_QUESTION, REGISTER_SESSION, REMOVE_EDGE, REMOVE_EDGES_BETWEEN, REMOVE_LENS_FROM_TOPIC, RESOLVE_EFFECTIVE_ONTOLOGY, RESOLVE_INTERACTIVE_PRINCIPAL, RESOLVE_TOPIC_SEMANTIC, RUN_GRAPH_INTELLIGENCE_QUERY, SEARCH_BELIEFS, SEARCH_EMBEDDINGS, SEARCH_EVIDENCE, SEED_BELIEF_LATTICE, SEND_AGENT_MESSAGE, SUPERSEDE_EPISTEMIC_NODE, TRACE_ENTITY_IMPACT, TRAVERSE_GRAPH, TRIGGER_BELIEF_REVIEW, UPDATE_EDGE, UPDATE_EPISTEMIC_NODE, UPDATE_ONTOLOGY, UPDATE_QUESTION_STATUS, UPDATE_TASK, UPDATE_TOPIC, UPDATE_WORKTREE_METADATA, UPDATE_WORKTREE_TARGETS, VERIFY_EPISTEMIC_NODE, validateGitSemantics };
|
|
4397
4689
|
//# sourceMappingURL=tool-contracts.js.map
|
|
4398
4690
|
//# sourceMappingURL=tool-contracts.js.map
|