@omfalos/mokosh 0.3.2 → 0.4.0
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 +33 -31
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +33 -31
- package/dist/cli.mjs.map +1 -1
- package/dist/duplication-worker.d.mts +12 -0
- package/dist/duplication-worker.d.ts +12 -0
- package/dist/duplication-worker.js +5 -0
- package/dist/duplication-worker.js.map +1 -0
- package/dist/duplication-worker.mjs +5 -0
- package/dist/duplication-worker.mjs.map +1 -0
- package/dist/index.d.mts +53 -10
- package/dist/index.d.ts +53 -10
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -19
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.js +24 -22
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +25 -23
- package/dist/mcp.mjs.map +1 -1
- package/dist/parse-CAKctgb6.d.mts +6 -0
- package/dist/parse-CAKctgb6.d.ts +6 -0
- package/dist/parse-worker.d.mts +2 -1
- package/dist/parse-worker.d.ts +2 -1
- package/dist/tokenizer-BaF1eUBQ.d.mts +15 -0
- package/dist/tokenizer-BaF1eUBQ.d.ts +15 -0
- package/dist/{types-C9fLCS45.d.mts → types-BlN-U5AM.d.ts} +2 -5
- package/dist/{types-C9fLCS45.d.ts → types-BtSqoqbZ.d.mts} +2 -5
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type FileType = "javascript" | "typescript" | "css" | "scss" | "less" | "stylus" | "coffeescript" | "livescript" | "lua" | "gherkin" | "python" | "go" | "markdown" | "unknown";
|
|
2
|
+
type ImportType = "static" | "dynamic" | "require" | "re-export" | "side-effect";
|
|
3
|
+
type NodeCategory = "logic" | "ui" | "type-only" | "config" | "test" | "barrel" | "other";
|
|
4
|
+
type TagKind = "function" | "class" | "variable" | "type" | "import" | "library" | "comment-marker";
|
|
5
|
+
|
|
6
|
+
export type { FileType as F, ImportType as I, NodeCategory as N, TagKind as T };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type FileType = "javascript" | "typescript" | "css" | "scss" | "less" | "stylus" | "coffeescript" | "livescript" | "lua" | "gherkin" | "python" | "go" | "markdown" | "unknown";
|
|
2
|
+
type ImportType = "static" | "dynamic" | "require" | "re-export" | "side-effect";
|
|
3
|
+
type NodeCategory = "logic" | "ui" | "type-only" | "config" | "test" | "barrel" | "other";
|
|
4
|
+
type TagKind = "function" | "class" | "variable" | "type" | "import" | "library" | "comment-marker";
|
|
5
|
+
|
|
6
|
+
export type { FileType as F, ImportType as I, NodeCategory as N, TagKind as T };
|
package/dist/parse-worker.d.mts
CHANGED
package/dist/parse-worker.d.ts
CHANGED
|
@@ -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 };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type ImportType = "static" | "dynamic" | "require" | "re-export" | "side-effect";
|
|
3
|
-
type NodeCategory = "logic" | "ui" | "type-only" | "config" | "test" | "barrel" | "other";
|
|
4
|
-
type TagKind = "function" | "class" | "variable" | "type" | "import" | "library" | "comment-marker";
|
|
1
|
+
import { F as FileType, N as NodeCategory, I as ImportType, T as TagKind } from './parse-CAKctgb6.js';
|
|
5
2
|
|
|
6
3
|
interface StructuredTag {
|
|
7
4
|
name: string;
|
|
@@ -96,4 +93,4 @@ interface ParseResult {
|
|
|
96
93
|
functions?: FunctionComplexity[];
|
|
97
94
|
}
|
|
98
95
|
|
|
99
|
-
export type { CallEdge as C, ExportedSymbol as E, FileNode as F, ImportEdge as I,
|
|
96
|
+
export type { CallEdge as C, ExportedSymbol as E, FileNode as F, ImportEdge as I, ParseResult as P, StructuredTag as S };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type ImportType = "static" | "dynamic" | "require" | "re-export" | "side-effect";
|
|
3
|
-
type NodeCategory = "logic" | "ui" | "type-only" | "config" | "test" | "barrel" | "other";
|
|
4
|
-
type TagKind = "function" | "class" | "variable" | "type" | "import" | "library" | "comment-marker";
|
|
1
|
+
import { F as FileType, N as NodeCategory, I as ImportType, T as TagKind } from './parse-CAKctgb6.mjs';
|
|
5
2
|
|
|
6
3
|
interface StructuredTag {
|
|
7
4
|
name: string;
|
|
@@ -96,4 +93,4 @@ interface ParseResult {
|
|
|
96
93
|
functions?: FunctionComplexity[];
|
|
97
94
|
}
|
|
98
95
|
|
|
99
|
-
export type { CallEdge as C, ExportedSymbol as E, FileNode as F, ImportEdge as I,
|
|
96
|
+
export type { CallEdge as C, ExportedSymbol as E, FileNode as F, ImportEdge as I, ParseResult as P, StructuredTag as S };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omfalos/mokosh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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",
|