@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.
@@ -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 };
@@ -1,4 +1,5 @@
1
- import { P as ParseResult } from './types-C9fLCS45.mjs';
1
+ import { P as ParseResult } from './types-BtSqoqbZ.mjs';
2
+ import './parse-CAKctgb6.mjs';
2
3
 
3
4
  /** Piscina task handler: parses a single file's content in a worker thread. */
4
5
 
@@ -1,4 +1,5 @@
1
- import { P as ParseResult } from './types-C9fLCS45.js';
1
+ import { P as ParseResult } from './types-BlN-U5AM.js';
2
+ import './parse-CAKctgb6.js';
2
3
 
3
4
  /** Piscina task handler: parses a single file's content in a worker thread. */
4
5
 
@@ -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
- 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";
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, NodeCategory as N, ParseResult as P, StructuredTag as S, TagKind as T, FileType as a, ImportType as b };
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
- 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";
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, NodeCategory as N, ParseResult as P, StructuredTag as S, TagKind as T, FileType as a, ImportType as b };
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.2",
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",