@omfalos/mokosh 0.3.3 → 0.4.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/dist/cli.js +30 -30
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +30 -30
- package/dist/cli.mjs.map +1 -1
- package/dist/duplication-worker.d.mts +1 -14
- package/dist/duplication-worker.d.ts +1 -14
- package/dist/index.d.mts +55 -16
- package/dist/index.d.ts +55 -16
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -21
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.js +22 -21
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +23 -22
- package/dist/mcp.mjs.map +1 -1
- package/dist/tokenizer-BaF1eUBQ.d.mts +15 -0
- package/dist/tokenizer-BaF1eUBQ.d.ts +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language-agnostic source tokenizer for duplicate-code detection. Strips per-language
|
|
3
|
+
* comment syntax, then splits what remains into a normalized token stream shared by every
|
|
4
|
+
* language `DEFAULT_EXTENSIONS` covers — one generic tokenizer rather than a per-language
|
|
5
|
+
* lexer, so `findDuplicates` works uniformly across TS/JS, Python, Go, CoffeeScript,
|
|
6
|
+
* LiveScript, Lua, Gherkin, style files, and Markdown.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** One normalized token plus the 1-based source line it came from. */
|
|
10
|
+
interface NormalizedToken {
|
|
11
|
+
text: string;
|
|
12
|
+
line: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type { NormalizedToken as N };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language-agnostic source tokenizer for duplicate-code detection. Strips per-language
|
|
3
|
+
* comment syntax, then splits what remains into a normalized token stream shared by every
|
|
4
|
+
* language `DEFAULT_EXTENSIONS` covers — one generic tokenizer rather than a per-language
|
|
5
|
+
* lexer, so `findDuplicates` works uniformly across TS/JS, Python, Go, CoffeeScript,
|
|
6
|
+
* LiveScript, Lua, Gherkin, style files, and Markdown.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** One normalized token plus the 1-based source line it came from. */
|
|
10
|
+
interface NormalizedToken {
|
|
11
|
+
text: string;
|
|
12
|
+
line: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type { NormalizedToken as N };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omfalos/mokosh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A high-performance, AST-powered dependency graph generator for frontend projects, optimized for AI context and smart test selection.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|