@kenhkl/agent-gate 0.5.5 → 0.5.6

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 CHANGED
@@ -50,7 +50,7 @@ var init_version = __esm({
50
50
  "src/version.ts"() {
51
51
  "use strict";
52
52
  init_cjs_shims();
53
- _version = true ? "0.5.5" : (() => {
53
+ _version = true ? "0.5.6" : (() => {
54
54
  try {
55
55
  const require2 = createRequire(importMetaUrl);
56
56
  const pkg = require2("../package.json");
@@ -640,7 +640,9 @@ async function callAgentMoss(request) {
640
640
  method: "POST",
641
641
  headers: { "Content-Type": "application/json" },
642
642
  body: JSON.stringify(request),
643
- timeout: 3e4
643
+ // 100s:覆盖 AgentMoss 总超时(90s)+ 余量,避免 AgentMoss 还在分析时
644
+ // 被 AgentGate 抢断后 fail-closed 误杀。AgentGate 这层不重试(AgentMoss 内部已重试)。
645
+ timeout: 1e5
644
646
  });
645
647
  if (!resp.ok) {
646
648
  console.error(`[AgentGate] AgentMoss HTTP ${resp.status}: ${resp.statusText}`);