@tansr/serve 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -56935,7 +56935,11 @@ function twpErrorToIR(code, message, detail) {
56935
56935
  return {
56936
56936
  kind: mapped.kind,
56937
56937
  message: text,
56938
- recoverable: mapped.recoverable,
56938
+ // S-TH4(2026-09-01):服务端确定性拒绝声明恒胜码表——detail.retryable
56939
+ // === false 即不可恢复(上游 4xx 同参重发恒同拒;gpt-5.6-sol 实证
56940
+ // reasoning_effort×tools 400 被 upstream_error 码表重试 14 次的风暴止血)。
56941
+ // 加法容忍:键缺席/异型恒走码表现状。
56942
+ recoverable: detail?.["retryable"] === false ? false : mapped.recoverable,
56939
56943
  ...retryAfterMs !== void 0 ? { retryAfterMs } : {}
56940
56944
  };
56941
56945
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tansr/serve",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Tansr agent session server: the bare /v2 agent-session protocol engine (REST + SSE) you embed in your own Node service. Session auth is fully yours via the authenticate seam. Published as @tansr/serve (decided 2026-09-01); the pack script stamps the publish name into the tarball.",
5
5
  "license": "MIT",
6
6
  "type": "module",