@omfalos/mokosh 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omfalos/mokosh",
3
- "version": "0.3.0",
3
+ "version": "0.3.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",
@@ -72,17 +72,17 @@
72
72
  "@types/coffeescript": "^2.5.7",
73
73
  "@types/js-yaml": "^4.0.9",
74
74
  "@types/luaparse": "^0.2.13",
75
- "@types/node": "^26.1.1",
75
+ "@types/node": "^26.2.0",
76
76
  "@types/postcss-less": "^4.0.7",
77
77
  "@vitest/coverage-v8": "^4.1.4",
78
- "conventional-changelog": "^8.0.1",
79
- "conventional-changelog-conventionalcommits": "^10.2.1",
80
- "esbuild": "^0.28.1",
78
+ "conventional-changelog": "^8.1.2",
79
+ "conventional-changelog-conventionalcommits": "^10.3.0",
80
+ "esbuild": "^0.28.2",
81
81
  "husky": "^9.1.7",
82
82
  "lint-staged": "^17.0.8",
83
83
  "ts-node": "^10.9.2",
84
84
  "tsup": "^8.5.1",
85
- "tsx": "^4.21.0",
85
+ "tsx": "^4.23.12",
86
86
  "vitest": "^4.1.4"
87
87
  },
88
88
  "dependencies": {
@@ -96,7 +96,7 @@
96
96
  "livescript": "^1.6.0",
97
97
  "luaparse": "^0.3.1",
98
98
  "piscina": "^5.2.0",
99
- "postcss": "^8.5.12",
99
+ "postcss": "^8.5.26",
100
100
  "postcss-less": "^6.0.0",
101
101
  "postcss-scss": "^4.0.9",
102
102
  "remark-parse": "^11.0.0",
@@ -16,7 +16,7 @@ Prefer MCP over the CLI whenever both are available — it's cheaper in tokens a
16
16
 
17
17
  ## MCP: tool call order
18
18
 
19
- `analyze` must be called once per session before any other tool (except `find_unused` and `query` with explicit `entryPoints`, which can build their own graph). It builds and caches the graph, keyed by `root`.
19
+ `analyze` must be called once per session before any other tool (except `find_unused` and `query`, which reuse the cached graph when `entryPoints` is omitted, or can build their own graph when it's supplied). It builds and caches the graph, keyed by `root`.
20
20
 
21
21
  ```
22
22
  analyze({ root: "<abs-path>", entryPoints: ["src/index.ts"] })
@@ -44,8 +44,9 @@ If source files are edited mid-session, call `clear_cache({ root })` before re-q
44
44
  | Who **calls into** X at runtime? | `get_callers({ root, file, depth: 1, withEdgeDetail: true })` | `mokosh --callers <file>` |
45
45
  | Callers/callees of a named function | `get_call_graph({ root, function: "name" })` | TS/JS only |
46
46
  | Which file exports symbol X? | `find_symbol({ root, name: "X" })` | `mokosh <entry> --find-symbol --function X` |
47
- | Unused files | `find_unused({ root, entryPoints: [...] })` | `mokosh --find-unused <entry>` |
47
+ | Unused files | `find_unused({ root })` (reuses cache) or `find_unused({ root, entryPoints: [...] })` | `mokosh --find-unused <entry>` |
48
48
  | Circular dependencies | — | `mokosh <entry> --check-cycles` |
49
+ | What tags exist? | `list_tags({ root })` | `mokosh <entry> --list-tags` |
49
50
 
50
51
  ### Quality signals
51
52
 
@@ -110,7 +111,7 @@ Use with `query({ root, filter: "..." })` via MCP or `--query "..."` via CLI. Al
110
111
 
111
112
  `category` values: `logic` · `ui` · `test` · `config` · `barrel` · `type-only` · `other`.
112
113
 
113
- `query` (MCP) defaults to `slim: true` — compact nodes with flat `importsFiles`, export names, and meaningful tags only. Pass `slim: false` only 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` for the full tag inventory, or pass `slim: false` when full edge metadata is needed.
114
115
 
115
116
  Run `mokosh --query-help` (CLI) for the full reference at any time.
116
117
 
@@ -11,7 +11,7 @@ Prefer MCP over the CLI whenever both are available — it's cheaper in tokens a
11
11
 
12
12
  ## MCP: tool call order
13
13
 
14
- `analyze` must be called once per session before any other tool (except `find_unused` and `query` with explicit `entryPoints`, which can build their own graph). It builds and caches the graph, keyed by `root`.
14
+ `analyze` must be called once per session before any other tool (except `find_unused` and `query`, which reuse the cached graph when `entryPoints` is omitted, or can build their own graph when it's supplied). It builds and caches the graph, keyed by `root`.
15
15
 
16
16
  ```
17
17
  analyze({ root: "<abs-path>", entryPoints: ["src/index.ts"] })
@@ -38,8 +38,9 @@ If source files are edited mid-session, call `clear_cache({ root })` before re-q
38
38
  | Tests affected by X | `get_affected({ root, file, testsOnly: true })` | `mokosh --affected-tests <file>` |
39
39
  | Who **calls into** X at runtime? | `get_callers({ root, file, depth: 1, withEdgeDetail: true })` | `mokosh --callers <file>` |
40
40
  | Callers/callees of a named function | `get_call_graph({ root, function: "name" })` | TS/JS only |
41
- | Unused files | `find_unused({ root, entryPoints: [...] })` | `mokosh --find-unused <entry>` |
41
+ | Unused files | `find_unused({ root })` (reuses cache) or `find_unused({ root, entryPoints: [...] })` | `mokosh --find-unused <entry>` |
42
42
  | Circular dependencies | — | `mokosh <entry> --check-cycles` |
43
+ | What tags exist? | `list_tags({ root })` | `mokosh <entry> --list-tags` |
43
44
 
44
45
  ### Quality signals
45
46
 
@@ -104,7 +105,7 @@ Use with `query({ root, filter: "..." })` via MCP or `--query "..."` via CLI. Al
104
105
 
105
106
  `category` values: `logic` · `ui` · `test` · `config` · `barrel` · `type-only` · `other`.
106
107
 
107
- `query` (MCP) defaults to `slim: true` — compact nodes with flat `importsFiles`, export names, and meaningful tags only. Pass `slim: false` only when full edge metadata is needed.
108
+ `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.
108
109
 
109
110
  Run `mokosh --query-help` (CLI) for the full reference at any time.
110
111