tradeblocks-mcp 2.2.4 → 2.2.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/dist/{chunk-O6FQQRJV.js → chunk-UGHXXLLR.js} +15 -11
- package/dist/{chunk-O6FQQRJV.js.map → chunk-UGHXXLLR.js.map} +1 -1
- package/dist/{sync-AAV7BGOE.js → sync-OPFBFM2P.js} +2 -2
- package/dist/test-exports.js +1 -1
- package/package.json +1 -1
- package/server/{chunk-TDKK4QFM.js → chunk-RM33HDCX.js} +15 -11
- package/server/{chunk-TDKK4QFM.js.map → chunk-RM33HDCX.js.map} +1 -1
- package/server/index.js +3 -3
- package/server/{sync-T6GEBPJ7.js → sync-R3W6AELJ.js} +2 -2
- /package/dist/{sync-AAV7BGOE.js.map → sync-OPFBFM2P.js.map} +0 -0
- /package/server/{sync-T6GEBPJ7.js.map → sync-R3W6AELJ.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
syncAllBlocks,
|
|
7
7
|
syncBlock,
|
|
8
8
|
upsertSyncMetadata
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UGHXXLLR.js";
|
|
10
10
|
import "./chunk-MIVAK2ZU.js";
|
|
11
11
|
import "./chunk-PWM4JHGO.js";
|
|
12
12
|
import "./chunk-KRHCV4RF.js";
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
syncBlock,
|
|
22
22
|
upsertSyncMetadata
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=sync-
|
|
24
|
+
//# sourceMappingURL=sync-OPFBFM2P.js.map
|
package/dist/test-exports.js
CHANGED
package/package.json
CHANGED
|
@@ -808,14 +808,18 @@ async function getConnection(dataDir) {
|
|
|
808
808
|
if (isLockError(errorMessage)) {
|
|
809
809
|
const recovered = await tryRecoverLockByTerminatingStaleProcess(errorMessage, dbPath, forceRecovery);
|
|
810
810
|
if (recovered) {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
811
|
+
for (let attempt = 0; attempt < 3; attempt++) {
|
|
812
|
+
await new Promise((r) => setTimeout(r, 500 * (attempt + 1)));
|
|
813
|
+
try {
|
|
814
|
+
return await openReadWriteConnection(dbPath, threads, memoryLimit);
|
|
815
|
+
} catch (retryError) {
|
|
816
|
+
const retryMsg = retryError instanceof Error ? retryError.message : String(retryError);
|
|
817
|
+
if (attempt < 2 && isLockError(retryMsg)) continue;
|
|
818
|
+
resetConnectionState();
|
|
819
|
+
throw new Error(
|
|
820
|
+
`Failed to initialize DuckDB at ${dbPath} after lock recovery: ${retryMsg}`
|
|
821
|
+
);
|
|
822
|
+
}
|
|
819
823
|
}
|
|
820
824
|
}
|
|
821
825
|
}
|
|
@@ -858,8 +862,8 @@ async function closeConnection() {
|
|
|
858
862
|
async function upgradeToReadWrite(dataDir, options) {
|
|
859
863
|
if (connectionMode === "read_write" && connection) return connection;
|
|
860
864
|
await closeConnection();
|
|
861
|
-
const maxRetries =
|
|
862
|
-
const retryDelayMs =
|
|
865
|
+
const maxRetries = 4;
|
|
866
|
+
const retryDelayMs = 1e3;
|
|
863
867
|
let lastError = null;
|
|
864
868
|
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
865
869
|
try {
|
|
@@ -26481,4 +26485,4 @@ decimal.js/decimal.mjs:
|
|
|
26481
26485
|
* MIT Licence
|
|
26482
26486
|
*)
|
|
26483
26487
|
*/
|
|
26484
|
-
//# sourceMappingURL=chunk-
|
|
26488
|
+
//# sourceMappingURL=chunk-RM33HDCX.js.map
|