@fangyb/ahchat-bridge 0.1.37 → 0.1.38
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.cjs +1437 -1043
- package/dist/feedbackWorkerCli.cjs +66 -2
- package/dist/index.js +1419 -1026
- package/dist/seedanceMcpCli.cjs +3 -3
- package/dist/seedreamMcpCli.cjs +3 -3
- package/dist/visionMcpCli.cjs +33310 -0
- package/package.json +3 -2
package/dist/seedanceMcpCli.cjs
CHANGED
|
@@ -32907,7 +32907,7 @@ async function consumeOfficialMcpDailyQuota(serverName, toolName) {
|
|
|
32907
32907
|
});
|
|
32908
32908
|
} catch (error51) {
|
|
32909
32909
|
logger.error("Official MCP quota consume request failed", { error: error51, serverName, toolName });
|
|
32910
|
-
throw new OfficialMcpQuotaError("\u6682\u65F6\u65E0\u6CD5\u6821\u9A8C\u5B98\u65B9
|
|
32910
|
+
throw new OfficialMcpQuotaError("\u6682\u65F6\u65E0\u6CD5\u6821\u9A8C\u5B98\u65B9 MCP \u6BCF\u65E5\u989D\u5EA6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002");
|
|
32911
32911
|
}
|
|
32912
32912
|
if (response.status === 404) return;
|
|
32913
32913
|
const body = await readQuotaResponse(response);
|
|
@@ -32915,7 +32915,7 @@ async function consumeOfficialMcpDailyQuota(serverName, toolName) {
|
|
|
32915
32915
|
throw new OfficialMcpQuotaError(formatQuotaExceededMessage(serverName, body));
|
|
32916
32916
|
}
|
|
32917
32917
|
if (!response.ok) {
|
|
32918
|
-
throw new OfficialMcpQuotaError(body.message || "\u5B98\u65B9
|
|
32918
|
+
throw new OfficialMcpQuotaError(body.message || "\u5B98\u65B9 MCP \u6BCF\u65E5\u989D\u5EA6\u6821\u9A8C\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002");
|
|
32919
32919
|
}
|
|
32920
32920
|
}
|
|
32921
32921
|
async function readQuotaResponse(response) {
|
|
@@ -32931,7 +32931,7 @@ async function readQuotaResponse(response) {
|
|
|
32931
32931
|
}
|
|
32932
32932
|
function formatQuotaExceededMessage(serverName, body) {
|
|
32933
32933
|
if (body.message) return body.message;
|
|
32934
|
-
const label = serverName === "seedance" ? "\u751F\u89C6\u9891" : serverName === "seedream" ? "\u751F\u56FE" : "\u5B98\u65B9\u5A92\u4F53";
|
|
32934
|
+
const label = serverName === "seedance" ? "\u751F\u89C6\u9891" : serverName === "seedream" ? "\u751F\u56FE" : serverName === "vision" ? "\u8BC6\u56FE" : "\u5B98\u65B9\u5A92\u4F53";
|
|
32935
32935
|
if (typeof body.used === "number" && typeof body.limit === "number") {
|
|
32936
32936
|
return `\u4ECA\u5929\u7684${label}\u989D\u5EA6\u5DF2\u7528\u5B8C\uFF08${body.used}/${body.limit}\uFF09\u3002\u8BF7\u660E\u5929\u518D\u8BD5\uFF0C\u6216\u8054\u7CFB\u8FD0\u8425\u8C03\u6574\u989D\u5EA6\u3002`;
|
|
32937
32937
|
}
|
package/dist/seedreamMcpCli.cjs
CHANGED
|
@@ -32907,7 +32907,7 @@ async function consumeOfficialMcpDailyQuota(serverName, toolName) {
|
|
|
32907
32907
|
});
|
|
32908
32908
|
} catch (error51) {
|
|
32909
32909
|
logger.error("Official MCP quota consume request failed", { error: error51, serverName, toolName });
|
|
32910
|
-
throw new OfficialMcpQuotaError("\u6682\u65F6\u65E0\u6CD5\u6821\u9A8C\u5B98\u65B9
|
|
32910
|
+
throw new OfficialMcpQuotaError("\u6682\u65F6\u65E0\u6CD5\u6821\u9A8C\u5B98\u65B9 MCP \u6BCF\u65E5\u989D\u5EA6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002");
|
|
32911
32911
|
}
|
|
32912
32912
|
if (response.status === 404) return;
|
|
32913
32913
|
const body = await readQuotaResponse(response);
|
|
@@ -32915,7 +32915,7 @@ async function consumeOfficialMcpDailyQuota(serverName, toolName) {
|
|
|
32915
32915
|
throw new OfficialMcpQuotaError(formatQuotaExceededMessage(serverName, body));
|
|
32916
32916
|
}
|
|
32917
32917
|
if (!response.ok) {
|
|
32918
|
-
throw new OfficialMcpQuotaError(body.message || "\u5B98\u65B9
|
|
32918
|
+
throw new OfficialMcpQuotaError(body.message || "\u5B98\u65B9 MCP \u6BCF\u65E5\u989D\u5EA6\u6821\u9A8C\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002");
|
|
32919
32919
|
}
|
|
32920
32920
|
}
|
|
32921
32921
|
async function readQuotaResponse(response) {
|
|
@@ -32931,7 +32931,7 @@ async function readQuotaResponse(response) {
|
|
|
32931
32931
|
}
|
|
32932
32932
|
function formatQuotaExceededMessage(serverName, body) {
|
|
32933
32933
|
if (body.message) return body.message;
|
|
32934
|
-
const label = serverName === "seedance" ? "\u751F\u89C6\u9891" : serverName === "seedream" ? "\u751F\u56FE" : "\u5B98\u65B9\u5A92\u4F53";
|
|
32934
|
+
const label = serverName === "seedance" ? "\u751F\u89C6\u9891" : serverName === "seedream" ? "\u751F\u56FE" : serverName === "vision" ? "\u8BC6\u56FE" : "\u5B98\u65B9\u5A92\u4F53";
|
|
32935
32935
|
if (typeof body.used === "number" && typeof body.limit === "number") {
|
|
32936
32936
|
return `\u4ECA\u5929\u7684${label}\u989D\u5EA6\u5DF2\u7528\u5B8C\uFF08${body.used}/${body.limit}\uFF09\u3002\u8BF7\u660E\u5929\u518D\u8BD5\uFF0C\u6216\u8054\u7CFB\u8FD0\u8425\u8C03\u6574\u989D\u5EA6\u3002`;
|
|
32937
32937
|
}
|