memorydetective 1.2.1 → 1.3.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.
- package/CHANGELOG.md +27 -1
- package/README.md +3 -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
|
@@ -11,13 +11,13 @@ export declare const swiftSearchPatternSchema: z.ZodObject<{
|
|
|
11
11
|
flags: z.ZodOptional<z.ZodString>;
|
|
12
12
|
maxMatches: z.ZodDefault<z.ZodNumber>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
filePath: string;
|
|
15
14
|
pattern: string;
|
|
15
|
+
filePath: string;
|
|
16
16
|
maxMatches: number;
|
|
17
17
|
flags?: string | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
filePath: string;
|
|
20
19
|
pattern: string;
|
|
20
|
+
filePath: string;
|
|
21
21
|
flags?: string | undefined;
|
|
22
22
|
maxMatches?: number | undefined;
|
|
23
23
|
}>;
|
package/dist/types.d.ts
CHANGED
|
@@ -52,3 +52,17 @@ export interface LeaksReport {
|
|
|
52
52
|
/** True if the report contains zero ROOT CYCLE entries (independent of leakCount, since plain leaks may exist). */
|
|
53
53
|
hasNoCycles: boolean;
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* HATEOAS-style hint that an LLM agent can chain after the current tool's
|
|
57
|
+
* result. We pre-populate `args` from the current response so the agent can
|
|
58
|
+
* call the next tool with one fewer inference step. The agent is free to
|
|
59
|
+
* adapt or ignore — these are suggestions, not commands.
|
|
60
|
+
*/
|
|
61
|
+
export interface NextCallSuggestion {
|
|
62
|
+
/** Name of the tool to call next. */
|
|
63
|
+
tool: string;
|
|
64
|
+
/** Pre-populated arguments based on the current result. */
|
|
65
|
+
args: Record<string, unknown>;
|
|
66
|
+
/** One-sentence rationale: why this next call advances the investigation. */
|
|
67
|
+
why: string;
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memorydetective",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "MCP server for iOS leak hunting and performance investigation. Reads .memgraph + .trace files, captures new ones via xctrace and leaks(1), classifies retain cycles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|