@infernetprotocol/cli 0.1.49 → 0.1.50

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/lib/vllm.js +15 -4
  2. package/package.json +7 -7
package/lib/vllm.js CHANGED
@@ -112,7 +112,7 @@ const VLLM_ERROR_PATTERNS = [
112
112
  * few useless traceback frames. Finds the first genuine error line and returns
113
113
  * a window around it; falls back to the plain tail if nothing matches.
114
114
  */
115
- export async function extractVllmError({ context = 24, fallbackTail = 60 } = {}) {
115
+ export async function extractVllmError({ headLines = 16, tailLines = 30, fallbackTail = 60 } = {}) {
116
116
  let txt;
117
117
  try {
118
118
  txt = await fs.readFile(logPath(), 'utf8');
@@ -128,9 +128,20 @@ export async function extractVllmError({ context = 24, fallbackTail = 60 } = {})
128
128
  if (firstErr === -1) {
129
129
  return lines.slice(-fallbackTail).join('\n').trim();
130
130
  }
131
- const start = Math.max(0, firstErr - 2);
132
- const end = Math.min(lines.length, firstErr + context);
133
- return lines.slice(start, end).join('\n').trim();
131
+ // The error region runs from the first error line to the end of the log.
132
+ // vLLM's ACTUAL exception (RuntimeError/OutOfMemory/ValueError) is the LAST
133
+ // line of the traceback, so we must show the tail — not just the head where
134
+ // the "EngineCore failed to start" banner sits. For a long region, show the
135
+ // banner + the final exception with the middle elided.
136
+ const region = lines.slice(Math.max(0, firstErr - 2));
137
+ if (region.length <= headLines + tailLines) {
138
+ return region.join('\n').trim();
139
+ }
140
+ return [
141
+ ...region.slice(0, headLines),
142
+ ` … (${region.length - headLines - tailLines} lines elided) …`,
143
+ ...region.slice(-tailLines),
144
+ ].join('\n').trim();
134
145
  }
135
146
 
136
147
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infernetprotocol/cli",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "GPU-node CLI / daemon for the Infernet Protocol — register a GPU server with a Supabase control plane and start earning.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,12 +30,12 @@
30
30
  "ora": "^9.4.0",
31
31
  "react": "^17.0.2",
32
32
  "react-blessed": "^0.7.2",
33
- "@infernetprotocol/auth": "0.1.49",
34
- "@infernetprotocol/config": "0.1.49",
35
- "@infernetprotocol/engine": "0.1.49",
36
- "@infernetprotocol/gpu": "0.1.49",
37
- "@infernetprotocol/deploy-providers": "0.1.49",
38
- "@infernetprotocol/rpc-adapter": "0.1.49"
33
+ "@infernetprotocol/auth": "0.1.50",
34
+ "@infernetprotocol/config": "0.1.50",
35
+ "@infernetprotocol/engine": "0.1.50",
36
+ "@infernetprotocol/gpu": "0.1.50",
37
+ "@infernetprotocol/deploy-providers": "0.1.50",
38
+ "@infernetprotocol/rpc-adapter": "0.1.50"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",