exomind 0.7.1 → 0.8.0
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/cli.js +6 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3119,7 +3119,7 @@ var {
|
|
|
3119
3119
|
// package.json
|
|
3120
3120
|
var package_default = {
|
|
3121
3121
|
name: "exomind",
|
|
3122
|
-
version: "0.
|
|
3122
|
+
version: "0.8.0",
|
|
3123
3123
|
description: "ExoMind \u8DE8\u5E73\u53F0\u547D\u4EE4\u884C\u5BA2\u6237\u7AEF \u2014 \u901A\u8FC7 REST \u4E0E ExoMind \u77E5\u8BC6\u5E93\u4EA4\u4E92(ingest/query/search/review),\u66FF\u4EE3 Windows \u4E0D\u53EF\u7528\u7684 MCP \u5BA2\u6237\u7AEF\u3002",
|
|
3124
3124
|
bin: {
|
|
3125
3125
|
exomind: "dist/cli.js"
|
|
@@ -3942,10 +3942,11 @@ async function ingestWithRetry(client, payload, timeoutMs, url = "/ingest") {
|
|
|
3942
3942
|
await suspendUntilMidnight(Number(e.body?.reset ?? 0));
|
|
3943
3943
|
continue;
|
|
3944
3944
|
}
|
|
3945
|
-
if (type === "rate_limit") {
|
|
3946
|
-
if (++rateAttempts >= 5) throw new ApiError(429, "\
|
|
3947
|
-
const retry = Number(e.headers["retry-after"] ?? e.body?.retry_after ?? 5);
|
|
3948
|
-
|
|
3945
|
+
if (type === "rate_limit" || type === void 0) {
|
|
3946
|
+
if (++rateAttempts >= 5) throw new ApiError(429, "\u9650\u6D41,\u91CD\u8BD5 5 \u6B21\u4ECD\u5931\u8D25");
|
|
3947
|
+
const retry = Math.min(Number(e.headers["retry-after"] ?? e.body?.retry_after ?? 5), 60);
|
|
3948
|
+
const label = type === void 0 ? "\u8BF7\u6C42\u9891\u7387\u8D85\u9650" : "\u5E76\u53D1\u9650\u6D41";
|
|
3949
|
+
process.stderr.write(dim(` \u23F8 ${label},${retry}s \u540E\u91CD\u8BD5
|
|
3949
3950
|
`));
|
|
3950
3951
|
await sleep(retry * 1e3);
|
|
3951
3952
|
continue;
|