@omfalos/mokosh 0.5.1 → 0.5.2

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.
@@ -75,6 +75,9 @@ interface FileNode extends GraphNode {
75
75
  cognitiveComplexity?: number;
76
76
  /** Per-function complexity breakdown. Covers named function declarations, const-assigned arrow/function expressions, and class methods/constructors/accessors — anonymous inline callbacks are not included. Only present for TypeScript/JavaScript files. */
77
77
  functions?: FunctionComplexity[];
78
+ /** Owning workspace package name. Not set by the builder or persisted — a query/output-time
79
+ * annotation stamped by `filterGraph`/handlers when results come from a flattened workspace graph. */
80
+ package?: string;
78
81
  }
79
82
 
80
83
  interface RawCallEdge {
@@ -75,6 +75,9 @@ interface FileNode extends GraphNode {
75
75
  cognitiveComplexity?: number;
76
76
  /** Per-function complexity breakdown. Covers named function declarations, const-assigned arrow/function expressions, and class methods/constructors/accessors — anonymous inline callbacks are not included. Only present for TypeScript/JavaScript files. */
77
77
  functions?: FunctionComplexity[];
78
+ /** Owning workspace package name. Not set by the builder or persisted — a query/output-time
79
+ * annotation stamped by `filterGraph`/handlers when results come from a flattened workspace graph. */
80
+ package?: string;
78
81
  }
79
82
 
80
83
  interface RawCallEdge {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omfalos/mokosh",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
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",
@@ -111,7 +111,7 @@ Use with `query({ root, filter: "..." })` via MCP or `--query "..."` via CLI. Al
111
111
 
112
112
  `category` values: `logic` · `ui` · `test` · `config` · `barrel` · `type-only` · `other`.
113
113
 
114
- `query` (MCP) defaults to `slim: true` — compact nodes with flat `importsFiles`, export names, and meaningful tags only. Tags are filtered to kinds `comment-marker` and `import`; `function`/`class`/`variable`/`type`/`library` tags are dropped in slim output. Call `list_tags` for the full tag inventory, or pass `slim: false` when full edge metadata is needed.
114
+ `query` (MCP) defaults to `slim: true` — compact nodes with flat `importsFiles`, export names, and meaningful tags only. Tags are filtered to kinds `comment-marker` and `import`; `function`/`class`/`variable`/`type`/`library` tags are dropped in slim output. Call `list_tags` to discover tag names (bounded; its `byKind` histogram shows per-kind totals, `kind`/`prefix`/`minCount` narrow it), or pass `slim: false` when full edge metadata is needed.
115
115
 
116
116
  Run `mokosh --query-help` (CLI) for the full reference at any time.
117
117
 
@@ -108,7 +108,7 @@ Use with `query({ root, filter: "..." })` via MCP or `--query "..."` via CLI. Al
108
108
 
109
109
  `category` values: `logic` · `ui` · `test` · `config` · `barrel` · `type-only` · `other`.
110
110
 
111
- `query` (MCP) defaults to `slim: true` — compact nodes with flat `importsFiles`, export names, and meaningful tags only. Tags are filtered to kinds `comment-marker` and `import`; `function`/`class`/`variable`/`type`/`library` tags are dropped in slim output. Call `list_tags` for the full tag inventory, or pass `slim: false` when full edge metadata is needed.
111
+ `query` (MCP) defaults to `slim: true` — compact nodes with flat `importsFiles`, export names, and meaningful tags only. Tags are filtered to kinds `comment-marker` and `import`; `function`/`class`/`variable`/`type`/`library` tags are dropped in slim output. Call `list_tags` to discover tag names (bounded; its `byKind` histogram shows per-kind totals, `kind`/`prefix`/`minCount` narrow it), or pass `slim: false` when full edge metadata is needed.
112
112
 
113
113
  Run `mokosh --query-help` (CLI) for the full reference at any time.
114
114