bc-code-intelligence-mcp 1.7.1 → 1.7.2
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/dist/cli.js +45 -44
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +330 -302
- package/dist/index.js.map +1 -1
- package/dist/layers/embedded-layer.d.ts +4 -4
- package/dist/layers/embedded-layer.d.ts.map +1 -1
- package/dist/layers/embedded-layer.js +118 -96
- package/dist/layers/embedded-layer.js.map +1 -1
- package/dist/layers/git-layer.d.ts +3 -3
- package/dist/layers/git-layer.d.ts.map +1 -1
- package/dist/layers/git-layer.js +115 -98
- package/dist/layers/git-layer.js.map +1 -1
- package/dist/layers/project-layer.d.ts +2 -2
- package/dist/layers/project-layer.d.ts.map +1 -1
- package/dist/layers/project-layer.js +44 -40
- package/dist/layers/project-layer.js.map +1 -1
- package/dist/sdk/bc-code-intel-client.d.ts +1 -1
- package/dist/sdk/bc-code-intel-client.js +40 -40
- package/dist/tools/ask_bc_expert/handler.d.ts.map +1 -1
- package/dist/tools/ask_bc_expert/handler.js +71 -50
- package/dist/tools/ask_bc_expert/handler.js.map +1 -1
- package/dist/types/bc-knowledge.d.ts +1 -1
- package/dist/types/bc-knowledge.d.ts.map +1 -1
- package/dist/types/bc-knowledge.js +105 -33
- package/dist/types/bc-knowledge.js.map +1 -1
- package/dist/types/config-types.d.ts +9 -9
- package/dist/types/config-types.d.ts.map +1 -1
- package/dist/types/config-types.js +38 -38
- package/dist/types/config-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export var LayerSourceType;
|
|
|
8
8
|
LayerSourceType["GIT"] = "git";
|
|
9
9
|
LayerSourceType["LOCAL"] = "local";
|
|
10
10
|
LayerSourceType["HTTP"] = "http";
|
|
11
|
-
LayerSourceType["NPM"] = "npm";
|
|
11
|
+
LayerSourceType["NPM"] = "npm";
|
|
12
12
|
})(LayerSourceType || (LayerSourceType = {}));
|
|
13
13
|
export var AuthType;
|
|
14
14
|
(function (AuthType) {
|
|
@@ -23,43 +23,43 @@ export var AuthType;
|
|
|
23
23
|
export const DEFAULT_BC_CODE_INTEL_CONFIG = {
|
|
24
24
|
layers: [
|
|
25
25
|
{
|
|
26
|
-
name:
|
|
26
|
+
name: "embedded",
|
|
27
27
|
priority: 0,
|
|
28
28
|
source: {
|
|
29
29
|
type: LayerSourceType.EMBEDDED,
|
|
30
|
-
path:
|
|
30
|
+
path: "embedded-knowledge",
|
|
31
31
|
},
|
|
32
|
-
enabled: true
|
|
32
|
+
enabled: true,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
name:
|
|
35
|
+
name: "project",
|
|
36
36
|
priority: 100,
|
|
37
37
|
source: {
|
|
38
38
|
type: LayerSourceType.LOCAL,
|
|
39
|
-
path:
|
|
39
|
+
path: "./bc-code-intel-overrides",
|
|
40
40
|
},
|
|
41
41
|
enabled: true,
|
|
42
|
-
patterns: [
|
|
43
|
-
}
|
|
42
|
+
patterns: ["*"],
|
|
43
|
+
},
|
|
44
44
|
],
|
|
45
45
|
resolution: {
|
|
46
|
-
strategy:
|
|
47
|
-
conflict_resolution:
|
|
46
|
+
strategy: "best_match",
|
|
47
|
+
conflict_resolution: "priority_wins",
|
|
48
48
|
enable_fallback: true,
|
|
49
|
-
fallback_to_embedded: true
|
|
49
|
+
fallback_to_embedded: true,
|
|
50
50
|
},
|
|
51
51
|
cache: {
|
|
52
|
-
strategy:
|
|
52
|
+
strategy: "moderate",
|
|
53
53
|
ttl: {
|
|
54
|
-
git:
|
|
55
|
-
local:
|
|
56
|
-
http:
|
|
57
|
-
embedded:
|
|
58
|
-
npm:
|
|
54
|
+
git: "1h",
|
|
55
|
+
local: "immediate",
|
|
56
|
+
http: "30m",
|
|
57
|
+
embedded: "permanent",
|
|
58
|
+
npm: "24h",
|
|
59
59
|
},
|
|
60
60
|
max_size_mb: 100,
|
|
61
61
|
clear_on_startup: false,
|
|
62
|
-
background_refresh: true
|
|
62
|
+
background_refresh: true,
|
|
63
63
|
},
|
|
64
64
|
security: {
|
|
65
65
|
validate_sources: true,
|
|
@@ -67,7 +67,7 @@ export const DEFAULT_BC_CODE_INTEL_CONFIG = {
|
|
|
67
67
|
allow_http_sources: false,
|
|
68
68
|
trusted_domains: [],
|
|
69
69
|
max_download_size_mb: 50,
|
|
70
|
-
scan_for_malicious_content: true
|
|
70
|
+
scan_for_malicious_content: true,
|
|
71
71
|
},
|
|
72
72
|
performance: {
|
|
73
73
|
max_concurrent_loads: 5,
|
|
@@ -75,36 +75,36 @@ export const DEFAULT_BC_CODE_INTEL_CONFIG = {
|
|
|
75
75
|
max_layers: 20,
|
|
76
76
|
lazy_loading: true,
|
|
77
77
|
preload_embedded: true,
|
|
78
|
-
memory_limit_mb: 500
|
|
78
|
+
memory_limit_mb: 500,
|
|
79
79
|
},
|
|
80
80
|
developer: {
|
|
81
81
|
debug_layers: false,
|
|
82
82
|
hot_reload: false,
|
|
83
|
-
log_level:
|
|
83
|
+
log_level: "info",
|
|
84
84
|
profile_performance: false,
|
|
85
85
|
validate_on_startup: true,
|
|
86
86
|
export_config_schema: false,
|
|
87
|
-
enable_diagnostic_tools: false // Disabled by default to minimize token overhead
|
|
88
|
-
}
|
|
87
|
+
enable_diagnostic_tools: false, // Disabled by default to minimize token overhead
|
|
88
|
+
},
|
|
89
89
|
};
|
|
90
90
|
// Environment variable mappings
|
|
91
91
|
export const ENV_VAR_MAPPINGS = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
BC_CODE_INTEL_CONFIG_PATH: "config_file_path",
|
|
93
|
+
BC_CODE_INTEL_DEBUG_LAYERS: "developer.debug_layers",
|
|
94
|
+
BC_CODE_INTEL_ENABLE_DIAGNOSTICS: "developer.enable_diagnostic_tools",
|
|
95
|
+
BC_CODE_INTEL_HOT_RELOAD: "developer.hot_reload",
|
|
96
|
+
BC_CODE_INTEL_LOG_LEVEL: "developer.log_level",
|
|
97
|
+
BC_CODE_INTEL_CACHE_STRATEGY: "cache.strategy",
|
|
98
|
+
BC_CODE_INTEL_CACHE_TTL_GIT: "cache.ttl.git",
|
|
99
|
+
BC_CODE_INTEL_CACHE_TTL_LOCAL: "cache.ttl.local",
|
|
100
|
+
BC_CODE_INTEL_ALLOW_HTTP_SOURCES: "security.allow_http_sources",
|
|
101
|
+
BC_CODE_INTEL_MAX_LAYERS: "performance.max_layers",
|
|
102
|
+
BC_CODE_INTEL_MEMORY_LIMIT_MB: "performance.memory_limit_mb",
|
|
103
103
|
// Project overrides absolute path
|
|
104
|
-
|
|
104
|
+
BC_CODE_INTEL_PROJECT_OVERRIDES_PATH: "layers[project].source.path",
|
|
105
105
|
// Quick git layer setup
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
BC_CODE_INTEL_COMPANY_KNOWLEDGE_URL: "layers[company].source.url",
|
|
107
|
+
BC_CODE_INTEL_COMPANY_KNOWLEDGE_TOKEN: "layers[company].auth.token",
|
|
108
|
+
BC_CODE_INTEL_COMPANY_KNOWLEDGE_BRANCH: "layers[company].source.branch",
|
|
109
109
|
};
|
|
110
110
|
//# sourceMappingURL=config-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types.js","sourceRoot":"","sources":["../../src/types/config-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,8BAAW,CAAA
|
|
1
|
+
{"version":3,"file":"config-types.js","sourceRoot":"","sources":["../../src/types/config-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACz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iBAAiB,EAAE,IAAI;QACvB,kBAAkB,EAAE,KAAK;QACzB,eAAe,EAAE,EAAE;QACnB,oBAAoB,EAAE,EAAE;QACxB,0BAA0B,EAAE,IAAI;KACjC;IACD,WAAW,EAAE;QACX,oBAAoB,EAAE,CAAC;QACvB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,eAAe,EAAE,GAAG;KACrB;IACD,SAAS,EAAE;QACT,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,MAAM;QACjB,mBAAmB,EAAE,KAAK;QAC1B,mBAAmB,EAAE,IAAI;QACzB,oBAAoB,EAAE,KAAK;QAC3B,uBAAuB,EAAE,KAAK,EAAE,iDAAiD;KAClF;CACF,CAAC;AAEF,gCAAgC;AAChC,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,yBAAyB,EAAE,kBAAkB;IAC7C,0BAA0B,EAAE,wBAAwB;IACpD,gCAAgC,EAAE,mCAAmC;IACrE,wBAAwB,EAAE,sBAAsB;IAChD,uBAAuB,EAAE,qBAAqB;IAC9C,4BAA4B,EAAE,gBAAgB;IAC9C,2BAA2B,EAAE,eAAe;IAC5C,6BAA6B,EAAE,iBAAiB;IAChD,gCAAgC,EAAE,6BAA6B;IAC/D,wBAAwB,EAAE,wBAAwB;IAClD,6BAA6B,EAAE,6BAA6B;IAC5D,kCAAkC;IAClC,oCAAoC,EAAE,6BAA6B;IAEnE,wBAAwB;IACxB,mCAAmC,EAAE,4BAA4B;IACjE,qCAAqC,EAAE,4BAA4B;IACnE,sCAAsC,EAAE,+BAA+B;CAC/D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bc-code-intelligence-mcp",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|