@omfalos/mokosh 0.5.0 → 0.5.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 +55 -50
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +57 -52
- package/dist/cli.mjs.map +1 -1
- package/dist/duplication-worker.d.mts +1 -1
- package/dist/duplication-worker.d.ts +1 -1
- package/dist/duplication-worker.js +6 -4
- package/dist/duplication-worker.js.map +1 -1
- package/dist/duplication-worker.mjs +6 -4
- package/dist/duplication-worker.mjs.map +1 -1
- package/dist/index.d.mts +186 -18
- package/dist/index.d.ts +186 -18
- package/dist/index.js +37 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -34
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.js +38 -34
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +40 -36
- package/dist/mcp.mjs.map +1 -1
- package/dist/parse-worker.d.mts +1 -1
- package/dist/parse-worker.d.ts +1 -1
- package/dist/parse-worker.js +6 -6
- package/dist/parse-worker.js.map +1 -1
- package/dist/parse-worker.mjs +6 -6
- package/dist/parse-worker.mjs.map +1 -1
- package/dist/{tokenizer-DIbb0GLe.d.mts → tokenizer-D9P-y7lH.d.mts} +1 -1
- package/dist/{tokenizer-DIbb0GLe.d.ts → tokenizer-D9P-y7lH.d.ts} +1 -1
- package/dist/{types-C153Tz5u.d.mts → types-Ba-BjVQG.d.mts} +4 -0
- package/dist/{types-y90pqeDR.d.ts → types-DWARi8gF.d.ts} +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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
|
|
3
|
+
* comment syntax and import/using statements, then splits what remains into a normalized token stream shared by every
|
|
4
4
|
* language `DEFAULT_EXTENSIONS` covers — one generic tokenizer rather than a per-language
|
|
5
5
|
* lexer, so `findDuplicates` works uniformly across TS/JS, Python, Go, Java, Kotlin, Scala,
|
|
6
6
|
* Groovy, CoffeeScript, LiveScript, Lua, Gherkin, style files, and Markdown.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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
|
|
3
|
+
* comment syntax and import/using statements, then splits what remains into a normalized token stream shared by every
|
|
4
4
|
* language `DEFAULT_EXTENSIONS` covers — one generic tokenizer rather than a per-language
|
|
5
5
|
* lexer, so `findDuplicates` works uniformly across TS/JS, Python, Go, Java, Kotlin, Scala,
|
|
6
6
|
* Groovy, CoffeeScript, LiveScript, Lua, Gherkin, style files, and Markdown.
|
|
@@ -23,6 +23,10 @@ interface ImportEdge {
|
|
|
23
23
|
isWorkspace?: boolean | undefined;
|
|
24
24
|
/** The workspace package name (e.g. `"@myorg/shared"`) when `isWorkspace` is true. */
|
|
25
25
|
workspacePackage?: string | undefined;
|
|
26
|
+
/** True for the synthetic JVM same-package sibling edge (`<own-package>.*`) — a file's implicit coupling to its package siblings, not a written `import`. Structural analyses (cycle detection) skip these; blast-radius analyses keep them. */
|
|
27
|
+
isSamePackage?: boolean | undefined;
|
|
28
|
+
/** True for an edge minted from a Markdown doc's link or code-span file reference (ADR-009), not a written `import`. Structural analyses (cycle detection) skip these by default; doc-drift enrichment keeps them. */
|
|
29
|
+
isDocReference?: boolean | undefined;
|
|
26
30
|
/** Fraction of the target's exports consumed by this import (0–1). Only present for internal non-side-effect imports where the target has at least one export. */
|
|
27
31
|
exportUsageRatio?: number;
|
|
28
32
|
}
|
|
@@ -23,6 +23,10 @@ interface ImportEdge {
|
|
|
23
23
|
isWorkspace?: boolean | undefined;
|
|
24
24
|
/** The workspace package name (e.g. `"@myorg/shared"`) when `isWorkspace` is true. */
|
|
25
25
|
workspacePackage?: string | undefined;
|
|
26
|
+
/** True for the synthetic JVM same-package sibling edge (`<own-package>.*`) — a file's implicit coupling to its package siblings, not a written `import`. Structural analyses (cycle detection) skip these; blast-radius analyses keep them. */
|
|
27
|
+
isSamePackage?: boolean | undefined;
|
|
28
|
+
/** True for an edge minted from a Markdown doc's link or code-span file reference (ADR-009), not a written `import`. Structural analyses (cycle detection) skip these by default; doc-drift enrichment keeps them. */
|
|
29
|
+
isDocReference?: boolean | undefined;
|
|
26
30
|
/** Fraction of the target's exports consumed by this import (0–1). Only present for internal non-side-effect imports where the target has at least one export. */
|
|
27
31
|
exportUsageRatio?: number;
|
|
28
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omfalos/mokosh",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.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",
|