@syke1/mcp-server 1.5.6 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -57
- package/README.md +18 -21
- package/dist/ai/analyzer.js +1 -112
- package/dist/ai/context-extractor.js +1 -224
- package/dist/ai/provider.js +1 -186
- package/dist/ai/realtime-analyzer.js +1 -253
- package/dist/config.js +1 -121
- package/dist/git/change-coupling.js +1 -250
- package/dist/graph/incremental.js +1 -319
- package/dist/graph/memo-cache.js +1 -176
- package/dist/graph/scc.js +1 -206
- package/dist/graph.js +1 -137
- package/dist/index.js +1 -852
- package/dist/license/validator.d.ts +3 -0
- package/dist/license/validator.js +1 -328
- package/dist/scoring/pagerank.js +1 -221
- package/dist/scoring/risk-scorer.js +1 -623
- package/dist/tools/analyze-impact.js +1 -378
- package/dist/tools/gate-build.js +1 -409
- package/dist/watcher/file-cache.js +1 -281
- package/dist/web/server.js +1 -925
- package/package.json +53 -68
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Elastic License 2.0
|
|
1
|
+
Elastic License 2.0 (ELv2)
|
|
2
2
|
|
|
3
3
|
URL: https://www.elastic.co/licensing/elastic-license
|
|
4
4
|
|
|
@@ -8,86 +8,42 @@ By using the software, you agree to all of the terms and conditions below.
|
|
|
8
8
|
|
|
9
9
|
## Copyright License
|
|
10
10
|
|
|
11
|
-
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
12
|
-
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
13
|
-
available, and prepare derivative works of the software, in each case subject to
|
|
14
|
-
the limitations and conditions below.
|
|
11
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below.
|
|
15
12
|
|
|
16
13
|
## Limitations
|
|
17
14
|
|
|
18
|
-
You may not provide the software to third parties as a hosted or managed
|
|
19
|
-
service, where the service provides users with access to any substantial set of
|
|
20
|
-
the features or functionality of the software.
|
|
15
|
+
You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
|
|
21
16
|
|
|
22
|
-
You may not move, change, disable, or circumvent the license key functionality
|
|
23
|
-
in the software, and you may not remove or obscure any functionality in the
|
|
24
|
-
software that is protected by the license key.
|
|
17
|
+
You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
|
|
25
18
|
|
|
26
|
-
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
27
|
-
of the licensor in the software. Any use of the licensor's trademarks is subject
|
|
28
|
-
to applicable law.
|
|
19
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law.
|
|
29
20
|
|
|
30
21
|
## Patents
|
|
31
22
|
|
|
32
|
-
The licensor grants you a license, under any patent claims the licensor can
|
|
33
|
-
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
34
|
-
sale, import and have imported the software, in each case subject to the
|
|
35
|
-
limitations and conditions in this license. This license does not cover any
|
|
36
|
-
patent claims that you cause to be infringed by modifications or additions to the
|
|
37
|
-
software. If you or your company make any written claim that the software
|
|
38
|
-
infringes or contributes to infringement of any patent, your patent license for
|
|
39
|
-
the software granted under these terms ends immediately. If your company makes
|
|
40
|
-
such a claim, your patent license ends immediately for work on behalf of your
|
|
41
|
-
company.
|
|
23
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
42
24
|
|
|
43
25
|
## Notices
|
|
44
26
|
|
|
45
|
-
You must ensure that anyone who gets a copy of any part of the software from you
|
|
46
|
-
also gets a copy of these terms.
|
|
27
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
|
|
47
28
|
|
|
48
|
-
If you modify the software, you must include in any modified copies of the
|
|
49
|
-
software prominent notices stating that you have modified the software.
|
|
29
|
+
If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
|
|
50
30
|
|
|
51
31
|
## No Other Rights
|
|
52
32
|
|
|
53
|
-
These terms do not imply any licenses other than those expressly granted in
|
|
54
|
-
these terms.
|
|
33
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
55
34
|
|
|
56
35
|
## Termination
|
|
57
36
|
|
|
58
|
-
If you use the software in violation of these terms, such use is not licensed,
|
|
59
|
-
and your licenses will automatically terminate. If the licensor provides you
|
|
60
|
-
with a notice of your violation, and you cease all violation of this license no
|
|
61
|
-
later than 30 days after you receive that notice, your licenses will be
|
|
62
|
-
reinstated retroactively. However, if you violate these terms after such
|
|
63
|
-
reinstatement, any additional violation of these terms will cause your licenses
|
|
64
|
-
to terminate automatically and permanently.
|
|
37
|
+
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
|
|
65
38
|
|
|
66
39
|
## No Liability
|
|
67
40
|
|
|
68
|
-
As far as the law allows, the software comes as is, without any warranty or
|
|
69
|
-
condition, and the licensor will not be liable to you for any damages arising
|
|
70
|
-
out of these terms or the use or nature of the software, under any kind of
|
|
71
|
-
legal claim.
|
|
41
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
72
42
|
|
|
73
43
|
## Definitions
|
|
74
44
|
|
|
75
|
-
The **licensor** is the entity offering these terms, and the **software** is the
|
|
76
|
-
software the licensor makes available under these terms, including any portion
|
|
77
|
-
of it.
|
|
45
|
+
The **licensor** is the entity offering these terms, and the **software** is the software the licensor makes available under these terms, including any portion of it.
|
|
78
46
|
|
|
79
47
|
**you** refers to the individual or entity agreeing to these terms.
|
|
80
48
|
|
|
81
|
-
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
82
|
-
organization that you work for, plus all organizations that have control over,
|
|
83
|
-
are under the control of, or are under common control with that organization.
|
|
84
|
-
**control** means ownership of substantially all the assets of an entity, or the
|
|
85
|
-
power to direct its management and policies by vote, contract, or otherwise.
|
|
86
|
-
Control can be direct or indirect.
|
|
87
|
-
|
|
88
|
-
**your licenses** are all the licenses granted to you for the software under
|
|
89
|
-
these terms.
|
|
90
|
-
|
|
91
|
-
**use** means anything you do with the software requiring one of your licenses.
|
|
92
|
-
|
|
93
|
-
**trademark** means trademarks, service marks, and similar rights.
|
|
49
|
+
**your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **control** means ownership of substantially all the assets of an entity, or the power to direct the management and policies of an entity.
|
package/README.md
CHANGED
|
@@ -10,25 +10,6 @@ Works with **Claude Code**, **Cursor**, **Windsurf**, and any MCP-compatible AI
|
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
13
|
-
## Founding 100 — Free Pro for Early Adopters
|
|
14
|
-
|
|
15
|
-
We're giving the **first 100 developers** full Pro access for **30 days** — no credit card, no strings.
|
|
16
|
-
|
|
17
|
-
**What you get:**
|
|
18
|
-
- All 8 MCP tools with advanced algorithms (SCC, PageRank, Risk Scoring, Git Coupling)
|
|
19
|
-
- Unlimited files, multi-project support
|
|
20
|
-
- Real-time cascade monitoring + web dashboard
|
|
21
|
-
- AI semantic analysis (BYOK — Gemini, OpenAI, or Claude)
|
|
22
|
-
|
|
23
|
-
**How to claim:**
|
|
24
|
-
1. Sign up at [syke.cloud](https://syke.cloud)
|
|
25
|
-
2. Star this repo
|
|
26
|
-
3. Click "I Starred" in your [dashboard](https://syke.cloud/dashboard/) → 30 days Pro unlocked
|
|
27
|
-
|
|
28
|
-
Spots are limited. Once they're gone, they're gone.
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
13
|
## How It Works
|
|
33
14
|
|
|
34
15
|
1. **On startup**, SYKE scans your source directory and builds a complete dependency graph using static import analysis.
|
|
@@ -270,12 +251,28 @@ You (developer) AI Agent SYKE
|
|
|
270
251
|
| build." ----------| |
|
|
271
252
|
```
|
|
272
253
|
|
|
254
|
+
## Founding 100 — Free Pro for Early Adopters
|
|
255
|
+
|
|
256
|
+
We're giving the **first 100 developers** full Pro access for **30 days** — no credit card, no strings.
|
|
257
|
+
|
|
258
|
+
**What you get:**
|
|
259
|
+
- All 8 MCP tools with advanced algorithms (SCC, PageRank, Risk Scoring, Git Coupling)
|
|
260
|
+
- Unlimited files, multi-project support
|
|
261
|
+
- Real-time cascade monitoring + web dashboard
|
|
262
|
+
- AI semantic analysis (BYOK — Gemini, OpenAI, or Claude)
|
|
263
|
+
|
|
264
|
+
**How to claim:**
|
|
265
|
+
1. Sign up at [syke.cloud](https://syke.cloud)
|
|
266
|
+
2. Star this repo
|
|
267
|
+
3. Click "I Starred" in your [dashboard](https://syke.cloud/dashboard/) → 30 days Pro unlocked
|
|
268
|
+
|
|
269
|
+
Spots are limited. Once they're gone, they're gone.
|
|
270
|
+
|
|
273
271
|
## License
|
|
274
272
|
|
|
275
273
|
[Elastic License 2.0 (ELv2)](LICENSE)
|
|
276
274
|
|
|
277
275
|
You can use, modify, and distribute SYKE freely, with two limitations:
|
|
276
|
+
|
|
278
277
|
1. **No managed service** — You cannot offer SYKE as a hosted/managed service to third parties.
|
|
279
278
|
2. **No license key circumvention** — You cannot remove, disable, or bypass the license key functionality.
|
|
280
|
-
|
|
281
|
-
See the [LICENSE](LICENSE) file for the full text.
|
package/dist/ai/analyzer.js
CHANGED
|
@@ -1,112 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.analyzeWithAI = analyzeWithAI;
|
|
37
|
-
const fs = __importStar(require("fs"));
|
|
38
|
-
const path = __importStar(require("path"));
|
|
39
|
-
const provider_1 = require("./provider");
|
|
40
|
-
const context_extractor_1 = require("./context-extractor");
|
|
41
|
-
function readFileContent(filePath) {
|
|
42
|
-
try {
|
|
43
|
-
return fs.readFileSync(filePath, "utf-8");
|
|
44
|
-
}
|
|
45
|
-
catch {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function buildSystemPrompt(languages) {
|
|
50
|
-
const langNames = languages.length > 0 ? languages.join("/") : "source";
|
|
51
|
-
return `You are an expert in ${langNames} code impact analysis.
|
|
52
|
-
Analyze the source code of the given file and its dependents to identify
|
|
53
|
-
what could break when this file is modified.
|
|
54
|
-
|
|
55
|
-
Analysis format:
|
|
56
|
-
## Core Role
|
|
57
|
-
Describe the file's role in the project in one sentence
|
|
58
|
-
|
|
59
|
-
## Risk Points on Modification
|
|
60
|
-
Specific parts that could break (include function/class names)
|
|
61
|
-
|
|
62
|
-
## Dependent File Analysis
|
|
63
|
-
How dependent files use specific parts of this file
|
|
64
|
-
|
|
65
|
-
## Safe Modification Guide
|
|
66
|
-
Precautions and recommended approaches for modifying this file
|
|
67
|
-
|
|
68
|
-
Be concise but specific.`;
|
|
69
|
-
}
|
|
70
|
-
async function analyzeWithAI(filePath, impactResult, graph) {
|
|
71
|
-
const provider = (0, provider_1.getAIProvider)();
|
|
72
|
-
if (!provider) {
|
|
73
|
-
return "AI analysis disabled — set GEMINI_KEY, OPENAI_KEY, or ANTHROPIC_KEY.";
|
|
74
|
-
}
|
|
75
|
-
const targetSource = readFileContent(filePath);
|
|
76
|
-
if (!targetSource) {
|
|
77
|
-
return `Cannot read file: ${filePath}`;
|
|
78
|
-
}
|
|
79
|
-
const codeBlockLang = graph.languages[0] || "text";
|
|
80
|
-
// Build smart context for the target file
|
|
81
|
-
const smartTarget = (0, context_extractor_1.buildSmartContext)(targetSource, codeBlockLang);
|
|
82
|
-
// Build smart context for dependent files (top 5)
|
|
83
|
-
const directDeps = (graph.reverse.get(path.normalize(filePath)) || []).slice(0, 5);
|
|
84
|
-
const dependentSources = [];
|
|
85
|
-
for (const dep of directDeps) {
|
|
86
|
-
const source = readFileContent(dep);
|
|
87
|
-
if (source) {
|
|
88
|
-
const rel = path.relative(graph.sourceDir, dep).replace(/\\/g, "/");
|
|
89
|
-
const smartDep = (0, context_extractor_1.buildSmartContext)(source, codeBlockLang);
|
|
90
|
-
dependentSources.push(`### ${rel}\n\`\`\`${codeBlockLang}\n${smartDep}\n\`\`\``);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
const userPrompt = `## Target file: ${impactResult.relativePath}
|
|
94
|
-
- Risk level: ${impactResult.riskLevel}
|
|
95
|
-
- Direct dependents: ${impactResult.directDependents.length}
|
|
96
|
-
- Transitive dependents: ${impactResult.transitiveDependents.length}
|
|
97
|
-
- Total impacted files: ${impactResult.totalImpacted}
|
|
98
|
-
|
|
99
|
-
### Target file source code
|
|
100
|
-
\`\`\`${codeBlockLang}
|
|
101
|
-
${smartTarget}
|
|
102
|
-
\`\`\`
|
|
103
|
-
|
|
104
|
-
${dependentSources.length > 0 ? `### Files depending on this file (top ${dependentSources.length})\n${dependentSources.join("\n\n")}` : "No internal files depend on this file."}`;
|
|
105
|
-
try {
|
|
106
|
-
const systemPrompt = buildSystemPrompt(graph.languages);
|
|
107
|
-
return await provider.analyze(systemPrompt, userPrompt);
|
|
108
|
-
}
|
|
109
|
-
catch (err) {
|
|
110
|
-
return `AI analysis error: ${err.message || err}`;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
'use strict';const _0xb10762=_0x4f33;(function(_0x51343e,_0x3de028){const _0x2e8154={_0x1be528:0x198,_0x326722:0x19e,_0x162848:0x1ad,_0x250490:0x1ae,_0x4c49d5:0x1ba,_0x2ec65d:0x199,_0x323f25:0x1a7},_0xdbc52f=_0x4f33,_0x15ba21=_0x51343e();while(!![]){try{const _0xf8dc0e=-parseInt(_0xdbc52f(0x1b7))/0x1*(-parseInt(_0xdbc52f(_0x2e8154._0x1be528))/0x2)+parseInt(_0xdbc52f(0x1a9))/0x3+-parseInt(_0xdbc52f(_0x2e8154._0x326722))/0x4+parseInt(_0xdbc52f(_0x2e8154._0x162848))/0x5+parseInt(_0xdbc52f(_0x2e8154._0x250490))/0x6+parseInt(_0xdbc52f(0x1bb))/0x7*(parseInt(_0xdbc52f(_0x2e8154._0x4c49d5))/0x8)+parseInt(_0xdbc52f(_0x2e8154._0x2ec65d))/0x9*(-parseInt(_0xdbc52f(_0x2e8154._0x323f25))/0xa);if(_0xf8dc0e===_0x3de028)break;else _0x15ba21['push'](_0x15ba21['shift']());}catch(_0x1fa301){_0x15ba21['push'](_0x15ba21['shift']());}}}(_0x5921,0x8d64b));function _0x5921(){const _0x30db48=['lI9JB250zxH0lwv4DhjHy3rVCG','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','z2v0','wev2Bwm','mtuWDwjTq3Dc','DMfSDwu','y3jLyxrL','ntq0ugHNCNbk','mtaXodK5A0PksvPx','yNvPBgrtBwfYDenVBNrLEhq','CMv2zxjZzq','qwvltMG','BgfUz3vHz2vZ','C3bSAxq','zgvMyxvSDa','zK1hv3y','DxrMltG','cI0Gvg90ywWGAw1Wywn0zwqGzMLSzxm6ia','ntq5mKztvg5TDW','ntu3odjcvvPNExK','BwvZC2fNzq','ignVzguGAw1Wywn0igfUywX5C2LZlGPbBMfSExPLihrOzsbZB3vYy2uGy29KzsbVzIb0AguGz2L2zw4GzMLSzsbHBMqGAxrZigrLCgvUzgvUDhmGDg8GAwrLBNrPzNKkD2HHDcbJB3vSzcbICMvHAYb3AgvUihrOAxmGzMLSzsbPCYbTB2rPzMLLzc4kcKfUywX5C2LZigzVCM1HDdOkiYmGq29YzsbsB2XLcKrLC2nYAwjLihrOzsbMAwXLj3mGCM9SzsbPBIb0AguGChjVAMvJDcbPBIbVBMuGC2vUDgvUy2ukcImJifjPC2SGug9PBNrZig9Uie1VzgLMAwnHDgLVBGPtCgvJAwzPyYbWyxj0CYb0Agf0ignVDwXKigjYzwfRicHPBMnSDwrLigz1BMn0Aw9Ul2nSyxnZig5HBwvZkqOkiYmGrgvWzw5Kzw50iezPBguGqw5HBhLZAxmksg93igrLCgvUzgvUDcbMAwXLCYb1C2uGC3bLy2LMAwmGCgfYDhmGB2yGDgHPCYbMAwXLcGOJiYbtywzLie1VzgLMAwnHDgLVBIbhDwLKzqPqCMvJyxv0Aw9UCYbHBMqGCMvJB21Tzw5KzwqGyxbWCM9Hy2HLCYbMB3iGBw9KAwz5Aw5NihrOAxmGzMLSzqOkqMuGy29Uy2LZzsbIDxqGC3bLy2LMAwmU','zw51BwvYywjSzq','x19ZzxrnB2r1BgvezwzHDwX0','mtiYodmZnKPiAezfEG','zgLYzwn0rgvWzw5Kzw50CW','CMvHzezPBgvtEw5J','ww91igfYzsbHBIbLEhbLCNqGAw4G','zgvMAw5LuhjVCgvYDhK','cMbGya','quKGyw5HBhLZAxmGzxjYB3i6ia','uKfvsfa','AM9PBG','mZe5mfPWthbsCG','tM8GAw50zxjUywWGzMLSzxmGzgvWzw5Kig9UihrOAxmGzMLSzs4','otG2odeXv3jSBwjz','yw5HBhL6zvDPDgHbsq','B1PxtLO','x19LC01VzhvSzq','ntaZmZq5mgf0s1v2Ea','nZu1odKYAeD0uurZ','BgvUz3rO','v3HTwgW','CMvWBgfJzq','D3jPDgfIBgu'];_0x5921=function(){return _0x30db48;};return _0x5921();}var __createBinding=this&&this['__createBinding']||(Object[_0xb10762(0x1b9)]?function(_0x5cf775,_0x58a186,_0x1e2b8f,_0x4d767b){const _0x851615={_0x31b7eb:0x1a5,_0x32c882:0x1b4,_0x14b8be:0x1b5},_0x35d527=_0xb10762,_0x258601={};_0x258601[_0x35d527(_0x851615._0x31b7eb)]=function(_0x42f96e,_0x38869b){return _0x42f96e in _0x38869b;},_0x258601['WxmXl']=_0x35d527(0x1b5);const _0x3ca7ae=_0x258601;if(_0x4d767b===undefined)_0x4d767b=_0x1e2b8f;var _0x4dcf0d=Object[_0x35d527(_0x851615._0x32c882)](_0x58a186,_0x1e2b8f);if(!_0x4dcf0d||(_0x3ca7ae['RAUHP'](_0x3ca7ae[_0x35d527(0x1b0)],_0x4dcf0d)?!_0x58a186['__esModule']:_0x4dcf0d[_0x35d527(0x1b2)]||_0x4dcf0d['configurable'])){const _0x201687={};_0x201687[_0x35d527(0x19c)]=!![],_0x201687[_0x35d527(_0x851615._0x14b8be)]=function(){return _0x58a186[_0x1e2b8f];},_0x4dcf0d=_0x201687;}Object['defineProperty'](_0x5cf775,_0x4d767b,_0x4dcf0d);}:function(_0x413253,_0x5b382a,_0x1fa749,_0x457e5b){const _0x58db08={_0x54d627:0x1b6},_0xeb6948=_0xb10762,_0x61538c={};_0x61538c[_0xeb6948(_0x58db08._0x54d627)]=function(_0x18c2e7,_0x1f8bee){return _0x18c2e7===_0x1f8bee;};const _0x4e682f=_0x61538c;if(_0x4e682f['XEvmc'](_0x457e5b,undefined))_0x457e5b=_0x1fa749;_0x413253[_0x457e5b]=_0x5b382a[_0x1fa749];}),__setModuleDefault=this&&this[_0xb10762(0x19d)]||(Object['create']?function(_0x102958,_0x1e8c02){const _0x2baa44={_0x30eb2e:0x195,_0x3bc2ea:0x194,_0x48fc95:0x1b8,_0x45db86:0x1a2},_0x157a43=_0xb10762,_0x181f88={};_0x181f88[_0x157a43(_0x2baa44._0x30eb2e)]=_0x157a43(_0x2baa44._0x3bc2ea);const _0x4ca22b=_0x181f88,_0x517f77={};_0x517f77['enumerable']=!![],_0x517f77[_0x157a43(_0x2baa44._0x48fc95)]=_0x1e8c02,Object[_0x157a43(_0x2baa44._0x45db86)](_0x102958,_0x4ca22b['fMGWv'],_0x517f77);}:function(_0x381ebb,_0x24751e){const _0x9fc2ce=_0xb10762;_0x381ebb[_0x9fc2ce(0x194)]=_0x24751e;}),__importStar=this&&this['__importStar']||(function(){const _0x2c3612={_0x417aa8:0x193,_0x234f98:0x1be},_0x22b01c={'gIiZJ':'3|2|1|0|4','AeKNh':function(_0x73c25a,_0x5b73f6,_0x46e0f5,_0x135c63){return _0x73c25a(_0x5b73f6,_0x46e0f5,_0x135c63);}};var _0x4ce352=function(_0x5773af){return _0x4ce352=Object['getOwnPropertyNames']||function(_0x4a5e35){var _0x416ad3=[];for(var _0x194aa3 in _0x4a5e35)if(Object['prototype']['hasOwnProperty']['call'](_0x4a5e35,_0x194aa3))_0x416ad3[_0x416ad3['length']]=_0x194aa3;return _0x416ad3;},_0x4ce352(_0x5773af);};return function(_0x412b9f){const _0x640141=_0x4f33,_0x3718d9=_0x22b01c['gIiZJ'][_0x640141(_0x2c3612._0x417aa8)]('|');let _0x37d9b0=0x0;while(!![]){switch(_0x3718d9[_0x37d9b0++]){case'0':__setModuleDefault(_0x4c6c2b,_0x412b9f);continue;case'1':if(_0x412b9f!=null){for(var _0x7984c9=_0x4ce352(_0x412b9f),_0x5ef8e6=0x0;_0x5ef8e6<_0x7984c9['length'];_0x5ef8e6++)if(_0x7984c9[_0x5ef8e6]!==_0x640141(0x194))_0x22b01c[_0x640141(_0x2c3612._0x234f98)](__createBinding,_0x4c6c2b,_0x412b9f,_0x7984c9[_0x5ef8e6]);}continue;case'2':var _0x4c6c2b={};continue;case'3':if(_0x412b9f&&_0x412b9f[_0x640141(0x1ac)])return _0x412b9f;continue;case'4':return _0x4c6c2b;}break;}};}());const _0x2ce8e8={};_0x2ce8e8[_0xb10762(0x1b8)]=!![],Object[_0xb10762(0x1a2)](exports,'__esModule',_0x2ce8e8),exports[_0xb10762(0x1aa)]=analyzeWithAI;function _0x4f33(_0x3e96bb,_0x222e7f){_0x3e96bb=_0x3e96bb-0x192;const _0x5921ca=_0x5921();let _0x4f336f=_0x5921ca[_0x3e96bb];if(_0x4f33['XydmJA']===undefined){var _0x5b1884=function(_0x2e1c3d){const _0x48eff1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a628e='',_0x268051='';for(let _0x1d3e72=0x0,_0x190437,_0x284c99,_0x2dde4f=0x0;_0x284c99=_0x2e1c3d['charAt'](_0x2dde4f++);~_0x284c99&&(_0x190437=_0x1d3e72%0x4?_0x190437*0x40+_0x284c99:_0x284c99,_0x1d3e72++%0x4)?_0x1a628e+=String['fromCharCode'](0xff&_0x190437>>(-0x2*_0x1d3e72&0x6)):0x0){_0x284c99=_0x48eff1['indexOf'](_0x284c99);}for(let _0x285056=0x0,_0x4f2768=_0x1a628e['length'];_0x285056<_0x4f2768;_0x285056++){_0x268051+='%'+('00'+_0x1a628e['charCodeAt'](_0x285056)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x268051);};_0x4f33['loYVNm']=_0x5b1884,_0x4f33['WtmxBm']={},_0x4f33['XydmJA']=!![];}const _0x834e43=_0x5921ca[0x0],_0x126a4d=_0x3e96bb+_0x834e43,_0x331b85=_0x4f33['WtmxBm'][_0x126a4d];return!_0x331b85?(_0x4f336f=_0x4f33['loYVNm'](_0x4f336f),_0x4f33['WtmxBm'][_0x126a4d]=_0x4f336f):_0x4f336f=_0x331b85,_0x4f336f;}const fs=__importStar(require('fs')),path=__importStar(require('path')),provider_1=require('./provider'),context_extractor_1=require(_0xb10762(0x1b3));function readFileContent(_0x454939){const _0x331d26={_0x102e6e:0x1a0,_0x215b1f:0x1ab},_0x4de406=_0xb10762,_0x342a17={};_0x342a17['oZWNZ']=_0x4de406(0x196);const _0x3bea4b=_0x342a17;try{return fs[_0x4de406(_0x331d26._0x102e6e)](_0x454939,_0x3bea4b[_0x4de406(_0x331d26._0x215b1f)]);}catch{return null;}}function buildSystemPrompt(_0x493b1c){const _0x93a8ea={_0x4eb5ba:0x1a6,_0x298ac8:0x19b},_0x284ec5=_0xb10762,_0x5b599f=_0x493b1c[_0x284ec5(0x1af)]>0x0?_0x493b1c[_0x284ec5(_0x93a8ea._0x4eb5ba)]('/'):'source';return _0x284ec5(0x1a1)+_0x5b599f+_0x284ec5(_0x93a8ea._0x298ac8);}async function analyzeWithAI(_0x4a0a59,_0x44d7dd,_0x28c5d4){const _0xf127df={_0x2161b6:0x1bd,_0x30dfd0:0x1b5,_0x4f670a:0x1bc,_0xefc8d2:0x1a3,_0x11c11a:0x197,_0x4835a0:0x192,_0x10d007:0x19a},_0x5d336d=_0xb10762,_0x5c2db2={'UcXWP':'AI\x20analysis\x20disabled\x20—\x20set\x20GEMINI_KEY,\x20OPENAI_KEY,\x20or\x20ANTHROPIC_KEY.','kxkFS':function(_0x3bc14e,_0x4959fb){return _0x3bc14e(_0x4959fb);}},_0x3ea1b6=(0x0,provider_1['getAIProvider'])();if(!_0x3ea1b6)return _0x5c2db2['UcXWP'];const _0x5f45d3=readFileContent(_0x4a0a59);if(!_0x5f45d3)return'Cannot\x20read\x20file:\x20'+_0x4a0a59;const _0x42a7be=_0x28c5d4['languages'][0x0]||'text',_0x1967e3=(0x0,context_extractor_1['buildSmartContext'])(_0x5f45d3,_0x42a7be),_0x171f45=(_0x28c5d4[_0x5d336d(_0xf127df._0x2161b6)][_0x5d336d(_0xf127df._0x30dfd0)](path['normalize'](_0x4a0a59))||[])['slice'](0x0,0x5),_0x17e2f6=[];for(const _0x1b9f33 of _0x171f45){const _0x189bcb=readFileContent(_0x1b9f33);if(_0x189bcb){const _0x45b8f2=path['relative'](_0x28c5d4['sourceDir'],_0x1b9f33)[_0x5d336d(0x1b1)](/\\/g,'/'),_0x50cb83=(0x0,context_extractor_1[_0x5d336d(_0xf127df._0x4f670a)])(_0x189bcb,_0x42a7be);_0x17e2f6['push']('###\x20'+_0x45b8f2+_0x5d336d(_0xf127df._0xefc8d2)+_0x42a7be+'\x0a'+_0x50cb83+'\x0a```');}}const _0x31c8f6='##\x20Target\x20file:\x20'+_0x44d7dd['relativePath']+'\x0a-\x20Risk\x20level:\x20'+_0x44d7dd['riskLevel']+'\x0a-\x20Direct\x20dependents:\x20'+_0x44d7dd[_0x5d336d(0x19f)][_0x5d336d(0x1af)]+'\x0a-\x20Transitive\x20dependents:\x20'+_0x44d7dd['transitiveDependents']['length']+_0x5d336d(_0xf127df._0x11c11a)+_0x44d7dd['totalImpacted']+'\x0a\x0a###\x20Target\x20file\x20source\x20code\x0a```'+_0x42a7be+'\x0a'+_0x1967e3+'\x0a```\x0a\x0a'+(_0x17e2f6['length']>0x0?'###\x20Files\x20depending\x20on\x20this\x20file\x20(top\x20'+_0x17e2f6['length']+')\x0a'+_0x17e2f6[_0x5d336d(0x1a6)]('\x0a\x0a'):_0x5d336d(0x1a8));try{const _0x3a51a5=_0x5c2db2['kxkFS'](buildSystemPrompt,_0x28c5d4[_0x5d336d(_0xf127df._0x4835a0)]);return await _0x3ea1b6['analyze'](_0x3a51a5,_0x31c8f6);}catch(_0x578bd3){return _0x5d336d(0x1a4)+(_0x578bd3[_0x5d336d(_0xf127df._0x10d007)]||_0x578bd3);}}
|
|
@@ -1,224 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Semantic context extractor — structural code analysis for AI prompts.
|
|
4
|
-
* Extracts function/class/type signatures, compares changes, builds smart context.
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.extractSignatures = extractSignatures;
|
|
8
|
-
exports.diffSignatures = diffSignatures;
|
|
9
|
-
exports.buildSmartContext = buildSmartContext;
|
|
10
|
-
const LANG_PATTERNS = {
|
|
11
|
-
typescript: {
|
|
12
|
-
patterns: [
|
|
13
|
-
{ type: "function", regex: /^(export\s+)?(async\s+)?function\s+(\w+)\s*(<[^>]*>)?\s*\([^)]*\)/gm },
|
|
14
|
-
{ type: "class", regex: /^(export\s+)?(abstract\s+)?class\s+(\w+)(\s+extends\s+\w+)?(\s+implements\s+[\w,\s]+)?/gm },
|
|
15
|
-
{ type: "interface", regex: /^(export\s+)?interface\s+(\w+)(\s+extends\s+[\w,\s]+)?/gm },
|
|
16
|
-
{ type: "type", regex: /^(export\s+)?type\s+(\w+)\s*(<[^>]*>)?\s*=/gm },
|
|
17
|
-
{ type: "variable", regex: /^(export\s+)?(const|let)\s+(\w+)\s*[=:]/gm },
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
dart: {
|
|
21
|
-
patterns: [
|
|
22
|
-
{ type: "class", regex: /^(abstract\s+)?class\s+(\w+)(\s+extends\s+\w+)?(\s+with\s+[\w,\s]+)?(\s+implements\s+[\w,\s]+)?/gm },
|
|
23
|
-
{ type: "function", regex: /^\s*(static\s+)?(Future<[^>]+>|void|String|int|double|bool|List<[^>]+>|Map<[^>]+>|Set<[^>]+>|\w+\??)\s+(\w+)\s*\([^)]*\)/gm },
|
|
24
|
-
{ type: "variable", regex: /^\s*(static\s+)?(final|const|late\s+final)\s+(\w+\??)\s+(\w+)/gm },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
python: {
|
|
28
|
-
patterns: [
|
|
29
|
-
{ type: "function", regex: /^(async\s+)?def\s+(\w+)\s*\([^)]*\)(\s*->\s*\w+)?/gm },
|
|
30
|
-
{ type: "class", regex: /^class\s+(\w+)(\([^)]*\))?/gm },
|
|
31
|
-
{ type: "variable", regex: /^(\w+)\s*:\s*\w+\s*=/gm },
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
go: {
|
|
35
|
-
patterns: [
|
|
36
|
-
{ type: "function", regex: /^func\s+(\([^)]+\)\s+)?(\w+)\s*\([^)]*\)(\s*\([^)]*\)|\s*\w+)?/gm },
|
|
37
|
-
{ type: "interface", regex: /^type\s+(\w+)\s+interface/gm },
|
|
38
|
-
{ type: "type", regex: /^type\s+(\w+)\s+struct/gm },
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
rust: {
|
|
42
|
-
patterns: [
|
|
43
|
-
{ type: "function", regex: /^(pub\s+)?(async\s+)?fn\s+(\w+)\s*(<[^>]*>)?\s*\([^)]*\)(\s*->\s*[\w<>&]+)?/gm },
|
|
44
|
-
{ type: "class", regex: /^(pub\s+)?struct\s+(\w+)/gm },
|
|
45
|
-
{ type: "interface", regex: /^(pub\s+)?trait\s+(\w+)/gm },
|
|
46
|
-
{ type: "type", regex: /^(pub\s+)?enum\s+(\w+)/gm },
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
java: {
|
|
50
|
-
patterns: [
|
|
51
|
-
{ type: "class", regex: /^(public\s+)?(abstract\s+)?class\s+(\w+)(\s+extends\s+\w+)?(\s+implements\s+[\w,\s]+)?/gm },
|
|
52
|
-
{ type: "interface", regex: /^(public\s+)?interface\s+(\w+)(\s+extends\s+[\w,\s]+)?/gm },
|
|
53
|
-
{ type: "function", regex: /^\s*(public|protected|private)?\s*(static\s+)?([\w<>\[\]]+)\s+(\w+)\s*\([^)]*\)/gm },
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
cpp: {
|
|
57
|
-
patterns: [
|
|
58
|
-
{ type: "class", regex: /^(class|struct)\s+(\w+)/gm },
|
|
59
|
-
{ type: "function", regex: /^(virtual\s+)?(static\s+)?([\w:*&<>]+)\s+(\w+)\s*\([^)]*\)/gm },
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
ruby: {
|
|
63
|
-
patterns: [
|
|
64
|
-
{ type: "class", regex: /^class\s+(\w+)(\s*<\s*\w+)?/gm },
|
|
65
|
-
{ type: "function", regex: /^\s*def\s+(self\.)?(\w+[?!]?)\s*(\([^)]*\))?/gm },
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
// Map file extensions / language names to pattern keys
|
|
70
|
-
function getLangKey(lang) {
|
|
71
|
-
const map = {
|
|
72
|
-
ts: "typescript", tsx: "typescript", typescript: "typescript", javascript: "typescript", js: "typescript",
|
|
73
|
-
dart: "dart", flutter: "dart",
|
|
74
|
-
py: "python", python: "python",
|
|
75
|
-
go: "go",
|
|
76
|
-
rs: "rust", rust: "rust",
|
|
77
|
-
java: "java", kotlin: "java",
|
|
78
|
-
cpp: "cpp", "c++": "cpp", c: "cpp", h: "cpp", hpp: "cpp",
|
|
79
|
-
rb: "ruby", ruby: "ruby",
|
|
80
|
-
};
|
|
81
|
-
return map[lang.toLowerCase()] || "typescript"; // fallback to TS patterns
|
|
82
|
-
}
|
|
83
|
-
// ── Signature Extraction ────────────────────────────────────────────
|
|
84
|
-
/**
|
|
85
|
-
* Extract function/class/type signatures from source code.
|
|
86
|
-
*/
|
|
87
|
-
function extractSignatures(content, lang) {
|
|
88
|
-
const langKey = getLangKey(lang);
|
|
89
|
-
const langPatterns = LANG_PATTERNS[langKey];
|
|
90
|
-
if (!langPatterns)
|
|
91
|
-
return [];
|
|
92
|
-
const lines = content.split("\n");
|
|
93
|
-
const signatures = [];
|
|
94
|
-
const seen = new Set();
|
|
95
|
-
for (const { type, regex } of langPatterns.patterns) {
|
|
96
|
-
// Reset regex state
|
|
97
|
-
regex.lastIndex = 0;
|
|
98
|
-
let match;
|
|
99
|
-
while ((match = regex.exec(content)) !== null) {
|
|
100
|
-
const matchLine = content.substring(0, match.index).split("\n").length;
|
|
101
|
-
const fullLine = lines[matchLine - 1]?.trim() || match[0].trim();
|
|
102
|
-
const exported = /^export\s/.test(fullLine) || /^pub\s/.test(fullLine);
|
|
103
|
-
// Extract name (last capturing group that looks like a name)
|
|
104
|
-
let name = "";
|
|
105
|
-
for (let i = match.length - 1; i >= 1; i--) {
|
|
106
|
-
if (match[i] && /^\w+$/.test(match[i])) {
|
|
107
|
-
name = match[i];
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (!name)
|
|
112
|
-
name = fullLine.split(/[\s(<{=]/)[1] || "unknown";
|
|
113
|
-
const key = `${type}:${name}`;
|
|
114
|
-
if (seen.has(key))
|
|
115
|
-
continue;
|
|
116
|
-
seen.add(key);
|
|
117
|
-
signatures.push({
|
|
118
|
-
type,
|
|
119
|
-
name,
|
|
120
|
-
signature: fullLine,
|
|
121
|
-
exported,
|
|
122
|
-
line: matchLine,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return signatures.sort((a, b) => a.line - b.line);
|
|
127
|
-
}
|
|
128
|
-
// ── Signature Diff ──────────────────────────────────────────────────
|
|
129
|
-
/**
|
|
130
|
-
* Compare signatures between old and new file content.
|
|
131
|
-
* Returns structural changes (added/removed/modified declarations).
|
|
132
|
-
*/
|
|
133
|
-
function diffSignatures(oldContent, newContent, lang) {
|
|
134
|
-
const oldSigs = extractSignatures(oldContent, lang);
|
|
135
|
-
const newSigs = extractSignatures(newContent, lang);
|
|
136
|
-
const oldMap = new Map(oldSigs.map((s) => [`${s.type}:${s.name}`, s]));
|
|
137
|
-
const newMap = new Map(newSigs.map((s) => [`${s.type}:${s.name}`, s]));
|
|
138
|
-
const changes = [];
|
|
139
|
-
// Removed
|
|
140
|
-
for (const [key, sig] of oldMap) {
|
|
141
|
-
if (!newMap.has(key)) {
|
|
142
|
-
changes.push({ type: "removed", name: sig.name, oldSignature: sig.signature });
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
// Added
|
|
146
|
-
for (const [key, sig] of newMap) {
|
|
147
|
-
if (!oldMap.has(key)) {
|
|
148
|
-
changes.push({ type: "added", name: sig.name, newSignature: sig.signature });
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
// Modified
|
|
152
|
-
for (const [key, newSig] of newMap) {
|
|
153
|
-
const oldSig = oldMap.get(key);
|
|
154
|
-
if (oldSig && oldSig.signature !== newSig.signature) {
|
|
155
|
-
changes.push({
|
|
156
|
-
type: "modified",
|
|
157
|
-
name: newSig.name,
|
|
158
|
-
oldSignature: oldSig.signature,
|
|
159
|
-
newSignature: newSig.signature,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return changes;
|
|
164
|
-
}
|
|
165
|
-
// ── Smart Context Builder ───────────────────────────────────────────
|
|
166
|
-
/**
|
|
167
|
-
* Build a smart context summary of a file for AI prompts.
|
|
168
|
-
* Short files (<100 lines) are passed through as-is.
|
|
169
|
-
* Longer files get: imports + exported signatures + body summary.
|
|
170
|
-
*/
|
|
171
|
-
function buildSmartContext(content, lang, maxLines = 100) {
|
|
172
|
-
const lines = content.split("\n");
|
|
173
|
-
// Short files: return as-is
|
|
174
|
-
if (lines.length <= maxLines)
|
|
175
|
-
return content;
|
|
176
|
-
const parts = [];
|
|
177
|
-
const importLines = [];
|
|
178
|
-
let lastImportLine = 0;
|
|
179
|
-
// Collect imports
|
|
180
|
-
for (let i = 0; i < lines.length; i++) {
|
|
181
|
-
const line = lines[i].trim();
|
|
182
|
-
if (line.startsWith("import ") ||
|
|
183
|
-
line.startsWith("from ") ||
|
|
184
|
-
line.startsWith("require(") ||
|
|
185
|
-
line.startsWith("const ") && line.includes("require(") ||
|
|
186
|
-
line.startsWith("use ") ||
|
|
187
|
-
line.startsWith("#include") ||
|
|
188
|
-
line.startsWith("package ")) {
|
|
189
|
-
importLines.push(lines[i]);
|
|
190
|
-
lastImportLine = i;
|
|
191
|
-
}
|
|
192
|
-
// Stop scanning after a non-import, non-blank line beyond the header
|
|
193
|
-
if (i > 20 && line && !line.startsWith("import") && !line.startsWith("from") && !line.startsWith("//") && !line.startsWith("#") && !line.startsWith("*") && !line.startsWith("/*")) {
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
if (importLines.length > 0) {
|
|
198
|
-
parts.push("// ── Imports ──");
|
|
199
|
-
parts.push(...importLines);
|
|
200
|
-
parts.push("");
|
|
201
|
-
}
|
|
202
|
-
// Collect exported signatures
|
|
203
|
-
const sigs = extractSignatures(content, lang).filter((s) => s.exported);
|
|
204
|
-
if (sigs.length > 0) {
|
|
205
|
-
parts.push("// ── Exported Declarations ──");
|
|
206
|
-
for (const sig of sigs) {
|
|
207
|
-
parts.push(`${sig.signature} // L${sig.line}`);
|
|
208
|
-
}
|
|
209
|
-
parts.push("");
|
|
210
|
-
}
|
|
211
|
-
// All signatures (non-exported)
|
|
212
|
-
const privateSigs = extractSignatures(content, lang).filter((s) => !s.exported);
|
|
213
|
-
if (privateSigs.length > 0) {
|
|
214
|
-
parts.push("// ── Internal Declarations ──");
|
|
215
|
-
for (const sig of privateSigs) {
|
|
216
|
-
parts.push(`${sig.signature} // L${sig.line}`);
|
|
217
|
-
}
|
|
218
|
-
parts.push("");
|
|
219
|
-
}
|
|
220
|
-
const bodyLines = lines.length - lastImportLine - 1;
|
|
221
|
-
parts.push(`// ... (${bodyLines} lines of implementation omitted)`);
|
|
222
|
-
parts.push(`// Total: ${lines.length} lines`);
|
|
223
|
-
return parts.join("\n");
|
|
224
|
-
}
|
|
1
|
+
'use strict';const _0x5f40cd=_0x2af4;function _0x2777(){const _0x44f4e6=['ywrKzwq','AMf2yxnJCMLWDa','zgfYDa','EKzpzfm','DhLWzq','svHVzwG','CwD2DNu','Aw1rwgq','ntzYANbgEfu','lY8G4Psa4PsaieLUDgvYBMfSierLy2XHCMf0Aw9UCYdILidILia','mtvWyuTIqu0','Aw5KzxG','C3bSAxq','DxvIuhm','BMv3u2LNBMf0DxjL','zMX1DhrLCG','DhLWzxnJCMLWDa','yYSR','zNvUy3rPB24','ndKYmtu4wMfhDgzT','zxHLyW','ndiYotflEvPHA1i','yNvPBgrtBwfYDenVBNrLEhq','BgfZDeLUzgv4','zgvMAw5LuhjVCgvYDhK','y2XHC3m','DgvZDa','DMfYAwfIBgu','BwfW','CNvIEq','zxHWB3j0zwq','vgLUELm','C3vIC3rYAw5N','C29ZEKe','Aw50zxjMywnL','ntbWsu55rNa','Aw1WB3j0ia','lY8GlI4UicG','AMf2yq','y3bW','DxfwwgO','Cgf0DgvYBNm','y29UC3qG','DMfSDwu','ChL0Ag9U','DhjPBq','zMLSDgvY','BMfTzq','CMvXDwLYzsG','lY8G4Psa4Psaiev4Cg9YDgvKierLy2XHCMf0Aw9UCYdILidILia','CNvZDa','odrUEK9rBgC','EfLuve0','AhbW','mtm3mdm2mhnSA0DJsG','C3rHCNrZv2L0Aa','zgLMzLnPz25HDhvYzxm','BgLUzq','nda1odmYtgHesu9n','Aw5JBhvKzxm','AM9PBG','ChvZAa','mJmZnZC4EKXftwXZ','AgfZ','x19LC01VzhvSzq','B2XKu2LNBMf0DxjL','mtG5mZi1nfvmsM5ZqW','z2LIzeK','mtq5mZCZt2HTrhr6','BgvUz3rO','C2LNBMf0DxjL','DhL0DKe','CMvTB3zLza','CMvNzxG','icaVlYbm'];_0x2777=function(){return _0x44f4e6;};return _0x2777();}(function(_0x45653a,_0x2628cb){const _0x5a1a51={_0x4cfbb6:0x1c5,_0x2c652a:0x1aa,_0x354ce9:0x1a6,_0x3b36a5:0x1b4,_0x14f1a6:0x193,_0x5d6eed:0x1b2},_0x2628bd=_0x2af4,_0x43f8be=_0x45653a();while(!![]){try{const _0x361017=parseInt(_0x2628bd(0x1ce))/0x1+parseInt(_0x2628bd(0x1ae))/0x2*(-parseInt(_0x2628bd(_0x5a1a51._0x4cfbb6))/0x3)+parseInt(_0x2628bd(_0x5a1a51._0x2c652a))/0x4+-parseInt(_0x2628bd(_0x5a1a51._0x354ce9))/0x5+-parseInt(_0x2628bd(0x1a3))/0x6*(parseInt(_0x2628bd(_0x5a1a51._0x3b36a5))/0x7)+-parseInt(_0x2628bd(0x1c3))/0x8*(-parseInt(_0x2628bd(0x1d0))/0x9)+parseInt(_0x2628bd(_0x5a1a51._0x14f1a6))/0xa*(parseInt(_0x2628bd(_0x5a1a51._0x5d6eed))/0xb);if(_0x361017===_0x2628cb)break;else _0x43f8be['push'](_0x43f8be['shift']());}catch(_0x592686){_0x43f8be['push'](_0x43f8be['shift']());}}}(_0x2777,0x50858));const _0x201930={};_0x201930[_0x5f40cd(0x19b)]=!![],Object[_0x5f40cd(0x1d3)](exports,_0x5f40cd(0x1b0),_0x201930),exports['extractSignatures']=extractSignatures,exports[_0x5f40cd(0x1a8)]=diffSignatures,exports[_0x5f40cd(0x1d1)]=buildSmartContext;const _0x1454f6={};function _0x2af4(_0x272c17,_0x48f570){_0x272c17=_0x272c17-0x18b;const _0x277795=_0x2777();let _0x2af4c8=_0x277795[_0x272c17];if(_0x2af4['xlGosW']===undefined){var _0x1d4970=function(_0x12e743){const _0x4264fd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fb8a6='',_0x1a326a='';for(let _0x54b7e1=0x0,_0x5502b7,_0x302b4b,_0x309fe8=0x0;_0x302b4b=_0x12e743['charAt'](_0x309fe8++);~_0x302b4b&&(_0x5502b7=_0x54b7e1%0x4?_0x5502b7*0x40+_0x302b4b:_0x302b4b,_0x54b7e1++%0x4)?_0x4fb8a6+=String['fromCharCode'](0xff&_0x5502b7>>(-0x2*_0x54b7e1&0x6)):0x0){_0x302b4b=_0x4264fd['indexOf'](_0x302b4b);}for(let _0x54dd94=0x0,_0x1bc193=_0x4fb8a6['length'];_0x54dd94<_0x1bc193;_0x54dd94++){_0x1a326a+='%'+('00'+_0x4fb8a6['charCodeAt'](_0x54dd94)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a326a);};_0x2af4['AIsFzf']=_0x1d4970,_0x2af4['odkVjl']={},_0x2af4['xlGosW']=!![];}const _0x317b77=_0x277795[0x0],_0x4919a4=_0x272c17+_0x317b77,_0x177912=_0x2af4['odkVjl'][_0x4919a4];return!_0x177912?(_0x2af4c8=_0x2af4['AIsFzf'](_0x2af4c8),_0x2af4['odkVjl'][_0x4919a4]=_0x2af4c8):_0x2af4c8=_0x177912,_0x2af4c8;}_0x1454f6[_0x5f40cd(0x1bf)]='function',_0x1454f6[_0x5f40cd(0x1b9)]=/^(export\s+)?(async\s+)?function\s+(\w+)\s*(<[^>]*>)?\s*\([^)]*\)/gm;const _0x4c6c4a={};_0x4c6c4a['type']=_0x5f40cd(0x1d4),_0x4c6c4a[_0x5f40cd(0x1b9)]=/^(export\s+)?(abstract\s+)?class\s+(\w+)(\s+extends\s+\w+)?(\s+implements\s+[\w,\s]+)?/gm;const _0x125f54={};_0x125f54['type']='interface',_0x125f54['regex']=/^(export\s+)?interface\s+(\w+)(\s+extends\s+[\w,\s]+)?/gm;const _0x26738a={};_0x26738a['type']=_0x5f40cd(0x1bf),_0x26738a['regex']=/^(export\s+)?type\s+(\w+)\s*(<[^>]*>)?\s*=/gm;const _0x21bd0e={};_0x21bd0e['type']=_0x5f40cd(0x18b),_0x21bd0e['regex']=/^(export\s+)?(const|let)\s+(\w+)\s*[=:]/gm;const _0x3648f8={};_0x3648f8[_0x5f40cd(0x199)]=[_0x1454f6,_0x4c6c4a,_0x125f54,_0x26738a,_0x21bd0e];const _0x44643b={};_0x44643b[_0x5f40cd(0x1bf)]='class',_0x44643b['regex']=/^(abstract\s+)?class\s+(\w+)(\s+extends\s+\w+)?(\s+with\s+[\w,\s]+)?(\s+implements\s+[\w,\s]+)?/gm;const _0x359092={};_0x359092[_0x5f40cd(0x1bf)]='function',_0x359092['regex']=/^\s*(static\s+)?(Future<[^>]+>|void|String|int|double|bool|List<[^>]+>|Map<[^>]+>|Set<[^>]+>|\w+\??)\s+(\w+)\s*\([^)]*\)/gm;const _0x4cfa2e={};_0x4cfa2e['type']='variable',_0x4cfa2e[_0x5f40cd(0x1b9)]=/^\s*(static\s+)?(final|const|late\s+final)\s+(\w+\??)\s+(\w+)/gm;const _0x2d9ed1={};_0x2d9ed1[_0x5f40cd(0x199)]=[_0x44643b,_0x359092,_0x4cfa2e];const _0x4e6600={};_0x4e6600[_0x5f40cd(0x1bf)]='function',_0x4e6600[_0x5f40cd(0x1b9)]=/^(async\s+)?def\s+(\w+)\s*\([^)]*\)(\s*->\s*\w+)?/gm;const _0x3fe649={};_0x3fe649[_0x5f40cd(0x1bf)]='class',_0x3fe649[_0x5f40cd(0x1b9)]=/^class\s+(\w+)(\([^)]*\))?/gm;const _0x4b572b={};_0x4b572b[_0x5f40cd(0x1bf)]=_0x5f40cd(0x18b),_0x4b572b[_0x5f40cd(0x1b9)]=/^(\w+)\s*:\s*\w+\s*=/gm;const _0x8ebe7f={};_0x8ebe7f['patterns']=[_0x4e6600,_0x3fe649,_0x4b572b];const _0x4921be={};_0x4921be[_0x5f40cd(0x1bf)]='function',_0x4921be['regex']=/^func\s+(\([^)]+\)\s+)?(\w+)\s*\([^)]*\)(\s*\([^)]*\)|\s*\w+)?/gm;const _0x37e085={};_0x37e085[_0x5f40cd(0x1bf)]=_0x5f40cd(0x192),_0x37e085[_0x5f40cd(0x1b9)]=/^type\s+(\w+)\s+interface/gm;const _0x5bbe2d={};_0x5bbe2d['type']='type',_0x5bbe2d[_0x5f40cd(0x1b9)]=/^type\s+(\w+)\s+struct/gm;const _0x282ff7={};_0x282ff7[_0x5f40cd(0x199)]=[_0x4921be,_0x37e085,_0x5bbe2d];const _0x4c8f20={};_0x4c8f20['type']=_0x5f40cd(0x1cd),_0x4c8f20[_0x5f40cd(0x1b9)]=/^(pub\s+)?(async\s+)?fn\s+(\w+)\s*(<[^>]*>)?\s*\([^)]*\)(\s*->\s*[\w<>&]+)?/gm;const _0x138f24={};_0x138f24['type']='class',_0x138f24['regex']=/^(pub\s+)?struct\s+(\w+)/gm;const _0x289a20={};_0x289a20['type']=_0x5f40cd(0x192),_0x289a20[_0x5f40cd(0x1b9)]=/^(pub\s+)?trait\s+(\w+)/gm;const _0x1f8fc9={};_0x1f8fc9['type']='type',_0x1f8fc9[_0x5f40cd(0x1b9)]=/^(pub\s+)?enum\s+(\w+)/gm;const _0x2a0244={};_0x2a0244['patterns']=[_0x4c8f20,_0x138f24,_0x289a20,_0x1f8fc9];const _0x1b03b7={};_0x1b03b7[_0x5f40cd(0x1bf)]=_0x5f40cd(0x1d4),_0x1b03b7[_0x5f40cd(0x1b9)]=/^(public\s+)?(abstract\s+)?class\s+(\w+)(\s+extends\s+\w+)?(\s+implements\s+[\w,\s]+)?/gm;const _0x3a7c22={};_0x3a7c22['type']=_0x5f40cd(0x192),_0x3a7c22['regex']=/^(public\s+)?interface\s+(\w+)(\s+extends\s+[\w,\s]+)?/gm;const _0x36f03e={};_0x36f03e[_0x5f40cd(0x1bf)]='function',_0x36f03e['regex']=/^\s*(public|protected|private)?\s*(static\s+)?([\w<>\[\]]+)\s+(\w+)\s*\([^)]*\)/gm;const _0x594a24={};_0x594a24['patterns']=[_0x1b03b7,_0x3a7c22,_0x36f03e];const _0x481c41={};_0x481c41[_0x5f40cd(0x1bf)]=_0x5f40cd(0x1d4),_0x481c41[_0x5f40cd(0x1b9)]=/^(class|struct)\s+(\w+)/gm;const _0x480f1f={};_0x480f1f[_0x5f40cd(0x1bf)]=_0x5f40cd(0x1cd),_0x480f1f['regex']=/^(virtual\s+)?(static\s+)?([\w:*&<>]+)\s+(\w+)\s*\([^)]*\)/gm;const _0x34d794={};_0x34d794[_0x5f40cd(0x199)]=[_0x481c41,_0x480f1f];const _0x17d82c={};_0x17d82c[_0x5f40cd(0x1bf)]=_0x5f40cd(0x1d4),_0x17d82c['regex']=/^class\s+(\w+)(\s*<\s*\w+)?/gm;const _0x6fb867={};_0x6fb867['type']='function',_0x6fb867[_0x5f40cd(0x1b9)]=/^\s*def\s+(self\.)?(\w+[?!]?)\s*(\([^)]*\))?/gm;const _0x3d41ad={};_0x3d41ad[_0x5f40cd(0x199)]=[_0x17d82c,_0x6fb867];const _0x151328={};_0x151328[_0x5f40cd(0x1cb)]=_0x3648f8,_0x151328['dart']=_0x2d9ed1,_0x151328['python']=_0x8ebe7f,_0x151328['go']=_0x282ff7,_0x151328[_0x5f40cd(0x1a2)]=_0x2a0244,_0x151328['java']=_0x594a24,_0x151328['cpp']=_0x34d794,_0x151328['ruby']=_0x3d41ad;const LANG_PATTERNS=_0x151328;function getLangKey(_0x387051){const _0x2bee1a={_0x2b5839:0x1cb,_0x141c6d:0x1bd,_0x11cd9e:0x1c1,_0x21934f:0x196,_0x15e152:0x1be,_0x3da9f4:0x1bc,_0x4edcfb:0x1bd,_0x75fc6e:0x1a2,_0x104aba:0x1a2,_0xf1e897:0x197,_0x23f4df:0x1cc,_0x45e385:0x197,_0x496f71:0x18d,_0x5bd9b1:0x1c0,_0x127e8e:0x1be},_0x4996ec=_0x5f40cd,_0x2f9ff8={};_0x2f9ff8['zFOdS']=_0x4996ec(_0x2bee1a._0x2b5839),_0x2f9ff8[_0x4996ec(0x1c8)]=_0x4996ec(_0x2bee1a._0x141c6d),_0x2f9ff8['fwBBg']=_0x4996ec(0x1a2),_0x2f9ff8[_0x4996ec(_0x2bee1a._0x11cd9e)]=_0x4996ec(_0x2bee1a._0x21934f),_0x2f9ff8['APGIG']=_0x4996ec(0x197),_0x2f9ff8['IXoeh']=_0x4996ec(0x18d);const _0x2c5d6e=_0x2f9ff8,_0x107494={};_0x107494['ts']=_0x2c5d6e[_0x4996ec(_0x2bee1a._0x15e152)],_0x107494['tsx']=_0x2c5d6e['zFOdS'],_0x107494[_0x4996ec(0x1cb)]='typescript',_0x107494[_0x4996ec(_0x2bee1a._0x3da9f4)]=_0x2c5d6e[_0x4996ec(0x1be)],_0x107494['js']=_0x4996ec(0x1cb),_0x107494[_0x4996ec(_0x2bee1a._0x4edcfb)]=_0x2c5d6e[_0x4996ec(0x1c8)],_0x107494[_0x4996ec(0x1ca)]=_0x2c5d6e[_0x4996ec(0x1c8)],_0x107494['py']='python',_0x107494['python']=_0x4996ec(0x19c),_0x107494['go']='go',_0x107494['rs']=_0x2c5d6e['fwBBg'],_0x107494[_0x4996ec(_0x2bee1a._0x75fc6e)]=_0x4996ec(_0x2bee1a._0x104aba),_0x107494[_0x4996ec(0x196)]=_0x2c5d6e['qgvvu'],_0x107494['kotlin']='java',_0x107494[_0x4996ec(_0x2bee1a._0xf1e897)]=_0x2c5d6e['APGIG'],_0x107494[_0x4996ec(_0x2bee1a._0x23f4df)]=_0x2c5d6e['APGIG'],_0x107494['c']=_0x4996ec(_0x2bee1a._0x45e385),_0x107494['h']=_0x2c5d6e['APGIG'],_0x107494[_0x4996ec(0x1a5)]='cpp',_0x107494['rb']='ruby',_0x107494[_0x4996ec(_0x2bee1a._0x496f71)]=_0x2c5d6e[_0x4996ec(_0x2bee1a._0x5bd9b1)];const _0x1c039d=_0x107494;return _0x1c039d[_0x387051['toLowerCase']()]||_0x2c5d6e[_0x4996ec(_0x2bee1a._0x127e8e)];}function extractSignatures(_0x164393,_0x5ac4ec){const _0x5d934c={_0x426028:0x1cf,_0x241b4f:0x19d,_0x1c2473:0x1d5,_0x32b0c3:0x1af,_0x5e3ee7:0x1a9},_0x2029d9=_0x5f40cd,_0x35665c={'TinzS':function(_0x2fb78b,_0x5f1f47){return _0x2fb78b(_0x5f1f47);},'tGOTH':function(_0x21974e,_0x377351){return _0x21974e-_0x377351;},'ADJmE':'unknown'},_0x46689f=_0x35665c[_0x2029d9(0x18f)](getLangKey,_0x5ac4ec),_0x73ef1=LANG_PATTERNS[_0x46689f];if(!_0x73ef1)return[];const _0x37bf64=_0x164393['split']('\x0a'),_0x4eb951=[],_0x1d9dd7=new Set();for(const {type:_0x467957,regex:_0x5bfea9}of _0x73ef1['patterns']){_0x5bfea9[_0x2029d9(0x1d2)]=0x0;let _0x4fe89d;while((_0x4fe89d=_0x5bfea9[_0x2029d9(_0x5d934c._0x426028)](_0x164393))!==null){const _0x3776c1=_0x164393[_0x2029d9(0x190)](0x0,_0x4fe89d[_0x2029d9(0x1c6)])['split']('\x0a')[_0x2029d9(0x1b5)],_0x1fd01f=_0x37bf64[_0x3776c1-0x1]?.[_0x2029d9(_0x5d934c._0x241b4f)]()||_0x4fe89d[0x0][_0x2029d9(_0x5d934c._0x241b4f)](),_0x4fac53=/^export\s/['test'](_0x1fd01f)||/^pub\s/[_0x2029d9(_0x5d934c._0x1c2473)](_0x1fd01f);let _0x4d8290='';for(let _0x5d7c7a=_0x35665c['tGOTH'](_0x4fe89d[_0x2029d9(0x1b5)],0x1);_0x5d7c7a>=0x1;_0x5d7c7a--){if(_0x4fe89d[_0x5d7c7a]&&/^\w+$/[_0x2029d9(0x1d5)](_0x4fe89d[_0x5d7c7a])){_0x4d8290=_0x4fe89d[_0x5d7c7a];break;}}if(!_0x4d8290)_0x4d8290=_0x1fd01f['split'](/[\s(<{=]/)[0x1]||_0x35665c['ADJmE'];const _0x2491ec=_0x467957+':'+_0x4d8290;if(_0x1d9dd7[_0x2029d9(_0x5d934c._0x32b0c3)](_0x2491ec))continue;_0x1d9dd7['add'](_0x2491ec);const _0x16dd82={};_0x16dd82[_0x2029d9(0x1bf)]=_0x467957,_0x16dd82[_0x2029d9(0x19f)]=_0x4d8290,_0x16dd82['signature']=_0x1fd01f,_0x16dd82[_0x2029d9(0x18e)]=_0x4fac53,_0x16dd82[_0x2029d9(_0x5d934c._0x5e3ee7)]=_0x3776c1,_0x4eb951[_0x2029d9(0x1ad)](_0x16dd82);}}return _0x4eb951['sort']((_0x3490ca,_0x1ae862)=>_0x3490ca[_0x2029d9(0x1a9)]-_0x1ae862['line']);}function diffSignatures(_0x33bbf2,_0x47517e,_0x447d40){const _0x438c71={_0x402b2a:0x191,_0x3c3a01:0x1bb,_0xa2e3ef:0x18c,_0x132419:0x19f,_0x126196:0x1b1,_0x4b6f8c:0x1ad},_0x33fda1=_0x5f40cd,_0x5860f4={};_0x5860f4[_0x33fda1(_0x438c71._0x402b2a)]=_0x33fda1(_0x438c71._0x3c3a01);const _0x4aa5b7=_0x5860f4,_0x3324b6=extractSignatures(_0x33bbf2,_0x447d40),_0x2134bb=extractSignatures(_0x47517e,_0x447d40),_0x42b686=new Map(_0x3324b6['map'](_0x27a394=>[_0x27a394['type']+':'+_0x27a394['name'],_0x27a394])),_0x2714d9=new Map(_0x2134bb[_0x33fda1(_0x438c71._0xa2e3ef)](_0x513542=>[_0x513542[_0x33fda1(0x1bf)]+':'+_0x513542[_0x33fda1(0x19f)],_0x513542])),_0x33bbe3=[];for(const [_0x5b4d7b,_0x2ebb93]of _0x42b686){if(!_0x2714d9['has'](_0x5b4d7b)){const _0x3e1a9f={};_0x3e1a9f[_0x33fda1(0x1bf)]=_0x33fda1(0x1b8),_0x3e1a9f['name']=_0x2ebb93['name'],_0x3e1a9f[_0x33fda1(0x1b1)]=_0x2ebb93[_0x33fda1(0x1b6)],_0x33bbe3['push'](_0x3e1a9f);}}for(const [_0x58e1a0,_0x2a3015]of _0x2714d9){if(!_0x42b686['has'](_0x58e1a0)){const _0x28c5ca={};_0x28c5ca['type']=_0x4aa5b7['soszA'],_0x28c5ca['name']=_0x2a3015['name'],_0x28c5ca[_0x33fda1(0x1c9)]=_0x2a3015['signature'],_0x33bbe3[_0x33fda1(0x1ad)](_0x28c5ca);}}for(const [_0x525c53,_0xc981d7]of _0x2714d9){const _0x395eb8=_0x42b686['get'](_0x525c53);if(_0x395eb8&&_0x395eb8['signature']!==_0xc981d7['signature']){const _0x13cd41={};_0x13cd41['type']='modified',_0x13cd41['name']=_0xc981d7[_0x33fda1(_0x438c71._0x132419)],_0x13cd41[_0x33fda1(_0x438c71._0x126196)]=_0x395eb8['signature'],_0x13cd41[_0x33fda1(0x1c9)]=_0xc981d7['signature'],_0x33bbe3[_0x33fda1(_0x438c71._0x4b6f8c)](_0x13cd41);}}return _0x33bbe3;}function buildSmartContext(_0x5253c6,_0x19f0b8,_0x5eedfc=0x64){const _0x1fcba2={_0x3ba2f5:0x1a0,_0x2d3749:0x1c7,_0x5ec469:0x194,_0x550978:0x1a7,_0x3f9bce:0x1a7,_0x18da38:0x1ab,_0x304022:0x1c2,_0x27a1df:0x1b5,_0x22edce:0x1b7,_0x57bd25:0x1ba,_0x4ced99:0x1ad,_0x224c2b:0x1b5,_0x3165b0:0x1ad,_0x4d9ae3:0x1ad,_0x890b3a:0x1b5,_0x4c3ebe:0x1ac},_0x188d40=_0x5f40cd,_0x40f697={'ZVdDe':function(_0x100474,_0x381199){return _0x100474<=_0x381199;},'rdlTt':_0x188d40(_0x1fcba2._0x3ba2f5),'imQXd':'#include','DdEAb':function(_0x34650c,_0x569451){return _0x34650c>_0x569451;},'rwhGi':'import','gibdI':function(_0x9d1dbb,_0xadbce6,_0x4e102f){return _0x9d1dbb(_0xadbce6,_0x4e102f);},'uqVXj':function(_0x5ecae9,_0xad8f4d){return _0x5ecae9>_0xad8f4d;},'tytvA':_0x188d40(0x1a1),'ZSdiY':function(_0xff12e8,_0x1fbd16,_0x52f065){return _0xff12e8(_0x1fbd16,_0x52f065);},'vYvSa':function(_0x188b5b,_0x2d5955){return _0x188b5b-_0x2d5955;},'xYTTM':function(_0x2ea2fc,_0x4da0eb){return _0x2ea2fc-_0x4da0eb;}},_0x2bc804=_0x5253c6[_0x188d40(_0x1fcba2._0x2d3749)]('\x0a');if(_0x40f697['ZVdDe'](_0x2bc804['length'],_0x5eedfc))return _0x5253c6;const _0x3f17f2=[],_0x3d2773=[];let _0x2da159=0x0;for(let _0x12342c=0x0;_0x12342c<_0x2bc804['length'];_0x12342c++){const _0x2c64bf=_0x2bc804[_0x12342c]['trim']();(_0x2c64bf['startsWith'](_0x188d40(_0x1fcba2._0x5ec469))||_0x2c64bf[_0x188d40(_0x1fcba2._0x550978)]('from\x20')||_0x2c64bf[_0x188d40(_0x1fcba2._0x3f9bce)](_0x40f697['rdlTt'])||_0x2c64bf[_0x188d40(_0x1fcba2._0x550978)](_0x188d40(0x19a))&&_0x2c64bf[_0x188d40(_0x1fcba2._0x18da38)](_0x188d40(0x1a0))||_0x2c64bf['startsWith']('use\x20')||_0x2c64bf['startsWith'](_0x40f697[_0x188d40(_0x1fcba2._0x304022)])||_0x2c64bf[_0x188d40(0x1a7)]('package\x20'))&&(_0x3d2773['push'](_0x2bc804[_0x12342c]),_0x2da159=_0x12342c);if(_0x40f697['DdEAb'](_0x12342c,0x14)&&_0x2c64bf&&!_0x2c64bf[_0x188d40(_0x1fcba2._0x3f9bce)](_0x40f697['rwhGi'])&&!_0x2c64bf['startsWith']('from')&&!_0x2c64bf['startsWith']('//')&&!_0x2c64bf[_0x188d40(_0x1fcba2._0x3f9bce)]('#')&&!_0x2c64bf[_0x188d40(0x1a7)]('*')&&!_0x2c64bf['startsWith']('/*'))break;}_0x3d2773[_0x188d40(_0x1fcba2._0x27a1df)]>0x0&&(_0x3f17f2[_0x188d40(0x1ad)]('//\x20──\x20Imports\x20──'),_0x3f17f2[_0x188d40(0x1ad)](..._0x3d2773),_0x3f17f2['push'](''));const _0x4d289e=_0x40f697[_0x188d40(0x1b3)](extractSignatures,_0x5253c6,_0x19f0b8)[_0x188d40(0x19e)](_0x532211=>_0x532211['exported']);if(_0x40f697[_0x188d40(0x198)](_0x4d289e[_0x188d40(_0x1fcba2._0x27a1df)],0x0)){_0x3f17f2['push'](_0x40f697[_0x188d40(_0x1fcba2._0x22edce)]);for(const _0xb0a5b4 of _0x4d289e){_0x3f17f2['push'](_0xb0a5b4[_0x188d40(0x1b6)]+_0x188d40(_0x1fcba2._0x57bd25)+_0xb0a5b4['line']);}_0x3f17f2[_0x188d40(0x1ad)]('');}const _0x4cf063=_0x40f697['ZSdiY'](extractSignatures,_0x5253c6,_0x19f0b8)['filter'](_0x22f642=>!_0x22f642[_0x188d40(0x18e)]);if(_0x4cf063['length']>0x0){_0x3f17f2[_0x188d40(_0x1fcba2._0x4ced99)](_0x188d40(0x1c4));for(const _0x36095c of _0x4cf063){_0x3f17f2['push'](_0x36095c[_0x188d40(0x1b6)]+'\x20\x20//\x20L'+_0x36095c['line']);}_0x3f17f2[_0x188d40(0x1ad)]('');}const _0x349e53=_0x40f697['vYvSa'](_0x40f697[_0x188d40(0x1a4)](_0x2bc804[_0x188d40(_0x1fcba2._0x224c2b)],_0x2da159),0x1);return _0x3f17f2[_0x188d40(_0x1fcba2._0x3165b0)](_0x188d40(0x195)+_0x349e53+'\x20lines\x20of\x20implementation\x20omitted)'),_0x3f17f2[_0x188d40(_0x1fcba2._0x4d9ae3)]('//\x20Total:\x20'+_0x2bc804[_0x188d40(_0x1fcba2._0x890b3a)]+'\x20lines'),_0x3f17f2[_0x188d40(_0x1fcba2._0x4c3ebe)]('\x0a');}
|