wolverine-ai 4.3.0 → 4.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/package.json +1 -1
- package/src/skills/deps.js +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wolverine-ai",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "Self-healing Node.js server framework powered by AI. Catches crashes, diagnoses errors, generates fixes, verifies, and restarts — automatically.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
package/src/skills/deps.js
CHANGED
|
@@ -277,6 +277,27 @@ function diagnose(errorMessage, cwd) {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
// Pattern: Fastify v5 on old Node.js (tracingChannel requires Node 19.9+)
|
|
281
|
+
if (/tracingChannel is not a function/i.test(msg) || /diagnostics.*tracingChannel/i.test(msg)) {
|
|
282
|
+
const nodeVersion = parseInt(process.version.slice(1), 10);
|
|
283
|
+
if (nodeVersion < 20) {
|
|
284
|
+
return {
|
|
285
|
+
diagnosed: true,
|
|
286
|
+
category: "version_conflict",
|
|
287
|
+
summary: `Fastify v5 requires Node.js >= 20 (you have ${process.version}). diagnostics_channel.tracingChannel() was added in Node 19.9`,
|
|
288
|
+
fixes: [
|
|
289
|
+
"npm install fastify@4", // downgrade to v4 which supports Node 16+
|
|
290
|
+
],
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
diagnosed: true,
|
|
295
|
+
category: "version_conflict",
|
|
296
|
+
summary: "Fastify tracingChannel error — try reinstalling: rm -rf node_modules && npm install",
|
|
297
|
+
fixes: ["rm -rf node_modules && npm install"],
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
280
301
|
// Pattern: version/compatibility errors
|
|
281
302
|
if (/version mismatch|incompatible|peer dep|ERESOLVE/i.test(msg)) {
|
|
282
303
|
const peerIssues = checkPeerDeps(cwd);
|