memorydetective 1.2.1 → 1.3.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/CHANGELOG.md +40 -1
- package/README.md +3 -1
- package/USAGE.md +91 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +34 -25
- package/dist/index.js.map +1 -1
- package/dist/runtime/suggestions.d.ts +44 -0
- package/dist/runtime/suggestions.js +161 -0
- package/dist/runtime/suggestions.js.map +1 -0
- package/dist/tools/analyzeMemgraph.d.ts +3 -1
- package/dist/tools/analyzeMemgraph.js +8 -0
- package/dist/tools/analyzeMemgraph.js.map +1 -1
- package/dist/tools/classifyCycle.d.ts +8 -1
- package/dist/tools/classifyCycle.js +28 -3
- package/dist/tools/classifyCycle.js.map +1 -1
- package/dist/tools/findRetainers.d.ts +3 -1
- package/dist/tools/findRetainers.js +5 -0
- package/dist/tools/findRetainers.js.map +1 -1
- package/dist/tools/getInvestigationPlaybook.d.ts +43 -0
- package/dist/tools/getInvestigationPlaybook.js +220 -0
- package/dist/tools/getInvestigationPlaybook.js.map +1 -0
- package/dist/tools/reachableFromCycle.d.ts +4 -2
- package/dist/tools/reachableFromCycle.js +14 -1
- package/dist/tools/reachableFromCycle.js.map +1 -1
- package/dist/tools/swift/findSymbolReferences.d.ts +2 -2
- package/dist/tools/swift/getHoverInfo.d.ts +2 -2
- package/dist/tools/swift/getSymbolDefinition.d.ts +6 -6
- package/dist/tools/swift/searchPattern.d.ts +2 -2
- package/dist/types.d.ts +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,43 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.3.1] — 2026-05-01
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- USAGE.md: new section 6 "Pipeline awareness" documenting `suggestedNextCalls` (with a full JSON example), `getInvestigationPlaybook` (with the five playbook kinds), and the tool-description tag taxonomy. Establishes the workflow norm: every release ships with USAGE updates.
|
|
14
|
+
- USAGE.md section 4: row for `getInvestigationPlaybook` added at the top of the follow-up requests table.
|
|
15
|
+
- README API section: opening paragraph documents the namespace tags + `suggestedNextCalls` mechanism.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- No code changes from `1.3.0` — this is a documentation catch-up release.
|
|
20
|
+
|
|
21
|
+
## [1.3.0] — 2026-05-01
|
|
22
|
+
|
|
23
|
+
Pipeline-aware release. Addresses real-user feedback that the Swift tools were "an attachment" rather than part of the investigation chain. **Discovery is now data, not inference.** 25 → 26 tools.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **`suggestedNextCalls` field** on `analyzeMemgraph`, `classifyCycle`, `findRetainers`, and `reachableFromCycle` results. Each entry is a typed `{ tool, args, why }` triple with pre-populated arguments based on the current result. The orchestrating LLM can chain calls without re-reasoning over the response.
|
|
28
|
+
- `analyzeMemgraph` → suggests `classifyCycle` + `reachableFromCycle`.
|
|
29
|
+
- `classifyCycle` → suggests `swiftSearchPattern` (with a regex pre-translated from the matched pattern) + `swiftGetSymbolDefinition` (with the cycle's app-level class name extracted).
|
|
30
|
+
- `findRetainers` → suggests `swiftGetSymbolDefinition` for the class.
|
|
31
|
+
- `reachableFromCycle` → suggests `swiftGetSymbolDefinition` + `swiftFindSymbolReferences` for the dominant app-level class.
|
|
32
|
+
- **`getInvestigationPlaybook` meta-tool** — returns a versioned, declarative pipeline for a known investigation kind. Five playbooks shipped: `memgraph-leak`, `perf-hangs`, `ui-jank`, `app-launch-slow`, `verify-fix`. Use this once at the start of an investigation to give a fresh agent the canonical sequence without rediscovering it.
|
|
33
|
+
- **Tool-name namespaces in descriptions**: every tool description now opens with a category tag (`[mg.memory]`, `[mg.trace]`, `[mg.code]`, `[mg.log]`, `[mg.discover]`, `[mg.render]`, `[mg.ci]`, `[meta]`). Makes related tools visible as a group at a glance, especially when the agent is browsing the deferred-tools list.
|
|
34
|
+
- **Pipeline lines in key tool descriptions** (`analyzeMemgraph` and `classifyCycle`): each description ends with a "Pipeline: → X (purpose) → Y (purpose)" sentence. Even when the agent only reads the description (not the result), the chain is visible.
|
|
35
|
+
- New `src/runtime/suggestions.ts` helper module so multiple tools agree on the same heuristics for "which class is most actionable" and "which followup is most useful".
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- No breaking changes. All `suggestedNextCalls` fields are optional; old callers that ignore them continue to work.
|
|
40
|
+
- `classifyReport` (pure function) now also returns `classNamesByIndex` so the caller can build typed suggestions without re-walking the cycle forest.
|
|
41
|
+
|
|
42
|
+
### Notes
|
|
43
|
+
|
|
44
|
+
- Inspired by the HATEOAS pattern (Hypermedia as the Engine of Application State) — each response telegraphs the next valid actions. Keeps tool boundaries clean while making the workflow self-documenting.
|
|
45
|
+
|
|
9
46
|
## [1.2.1] — 2026-05-01
|
|
10
47
|
|
|
11
48
|
### Added
|
|
@@ -135,7 +172,9 @@ When called with no arguments it starts the MCP server over stdio.
|
|
|
135
172
|
- **`captureMemgraph`** does not work on physical iOS devices — `leaks(1)` only attaches to processes on the local Mac (which includes iOS simulators). Memory Graph capture from a physical device still requires Xcode.
|
|
136
173
|
- **`detectLeaksInXCUITest`** is flagged experimental: orchestration logic is implemented but not yet validated against a wide set of production XCUITest runs.
|
|
137
174
|
|
|
138
|
-
[Unreleased]: https://github.com/carloshpdoc/memorydetective/compare/v1.
|
|
175
|
+
[Unreleased]: https://github.com/carloshpdoc/memorydetective/compare/v1.3.1...HEAD
|
|
176
|
+
[1.3.1]: https://github.com/carloshpdoc/memorydetective/compare/v1.3.0...v1.3.1
|
|
177
|
+
[1.3.0]: https://github.com/carloshpdoc/memorydetective/compare/v1.2.1...v1.3.0
|
|
139
178
|
[1.2.1]: https://github.com/carloshpdoc/memorydetective/compare/v1.2.0...v1.2.1
|
|
140
179
|
[1.2.0]: https://github.com/carloshpdoc/memorydetective/compare/v1.1.0...v1.2.0
|
|
141
180
|
[1.1.0]: https://github.com/carloshpdoc/memorydetective/compare/v1.0.1...v1.1.0
|
package/README.md
CHANGED
|
@@ -211,7 +211,9 @@ Copilot's MCP integration moves fast — if this snippet is stale, see the [VS C
|
|
|
211
211
|
|
|
212
212
|
## API
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
26 MCP tools, grouped by purpose. Tool descriptions are tagged with a category prefix (`[mg.memory]`, `[mg.trace]`, `[mg.code]`, `[mg.log]`, `[mg.render]`, `[mg.ci]`, `[mg.discover]`, `[meta]`) so related tools are visible at a glance.
|
|
215
|
+
|
|
216
|
+
Many tools include a `suggestedNextCalls` field in their response — a typed list of `{ tool, args, why }` entries pre-populated from the current result, so the orchestrating LLM can chain calls without re-reasoning. Start with `getInvestigationPlaybook(kind)` for the canonical sequence.
|
|
215
217
|
|
|
216
218
|
### Read & analyze (13)
|
|
217
219
|
|
package/USAGE.md
CHANGED
|
@@ -210,6 +210,7 @@ Once you have the diagnosis, here are useful follow-up prompts you can paste int
|
|
|
210
210
|
|
|
211
211
|
| Prompt | What Claude calls |
|
|
212
212
|
|---|---|
|
|
213
|
+
| "I want to investigate a memgraph leak — what's the canonical sequence?" | `getInvestigationPlaybook({ kind: "memgraph-leak" })` — returns the 6-step pipeline with `argsTemplate` for each tool. |
|
|
213
214
|
| "How many `DetailViewModel` instances are leaking?" | `countAlive(path, className: "DetailViewModel")` |
|
|
214
215
|
| "How many `NSURLSessionConfiguration`s are *inside* the cycle rooted at `DetailViewModel`?" | `reachableFromCycle(path, rootClassName: "DetailViewModel", className: "NSURLSessionConfiguration")` |
|
|
215
216
|
| "Show the retain chain that keeps `DetailViewModel` alive." | `findRetainers(path, className: "DetailViewModel")` |
|
|
@@ -268,7 +269,96 @@ The app process exited before `leaks --outputGraph` could attach. Configure your
|
|
|
268
269
|
|
|
269
270
|
---
|
|
270
271
|
|
|
271
|
-
## 6.
|
|
272
|
+
## 6. Pipeline awareness (suggestedNextCalls + playbooks)
|
|
273
|
+
|
|
274
|
+
Discovery is data, not inference. As of v1.3, the tools that matter most return a `suggestedNextCalls` field with pre-populated arguments and a one-sentence rationale per entry. The orchestrating agent can chain calls without re-reasoning over the result.
|
|
275
|
+
|
|
276
|
+
### `suggestedNextCalls` — example from `classifyCycle`
|
|
277
|
+
|
|
278
|
+
```jsonc
|
|
279
|
+
{
|
|
280
|
+
"ok": true,
|
|
281
|
+
"totalCycles": 4,
|
|
282
|
+
"classified": [ /* ... */ ],
|
|
283
|
+
"suggestedNextCalls": [
|
|
284
|
+
{
|
|
285
|
+
"tool": "swiftSearchPattern",
|
|
286
|
+
"args": {
|
|
287
|
+
"pattern": "\\.tag\\(",
|
|
288
|
+
"filePath": "<set to a candidate Swift file in your project>"
|
|
289
|
+
},
|
|
290
|
+
"why": "Locate the code construct implicated by swiftui.tag-index-projection. The regex matches the SwiftUI signal that produces this cycle."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"tool": "swiftGetSymbolDefinition",
|
|
294
|
+
"args": {
|
|
295
|
+
"symbolName": "DetailViewModel",
|
|
296
|
+
"candidatePaths": ["<set to a Sources/ or app target directory>"]
|
|
297
|
+
},
|
|
298
|
+
"why": "Jump to the declaration of DetailViewModel, the user-defined type captured in this cycle."
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
The agent reads `suggestedNextCalls`, fills in the `<...>` placeholders from project context, and chains. No re-reasoning required.
|
|
305
|
+
|
|
306
|
+
### `getInvestigationPlaybook` — start here for a fresh investigation
|
|
307
|
+
|
|
308
|
+
For agents that haven't seen the project before, ask for the canonical pipeline first:
|
|
309
|
+
|
|
310
|
+
```jsonc
|
|
311
|
+
{
|
|
312
|
+
"tool": "getInvestigationPlaybook",
|
|
313
|
+
"args": { "kind": "memgraph-leak" }
|
|
314
|
+
}
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
Returns a 6-step sequence with `argsTemplate` per step:
|
|
318
|
+
|
|
319
|
+
```jsonc
|
|
320
|
+
{
|
|
321
|
+
"kind": "memgraph-leak",
|
|
322
|
+
"summary": "Diagnose a SwiftUI / Combine retain cycle from a `.memgraph` snapshot, locate the offending code, and propose a fix.",
|
|
323
|
+
"steps": [
|
|
324
|
+
{ "step": 1, "tool": "analyzeMemgraph", "purpose": "..." },
|
|
325
|
+
{ "step": 2, "tool": "classifyCycle", "purpose": "..." },
|
|
326
|
+
{ "step": 3, "tool": "reachableFromCycle", "purpose": "..." },
|
|
327
|
+
{ "step": 4, "tool": "swiftSearchPattern", "purpose": "..." },
|
|
328
|
+
{ "step": 5, "tool": "swiftGetSymbolDefinition", "purpose": "..." },
|
|
329
|
+
{ "step": 6, "tool": "swiftFindSymbolReferences", "purpose": "..." }
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
Five playbooks ship in v1.3:
|
|
335
|
+
|
|
336
|
+
| Kind | Use when |
|
|
337
|
+
|---|---|
|
|
338
|
+
| `memgraph-leak` | You have a `.memgraph` and want to find + fix a retain cycle |
|
|
339
|
+
| `perf-hangs` | App feels slow; suspect main-thread blocking |
|
|
340
|
+
| `ui-jank` | Animations drop frames |
|
|
341
|
+
| `app-launch-slow` | Cold-start time is over budget |
|
|
342
|
+
| `verify-fix` | Confirm a fix actually resolved the cycle |
|
|
343
|
+
|
|
344
|
+
### Tool description tags
|
|
345
|
+
|
|
346
|
+
Every tool description starts with a category tag so related tools are visible as a group:
|
|
347
|
+
|
|
348
|
+
| Tag | What |
|
|
349
|
+
|---|---|
|
|
350
|
+
| `[mg.memory]` | memgraph parsing, cycle classification, retainer chains |
|
|
351
|
+
| `[mg.trace]` | xctrace schemas (hangs, allocations, app-launch, animation hitches, time-profile) |
|
|
352
|
+
| `[mg.code]` | Swift source bridging via SourceKit-LSP |
|
|
353
|
+
| `[mg.log]` | macOS unified logging (`log show` / `log stream`) |
|
|
354
|
+
| `[mg.discover]` | xctrace device + template listing |
|
|
355
|
+
| `[mg.render]` | Cycle visualization (Mermaid + Graphviz) |
|
|
356
|
+
| `[mg.ci]` | XCUITest leak detection |
|
|
357
|
+
| `[meta]` | Pipeline-discovery tools like `getInvestigationPlaybook` |
|
|
358
|
+
|
|
359
|
+
The tag is leading text in the MCP description, so it shows up in any tools/list output and inside Claude Code's "deferred tools" list.
|
|
360
|
+
|
|
361
|
+
## 7. Where to go from here
|
|
272
362
|
|
|
273
363
|
- **Add a new cycle pattern**: see the *Adding a cycle pattern to `classifyCycle`* section in [`README.md`](./README.md#contributing).
|
|
274
364
|
- **Run a custom analysis from scratch**: every tool's input schema is documented via the MCP `tools/list` request. Hit the server with `{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}` over stdio.
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import { renderCycleGraph, renderCycleGraphSchema, } from "./tools/renderCycleGr
|
|
|
20
20
|
import { logShow, logShowSchema, logStream, logStreamSchema, } from "./tools/logShow.js";
|
|
21
21
|
import { detectLeaksInXCUITest, detectLeaksInXCUITestSchema, } from "./tools/detectLeaksInXCUITest.js";
|
|
22
22
|
import { reachableFromCycle, reachableFromCycleSchema, } from "./tools/reachableFromCycle.js";
|
|
23
|
+
import { getInvestigationPlaybook, getInvestigationPlaybookSchema, } from "./tools/getInvestigationPlaybook.js";
|
|
23
24
|
import { swiftGetSymbolDefinition, swiftGetSymbolDefinitionSchema, swiftFindSymbolReferences, swiftFindSymbolReferencesSchema, swiftGetSymbolsOverview, swiftGetSymbolsOverviewSchema, swiftGetHoverInfo, swiftGetHoverInfoSchema, swiftSearchPattern, swiftSearchPatternSchema, } from "./tools/swift/index.js";
|
|
24
25
|
const SERVER_NAME = "memorydetective";
|
|
25
26
|
const SERVER_VERSION = "0.1.0-dev";
|
|
@@ -29,7 +30,7 @@ const server = new McpServer({
|
|
|
29
30
|
});
|
|
30
31
|
server.registerTool("analyzeMemgraph", {
|
|
31
32
|
title: "Analyze a .memgraph file",
|
|
32
|
-
description: "Run `leaks(1)` against a `.memgraph` file (exported from Xcode Memory Graph Debugger) and return a structured summary: header info, totals, top-level ROOT CYCLE blocks with chain length,
|
|
33
|
+
description: "[mg.memory] Run `leaks(1)` against a `.memgraph` file (exported from Xcode Memory Graph Debugger) and return a structured summary: header info, totals, top-level ROOT CYCLE blocks with chain length, plain-English diagnosis. Set `fullChains: true` to also include the full nested retain forest.\n\nPipeline: → `classifyCycle` (named-antipattern + fix hint) → `reachableFromCycle` (scope blame to a single root). The response includes `suggestedNextCalls` so the agent can chain without re-reasoning.",
|
|
33
34
|
inputSchema: analyzeMemgraphSchema.shape,
|
|
34
35
|
}, async (input) => {
|
|
35
36
|
const result = await analyzeMemgraph(input);
|
|
@@ -44,7 +45,7 @@ server.registerTool("analyzeMemgraph", {
|
|
|
44
45
|
});
|
|
45
46
|
server.registerTool("findCycles", {
|
|
46
47
|
title: "Find ROOT CYCLE blocks in a .memgraph",
|
|
47
|
-
description: "Extract just the ROOT CYCLE blocks from a `.memgraph` as flattened chains (depth + edge + retainKind + className + address). Optionally filter to cycles touching a specific class name (substring match). Use this when you want to inspect chains without the noise of standalone leaks.",
|
|
48
|
+
description: "[mg.memory] Extract just the ROOT CYCLE blocks from a `.memgraph` as flattened chains (depth + edge + retainKind + className + address). Optionally filter to cycles touching a specific class name (substring match). Use this when you want to inspect chains without the noise of standalone leaks.",
|
|
48
49
|
inputSchema: findCyclesSchema.shape,
|
|
49
50
|
}, async (input) => {
|
|
50
51
|
const result = await findCycles(input);
|
|
@@ -59,7 +60,7 @@ server.registerTool("findCycles", {
|
|
|
59
60
|
});
|
|
60
61
|
server.registerTool("findRetainers", {
|
|
61
62
|
title: "Find what retains a class",
|
|
62
|
-
description: "Walk the cycle forest from a `.memgraph` and return every retain chain that ends in a node whose className contains the given substring. Useful for answering \"who is keeping <class> alive?\". Returns paths from a top-level node down to the matching node.",
|
|
63
|
+
description: "[mg.memory] Walk the cycle forest from a `.memgraph` and return every retain chain that ends in a node whose className contains the given substring. Useful for answering \"who is keeping <class> alive?\". Returns paths from a top-level node down to the matching node.",
|
|
63
64
|
inputSchema: findRetainersSchema.shape,
|
|
64
65
|
}, async (input) => {
|
|
65
66
|
const result = await findRetainers(input);
|
|
@@ -69,7 +70,7 @@ server.registerTool("findRetainers", {
|
|
|
69
70
|
});
|
|
70
71
|
server.registerTool("countAlive", {
|
|
71
72
|
title: "Count instances by class",
|
|
72
|
-
description: "Count how many times each class appears in a `.memgraph`'s leaked nodes. Provide `className` (substring) for a single number, or omit it to get the top N most-leaked classes. Use this to confirm whether a fix actually reduced instance counts.",
|
|
73
|
+
description: "[mg.memory] Count how many times each class appears in a `.memgraph`'s leaked nodes. Provide `className` (substring) for a single number, or omit it to get the top N most-leaked classes. Use this to confirm whether a fix actually reduced instance counts.",
|
|
73
74
|
inputSchema: countAliveSchema.shape,
|
|
74
75
|
}, async (input) => {
|
|
75
76
|
const result = await countAlive(input);
|
|
@@ -79,7 +80,7 @@ server.registerTool("countAlive", {
|
|
|
79
80
|
});
|
|
80
81
|
server.registerTool("diffMemgraphs", {
|
|
81
82
|
title: "Diff two memgraph snapshots",
|
|
82
|
-
description: "Compare a baseline `.memgraph` (`before`) against a comparison `.memgraph` (`after`). Returns total leak/byte deltas, classes whose counts increased or decreased, and ROOT CYCLE signatures bucketed into newInAfter / goneFromBefore / persisted. The killer feature for verifying that a fix actually worked.",
|
|
83
|
+
description: "[mg.memory] Compare a baseline `.memgraph` (`before`) against a comparison `.memgraph` (`after`). Returns total leak/byte deltas, classes whose counts increased or decreased, and ROOT CYCLE signatures bucketed into newInAfter / goneFromBefore / persisted. The killer feature for verifying that a fix actually worked.",
|
|
83
84
|
inputSchema: diffMemgraphsSchema.shape,
|
|
84
85
|
}, async (input) => {
|
|
85
86
|
const result = await diffMemgraphs(input);
|
|
@@ -89,7 +90,7 @@ server.registerTool("diffMemgraphs", {
|
|
|
89
90
|
});
|
|
90
91
|
server.registerTool("classifyCycle", {
|
|
91
92
|
title: "Classify ROOT CYCLEs against known patterns",
|
|
92
|
-
description: "
|
|
93
|
+
description: "[mg.memory] Match each ROOT CYCLE against a built-in catalog of 8 known antipatterns (TagIndexProjection cycle, ForEachState retention, Combine sink-store-self, Task-without-weak-self, NotificationCenter observer, viewmodel-wrapped-strong closure, UINavigationController host, _DictionaryStorage internal). Returns `patternId`, `confidence`, and a `fixHint` per cycle.\n\nPipeline: this is the killer tool — after the result, **follow `suggestedNextCalls`** which pre-translates each match to a Swift regex (`swiftSearchPattern`) + the captured class name (`swiftGetSymbolDefinition`). Discovery is data, not inference.",
|
|
93
94
|
inputSchema: classifyCycleSchema.shape,
|
|
94
95
|
}, async (input) => {
|
|
95
96
|
const result = await classifyCycle(input);
|
|
@@ -99,7 +100,7 @@ server.registerTool("classifyCycle", {
|
|
|
99
100
|
});
|
|
100
101
|
server.registerTool("analyzeHangs", {
|
|
101
102
|
title: "Analyze potential hangs from a .trace bundle",
|
|
102
|
-
description: "Run `xcrun xctrace export` against a `.trace` bundle for the `potential-hangs` schema and return aggregated stats (Hang vs Microhang counts, longest, average, total duration) plus the top N longest hangs sorted by duration. Use `minDurationMs: 250` to filter to user-visible hangs only.",
|
|
103
|
+
description: "[mg.trace] Run `xcrun xctrace export` against a `.trace` bundle for the `potential-hangs` schema and return aggregated stats (Hang vs Microhang counts, longest, average, total duration) plus the top N longest hangs sorted by duration. Use `minDurationMs: 250` to filter to user-visible hangs only.",
|
|
103
104
|
inputSchema: analyzeHangsSchema.shape,
|
|
104
105
|
}, async (input) => {
|
|
105
106
|
const result = await analyzeHangs(input);
|
|
@@ -109,7 +110,7 @@ server.registerTool("analyzeHangs", {
|
|
|
109
110
|
});
|
|
110
111
|
server.registerTool("analyzeTimeProfile", {
|
|
111
112
|
title: "Analyze a Time Profiler trace",
|
|
112
|
-
description: "Export the `time-profile` schema from a `.trace` bundle and return top symbols by sample count. Note: heavy/unsymbolicated traces may crash xctrace export — when that happens, the tool returns a `notice` field with workarounds (open in Instruments first to symbolicate, or re-record shorter).",
|
|
113
|
+
description: "[mg.trace] Export the `time-profile` schema from a `.trace` bundle and return top symbols by sample count. Note: heavy/unsymbolicated traces may crash xctrace export — when that happens, the tool returns a `notice` field with workarounds (open in Instruments first to symbolicate, or re-record shorter).",
|
|
113
114
|
inputSchema: analyzeTimeProfileSchema.shape,
|
|
114
115
|
}, async (input) => {
|
|
115
116
|
const result = await analyzeTimeProfile(input);
|
|
@@ -119,7 +120,7 @@ server.registerTool("analyzeTimeProfile", {
|
|
|
119
120
|
});
|
|
120
121
|
server.registerTool("listTraceDevices", {
|
|
121
122
|
title: "List physical devices and simulators",
|
|
122
|
-
description: "Run `xcrun xctrace list devices` and return parsed devices/simulators with their UDIDs. The LLM should call this before `recordTimeProfile` to discover the right UDID without asking the user. Set `includeOffline: true` to include disconnected devices.",
|
|
123
|
+
description: "[mg.discover] Run `xcrun xctrace list devices` and return parsed devices/simulators with their UDIDs. The LLM should call this before `recordTimeProfile` to discover the right UDID without asking the user. Set `includeOffline: true` to include disconnected devices.",
|
|
123
124
|
inputSchema: listTraceDevicesSchema.shape,
|
|
124
125
|
}, async (input) => {
|
|
125
126
|
const result = await listTraceDevices(input);
|
|
@@ -129,7 +130,7 @@ server.registerTool("listTraceDevices", {
|
|
|
129
130
|
});
|
|
130
131
|
server.registerTool("listTraceTemplates", {
|
|
131
132
|
title: "List xctrace recording templates",
|
|
132
|
-
description: "Run `xcrun xctrace list templates` and return parsed standard + custom templates. Useful when picking a template name for `recordTimeProfile` (e.g. \"Time Profiler\", \"Animation Hitches\", \"Allocations\").",
|
|
133
|
+
description: "[mg.discover] Run `xcrun xctrace list templates` and return parsed standard + custom templates. Useful when picking a template name for `recordTimeProfile` (e.g. \"Time Profiler\", \"Animation Hitches\", \"Allocations\").",
|
|
133
134
|
inputSchema: listTraceTemplatesSchema.shape,
|
|
134
135
|
}, async (input) => {
|
|
135
136
|
const result = await listTraceTemplates(input);
|
|
@@ -139,7 +140,7 @@ server.registerTool("listTraceTemplates", {
|
|
|
139
140
|
});
|
|
140
141
|
server.registerTool("recordTimeProfile", {
|
|
141
142
|
title: "Record a Time Profiler trace",
|
|
142
|
-
description: "Wrapper around `xcrun xctrace record`. Capture a `.trace` bundle from a running app on a device or simulator. Required: exactly 1 of `deviceId`/`simulatorId`, exactly 1 of `attachAppName`/`attachPid`/`launchBundleId`, an `output` path ending in `.trace`. Defaults: template = \"Time Profiler\", durationSec = 90.",
|
|
143
|
+
description: "[mg.trace] Wrapper around `xcrun xctrace record`. Capture a `.trace` bundle from a running app on a device or simulator. Required: exactly 1 of `deviceId`/`simulatorId`, exactly 1 of `attachAppName`/`attachPid`/`launchBundleId`, an `output` path ending in `.trace`. Defaults: template = \"Time Profiler\", durationSec = 90.",
|
|
143
144
|
inputSchema: recordTimeProfileShape,
|
|
144
145
|
}, async (input) => {
|
|
145
146
|
const result = await recordTimeProfile(input);
|
|
@@ -149,7 +150,7 @@ server.registerTool("recordTimeProfile", {
|
|
|
149
150
|
});
|
|
150
151
|
server.registerTool("captureMemgraph", {
|
|
151
152
|
title: "Capture a .memgraph from a running process",
|
|
152
|
-
description: "Wrapper around `leaks --outputGraph`. Resolves `appName` to a PID via `pgrep -x` (or accepts `pid` directly), then writes a `.memgraph` snapshot. **Limitation**: only works for processes running on the local Mac (Mac apps + iOS simulator). Does NOT work for physical iOS devices — use Xcode's Memory Graph button there.",
|
|
153
|
+
description: "[mg.memory] Wrapper around `leaks --outputGraph`. Resolves `appName` to a PID via `pgrep -x` (or accepts `pid` directly), then writes a `.memgraph` snapshot. **Limitation**: only works for processes running on the local Mac (Mac apps + iOS simulator). Does NOT work for physical iOS devices — use Xcode's Memory Graph button there.",
|
|
153
154
|
inputSchema: captureMemgraphShape,
|
|
154
155
|
}, async (input) => {
|
|
155
156
|
const result = await captureMemgraph(input);
|
|
@@ -159,7 +160,7 @@ server.registerTool("captureMemgraph", {
|
|
|
159
160
|
});
|
|
160
161
|
server.registerTool("analyzeAnimationHitches", {
|
|
161
162
|
title: "Analyze animation hitches from a .trace bundle",
|
|
162
|
-
description: "Parse the `animation-hitches` schema from a `.trace` recorded with the Animation Hitches Instruments template. Returns hitch totals, by-type counts, longest hitches, and how many crossed the user-perceptible 100ms threshold.",
|
|
163
|
+
description: "[mg.trace] Parse the `animation-hitches` schema from a `.trace` recorded with the Animation Hitches Instruments template. Returns hitch totals, by-type counts, longest hitches, and how many crossed the user-perceptible 100ms threshold.",
|
|
163
164
|
inputSchema: analyzeAnimationHitchesSchema.shape,
|
|
164
165
|
}, async (input) => {
|
|
165
166
|
const result = await analyzeAnimationHitches(input);
|
|
@@ -167,7 +168,7 @@ server.registerTool("analyzeAnimationHitches", {
|
|
|
167
168
|
});
|
|
168
169
|
server.registerTool("analyzeAllocations", {
|
|
169
170
|
title: "Analyze allocations from a .trace bundle",
|
|
170
|
-
description: "Parse the `allocations` schema from a `.trace` recorded with the Allocations Instruments template. Returns per-category aggregates (cumulative bytes, allocation count, lifecycle = transient/persistent/mixed), top allocators by size and by count, and a one-liner diagnosis identifying the dominant allocator.",
|
|
171
|
+
description: "[mg.trace] Parse the `allocations` schema from a `.trace` recorded with the Allocations Instruments template. Returns per-category aggregates (cumulative bytes, allocation count, lifecycle = transient/persistent/mixed), top allocators by size and by count, and a one-liner diagnosis identifying the dominant allocator.",
|
|
171
172
|
inputSchema: analyzeAllocationsSchema.shape,
|
|
172
173
|
}, async (input) => {
|
|
173
174
|
const result = await analyzeAllocations(input);
|
|
@@ -175,7 +176,7 @@ server.registerTool("analyzeAllocations", {
|
|
|
175
176
|
});
|
|
176
177
|
server.registerTool("analyzeAppLaunch", {
|
|
177
178
|
title: "Analyze cold/warm launch breakdown",
|
|
178
|
-
description: "Parse the `app-launch` schema from a `.trace` recorded with the App Launch Instruments template. Returns total launch time, launch type (cold/warm), per-phase breakdown (process-creation, dyld-init, ObjC-init, AppDelegate, first-frame), and the slowest phase.",
|
|
179
|
+
description: "[mg.trace] Parse the `app-launch` schema from a `.trace` recorded with the App Launch Instruments template. Returns total launch time, launch type (cold/warm), per-phase breakdown (process-creation, dyld-init, ObjC-init, AppDelegate, first-frame), and the slowest phase.",
|
|
179
180
|
inputSchema: analyzeAppLaunchSchema.shape,
|
|
180
181
|
}, async (input) => {
|
|
181
182
|
const result = await analyzeAppLaunch(input);
|
|
@@ -183,7 +184,7 @@ server.registerTool("analyzeAppLaunch", {
|
|
|
183
184
|
});
|
|
184
185
|
server.registerTool("renderCycleGraph", {
|
|
185
186
|
title: "Render a retain cycle as Mermaid or DOT graph",
|
|
186
|
-
description: "Read a `.memgraph`, pick a ROOT CYCLE by index, and emit the chain as a Mermaid graph definition (default — embeddable in markdown / GitHub) or a Graphviz DOT file. App-level classes are highlighted; CYCLE BACK terminators are styled distinctly. Use `cycleIndex` to render cycles other than the first.",
|
|
187
|
+
description: "[mg.render] Read a `.memgraph`, pick a ROOT CYCLE by index, and emit the chain as a Mermaid graph definition (default — embeddable in markdown / GitHub) or a Graphviz DOT file. App-level classes are highlighted; CYCLE BACK terminators are styled distinctly. Use `cycleIndex` to render cycles other than the first.",
|
|
187
188
|
inputSchema: renderCycleGraphSchema.shape,
|
|
188
189
|
}, async (input) => {
|
|
189
190
|
const result = await renderCycleGraph(input);
|
|
@@ -191,7 +192,7 @@ server.registerTool("renderCycleGraph", {
|
|
|
191
192
|
});
|
|
192
193
|
server.registerTool("logShow", {
|
|
193
194
|
title: "Query macOS unified logging (one-shot)",
|
|
194
|
-
description: "Wrap `log show --style compact --last <window>` with optional NSPredicate filter, process and subsystem sugar. Returns parsed entries (timestamp, type, process, pid, subsystem, category, message) bounded by `maxEntries`. Use this to look back at app logs without leaving chat.",
|
|
195
|
+
description: "[mg.log] Wrap `log show --style compact --last <window>` with optional NSPredicate filter, process and subsystem sugar. Returns parsed entries (timestamp, type, process, pid, subsystem, category, message) bounded by `maxEntries`. Use this to look back at app logs without leaving chat.",
|
|
195
196
|
inputSchema: logShowSchema.shape,
|
|
196
197
|
}, async (input) => {
|
|
197
198
|
const result = await logShow(input);
|
|
@@ -199,7 +200,7 @@ server.registerTool("logShow", {
|
|
|
199
200
|
});
|
|
200
201
|
server.registerTool("logStream", {
|
|
201
202
|
title: "Stream macOS unified logging for a bounded window",
|
|
202
|
-
description: "Wrap `log stream --style compact` for a bounded duration (≤60 s — MCP requests should not block longer). Returns parsed entries collected during the window. Useful for capturing a specific user flow without setting up a full Console.app session.",
|
|
203
|
+
description: "[mg.log] Wrap `log stream --style compact` for a bounded duration (≤60 s — MCP requests should not block longer). Returns parsed entries collected during the window. Useful for capturing a specific user flow without setting up a full Console.app session.",
|
|
203
204
|
inputSchema: logStreamSchema.shape,
|
|
204
205
|
}, async (input) => {
|
|
205
206
|
const result = await logStream(input);
|
|
@@ -207,7 +208,7 @@ server.registerTool("logStream", {
|
|
|
207
208
|
});
|
|
208
209
|
server.registerTool("detectLeaksInXCUITest", {
|
|
209
210
|
title: "Run an XCUITest with leak detection (CI-runnable)",
|
|
210
|
-
description: "Build the workspace for testing, launch the test cycle, capture a baseline `.memgraph` once the app appears, run the test to completion, capture an after `.memgraph`, and diff. Returns `passed: false` when new ROOT CYCLE blocks appear that aren't in the `allowlistPatterns` list. Designed for CI gating — non-zero exit code on failure.",
|
|
211
|
+
description: "[mg.ci] Build the workspace for testing, launch the test cycle, capture a baseline `.memgraph` once the app appears, run the test to completion, capture an after `.memgraph`, and diff. Returns `passed: false` when new ROOT CYCLE blocks appear that aren't in the `allowlistPatterns` list. Designed for CI gating — non-zero exit code on failure.",
|
|
211
212
|
inputSchema: detectLeaksInXCUITestSchema.shape,
|
|
212
213
|
}, async (input) => {
|
|
213
214
|
const result = await detectLeaksInXCUITest(input);
|
|
@@ -215,7 +216,7 @@ server.registerTool("detectLeaksInXCUITest", {
|
|
|
215
216
|
});
|
|
216
217
|
server.registerTool("reachableFromCycle", {
|
|
217
218
|
title: "Count instances reachable from a specific cycle root",
|
|
218
|
-
description: "Cycle-scoped reachability + class counting. Answers questions like \"how many `NSURLSessionConfiguration` instances are reachable from the cycle rooted at `DetailViewModel`?\" — distinguishing the actual culprit (the cycle root) from its retained dependencies. Pick a cycle by zero-based `cycleIndex` or by `rootClassName` substring. Returns per-class counts ranked by occurrence, plus the total reachable node count.",
|
|
219
|
+
description: "[mg.memory] Cycle-scoped reachability + class counting. Answers questions like \"how many `NSURLSessionConfiguration` instances are reachable from the cycle rooted at `DetailViewModel`?\" — distinguishing the actual culprit (the cycle root) from its retained dependencies. Pick a cycle by zero-based `cycleIndex` or by `rootClassName` substring. Returns per-class counts ranked by occurrence, plus the total reachable node count.",
|
|
219
220
|
inputSchema: reachableFromCycleSchema.shape,
|
|
220
221
|
}, async (input) => {
|
|
221
222
|
const result = await reachableFromCycle(input);
|
|
@@ -225,7 +226,7 @@ server.registerTool("reachableFromCycle", {
|
|
|
225
226
|
});
|
|
226
227
|
server.registerTool("swiftGetSymbolDefinition", {
|
|
227
228
|
title: "Locate a Swift symbol's source declaration",
|
|
228
|
-
description: "Find the file:line where a Swift symbol (class, struct, enum, protocol, func, var, etc.) is declared. Pre-scans `candidatePaths` (or `hint.filePath`) with a fast regex first, then asks SourceKit-LSP for jump-to-definition. Returns the position even when LSP can't follow through. Use after `findRetainers` / `classifyCycle` surface a class name from a memgraph cycle to land in the actual source file.",
|
|
229
|
+
description: "[mg.code] Find the file:line where a Swift symbol (class, struct, enum, protocol, func, var, etc.) is declared. Pre-scans `candidatePaths` (or `hint.filePath`) with a fast regex first, then asks SourceKit-LSP for jump-to-definition. Returns the position even when LSP can't follow through. Use after `findRetainers` / `classifyCycle` surface a class name from a memgraph cycle to land in the actual source file.",
|
|
229
230
|
inputSchema: swiftGetSymbolDefinitionSchema.shape,
|
|
230
231
|
}, async (input) => {
|
|
231
232
|
const result = await swiftGetSymbolDefinition(input);
|
|
@@ -233,7 +234,7 @@ server.registerTool("swiftGetSymbolDefinition", {
|
|
|
233
234
|
});
|
|
234
235
|
server.registerTool("swiftFindSymbolReferences", {
|
|
235
236
|
title: "Find every reference to a Swift symbol",
|
|
236
|
-
description: "Locates the symbol's declaration in `filePath`, then asks SourceKit-LSP for `textDocument/references`. Returns every callsite + capture across the project, with a snippet of each line. **Requires an IndexStoreDB** at `<projectRoot>/.build/index/store` for cross-file references — build it with `swift build -Xswiftc -index-store-path -Xswiftc <projectRoot>/.build/index/store`. The result includes a `needsIndex: true` hint when the index is missing.",
|
|
237
|
+
description: "[mg.code] Locates the symbol's declaration in `filePath`, then asks SourceKit-LSP for `textDocument/references`. Returns every callsite + capture across the project, with a snippet of each line. **Requires an IndexStoreDB** at `<projectRoot>/.build/index/store` for cross-file references — build it with `swift build -Xswiftc -index-store-path -Xswiftc <projectRoot>/.build/index/store`. The result includes a `needsIndex: true` hint when the index is missing.",
|
|
237
238
|
inputSchema: swiftFindSymbolReferencesSchema.shape,
|
|
238
239
|
}, async (input) => {
|
|
239
240
|
const result = await swiftFindSymbolReferences(input);
|
|
@@ -241,7 +242,7 @@ server.registerTool("swiftFindSymbolReferences", {
|
|
|
241
242
|
});
|
|
242
243
|
server.registerTool("swiftGetSymbolsOverview", {
|
|
243
244
|
title: "List top-level symbols in a Swift file",
|
|
244
|
-
description: "Cheap orientation: returns the top-level symbols (classes, structs, enums, protocols, free functions) declared in a Swift file via SourceKit-LSP's `documentSymbol`. Set `topLevelOnly: false` for nested children too. Useful right after `swiftGetSymbolDefinition` lands you in a new file.",
|
|
245
|
+
description: "[mg.code] Cheap orientation: returns the top-level symbols (classes, structs, enums, protocols, free functions) declared in a Swift file via SourceKit-LSP's `documentSymbol`. Set `topLevelOnly: false` for nested children too. Useful right after `swiftGetSymbolDefinition` lands you in a new file.",
|
|
245
246
|
inputSchema: swiftGetSymbolsOverviewSchema.shape,
|
|
246
247
|
}, async (input) => {
|
|
247
248
|
const result = await swiftGetSymbolsOverview(input);
|
|
@@ -249,7 +250,7 @@ server.registerTool("swiftGetSymbolsOverview", {
|
|
|
249
250
|
});
|
|
250
251
|
server.registerTool("swiftGetHoverInfo", {
|
|
251
252
|
title: "Get type info / docs at a Swift source position",
|
|
252
|
-
description: "SourceKit-LSP `textDocument/hover` at a (line, character) position. Returns the markdown / plaintext hover content plus a best-effort extracted declaration fragment. Use to disambiguate `self` captures: a class self in a closure can leak; a struct self can't.",
|
|
253
|
+
description: "[mg.code] SourceKit-LSP `textDocument/hover` at a (line, character) position. Returns the markdown / plaintext hover content plus a best-effort extracted declaration fragment. Use to disambiguate `self` captures: a class self in a closure can leak; a struct self can't.",
|
|
253
254
|
inputSchema: swiftGetHoverInfoSchema.shape,
|
|
254
255
|
}, async (input) => {
|
|
255
256
|
const result = await swiftGetHoverInfo(input);
|
|
@@ -257,12 +258,20 @@ server.registerTool("swiftGetHoverInfo", {
|
|
|
257
258
|
});
|
|
258
259
|
server.registerTool("swiftSearchPattern", {
|
|
259
260
|
title: "Regex-search a Swift file (no LSP)",
|
|
260
|
-
description: "Pure regex search over a file's contents — no SourceKit-LSP, no IndexStoreDB. Catches what LSP misses: closure capture lists (`[weak self]`, `[unowned self]`), `Task { ... self ... }` blocks, and any other pattern the agent constructs from a leak chain. Returns matches with line/character positions and a trimmed snippet.",
|
|
261
|
+
description: "[mg.code] Pure regex search over a file's contents — no SourceKit-LSP, no IndexStoreDB. Catches what LSP misses: closure capture lists (`[weak self]`, `[unowned self]`), `Task { ... self ... }` blocks, and any other pattern the agent constructs from a leak chain. Returns matches with line/character positions and a trimmed snippet.",
|
|
261
262
|
inputSchema: swiftSearchPatternSchema.shape,
|
|
262
263
|
}, async (input) => {
|
|
263
264
|
const result = await swiftSearchPattern(input);
|
|
264
265
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
265
266
|
});
|
|
267
|
+
server.registerTool("getInvestigationPlaybook", {
|
|
268
|
+
title: "Get the canonical tool sequence for a known investigation kind",
|
|
269
|
+
description: "[meta] Returns a versioned, declarative pipeline for a known investigation flow (`memgraph-leak`, `perf-hangs`, `ui-jank`, `app-launch-slow`, `verify-fix`). Each step has a tool name, purpose, and argsTemplate. Use this once at the start of an investigation so any LLM agent can follow the right sequence without rediscovering it from individual tool descriptions.",
|
|
270
|
+
inputSchema: getInvestigationPlaybookSchema.shape,
|
|
271
|
+
}, async (input) => {
|
|
272
|
+
const result = await getInvestigationPlaybook(input);
|
|
273
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
274
|
+
});
|
|
266
275
|
async function main() {
|
|
267
276
|
// CLI mode: when called with arguments, run the synchronous CLI wrapper.
|
|
268
277
|
// No arguments → start the MCP server over stdio (the default and the
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iB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,EACD,KAAK,EAAE,KAAK,EAAE,EAAE;IACd,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC,KAAK,CAAC,CAAC;IACrD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAChF,CAAC,CACF,CAAC;AAEF,KAAK,UAAU,IAAI;IACjB,yEAAyE;IACzE,sEAAsE;IACtE,sBAAsB;IACtB,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACjD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for building `suggestedNextCalls` arrays. Centralized so multiple
|
|
3
|
+
* tools agree on the same heuristics for "which class is most actionable"
|
|
4
|
+
* and "which followup is most useful".
|
|
5
|
+
*/
|
|
6
|
+
import type { CycleSummary } from "../tools/analyzeMemgraph.js";
|
|
7
|
+
import type { NextCallSuggestion } from "../types.js";
|
|
8
|
+
/** True when this class name looks like the user's own code (not stdlib / system). */
|
|
9
|
+
export declare function looksAppLevel(className: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* From a list of class names in a cycle, pick the most likely "the thing the
|
|
12
|
+
* user wrote" — the dominant app-level class. Used to seed swift* followups.
|
|
13
|
+
*/
|
|
14
|
+
export declare function pickPrimaryAppClass(classNames: string[]): string | null;
|
|
15
|
+
/** Pull primary app-level class from a CycleSummary's chain. */
|
|
16
|
+
export declare function primaryAppClassFor(summary: CycleSummary): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Build a suggestedNextCalls array for `classifyCycle`'s output.
|
|
19
|
+
* Maps the matched pattern + the cycle root to the most useful followups.
|
|
20
|
+
*/
|
|
21
|
+
export declare function suggestionsForClassification(opts: {
|
|
22
|
+
patternId: string | null;
|
|
23
|
+
rootClass: string;
|
|
24
|
+
appLevelClass: string | null;
|
|
25
|
+
}): NextCallSuggestion[];
|
|
26
|
+
/** Build suggestion to call swiftFindSymbolReferences for a class name. */
|
|
27
|
+
export declare function suggestionFindReferences(opts: {
|
|
28
|
+
symbolName: string;
|
|
29
|
+
filePath?: string;
|
|
30
|
+
}): NextCallSuggestion;
|
|
31
|
+
/** Build suggestion to call swiftGetSymbolDefinition for a class name. */
|
|
32
|
+
export declare function suggestionGetDefinition(opts: {
|
|
33
|
+
symbolName: string;
|
|
34
|
+
candidatePaths?: string[];
|
|
35
|
+
}): NextCallSuggestion;
|
|
36
|
+
/** Build suggestion to call classifyCycle (used after analyzeMemgraph). */
|
|
37
|
+
export declare function suggestionClassifyCycle(opts: {
|
|
38
|
+
path: string;
|
|
39
|
+
}): NextCallSuggestion;
|
|
40
|
+
/** Build suggestion to call reachableFromCycle (used after analyzeMemgraph). */
|
|
41
|
+
export declare function suggestionReachableFromCycle(opts: {
|
|
42
|
+
path: string;
|
|
43
|
+
cycleIndex?: number;
|
|
44
|
+
}): NextCallSuggestion;
|