@omfalos/mokosh 0.1.6 → 0.1.8
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/README.md +1 -1
- package/dist/cli.js +78 -33
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +76 -31
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -17
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.js +17 -17
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +17 -17
- package/dist/mcp.mjs.map +1 -1
- package/package.json +9 -6
package/dist/index.d.mts
CHANGED
|
@@ -1014,7 +1014,9 @@ interface NodeQuery {
|
|
|
1014
1014
|
maxImports?: number;
|
|
1015
1015
|
minSize?: number;
|
|
1016
1016
|
maxSize?: number;
|
|
1017
|
-
sort?: "size" | "imports" | "commitCount90d" | "exportUsage";
|
|
1017
|
+
sort?: "size" | "imports" | "commitCount90d" | "exportUsage" | "complexity" | "cognitiveComplexity";
|
|
1018
|
+
/** Sort direction for `sort`. Defaults to `"desc"`, matching the pre-existing always-descending behavior. */
|
|
1019
|
+
sortDir?: "asc" | "desc";
|
|
1018
1020
|
limit?: number;
|
|
1019
1021
|
hasDocstring?: boolean;
|
|
1020
1022
|
/** Minimum line-coverage percentage; nodes below this value are excluded. Nodes with no coverage data are excluded. */
|
|
@@ -1025,6 +1027,26 @@ interface NodeQuery {
|
|
|
1025
1027
|
minExportUsage?: number;
|
|
1026
1028
|
/** Maximum avgExportUsage (0–1); nodes above this value are excluded. Nodes with no data are treated as 0. */
|
|
1027
1029
|
maxExportUsage?: number;
|
|
1030
|
+
/** Minimum McCabe cyclomatic complexity. Nodes with no complexity data (non-TS/JS files) are excluded. */
|
|
1031
|
+
minComplexity?: number;
|
|
1032
|
+
/** Maximum McCabe cyclomatic complexity. Nodes with no complexity data are treated as 0. */
|
|
1033
|
+
maxComplexity?: number;
|
|
1034
|
+
/** Minimum cognitive complexity. Nodes with no complexity data (non-TS/JS files) are excluded. */
|
|
1035
|
+
minCognitiveComplexity?: number;
|
|
1036
|
+
/** Maximum cognitive complexity. Nodes with no complexity data are treated as 0. */
|
|
1037
|
+
maxCognitiveComplexity?: number;
|
|
1038
|
+
/** Minimum commitCount90d. Nodes with no git-stats data are excluded. */
|
|
1039
|
+
minCommits?: number;
|
|
1040
|
+
/** Maximum commitCount90d. Nodes with no git-stats data are treated as 0. */
|
|
1041
|
+
maxCommits?: number;
|
|
1042
|
+
/** true = node has at least one markdown doc referencing it (documentedBy non-empty); false = undocumented nodes only. */
|
|
1043
|
+
isDocumented?: boolean;
|
|
1044
|
+
/** true = node is flagged as doc-stale (staleFor non-empty); false = non-stale nodes only. */
|
|
1045
|
+
isStale?: boolean;
|
|
1046
|
+
/** Exact match on FileNode.lastAuthor. Prefix with "!" to negate. Nodes with no author data fail the positive form and pass the negative form. */
|
|
1047
|
+
lastAuthor?: string;
|
|
1048
|
+
/** OR-group: node matches if it satisfies ANY sub-query in this array, ANDed with all other top-level fields on this NodeQuery. Populated by `any(key:val|key:val)` syntax in query strings. */
|
|
1049
|
+
any?: NodeQuery[];
|
|
1028
1050
|
}
|
|
1029
1051
|
|
|
1030
1052
|
/** Filters a graph by applying NodeQuery predicates: category, type, tag, path, imports, coverage, and more. */
|
|
@@ -1045,6 +1067,8 @@ declare function filterGraph(graph: SerializedGraph, query: NodeQuery): Serializ
|
|
|
1045
1067
|
* @description Parses a `"key:value,key:value"` query string into a structured `NodeQuery`.
|
|
1046
1068
|
* String values support `"!"` prefix for negation. The `tag`/`tags` key may appear multiple
|
|
1047
1069
|
* times; values are OR-matched (negated entries act as exclusions). `tag:a+b` maps to `allTags`.
|
|
1070
|
+
* A token of the form `any(key:val|key:val)` is parsed as an OR-group of single-key clauses
|
|
1071
|
+
* and accumulates into `query.any`, ANDed with every other top-level key in the string.
|
|
1048
1072
|
* @param {string} queryString - Comma-separated `key:value` pairs, e.g. `"category:logic,tag:auth"`.
|
|
1049
1073
|
* @returns {NodeQuery} The structured query object ready for use with `filterGraph` or `matchNode`.
|
|
1050
1074
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1014,7 +1014,9 @@ interface NodeQuery {
|
|
|
1014
1014
|
maxImports?: number;
|
|
1015
1015
|
minSize?: number;
|
|
1016
1016
|
maxSize?: number;
|
|
1017
|
-
sort?: "size" | "imports" | "commitCount90d" | "exportUsage";
|
|
1017
|
+
sort?: "size" | "imports" | "commitCount90d" | "exportUsage" | "complexity" | "cognitiveComplexity";
|
|
1018
|
+
/** Sort direction for `sort`. Defaults to `"desc"`, matching the pre-existing always-descending behavior. */
|
|
1019
|
+
sortDir?: "asc" | "desc";
|
|
1018
1020
|
limit?: number;
|
|
1019
1021
|
hasDocstring?: boolean;
|
|
1020
1022
|
/** Minimum line-coverage percentage; nodes below this value are excluded. Nodes with no coverage data are excluded. */
|
|
@@ -1025,6 +1027,26 @@ interface NodeQuery {
|
|
|
1025
1027
|
minExportUsage?: number;
|
|
1026
1028
|
/** Maximum avgExportUsage (0–1); nodes above this value are excluded. Nodes with no data are treated as 0. */
|
|
1027
1029
|
maxExportUsage?: number;
|
|
1030
|
+
/** Minimum McCabe cyclomatic complexity. Nodes with no complexity data (non-TS/JS files) are excluded. */
|
|
1031
|
+
minComplexity?: number;
|
|
1032
|
+
/** Maximum McCabe cyclomatic complexity. Nodes with no complexity data are treated as 0. */
|
|
1033
|
+
maxComplexity?: number;
|
|
1034
|
+
/** Minimum cognitive complexity. Nodes with no complexity data (non-TS/JS files) are excluded. */
|
|
1035
|
+
minCognitiveComplexity?: number;
|
|
1036
|
+
/** Maximum cognitive complexity. Nodes with no complexity data are treated as 0. */
|
|
1037
|
+
maxCognitiveComplexity?: number;
|
|
1038
|
+
/** Minimum commitCount90d. Nodes with no git-stats data are excluded. */
|
|
1039
|
+
minCommits?: number;
|
|
1040
|
+
/** Maximum commitCount90d. Nodes with no git-stats data are treated as 0. */
|
|
1041
|
+
maxCommits?: number;
|
|
1042
|
+
/** true = node has at least one markdown doc referencing it (documentedBy non-empty); false = undocumented nodes only. */
|
|
1043
|
+
isDocumented?: boolean;
|
|
1044
|
+
/** true = node is flagged as doc-stale (staleFor non-empty); false = non-stale nodes only. */
|
|
1045
|
+
isStale?: boolean;
|
|
1046
|
+
/** Exact match on FileNode.lastAuthor. Prefix with "!" to negate. Nodes with no author data fail the positive form and pass the negative form. */
|
|
1047
|
+
lastAuthor?: string;
|
|
1048
|
+
/** OR-group: node matches if it satisfies ANY sub-query in this array, ANDed with all other top-level fields on this NodeQuery. Populated by `any(key:val|key:val)` syntax in query strings. */
|
|
1049
|
+
any?: NodeQuery[];
|
|
1028
1050
|
}
|
|
1029
1051
|
|
|
1030
1052
|
/** Filters a graph by applying NodeQuery predicates: category, type, tag, path, imports, coverage, and more. */
|
|
@@ -1045,6 +1067,8 @@ declare function filterGraph(graph: SerializedGraph, query: NodeQuery): Serializ
|
|
|
1045
1067
|
* @description Parses a `"key:value,key:value"` query string into a structured `NodeQuery`.
|
|
1046
1068
|
* String values support `"!"` prefix for negation. The `tag`/`tags` key may appear multiple
|
|
1047
1069
|
* times; values are OR-matched (negated entries act as exclusions). `tag:a+b` maps to `allTags`.
|
|
1070
|
+
* A token of the form `any(key:val|key:val)` is parsed as an OR-group of single-key clauses
|
|
1071
|
+
* and accumulates into `query.any`, ANDed with every other top-level key in the string.
|
|
1048
1072
|
* @param {string} queryString - Comma-separated `key:value` pairs, e.g. `"category:logic,tag:auth"`.
|
|
1049
1073
|
* @returns {NodeQuery} The structured query object ready for use with `filterGraph` or `matchNode`.
|
|
1050
1074
|
*/
|