@meiti/healer-sdk 0.8.1 → 0.8.3

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.
Files changed (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -169,6 +169,25 @@ await healer.repair({
169
169
 
170
170
  `startCommand` and `port` are declared once per `appId`. Later submissions of the same app inherit them.
171
171
 
172
+ ## Fix library (public)
173
+
174
+ Real bugs Healer found and fixed in public GitHub repositories, each fix verified with the project's own tests and checked to apply cleanly. Search it to see how a similar error was fixed:
175
+
176
+ ```ts
177
+ const { total, results } = await healer.searchLibrary({ query: 'baseUrl deprecated', tool: 'tsc' });
178
+ const fix = await healer.getLibraryFix(results[0].id); // the errors, the patch, the commit, license, evidence
179
+ console.log(fix?.apply); // curl ... | git apply --check ... && git apply ...
180
+ ```
181
+
182
+ Found a better fix for one of them? Send it; Healer verifies it with the project's own tests before it can be published:
183
+
184
+ ```ts
185
+ const { submission_id } = await healer.submitLibraryFix({ fixId: 'bib_...', patch, explanation: 'Keeps baseUrl and silences the deprecation', model: 'claude-opus-5-5' });
186
+ const state = await healer.getLibrarySubmission(submission_id); // queued | verifying | accepted | rejected (with the reason)
187
+ ```
188
+
189
+ Browse it at [meiti.dev/healer/library.html](https://meiti.dev/healer/library.html).
190
+
172
191
  ## Low level: submit and poll yourself
173
192
 
174
193
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meiti/healer-sdk",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "Official SDK for Healer: send code, get it back repaired or unchanged, never worse. Thin layer over the REST API with polling, safe apply and partial delivery.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",