codestrate 0.6.1 → 0.6.3
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/README.md +97 -101
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +54 -4
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +198 -119
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +0 -0
- package/dist/install.d.ts.map +0 -0
- package/dist/install.js +2 -2
- package/dist/install.js.map +1 -1
- package/dist/profiles.d.ts +28 -0
- package/dist/profiles.d.ts.map +1 -0
- package/dist/profiles.js +89 -0
- package/dist/profiles.js.map +1 -0
- package/dist/schemas/index.d.ts +1441 -126
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +221 -10
- package/dist/schemas/index.js.map +1 -1
- package/dist/security/guard.d.ts +15 -2
- package/dist/security/guard.d.ts.map +1 -1
- package/dist/security/guard.js +42 -8
- package/dist/security/guard.js.map +1 -1
- package/dist/services/code-chunker.d.ts +50 -0
- package/dist/services/code-chunker.d.ts.map +1 -0
- package/dist/services/code-chunker.js +148 -0
- package/dist/services/code-chunker.js.map +1 -0
- package/dist/services/code-searcher.d.ts +6 -2
- package/dist/services/code-searcher.d.ts.map +1 -1
- package/dist/services/code-searcher.js +111 -17
- package/dist/services/code-searcher.js.map +1 -1
- package/dist/services/context-builder.d.ts +0 -11
- package/dist/services/context-builder.d.ts.map +1 -1
- package/dist/services/context-builder.js +74 -128
- package/dist/services/context-builder.js.map +1 -1
- package/dist/services/embedding-runtime.d.ts +41 -0
- package/dist/services/embedding-runtime.d.ts.map +1 -0
- package/dist/services/embedding-runtime.js +636 -0
- package/dist/services/embedding-runtime.js.map +1 -0
- package/dist/services/embedding.d.ts +79 -0
- package/dist/services/embedding.d.ts.map +1 -0
- package/dist/services/embedding.js +257 -0
- package/dist/services/embedding.js.map +1 -0
- package/dist/services/index-state.d.ts +74 -0
- package/dist/services/index-state.d.ts.map +1 -0
- package/dist/services/index-state.js +151 -0
- package/dist/services/index-state.js.map +1 -0
- package/dist/services/index-worker.d.ts +60 -0
- package/dist/services/index-worker.d.ts.map +1 -0
- package/dist/services/index-worker.js +182 -0
- package/dist/services/index-worker.js.map +1 -0
- package/dist/services/logger.d.ts +48 -0
- package/dist/services/logger.d.ts.map +1 -0
- package/dist/services/logger.js +106 -0
- package/dist/services/logger.js.map +1 -0
- package/dist/services/memory-store.d.ts +9 -7
- package/dist/services/memory-store.d.ts.map +1 -1
- package/dist/services/memory-store.js +93 -7
- package/dist/services/memory-store.js.map +1 -1
- package/dist/services/repository-parser.d.ts +0 -0
- package/dist/services/repository-parser.d.ts.map +0 -0
- package/dist/services/repository-parser.js +0 -0
- package/dist/services/repository-parser.js.map +0 -0
- package/dist/services/symbol-indexer.d.ts +0 -0
- package/dist/services/symbol-indexer.d.ts.map +1 -1
- package/dist/services/symbol-indexer.js +25 -13
- package/dist/services/symbol-indexer.js.map +1 -1
- package/dist/services/tree-sitter.d.ts +0 -0
- package/dist/services/tree-sitter.d.ts.map +0 -0
- package/dist/services/tree-sitter.js +0 -0
- package/dist/services/tree-sitter.js.map +0 -0
- package/dist/services/validation-runner.d.ts +0 -0
- package/dist/services/validation-runner.d.ts.map +1 -1
- package/dist/services/validation-runner.js +9 -9
- package/dist/services/validation-runner.js.map +1 -1
- package/dist/services/vector-indexer.d.ts +53 -0
- package/dist/services/vector-indexer.d.ts.map +1 -0
- package/dist/services/vector-indexer.js +230 -0
- package/dist/services/vector-indexer.js.map +1 -0
- package/dist/store/index.d.ts +0 -0
- package/dist/store/index.d.ts.map +0 -0
- package/dist/store/index.js +0 -0
- package/dist/store/index.js.map +0 -0
- package/dist/store/interface.d.ts +70 -1
- package/dist/store/interface.d.ts.map +1 -1
- package/dist/store/interface.js +0 -0
- package/dist/store/interface.js.map +0 -0
- package/dist/store/memory.d.ts +0 -0
- package/dist/store/memory.d.ts.map +0 -0
- package/dist/store/memory.js +0 -0
- package/dist/store/memory.js.map +0 -0
- package/dist/store/service.d.ts +49 -0
- package/dist/store/service.d.ts.map +1 -0
- package/dist/store/service.js +147 -0
- package/dist/store/service.js.map +1 -0
- package/dist/store/sqlite.d.ts +68 -3
- package/dist/store/sqlite.d.ts.map +1 -1
- package/dist/store/sqlite.js +708 -58
- package/dist/store/sqlite.js.map +1 -1
- package/dist/store/vector-store.d.ts +66 -0
- package/dist/store/vector-store.d.ts.map +1 -0
- package/dist/store/vector-store.js +330 -0
- package/dist/store/vector-store.js.map +1 -0
- package/dist/tools/analyze-impact.d.ts +0 -0
- package/dist/tools/analyze-impact.d.ts.map +1 -1
- package/dist/tools/analyze-impact.js +101 -39
- package/dist/tools/analyze-impact.js.map +1 -1
- package/dist/tools/deep-explore.d.ts +0 -0
- package/dist/tools/deep-explore.d.ts.map +1 -1
- package/dist/tools/deep-explore.js +18 -4
- package/dist/tools/deep-explore.js.map +1 -1
- package/dist/tools/detect-cycles.d.ts +3 -0
- package/dist/tools/detect-cycles.d.ts.map +1 -0
- package/dist/tools/detect-cycles.js +61 -0
- package/dist/tools/detect-cycles.js.map +1 -0
- package/dist/tools/detect-dead-code.d.ts +0 -0
- package/dist/tools/detect-dead-code.d.ts.map +1 -1
- package/dist/tools/detect-dead-code.js +1 -0
- package/dist/tools/detect-dead-code.js.map +1 -1
- package/dist/tools/explore.d.ts +13 -0
- package/dist/tools/explore.d.ts.map +1 -1
- package/dist/tools/explore.js +122 -88
- package/dist/tools/explore.js.map +1 -1
- package/dist/tools/get-context.d.ts +15 -0
- package/dist/tools/get-context.d.ts.map +1 -1
- package/dist/tools/get-context.js +66 -61
- package/dist/tools/get-context.js.map +1 -1
- package/dist/tools/graph-explain.d.ts +3 -0
- package/dist/tools/graph-explain.d.ts.map +1 -0
- package/dist/tools/graph-explain.js +140 -0
- package/dist/tools/graph-explain.js.map +1 -0
- package/dist/tools/graph-stats.d.ts +3 -0
- package/dist/tools/graph-stats.d.ts.map +1 -0
- package/dist/tools/graph-stats.js +73 -0
- package/dist/tools/graph-stats.js.map +1 -0
- package/dist/tools/inspect-symbol.d.ts +10 -0
- package/dist/tools/inspect-symbol.d.ts.map +1 -1
- package/dist/tools/inspect-symbol.js +112 -101
- package/dist/tools/inspect-symbol.js.map +1 -1
- package/dist/tools/ping.d.ts +0 -0
- package/dist/tools/ping.d.ts.map +1 -1
- package/dist/tools/ping.js +2 -3
- package/dist/tools/ping.js.map +1 -1
- package/dist/tools/profile.d.ts +9 -0
- package/dist/tools/profile.d.ts.map +1 -0
- package/dist/tools/profile.js +101 -0
- package/dist/tools/profile.js.map +1 -0
- package/dist/tools/query-graph.d.ts +3 -0
- package/dist/tools/query-graph.d.ts.map +1 -0
- package/dist/tools/query-graph.js +157 -0
- package/dist/tools/query-graph.js.map +1 -0
- package/dist/tools/recall-experience.d.ts +0 -0
- package/dist/tools/recall-experience.d.ts.map +1 -1
- package/dist/tools/recall-experience.js +5 -5
- package/dist/tools/recall-experience.js.map +1 -1
- package/dist/tools/record-experience.d.ts +0 -0
- package/dist/tools/record-experience.d.ts.map +1 -1
- package/dist/tools/record-experience.js +2 -5
- package/dist/tools/record-experience.js.map +1 -1
- package/dist/tools/reflect.d.ts +4 -0
- package/dist/tools/reflect.d.ts.map +1 -0
- package/dist/tools/reflect.js +99 -0
- package/dist/tools/reflect.js.map +1 -0
- package/dist/tools/register.d.ts +5 -2
- package/dist/tools/register.d.ts.map +1 -1
- package/dist/tools/register.js +31 -1
- package/dist/tools/register.js.map +1 -1
- package/dist/tools/reindex.d.ts +0 -0
- package/dist/tools/reindex.d.ts.map +1 -1
- package/dist/tools/reindex.js +102 -21
- package/dist/tools/reindex.js.map +1 -1
- package/dist/tools/repo-overview.d.ts +0 -0
- package/dist/tools/repo-overview.d.ts.map +1 -1
- package/dist/tools/repo-overview.js +8 -6
- package/dist/tools/repo-overview.js.map +1 -1
- package/dist/tools/run-validation.d.ts +0 -0
- package/dist/tools/run-validation.d.ts.map +1 -1
- package/dist/tools/run-validation.js +15 -1
- package/dist/tools/run-validation.js.map +1 -1
- package/dist/tools/search-code.d.ts +0 -0
- package/dist/tools/search-code.d.ts.map +1 -1
- package/dist/tools/search-code.js +11 -4
- package/dist/tools/search-code.js.map +1 -1
- package/dist/tools/search-history.d.ts +0 -0
- package/dist/tools/search-history.d.ts.map +0 -0
- package/dist/tools/search-history.js +0 -0
- package/dist/tools/search-history.js.map +0 -0
- package/dist/tools/session-heartbeat.d.ts +0 -0
- package/dist/tools/session-heartbeat.d.ts.map +1 -1
- package/dist/tools/session-heartbeat.js +1 -0
- package/dist/tools/session-heartbeat.js.map +1 -1
- package/dist/tools/session-status.d.ts +0 -0
- package/dist/tools/session-status.d.ts.map +1 -1
- package/dist/tools/session-status.js +1 -0
- package/dist/tools/session-status.js.map +1 -1
- package/dist/tools/status.d.ts +0 -0
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/status.js +87 -24
- package/dist/tools/status.js.map +1 -1
- package/dist/tools/trace-bfs.d.ts +13 -0
- package/dist/tools/trace-bfs.d.ts.map +1 -0
- package/dist/tools/trace-bfs.js +251 -0
- package/dist/tools/trace-bfs.js.map +1 -0
- package/dist/tools/trace-flow.d.ts +1 -1
- package/dist/tools/trace-flow.d.ts.map +1 -1
- package/dist/tools/trace-flow.js +113 -69
- package/dist/tools/trace-flow.js.map +1 -1
- package/dist/types.d.ts +75 -13
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +15 -0
- package/dist/types.js.map +1 -1
- package/grammars/tree-sitter-c.wasm +0 -0
- package/grammars/tree-sitter-cpp.wasm +0 -0
- package/grammars/tree-sitter-go.wasm +0 -0
- package/grammars/tree-sitter-java.wasm +0 -0
- package/grammars/tree-sitter-javascript.wasm +0 -0
- package/grammars/tree-sitter-python.wasm +0 -0
- package/grammars/tree-sitter-rust.wasm +0 -0
- package/grammars/tree-sitter-tsx.wasm +0 -0
- package/grammars/tree-sitter-typescript.wasm +0 -0
- package/package.json +8 -6
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { registerCiTool } from "./register.js";
|
|
2
|
+
import { GraphStatsSchema, GraphStatsOutputSchema } from "../schemas/index.js";
|
|
3
|
+
import { getStore } from "../store/sqlite.js";
|
|
4
|
+
import { asStructured } from "../types.js";
|
|
5
|
+
export function registerGraphStats(server) {
|
|
6
|
+
registerCiTool(server, "ci_graph_stats", {
|
|
7
|
+
title: "Graph Stats",
|
|
8
|
+
description: "Return summary graph statistics: node/edge counts, community breakdown, edge-confidence distribution, and most-connected (god) nodes. Optionally runs community detection first.",
|
|
9
|
+
inputSchema: GraphStatsSchema,
|
|
10
|
+
outputSchema: GraphStatsOutputSchema,
|
|
11
|
+
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
12
|
+
}, async (params) => {
|
|
13
|
+
try {
|
|
14
|
+
const store = getStore();
|
|
15
|
+
// Optionally run community detection
|
|
16
|
+
let communityCount = 0;
|
|
17
|
+
if (params.computeCommunities) {
|
|
18
|
+
communityCount = store.computeCommunities();
|
|
19
|
+
}
|
|
20
|
+
const stats = store.getGraphStats();
|
|
21
|
+
const godNodes = store.getGodNodes(params.topGodNodes);
|
|
22
|
+
// Build markdown
|
|
23
|
+
const lines = [
|
|
24
|
+
`# Graph Statistics`,
|
|
25
|
+
``,
|
|
26
|
+
`**Nodes:** ${stats.nodeCount} | **Edges:** ${stats.edgeCount} | **Communities:** ${stats.communityCount}`,
|
|
27
|
+
`**Unreferenced nodes:** ${stats.unreferencedNodeCount} | **Max degree:** ${stats.maxDegree} | **Avg degree:** ${stats.avgDegree}`,
|
|
28
|
+
``,
|
|
29
|
+
`## Node Kind Breakdown`,
|
|
30
|
+
``,
|
|
31
|
+
];
|
|
32
|
+
for (const [kind, count] of Object.entries(stats.nodeKinds)) {
|
|
33
|
+
lines.push(`- **${kind}:** ${count}`);
|
|
34
|
+
}
|
|
35
|
+
lines.push(``, `## Edge Kind Breakdown`, ``);
|
|
36
|
+
for (const [kind, count] of Object.entries(stats.edgeKinds)) {
|
|
37
|
+
lines.push(`- **${kind}:** ${count}`);
|
|
38
|
+
}
|
|
39
|
+
lines.push(``, `## Confidence Breakdown`, ``);
|
|
40
|
+
for (const [conf, count] of Object.entries(stats.confidenceBreakdown)) {
|
|
41
|
+
lines.push(`- **${conf}:** ${count}`);
|
|
42
|
+
}
|
|
43
|
+
lines.push(``, `## God Nodes (Top ${params.topGodNodes})`, ``);
|
|
44
|
+
for (let i = 0; i < godNodes.length; i++) {
|
|
45
|
+
const gn = godNodes[i];
|
|
46
|
+
lines.push(`${i + 1}. **\`${gn.name}\`** — ${gn.kind} (${gn.file})`);
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
content: [{ type: "text", text: lines.join("\n") }],
|
|
50
|
+
structuredContent: asStructured({
|
|
51
|
+
...stats,
|
|
52
|
+
godNodes: godNodes.map(n => ({
|
|
53
|
+
id: n.id,
|
|
54
|
+
name: n.name,
|
|
55
|
+
kind: n.kind,
|
|
56
|
+
file: n.file,
|
|
57
|
+
line: n.line,
|
|
58
|
+
column: n.column,
|
|
59
|
+
signature: n.signature,
|
|
60
|
+
})),
|
|
61
|
+
}),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
66
|
+
return {
|
|
67
|
+
content: [{ type: "text", text: `Graph stats error: ${msg}` }],
|
|
68
|
+
isError: true,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=graph-stats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-stats.js","sourceRoot":"","sources":["../../src/tools/graph-stats.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAwB,MAAM,qBAAqB,CAAC;AACrG,OAAO,EA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CAAC,CAAC;wBAC3B,EAAE,EAAE,CAAC,CAAC,EAAE;wBACR,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,MAAM,EAAE,CAAC,CAAC,MAAM;wBAChB,SAAS,EAAE,CAAC,CAAC,SAAS;qBACvB,CAAC,CAAC;iBACJ,CAAC;aACH,CAAC;QACJ,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACnE,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,sBAAsB,GAAG,EAAE,EAAE,CAAC;gBACvE,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import type { InspectSymbolInput } from "../schemas/index.js";
|
|
1
2
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
/** Handler exported for tests — same path as the registered MCP tool. */
|
|
4
|
+
export declare function handleInspectSymbol(args: InspectSymbolInput): Promise<{
|
|
5
|
+
content: Array<{
|
|
6
|
+
type: "text";
|
|
7
|
+
text: string;
|
|
8
|
+
}>;
|
|
9
|
+
structuredContent?: Record<string, unknown>;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
}>;
|
|
2
12
|
export declare function registerInspectSymbol(server: McpServer): void;
|
|
3
13
|
//# sourceMappingURL=inspect-symbol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-symbol.d.ts","sourceRoot":"","sources":["../../src/tools/inspect-symbol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspect-symbol.d.ts","sourceRoot":"","sources":["../../src/tools/inspect-symbol.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0CzE,yEAAyE;AACzE,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC;IAC3E,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CA0HD;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAc7D"}
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
* (with ±5 lines context), callers, callees, and related tests.
|
|
6
6
|
*/
|
|
7
7
|
import { InspectSymbolSchema, InspectSymbolOutputSchema } from "../schemas/index.js";
|
|
8
|
-
import { findSymbol, findCallers, findCallees,
|
|
8
|
+
import { findSymbol, findCallers, findCallees, findSymbols } from "../store/service.js";
|
|
9
|
+
import { getStore } from "../store/sqlite.js";
|
|
9
10
|
import { asStructured } from "../types.js";
|
|
10
11
|
import { loadConfig, MAX_RESPONSE_CHARS } from "../constants.js";
|
|
12
|
+
import { validateRepoPath } from "../security/guard.js";
|
|
11
13
|
import { readFileSync } from "fs";
|
|
12
|
-
import { join } from "path";
|
|
13
14
|
import { registerCiTool } from "./register.js";
|
|
15
|
+
import { requireIndexReady, ciErrorToolResult, indexMeta, getIndexState, } from "../services/index-state.js";
|
|
14
16
|
function truncate(text, max) {
|
|
15
17
|
if (text.length <= max)
|
|
16
18
|
return text;
|
|
@@ -24,7 +26,7 @@ function readDefinition(file, line) {
|
|
|
24
26
|
if (!config.repoPath)
|
|
25
27
|
return null;
|
|
26
28
|
try {
|
|
27
|
-
const fullPath =
|
|
29
|
+
const fullPath = validateRepoPath(file, config.repoPath);
|
|
28
30
|
const content = readFileSync(fullPath, "utf-8");
|
|
29
31
|
const lines = content.split("\n");
|
|
30
32
|
const start = Math.max(0, line - 1 - 5);
|
|
@@ -36,6 +38,112 @@ function readDefinition(file, line) {
|
|
|
36
38
|
return null;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
41
|
+
/** Handler exported for tests — same path as the registered MCP tool. */
|
|
42
|
+
export async function handleInspectSymbol(args) {
|
|
43
|
+
const indexErr = requireIndexReady();
|
|
44
|
+
if (indexErr) {
|
|
45
|
+
return ciErrorToolResult(indexErr);
|
|
46
|
+
}
|
|
47
|
+
const { symbol: symbolName, includeCallers, includeCallees, includeTests, responseFormat, } = args;
|
|
48
|
+
// 1. Try exact match first
|
|
49
|
+
let sym = findSymbol(symbolName);
|
|
50
|
+
// 2. Fallback: partial match via FTS
|
|
51
|
+
if (!sym) {
|
|
52
|
+
const results = findSymbols(symbolName);
|
|
53
|
+
if (results.length > 0)
|
|
54
|
+
sym = results[0];
|
|
55
|
+
}
|
|
56
|
+
const meta = indexMeta();
|
|
57
|
+
const idx = getIndexState();
|
|
58
|
+
if (!sym) {
|
|
59
|
+
const output = {
|
|
60
|
+
symbol: null,
|
|
61
|
+
definition: null,
|
|
62
|
+
callers: [],
|
|
63
|
+
callees: [],
|
|
64
|
+
relatedTests: [],
|
|
65
|
+
error: `Symbol "${symbolName}" not found in index.`,
|
|
66
|
+
...meta,
|
|
67
|
+
partial: idx.partial || meta.partial,
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
content: [{ type: "text", text: `Symbol "${symbolName}" not found.` }],
|
|
71
|
+
structuredContent: asStructured(output),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
// 3. Read definition with ±5 lines context
|
|
75
|
+
const definition = readDefinition(sym.file, sym.line);
|
|
76
|
+
// 4. Gather relations
|
|
77
|
+
const callers = includeCallers ? findCallers(sym.name) : [];
|
|
78
|
+
const callees = includeCallees ? findCallees(sym.name) : [];
|
|
79
|
+
const relatedTests = includeTests ? getStore().findRelatedTests(sym.file) : [];
|
|
80
|
+
const output = {
|
|
81
|
+
symbol: sym,
|
|
82
|
+
definition,
|
|
83
|
+
callers,
|
|
84
|
+
callees,
|
|
85
|
+
relatedTests,
|
|
86
|
+
...meta,
|
|
87
|
+
partial: idx.partial || meta.partial,
|
|
88
|
+
};
|
|
89
|
+
// 5. Build human-readable text
|
|
90
|
+
const lines = [];
|
|
91
|
+
lines.push(`# ${sym.name}`);
|
|
92
|
+
lines.push(`**Kind:** ${sym.kind} `);
|
|
93
|
+
lines.push(`**File:** ${sym.file}:${sym.line} `);
|
|
94
|
+
lines.push(`**Signature:** \`${sym.signature}\``);
|
|
95
|
+
if (sym.summary)
|
|
96
|
+
lines.push(`**Summary:** ${sym.summary}`);
|
|
97
|
+
lines.push("");
|
|
98
|
+
if (definition) {
|
|
99
|
+
lines.push("## Definition");
|
|
100
|
+
lines.push("```");
|
|
101
|
+
lines.push(definition);
|
|
102
|
+
lines.push("```");
|
|
103
|
+
lines.push("");
|
|
104
|
+
}
|
|
105
|
+
if (callers.length > 0) {
|
|
106
|
+
lines.push(`## Callers (${callers.length})`);
|
|
107
|
+
for (const c of callers.slice(0, 20)) {
|
|
108
|
+
lines.push(`- \`${c.source}\` → ${c.kind} → \`${c.target}\``);
|
|
109
|
+
}
|
|
110
|
+
if (callers.length > 20) {
|
|
111
|
+
lines.push(`- … and ${callers.length - 20} more`);
|
|
112
|
+
}
|
|
113
|
+
lines.push("");
|
|
114
|
+
}
|
|
115
|
+
if (callees.length > 0) {
|
|
116
|
+
lines.push(`## Callees (${callees.length})`);
|
|
117
|
+
for (const c of callees.slice(0, 20)) {
|
|
118
|
+
lines.push(`- \`${c.source}\` → ${c.kind} → \`${c.target}\``);
|
|
119
|
+
}
|
|
120
|
+
if (callees.length > 20) {
|
|
121
|
+
lines.push(`- … and ${callees.length - 20} more`);
|
|
122
|
+
}
|
|
123
|
+
lines.push("");
|
|
124
|
+
}
|
|
125
|
+
if (relatedTests.length > 0) {
|
|
126
|
+
lines.push(`## Related Tests (${relatedTests.length})`);
|
|
127
|
+
for (const t of relatedTests.slice(0, 20)) {
|
|
128
|
+
lines.push(`- \`${t}\``);
|
|
129
|
+
}
|
|
130
|
+
if (relatedTests.length > 20) {
|
|
131
|
+
lines.push(`- … and ${relatedTests.length - 20} more`);
|
|
132
|
+
}
|
|
133
|
+
lines.push("");
|
|
134
|
+
}
|
|
135
|
+
let text;
|
|
136
|
+
if (responseFormat === "json") {
|
|
137
|
+
text = truncate(JSON.stringify(output, null, 2), MAX_RESPONSE_CHARS);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
text = truncate(lines.join("\n"), MAX_RESPONSE_CHARS);
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
content: [{ type: "text", text }],
|
|
144
|
+
structuredContent: asStructured(output),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
39
147
|
export function registerInspectSymbol(server) {
|
|
40
148
|
registerCiTool(server, "ci_inspect_symbol", {
|
|
41
149
|
title: "Inspect Symbol",
|
|
@@ -46,103 +154,6 @@ export function registerInspectSymbol(server) {
|
|
|
46
154
|
readOnlyHint: true,
|
|
47
155
|
idempotentHint: true,
|
|
48
156
|
},
|
|
49
|
-
}, async (args) =>
|
|
50
|
-
const { symbol: symbolName, includeCallers, includeCallees, includeTests, responseFormat, } = args;
|
|
51
|
-
// 1. Try exact match first
|
|
52
|
-
let sym = findSymbol(symbolName);
|
|
53
|
-
// 2. Fallback: partial match across all indexed symbols
|
|
54
|
-
if (!sym) {
|
|
55
|
-
const allSymbols = getIndex().symbols ?? [];
|
|
56
|
-
const lowerQuery = symbolName.toLowerCase();
|
|
57
|
-
const partial = allSymbols.find((s) => s.name.toLowerCase().includes(lowerQuery) ||
|
|
58
|
-
lowerQuery.includes(s.name.toLowerCase()));
|
|
59
|
-
if (partial)
|
|
60
|
-
sym = partial;
|
|
61
|
-
}
|
|
62
|
-
if (!sym) {
|
|
63
|
-
const output = {
|
|
64
|
-
symbol: null,
|
|
65
|
-
definition: null,
|
|
66
|
-
callers: [],
|
|
67
|
-
callees: [],
|
|
68
|
-
relatedTests: [],
|
|
69
|
-
error: `Symbol "${symbolName}" not found in index.`,
|
|
70
|
-
};
|
|
71
|
-
return {
|
|
72
|
-
content: [{ type: "text", text: `Symbol "${symbolName}" not found.` }],
|
|
73
|
-
structuredContent: asStructured(output),
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
// 3. Read definition with ±5 lines context
|
|
77
|
-
const definition = readDefinition(sym.file, sym.line);
|
|
78
|
-
// 4. Gather relations
|
|
79
|
-
const callers = includeCallers ? findCallers(sym.name) : [];
|
|
80
|
-
const callees = includeCallees ? findCallees(sym.name) : [];
|
|
81
|
-
const relatedTests = includeTests ? findRelatedTests(sym.file) : [];
|
|
82
|
-
const output = {
|
|
83
|
-
symbol: sym,
|
|
84
|
-
definition,
|
|
85
|
-
callers,
|
|
86
|
-
callees,
|
|
87
|
-
relatedTests,
|
|
88
|
-
};
|
|
89
|
-
// 5. Build human-readable text
|
|
90
|
-
const lines = [];
|
|
91
|
-
lines.push(`# ${sym.name}`);
|
|
92
|
-
lines.push(`**Kind:** ${sym.kind} `);
|
|
93
|
-
lines.push(`**File:** ${sym.file}:${sym.line} `);
|
|
94
|
-
lines.push(`**Signature:** \`${sym.signature}\``);
|
|
95
|
-
if (sym.summary)
|
|
96
|
-
lines.push(`**Summary:** ${sym.summary}`);
|
|
97
|
-
lines.push("");
|
|
98
|
-
if (definition) {
|
|
99
|
-
lines.push("## Definition");
|
|
100
|
-
lines.push("```");
|
|
101
|
-
lines.push(definition);
|
|
102
|
-
lines.push("```");
|
|
103
|
-
lines.push("");
|
|
104
|
-
}
|
|
105
|
-
if (callers.length > 0) {
|
|
106
|
-
lines.push(`## Callers (${callers.length})`);
|
|
107
|
-
for (const c of callers.slice(0, 20)) {
|
|
108
|
-
lines.push(`- \`${c.source}\` → ${c.kind} → \`${c.target}\``);
|
|
109
|
-
}
|
|
110
|
-
if (callers.length > 20) {
|
|
111
|
-
lines.push(`- … and ${callers.length - 20} more`);
|
|
112
|
-
}
|
|
113
|
-
lines.push("");
|
|
114
|
-
}
|
|
115
|
-
if (callees.length > 0) {
|
|
116
|
-
lines.push(`## Callees (${callees.length})`);
|
|
117
|
-
for (const c of callees.slice(0, 20)) {
|
|
118
|
-
lines.push(`- \`${c.source}\` → ${c.kind} → \`${c.target}\``);
|
|
119
|
-
}
|
|
120
|
-
if (callees.length > 20) {
|
|
121
|
-
lines.push(`- … and ${callees.length - 20} more`);
|
|
122
|
-
}
|
|
123
|
-
lines.push("");
|
|
124
|
-
}
|
|
125
|
-
if (relatedTests.length > 0) {
|
|
126
|
-
lines.push(`## Related Tests (${relatedTests.length})`);
|
|
127
|
-
for (const t of relatedTests.slice(0, 20)) {
|
|
128
|
-
lines.push(`- \`${t}\``);
|
|
129
|
-
}
|
|
130
|
-
if (relatedTests.length > 20) {
|
|
131
|
-
lines.push(`- … and ${relatedTests.length - 20} more`);
|
|
132
|
-
}
|
|
133
|
-
lines.push("");
|
|
134
|
-
}
|
|
135
|
-
let text;
|
|
136
|
-
if (responseFormat === "json") {
|
|
137
|
-
text = truncate(JSON.stringify(output, null, 2), MAX_RESPONSE_CHARS);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
text = truncate(lines.join("\n"), MAX_RESPONSE_CHARS);
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
content: [{ type: "text", text }],
|
|
144
|
-
structuredContent: asStructured(output),
|
|
145
|
-
};
|
|
146
|
-
});
|
|
157
|
+
}, async (args) => handleInspectSymbol(args));
|
|
147
158
|
}
|
|
148
159
|
//# sourceMappingURL=inspect-symbol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-symbol.js","sourceRoot":"","sources":["../../src/tools/inspect-symbol.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErF,OAAO,
|
|
1
|
+
{"version":3,"file":"inspect-symbol.js","sourceRoot":"","sources":["../../src/tools/inspect-symbol.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,aAAa,GACd,MAAM,4BAA4B,CAAC;AAWpC,SAAS,QAAQ,CAAC,IAAY,EAAE,GAAW;IACzC,IAAI,IAAI,CAAC,MAAM,IAAI,GAAG;QAAE,OAAO,IAAI,CAAC;IACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,iBAAiB,CAAC;AAChD,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,IAAY,EAAE,IAAY;IAChD,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,Q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,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,IAAI,IAAY,CAAC;IACjB,IAAI,cAAc,KAAK,MAAM,EAAE,CAAC;QAC9B,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;IACvE,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,CAAC;IACxD,CAAC;IAED,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,CAAC;QAC1C,iBAAiB,EAAE,YAAY,CAAC,MAAM,CAAC;KACxC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAiB;IACrD,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAC1C;QACE,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,sEAAsE;QACnF,WAAW,EAAE,mBAAmB;QAChC,YAAY,EAAE,yBAAyB;QACvC,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,cAAc,EAAE,IAAI;SACrB;KACF,EACD,KAAK,EAAE,IAAwB,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
package/dist/tools/ping.d.ts
CHANGED
|
File without changes
|
package/dist/tools/ping.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["../../src/tools/ping.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASzE,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["../../src/tools/ping.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASzE,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoCpD"}
|
package/dist/tools/ping.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { registerCiTool } from "./register.js";
|
|
2
2
|
import { PingSchema, PingOutputSchema } from "../schemas/index.js";
|
|
3
3
|
import { loadConfig, SERVER_NAME, SERVER_VERSION } from "../constants.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getStore } from "../store/sqlite.js";
|
|
5
5
|
import { asStructured } from "../types.js";
|
|
6
6
|
let startTime = Date.now();
|
|
7
7
|
export function registerPing(server) {
|
|
@@ -14,8 +14,7 @@ export function registerPing(server) {
|
|
|
14
14
|
}, async () => {
|
|
15
15
|
try {
|
|
16
16
|
const config = loadConfig();
|
|
17
|
-
const
|
|
18
|
-
const symbolCount = index.symbols?.length ?? 0;
|
|
17
|
+
const symbolCount = getStore().getSymbols().length;
|
|
19
18
|
return {
|
|
20
19
|
content: [{
|
|
21
20
|
type: "text",
|
package/dist/tools/ping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping.js","sourceRoot":"","sources":["../../src/tools/ping.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ping.js","sourceRoot":"","sources":["../../src/tools/ping.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,gB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;YACxB,MAAM,GAAG,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACnE,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,eAAe,GAAG,EAAE,EAAE,CAAC;gBAChE,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CAAE,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile Tool — manage the active tool profile at runtime.
|
|
3
|
+
*
|
|
4
|
+
* Allows agents to query the current profile, list available profiles,
|
|
5
|
+
* and switch between them (when permitted by config).
|
|
6
|
+
*/
|
|
7
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
8
|
+
export declare function registerProfileTool(server: McpServer): void;
|
|
9
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/tools/profile.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAezE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4F3D"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile Tool — manage the active tool profile at runtime.
|
|
3
|
+
*
|
|
4
|
+
* Allows agents to query the current profile, list available profiles,
|
|
5
|
+
* and switch between them (when permitted by config).
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import { registerCiTool } from "./register.js";
|
|
9
|
+
import { getProfile, getAllProfiles } from "../profiles.js";
|
|
10
|
+
import { loadConfig } from "../constants.js";
|
|
11
|
+
import { asStructured } from "../types.js";
|
|
12
|
+
const ProfileSchema = z.object({
|
|
13
|
+
action: z.enum(["get", "list", "set"]).describe("Profile action: get current, list available, or switch"),
|
|
14
|
+
profile: z.enum(["core", "full"]).optional().describe("Target profile (required for action=set)"),
|
|
15
|
+
responseFormat: z.enum(["text", "json"]).optional().default("text"),
|
|
16
|
+
});
|
|
17
|
+
export function registerProfileTool(server) {
|
|
18
|
+
registerCiTool(server, "ci_profile", {
|
|
19
|
+
title: "Profile Manager",
|
|
20
|
+
description: "Query or switch the active tool profile. " +
|
|
21
|
+
"`core` (default): read-only code understanding tools. " +
|
|
22
|
+
"`full`: all tools including validation, memory, session management.",
|
|
23
|
+
inputSchema: {
|
|
24
|
+
action: ProfileSchema.shape.action,
|
|
25
|
+
profile: ProfileSchema.shape.profile,
|
|
26
|
+
responseFormat: ProfileSchema.shape.responseFormat,
|
|
27
|
+
},
|
|
28
|
+
annotations: {
|
|
29
|
+
readOnlyHint: false,
|
|
30
|
+
destructiveHint: false,
|
|
31
|
+
idempotentHint: true,
|
|
32
|
+
},
|
|
33
|
+
}, async (args) => {
|
|
34
|
+
const input = args;
|
|
35
|
+
const config = loadConfig();
|
|
36
|
+
const asJson = input.responseFormat === "json";
|
|
37
|
+
switch (input.action) {
|
|
38
|
+
case "get": {
|
|
39
|
+
const profile = getProfile(config.profile);
|
|
40
|
+
if (asJson) {
|
|
41
|
+
return {
|
|
42
|
+
content: [{ type: "text", text: JSON.stringify(profile) }],
|
|
43
|
+
structuredContent: asStructured(profile),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
content: [{
|
|
48
|
+
type: "text",
|
|
49
|
+
text: `## Active Profile: ${profile.label}\n\n${profile.description}\n\n**Tools (${profile.tools.length}):**\n${profile.tools.map(t => ` - \`${t}\``).join("\n")}\n\n**Read-only:** ${profile.readOnly}`,
|
|
50
|
+
}],
|
|
51
|
+
structuredContent: asStructured(profile),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
case "list": {
|
|
55
|
+
const profiles = getAllProfiles();
|
|
56
|
+
if (asJson) {
|
|
57
|
+
return {
|
|
58
|
+
content: [{ type: "text", text: JSON.stringify(profiles) }],
|
|
59
|
+
structuredContent: asStructured(profiles),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
content: [{
|
|
64
|
+
type: "text",
|
|
65
|
+
text: `## Available Profiles\n\n${profiles.map(p => `### ${p.label}\n${p.description}\n**Tools:** ${p.tools.length} tools` +
|
|
66
|
+
(p.readOnly ? " (read-only)" : "") +
|
|
67
|
+
`\n\`\`\`\n${p.tools.map(t => ` ${t}`).join("\n")}\n\`\`\``).join("\n\n")}`,
|
|
68
|
+
}],
|
|
69
|
+
structuredContent: asStructured(profiles),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
case "set": {
|
|
73
|
+
if (!input.profile) {
|
|
74
|
+
return {
|
|
75
|
+
content: [{ type: "text", text: "Profile name required for 'set' action" }],
|
|
76
|
+
isError: true,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
// Profile switch is advisory — actual enforcement requires config change
|
|
80
|
+
// and server restart. The active profile is persisted in .ci-mcp.json.
|
|
81
|
+
return {
|
|
82
|
+
content: [{
|
|
83
|
+
type: "text",
|
|
84
|
+
text: `To switch to '${input.profile}' profile, set \`"profile": "${input.profile}"\` in .ci-mcp.json and restart the server.\n\nCurrent profile: ${config.profile}`,
|
|
85
|
+
}],
|
|
86
|
+
structuredContent: asStructured({
|
|
87
|
+
currentProfile: config.profile,
|
|
88
|
+
requestedProfile: input.profile,
|
|
89
|
+
requiresRestart: true,
|
|
90
|
+
}),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
default:
|
|
94
|
+
return {
|
|
95
|
+
content: [{ type: "text", text: `Unknown action: ${input.action}` }],
|
|
96
|
+
isError: true,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0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