wolverine-ai 3.9.3 → 3.9.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wolverine-ai",
3
- "version": "3.9.3",
3
+ "version": "3.9.5",
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": {
@@ -114,7 +114,7 @@ const SEED_DOCS = [
114
114
  metadata: { topic: "sub-agent-tools" },
115
115
  },
116
116
  {
117
- text: "Heal pipeline with analytics categories matching 9 model roles: (1) Injection scan AUDIT_MODEL 'audit'. (2) Fast path single-shot repair CODING_MODEL → 'coding'. (3) Main agent with tools REASONING_MODEL 'reasoning'. (4) Sub-agents: explore/plan/verify CLASSIFIER_MODEL 'classifier'; fix/database TOOL_MODEL 'tool'; research RESEARCH_MODEL 'research'; security AUDIT_MODEL 'audit'. (5) Brain compaction COMPACTING_MODEL 'compacting'. (6) Embeddings EMBEDDING_MODEL 'embedding'. (7) Notifier/perf summaries CHAT_MODEL 'chat'. All 9 roles tracked: reasoning, coding, chat, tool, classifier, audit, compacting, research, embedding. Billing: all calls go through unified credit proxy (WOLVERINE_API_KEY). Billing errors (402) stop healing immediately.",
117
+ text: "Heal pipeline analytics categories track ACTIVITY not model slot. Every heal fires: (1) audit: injection scan. (2) classifier: AI classifies error complexity. (3) research: deep research for moderate/complex errors. (4) coding: fast path single-shot repair (no tools). (5) tool: main agent + sub-agents that USE tools (read_file, write_file, bash_exec, etc). (6) chat: post-heal summary. (7) compacting: brain text compression. (8) embedding: brain vectors. (9) reasoning: reserved for deep analysis without tools. Key: agent using tools = 'tool' category regardless of which model slot (reasoning/coding) provided the model. Fast path code gen without tools = 'coding'. Sub-agent explore/verify/fix = 'tool' (they use tools). Sub-agent plan = 'classifier' (no tools, just classifies). Billing: unified credit proxy. 402 stops healing immediately.",
118
118
  metadata: { topic: "heal-escalation" },
119
119
  },
120
120
  {
@@ -176,7 +176,10 @@ function safeUpdate(cwd, options = {}) {
176
176
  if (isGit) {
177
177
  console.log(chalk.blue(" 📦 Selective git update (server/ untouched)"));
178
178
  // ONLY update framework files — never touch server/ or its deps
179
- const frameworkPaths = "src/ bin/ examples/ tests/ CLAUDE.md README.md CHANGELOG.md .npmignore";
179
+ // Only checkout paths that exist in the remote to avoid errors
180
+ const allPaths = ["src/", "bin/", "examples/", "tests/", "CLAUDE.md", "README.md", "CHANGELOG.md", ".npmignore"];
181
+ const remotePaths = execSync("git ls-tree --name-only origin/master", { cwd, encoding: "utf-8", timeout: 5000 }).trim().split("\n");
182
+ const frameworkPaths = allPaths.filter(p => remotePaths.some(r => r === p.replace("/", "") || r.startsWith(p))).join(" ");
180
183
  execSync(`git checkout origin/master -- ${frameworkPaths}`, { cwd, stdio: "pipe", timeout: 30000 });
181
184
  // Update package.json separately, then install deps to restore anything lost
182
185
  execSync("git checkout origin/master -- package.json", { cwd, stdio: "pipe", timeout: 10000 });