@tansr/sdk 0.7.1 → 0.7.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
@@ -28806,7 +28806,11 @@ function twpErrorToIR(code, message, detail) {
28806
28806
  return {
28807
28807
  kind: mapped.kind,
28808
28808
  message: text,
28809
- recoverable: mapped.recoverable,
28809
+ // S-TH4(2026-09-01):服务端确定性拒绝声明恒胜码表——detail.retryable
28810
+ // === false 即不可恢复(上游 4xx 同参重发恒同拒;gpt-5.6-sol 实证
28811
+ // reasoning_effort×tools 400 被 upstream_error 码表重试 14 次的风暴止血)。
28812
+ // 加法容忍:键缺席/异型恒走码表现状。
28813
+ recoverable: detail?.["retryable"] === false ? false : mapped.recoverable,
28810
28814
  ...retryAfterMs !== void 0 ? { retryAfterMs } : {}
28811
28815
  };
28812
28816
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tansr/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Tansr public TypeScript SDK: headless agent API (query / createSession / runAgent) + pure protocol type re-exports (public, MIT).",
5
5
  "license": "MIT",
6
6
  "type": "module",