@meiti/healer-sdk 0.8.1 → 0.8.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/README.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -169,6 +169,18 @@ 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
|
+
Browse it at [meiti.dev/healer/library.html](https://meiti.dev/healer/library.html).
|
|
183
|
+
|
|
172
184
|
## Low level: submit and poll yourself
|
|
173
185
|
|
|
174
186
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meiti/healer-sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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",
|