create-claude-workspace 1.1.78 → 1.1.79
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.
|
@@ -321,6 +321,13 @@ export function runClaude(opts, log, runOpts = {}) {
|
|
|
321
321
|
const event = parseStreamEvent(line);
|
|
322
322
|
if (!event) {
|
|
323
323
|
log.debug(`Non-JSON: ${line.slice(0, 200)}`);
|
|
324
|
+
// Check non-JSON stdout lines for error signals (e.g. "You've hit your limit" printed as plain text)
|
|
325
|
+
const lower = line.toLowerCase();
|
|
326
|
+
detectTextSignals(lower);
|
|
327
|
+
// Append to stderr so parseUsageLimitResetMs can find reset time
|
|
328
|
+
if (USAGE_LIMIT_RE.test(lower) || RATE_LIMIT_RE.test(lower) || AUTH_ERROR_RE.test(lower)) {
|
|
329
|
+
stderr += line + '\n';
|
|
330
|
+
}
|
|
324
331
|
continue;
|
|
325
332
|
}
|
|
326
333
|
// Extract session ID
|