@naylence/agent-sdk 0.3.4-test.725 → 0.3.4-test.727
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/dist/browser/index.js
CHANGED
|
@@ -15671,12 +15671,12 @@
|
|
|
15671
15671
|
// --- END ENV SHIM ---
|
|
15672
15672
|
|
|
15673
15673
|
// This file is auto-generated during build - do not edit manually
|
|
15674
|
-
// Generated from package.json version: 0.3.5-test.
|
|
15674
|
+
// Generated from package.json version: 0.3.5-test.929
|
|
15675
15675
|
/**
|
|
15676
15676
|
* The package version, injected at build time.
|
|
15677
15677
|
* @internal
|
|
15678
15678
|
*/
|
|
15679
|
-
const VERSION$1 = '0.3.5-test.
|
|
15679
|
+
const VERSION$1 = '0.3.5-test.929';
|
|
15680
15680
|
|
|
15681
15681
|
/**
|
|
15682
15682
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -16648,12 +16648,26 @@
|
|
|
16648
16648
|
});
|
|
16649
16649
|
return;
|
|
16650
16650
|
}
|
|
16651
|
-
//
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
error
|
|
16655
|
-
|
|
16656
|
-
|
|
16651
|
+
// Check if this is a retriable connection error (will be logged and retried by FSM)
|
|
16652
|
+
const isRetriableError = error.name === 'FameConnectError' ||
|
|
16653
|
+
error.message.includes('missed heartbeat') ||
|
|
16654
|
+
error.message.includes('Timeout waiting for');
|
|
16655
|
+
// Log retriable errors as warnings (they'll be retried by upstream logic)
|
|
16656
|
+
// Log non-retriable errors as errors (fatal failures)
|
|
16657
|
+
if (isRetriableError) {
|
|
16658
|
+
logger$1b.warning('background_task_failed', {
|
|
16659
|
+
task_name: taskName,
|
|
16660
|
+
error: error.message,
|
|
16661
|
+
retriable: true,
|
|
16662
|
+
});
|
|
16663
|
+
}
|
|
16664
|
+
else {
|
|
16665
|
+
logger$1b.error('background_task_failed', {
|
|
16666
|
+
task_name: taskName,
|
|
16667
|
+
error: error.message,
|
|
16668
|
+
stack: error.stack,
|
|
16669
|
+
});
|
|
16670
|
+
}
|
|
16657
16671
|
if (this._lastSpawnerError === null) {
|
|
16658
16672
|
this._lastSpawnerError = error;
|
|
16659
16673
|
}
|