memorydetective 1.6.0 → 1.7.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 +22 -0
- package/README.md +20 -10
- package/USAGE.md +28 -3
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime/fixTemplates.d.ts +27 -0
- package/dist/runtime/fixTemplates.js +757 -0
- package/dist/runtime/fixTemplates.js.map +1 -0
- package/dist/runtime/staticAnalysisHints.js +8 -0
- package/dist/runtime/staticAnalysisHints.js.map +1 -1
- package/dist/tools/classifyCycle.d.ts +7 -0
- package/dist/tools/classifyCycle.js +31 -0
- package/dist/tools/classifyCycle.js.map +1 -1
- package/dist/tools/compareTracesByPattern.d.ts +112 -0
- package/dist/tools/compareTracesByPattern.js +312 -0
- package/dist/tools/compareTracesByPattern.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.7.0] — 2026-05-03
|
|
10
|
+
|
|
11
|
+
Catalog grows from 33 to **34 patterns** (SwiftData `@Actor` cycle), every classification now ships a **`fixTemplate` field** with Swift before/after snippets the agent can adapt directly, and a new **`compareTracesByPattern` tool** does for `.trace` bundles what `verifyFix` does for memgraphs. 27 → 28 MCP tools.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **`swiftdata.modelcontext-actor-cycle`** cycle pattern. Fires when a `ModelContext` + `DefaultSerialModelExecutor` (or `ModelExecutor`) + `Actor` appear together in the chain. Apple-documented quirk (FB13844786) — fixed at the framework level in iOS 18 beta 1, but the user-code shape persists on older targets and on hand-rolled executors. Sourced from [Apple Developer Forums #748042](https://developer.apple.com/forums/thread/748042). Confidence-tiered: `high` when all three signals coexist, `medium` for ModelContext + Executor without an Actor in chain, `low` when only ModelContext is visible.
|
|
16
|
+
- **`fixTemplate` field** on every `PatternMatch`. Each pattern now carries a Swift code snippet showing the typical before/after. The agent reads the template and adapts type/method names to the user's codebase via the SourceKit-LSP source-bridging tools. Implemented in `src/runtime/fixTemplates.ts` with a 1:1-coverage test guard against `PATTERNS`. Where `staticAnalysisHint` (v1.6) says *which* linter rule would catch a pattern, `fixTemplate` shows *what* the fix looks like in code. Both ride alongside the original textual `fixHint`.
|
|
17
|
+
- **`compareTracesByPattern` tool** — trace-side counterpart to `verifyFix`. Takes a before/after pair of `.trace` bundles + a category (`hangs`, `animation-hitches`, or `app-launch`) + optional thresholds, and returns a PASS/PARTIAL/FAIL verdict plus before/after stats and deltas. Threshold semantics: hangs PASS when longest is below `hangsMaxLongestMs` (default 0); hitches PASS when longest is below `hitchesMaxLongestMs` (default 100ms — Apple's user-perceptible threshold); app-launch PASS when total is below `appLaunchMaxTotalMs` (default 1000ms). Designed for CI gating: a hangs-fix PR's before/after traces gate the merge. Tagged `[mg.trace][mg.ci]`.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- README: new "What's new in v1.7" callout. Pattern catalog count `33 → 34`. Tool count `27 → 28`. CI / test integration subsection grows from 1 to 2 tools. Resources section now lists 34 entries. The "Adding a cycle pattern" workflow gains a 4th step: add a `fixTemplate` entry alongside the `staticAnalysisHint`.
|
|
22
|
+
- USAGE.md section 2 gains a v1.7 sub-table with the new SwiftData+Actor pattern + a paragraph explaining the new `fixTemplate` field with a concrete JSON example. Updated header note describes the per-pattern triple now returned: `fixHint` (prose), `staticAnalysisHint` (linter rule or gap), and `fixTemplate` (code).
|
|
23
|
+
- Test count: 183 → 206 (23 new — 4 for the swiftdata pattern + edge cases, 8 for `fixTemplates` coverage and content, 11 for `compareTracesByPattern` verdict logic).
|
|
24
|
+
|
|
25
|
+
### Notes
|
|
26
|
+
|
|
27
|
+
- No breaking changes — `fixTemplate` is an optional new field on `PatternMatch`. Old callers that ignore it continue to work.
|
|
28
|
+
- Catalog now covers 34 distinct cycle shapes; the `fixTemplate` content is the most user-visible upgrade. Each template is intentionally minimal (just enough to demonstrate the shape of the fix); the agent fills in real type/method names from the surrounding code.
|
|
29
|
+
- The `@ModelActor` recommendation in the SwiftData fix template only applies on iOS 17+ where the macro is available. The fallback (custom executor with weak ModelContext) is provided for older targets.
|
|
30
|
+
|
|
9
31
|
## [1.6.0] — 2026-05-03
|
|
10
32
|
|
|
11
33
|
Catalog grows from 27 to **33 patterns** (Swift 6 / Observation / SwiftData / NavigationStack era), the server adopts MCP **Resources** + **Prompts** beyond raw Tools, every classification now carries a `staticAnalysisHint` bridging to SwiftLint, and the `--version` drift bug from earlier is fixed.
|
package/README.md
CHANGED
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
- **MCP-native.** Plugs into Claude Code, Claude Desktop, Cursor, Cline, and any other MCP client. The agent drives the full investigate → classify → suggest-fix loop without you opening Instruments.
|
|
18
18
|
- **Honest about its limits.** No mocked outputs, no over-promises. Hangs analysis works clean from `xctrace`; sample-level Time Profile is parsed when `xctrace` symbolicates the trace and returns a structured workaround notice when it can't (the underlying `xctrace` SIGSEGV on heavy unsymbolicated traces is an Apple-side limitation we surface explicitly). Memory Graph capture works on Mac apps and iOS simulator; physical iOS devices still need Xcode.
|
|
19
19
|
|
|
20
|
-
> **What's new in v1.
|
|
20
|
+
> **What's new in v1.7** (2026-05-03): catalog grew from 33 to **34 cycle patterns** (`swiftdata.modelcontext-actor-cycle` for the SwiftData `@Actor` pattern), every classification now carries a **`fixTemplate` field** with concrete Swift before/after snippets the agent can adapt directly, and a new **`compareTracesByPattern` tool** does for `.trace` bundles what `verifyFix` does for memgraphs — PASS/PARTIAL/FAIL verdicts on hangs / animation-hitches / app-launch regressions. 27 → 28 MCP tools.
|
|
21
|
+
>
|
|
22
|
+
> **Also in v1.6** (same day): catalog 27 → 33, MCP Resources + Prompts surface, and the original `staticAnalysisHint` field. Full notes in [CHANGELOG](./CHANGELOG.md).
|
|
21
23
|
|
|
22
24
|
## Quickstart
|
|
23
25
|
|
|
@@ -258,11 +260,16 @@ Copilot's MCP integration moves fast — if this snippet is stale, see the [VS C
|
|
|
258
260
|
|
|
259
261
|
## API
|
|
260
262
|
|
|
261
|
-
**
|
|
263
|
+
**28 MCP tools + 34 Resources + 5 Prompts**, 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.
|
|
262
264
|
|
|
263
265
|
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 — or just type `/investigate-leak` (one of the [Prompts](#prompts-5)) in any client that exposes MCP slash commands.
|
|
264
266
|
|
|
265
|
-
The cycle classifier ships **
|
|
267
|
+
The cycle classifier ships **34 named antipatterns** spanning SwiftUI (including the Swift 6 / `@Observable` / SwiftData / NavigationStack era), Combine, Swift Concurrency (incl. AsyncSequence-on-self and the new `Observations` API), UIKit (Timer/CADisplayLink/UIGestureRecognizer/KVO/URLSession/WebKit/DispatchSource), Core Animation, Core Data, Coordinator pattern, and the popular third-party libs RxSwift + Realm. Each pattern carries:
|
|
268
|
+
|
|
269
|
+
- a textual one-line `fixHint`
|
|
270
|
+
- a confidence tier (`high` / `medium` / `low`)
|
|
271
|
+
- a `staticAnalysisHint` pointing at the SwiftLint rule that complements the runtime evidence (or an explicit gap notice when no rule exists — reinforces the differentiator: memorydetective sees what linters miss at parse time)
|
|
272
|
+
- a `fixTemplate` with concrete Swift before/after snippets (new in v1.7) the agent can adapt directly to the user's code via the SourceKit-LSP source-bridging tools
|
|
266
273
|
|
|
267
274
|
### Read & analyze (13)
|
|
268
275
|
|
|
@@ -275,7 +282,7 @@ The cycle classifier ships **33 named antipatterns** spanning SwiftUI (including
|
|
|
275
282
|
| `reachableFromCycle` | Cycle-scoped reachability. "How many `<X>` instances are reachable from the cycle rooted at `<Y>`?" — distinguishes the actual culprit from its retained dependencies. |
|
|
276
283
|
| `diffMemgraphs` | Compare two `.memgraph` snapshots: total deltas + class-count changes + cycles new/gone/persisted. |
|
|
277
284
|
| `verifyFix` | Cycle-semantic diff: per-pattern PASS/PARTIAL/FAIL verdict + bytes freed. CI-gateable. |
|
|
278
|
-
| `classifyCycle` | Match each ROOT CYCLE against a built-in catalog of **
|
|
285
|
+
| `classifyCycle` | Match each ROOT CYCLE against a built-in catalog of **34 named antipatterns** (SwiftUI / Combine / Concurrency / UIKit / Core Animation / Core Data / Coordinator / RxSwift / Realm) with confidence + textual `fixHint` + `staticAnalysisHint` (which SwiftLint rule complements this, or explicit gap) + `fixTemplate` (Swift before/after snippet). |
|
|
279
286
|
| `analyzeHangs` | Parse `xctrace` `potential-hangs` schema; return Hang vs Microhang counts + top N longest. |
|
|
280
287
|
| `analyzeAnimationHitches` | Parse `xctrace` `animation-hitches` schema; report by-type counts and how many hitches crossed Apple's user-perceptible 100ms threshold. |
|
|
281
288
|
| `analyzeTimeProfile` | Parse `xctrace` `time-profile` schema; return top symbols by sample count. Reports SIGSEGV with workarounds when xctrace can't symbolicate. |
|
|
@@ -304,11 +311,12 @@ The cycle classifier ships **33 named antipatterns** spanning SwiftUI (including
|
|
|
304
311
|
|---|---|
|
|
305
312
|
| `renderCycleGraph` | Read a `.memgraph`, pick a ROOT CYCLE, and emit a Mermaid graph (markdown-embeddable) or Graphviz DOT. App-level classes highlighted in red; CYCLE BACK terminators amber. |
|
|
306
313
|
|
|
307
|
-
### CI / test integration (
|
|
314
|
+
### CI / test integration (2)
|
|
308
315
|
|
|
309
316
|
| Tool | What |
|
|
310
317
|
|---|---|
|
|
311
318
|
| `detectLeaksInXCUITest` | **Experimental.** Build the workspace for testing, run the named XCUITest, capture `.memgraph` baseline + after, diff. Returns `passed: false` when new ROOT CYCLEs appear that aren't in the user's allowlist. CI-runnable. |
|
|
319
|
+
| `compareTracesByPattern` | Trace-side counterpart to `verifyFix`. Compares two `.trace` bundles for a perf category (`hangs`, `animation-hitches`, or `app-launch`) and returns PASS/PARTIAL/FAIL with before/after stats and deltas. Apply thresholds: hangs PASS when longest is below `hangsMaxLongestMs`; hitches PASS when longest is below `hitchesMaxLongestMs` (default 100ms — Apple's user-perceptible threshold); app-launch PASS when total is below `appLaunchMaxTotalMs` (default 1000ms). |
|
|
312
320
|
|
|
313
321
|
### Swift source bridging (5)
|
|
314
322
|
|
|
@@ -326,7 +334,7 @@ These tools require macOS + Xcode (full Xcode, not just Command Line Tools — `
|
|
|
326
334
|
|
|
327
335
|
> **Why `captureMemgraph` doesn't work on physical iOS devices**: `leaks(1)` only attaches to processes running on the local Mac (which includes iOS simulators). Memory Graph capture from a real device goes through Xcode's debugger over USB/lockdownd — different mechanism, no public CLI equivalent.
|
|
328
336
|
|
|
329
|
-
### Resources (
|
|
337
|
+
### Resources (34)
|
|
330
338
|
|
|
331
339
|
The cycle-pattern catalog is also surfaced as MCP resources, browsable at `memorydetective://patterns/{patternId}`. Each resource is a markdown body with the pattern name, a longer description, and the fix hint. Use this to let an agent (or a human in a UI-aware MCP client) browse the catalog without burning a `classifyCycle` call.
|
|
332
340
|
|
|
@@ -334,10 +342,11 @@ The cycle-pattern catalog is also surfaced as MCP resources, browsable at `memor
|
|
|
334
342
|
memorydetective://patterns/swiftui.tag-index-projection
|
|
335
343
|
memorydetective://patterns/concurrency.async-sequence-on-self
|
|
336
344
|
memorydetective://patterns/webkit.wkscriptmessagehandler-bridge
|
|
345
|
+
memorydetective://patterns/swiftdata.modelcontext-actor-cycle
|
|
337
346
|
…
|
|
338
347
|
```
|
|
339
348
|
|
|
340
|
-
`resources/list` returns all
|
|
349
|
+
`resources/list` returns all 34 entries. `resources/read` resolves any `memorydetective://patterns/{id}` URI to its markdown body.
|
|
341
350
|
|
|
342
351
|
### Prompts (5)
|
|
343
352
|
|
|
@@ -390,16 +399,17 @@ npm run dev # tsx, stdio mode (dev mode)
|
|
|
390
399
|
Contributions are welcome — bug reports, feature requests, new cycle patterns, all of it.
|
|
391
400
|
|
|
392
401
|
- **Bugs / feature requests**: [open an issue](https://github.com/carloshpdoc/memorydetective/issues).
|
|
393
|
-
- **PRs**: fork → branch → `npm install` → make changes → `npm test` (
|
|
402
|
+
- **PRs**: fork → branch → `npm install` → make changes → `npm test` (206 tests must stay green) → open a PR with a concise description of what changed and why.
|
|
394
403
|
|
|
395
404
|
### Adding a cycle pattern to `classifyCycle`
|
|
396
405
|
|
|
397
|
-
`classifyCycle` ships with
|
|
406
|
+
`classifyCycle` ships with 34 built-in patterns covering SwiftUI (incl. Swift 6 / `@Observable` / SwiftData / NavigationStack), Combine, Swift Concurrency (incl. AsyncSequence-on-self and `Observations`), UIKit (Timer / CADisplayLink / UIGestureRecognizer / KVO / URLSession / WebKit / DispatchSource), Core Animation, Core Data, the Coordinator pattern, RxSwift, and Realm. To add one:
|
|
398
407
|
|
|
399
408
|
1. Edit `src/tools/classifyCycle.ts` — add an entry to `PATTERNS` with `id`, `name`, `fixHint`, and a `match` function.
|
|
400
409
|
2. Add a test in `src/tools/readTools.test.ts` that asserts the new pattern fires against a representative memgraph fixture.
|
|
401
410
|
3. Add a `staticAnalysisHint` entry in `src/runtime/staticAnalysisHints.ts` (the test in that file enforces 1:1 coverage with `PATTERNS`).
|
|
402
|
-
4.
|
|
411
|
+
4. Add a `fixTemplate` entry in `src/runtime/fixTemplates.ts` (same 1:1 coverage guard).
|
|
412
|
+
5. Open a PR.
|
|
403
413
|
|
|
404
414
|
## Support this project
|
|
405
415
|
|
package/USAGE.md
CHANGED
|
@@ -94,9 +94,15 @@ Claude orchestrates the full flow (see [section 3](#3-how-fixes-actually-flow-fr
|
|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
97
|
-
## 2. The
|
|
97
|
+
## 2. The 34 cycle patterns and their fix hints
|
|
98
98
|
|
|
99
|
-
`classifyCycle` ships with a built-in catalog of
|
|
99
|
+
`classifyCycle` ships with a built-in catalog of 34 common iOS retain-cycle patterns. Each pattern returns:
|
|
100
|
+
|
|
101
|
+
- a textual `fixHint` (one-line plain-English direction)
|
|
102
|
+
- a `staticAnalysisHint` (which SwiftLint rule complements the runtime evidence — or an explicit gap notice)
|
|
103
|
+
- a `fixTemplate` (Swift before/after code snippet — new in v1.7) the agent can adapt directly
|
|
104
|
+
|
|
105
|
+
Patterns are grouped below by the framework / source they target.
|
|
100
106
|
|
|
101
107
|
### v1.0 core (8) — SwiftUI + Combine + Concurrency + Notifications
|
|
102
108
|
|
|
@@ -153,6 +159,12 @@ Sourced from Apple Developer Forums (#736110, #716804, #748042), Swift Forums (#
|
|
|
153
159
|
| `swiftui.observations-closure-strong-self` | `Observations` (the Swift 6.2 API, NOT `ObservationRegistrar`) + `Closure context` | The new non-SwiftUI `Observations { }` closure retains self like `Combine.sink`. Use `[weak self]` inside the closure. |
|
|
154
160
|
| `webkit.wkscriptmessagehandler-bridge` | `WKWebView` + `WKUserContentController` + `WKScriptMessageHandler` (or `*Bridge`/`*Handler` class) all in chain | The 3-link bridge cycle: bridge → webView → contentController → bridge. Wrap the handler in `WeakScriptMessageHandler` proxy, or `removeScriptMessageHandler(forName:)` for every name added. Fires alongside the broader v1.4 `webkit.scriptmessage-handler-strong` pattern when the full bridge shape is present. |
|
|
155
161
|
|
|
162
|
+
### v1.7 catalog (1) — SwiftData + Actor
|
|
163
|
+
|
|
164
|
+
| Pattern ID | When it matches | Fix hint (summary) |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| `swiftdata.modelcontext-actor-cycle` | `ModelContext` + `DefaultSerialModelExecutor` (or `ModelExecutor`) + `Actor` in chain | Apple-documented quirk on iOS 17 (FB13844786, fixed in iOS 18 beta 1). Prefer the `@ModelActor` macro over hand-rolled executors; or hold `ModelContext` weakly inside a custom executor and re-resolve per operation. |
|
|
167
|
+
|
|
156
168
|
**Confidence tiers**: each pattern returns `high`, `medium`, or `low` based on how many specific signals match. If multiple patterns fire on the same cycle, all matches are returned — the highest-confidence one is `primaryMatch`, the rest are in `allMatches`.
|
|
157
169
|
|
|
158
170
|
**Static analysis bridge (v1.6+)**: every classified cycle now carries a `staticAnalysisHint` field with three sub-fields:
|
|
@@ -165,7 +177,20 @@ Reinforces the differentiator: **memorydetective sees the runtime evidence linte
|
|
|
165
177
|
- `concurrency.async-sequence-on-self` → `null` rule, with note that `[weak self]` does NOT help here
|
|
166
178
|
- `delegate.strong-reference` → `weak_delegate` (SwiftLint catches it directly)
|
|
167
179
|
|
|
168
|
-
**The
|
|
180
|
+
**Fix template (v1.7+)**: every classified cycle also carries a `fixTemplate` with concrete Swift before/after code snippets. The agent reads the template, then adapts type/method names to the user's codebase via `swiftGetSymbolDefinition` / `swiftSearchPattern`. Example output for `combine.sink-store-self-capture`:
|
|
181
|
+
|
|
182
|
+
```jsonc
|
|
183
|
+
{
|
|
184
|
+
"fixTemplate": {
|
|
185
|
+
"before": "pub.sink { v in self.value = v }.store(in: &bag) // ⚠️ retains self",
|
|
186
|
+
"after": "pub.sink { [weak self] v in self?.value = v }.store(in: &bag)\n// OR for property-path: pub.assign(to: &$value)"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Where `staticAnalysisHint` says **which** linter rule complements this, `fixTemplate` shows **what** the fix actually looks like in code.
|
|
192
|
+
|
|
193
|
+
**The textual `fixHint` remains deliberately prose, not code.** It explains the *why*; `fixTemplate` shows the *what*. The agent uses both.
|
|
169
194
|
|
|
170
195
|
---
|
|
171
196
|
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import { detectLeaksInXCUITest, detectLeaksInXCUITestSchema, } from "./tools/det
|
|
|
22
22
|
import { reachableFromCycle, reachableFromCycleSchema, } from "./tools/reachableFromCycle.js";
|
|
23
23
|
import { getInvestigationPlaybook, getInvestigationPlaybookSchema, } from "./tools/getInvestigationPlaybook.js";
|
|
24
24
|
import { verifyFix, verifyFixSchema } from "./tools/verifyFix.js";
|
|
25
|
+
import { compareTracesByPattern, compareTracesByPatternSchema, } from "./tools/compareTracesByPattern.js";
|
|
25
26
|
import { swiftGetSymbolDefinition, swiftGetSymbolDefinitionSchema, swiftFindSymbolReferences, swiftFindSymbolReferencesSchema, swiftGetSymbolsOverview, swiftGetSymbolsOverviewSchema, swiftGetHoverInfo, swiftGetHoverInfoSchema, swiftSearchPattern, swiftSearchPatternSchema, } from "./tools/swift/index.js";
|
|
26
27
|
import { VERSION as SERVER_VERSION } from "./version.js";
|
|
27
28
|
import { listPatternResources, readPatternResource, } from "./runtime/resources.js";
|
|
@@ -284,6 +285,14 @@ server.registerTool("verifyFix", {
|
|
|
284
285
|
const result = await verifyFix(input);
|
|
285
286
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
286
287
|
});
|
|
288
|
+
server.registerTool("compareTracesByPattern", {
|
|
289
|
+
title: "Compare before/after .trace bundles for a perf regression target",
|
|
290
|
+
description: "[mg.trace][mg.ci] Trace-side counterpart to `verifyFix`. Compares two `.trace` bundles for a specific perf category (`hangs`, `animation-hitches`, or `app-launch`) and emits a PASS/PARTIAL/FAIL verdict plus before/after stats and deltas. Apply thresholds: hangs PASS when longest is below `hangsMaxLongestMs` (default 0); hitches PASS when longest is below `hitchesMaxLongestMs` (default 100ms — Apple's user-perceptible threshold); app-launch PASS when total is below `appLaunchMaxTotalMs` (default 1000ms).\n\nPipeline: capture before/after `.trace` (via `recordTimeProfile` or Xcode), then point this at the pair. The natural followup to a hangs/jank/launch fix PR.",
|
|
291
|
+
inputSchema: compareTracesByPatternSchema.shape,
|
|
292
|
+
}, async (input) => {
|
|
293
|
+
const result = await compareTracesByPattern(input);
|
|
294
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
295
|
+
});
|
|
287
296
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
288
297
|
// MCP Resources — the cycle-pattern catalog as browsable URIs
|
|
289
298
|
// ─────────────────────────────────────────────────────────────────────────────
|
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,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,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
2
|
+
* Per-pattern fix templates: Swift code snippets showing the typical
|
|
3
|
+
* before/after for each cycle pattern in the catalog. Pairs with
|
|
4
|
+
* `staticAnalysisHints.ts` and `classifyCycle.PATTERNS` to give the
|
|
5
|
+
* agent a concrete code example it can adapt to the user's context.
|
|
6
|
+
*
|
|
7
|
+
* Templates are deliberately minimal — just enough to demonstrate the
|
|
8
|
+
* shape of the fix. The agent fills in real type/method names from the
|
|
9
|
+
* surrounding code via the SourceKit-LSP tools.
|
|
10
|
+
*/
|
|
11
|
+
export interface FixTemplate {
|
|
12
|
+
/** Optional one-line description if the snippet alone needs framing. */
|
|
13
|
+
context?: string;
|
|
14
|
+
/** Code that shows the leak shape. */
|
|
15
|
+
before: string;
|
|
16
|
+
/** Code that fixes it. */
|
|
17
|
+
after: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional notes — e.g. "this only works on iOS 14+" or
|
|
20
|
+
* "the WeakProxy class is a one-time helper you add to your codebase".
|
|
21
|
+
*/
|
|
22
|
+
notes?: string;
|
|
23
|
+
}
|
|
24
|
+
/** Returns the fix template for a given pattern, or null if unknown. */
|
|
25
|
+
export declare function getFixTemplate(patternId: string): FixTemplate | null;
|
|
26
|
+
/** All known pattern ids that have templates. Used in tests for coverage assertion. */
|
|
27
|
+
export declare function knownTemplatePatternIds(): string[];
|