@linxiraos/pi-ai 1.1.9 → 1.1.11

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 (254) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/THIRD-PARTY-NOTICES.txt +22909 -0
  3. package/dist/types/api-registry.d.ts +30 -0
  4. package/dist/types/auth/sqlite-credential-store.d.ts +102 -0
  5. package/dist/types/auth-broker/client.d.ts +100 -0
  6. package/dist/types/auth-broker/discover.d.ts +39 -0
  7. package/dist/types/auth-broker/index.d.ts +7 -0
  8. package/dist/types/auth-broker/refresher.d.ts +25 -0
  9. package/dist/types/auth-broker/remote-store.d.ts +147 -0
  10. package/dist/types/auth-broker/server.d.ts +48 -0
  11. package/dist/types/auth-broker/snapshot-cache.d.ts +17 -0
  12. package/dist/types/auth-broker/types.d.ts +152 -0
  13. package/dist/types/auth-broker/wire-schema-resource.d.ts +53 -0
  14. package/dist/types/auth-broker/wire-schemas.d.ts +69 -0
  15. package/dist/types/auth-gateway/http.d.ts +70 -0
  16. package/dist/types/auth-gateway/index.d.ts +3 -0
  17. package/dist/types/auth-gateway/server.d.ts +36 -0
  18. package/dist/types/auth-gateway/types.d.ts +129 -0
  19. package/dist/types/auth-retry.d.ts +155 -0
  20. package/dist/types/auth-storage.d.ts +1286 -0
  21. package/dist/types/dialect/anthropic.d.ts +15 -0
  22. package/dist/types/dialect/catalog.d.ts +3 -0
  23. package/dist/types/dialect/coercion.d.ts +23 -0
  24. package/dist/types/dialect/deepseek.d.ts +14 -0
  25. package/dist/types/dialect/demotion.d.ts +30 -0
  26. package/dist/types/dialect/examples.d.ts +18 -0
  27. package/dist/types/dialect/factory.d.ts +3 -0
  28. package/dist/types/dialect/fenced-thinking.d.ts +53 -0
  29. package/dist/types/dialect/gemini.d.ts +17 -0
  30. package/dist/types/dialect/gemma.d.ts +15 -0
  31. package/dist/types/dialect/glm.d.ts +9 -0
  32. package/dist/types/dialect/harmony.d.ts +8 -0
  33. package/dist/types/dialect/hermes.d.ts +9 -0
  34. package/dist/types/dialect/history.d.ts +3 -0
  35. package/dist/types/dialect/index.d.ts +11 -0
  36. package/dist/types/dialect/inventory.d.ts +9 -0
  37. package/dist/types/dialect/kimi.d.ts +14 -0
  38. package/dist/types/dialect/minimax.d.ts +3 -0
  39. package/dist/types/dialect/owned-stream.d.ts +4 -0
  40. package/dist/types/dialect/qwen-xml.d.ts +6 -0
  41. package/dist/types/dialect/qwen3.d.ts +9 -0
  42. package/dist/types/dialect/rendering.d.ts +54 -0
  43. package/dist/types/dialect/thinking-fence-strip.d.ts +39 -0
  44. package/dist/types/dialect/thinking.d.ts +15 -0
  45. package/dist/types/dialect/types.d.ts +78 -0
  46. package/dist/types/dialect/xml.d.ts +9 -0
  47. package/dist/types/error/abort.d.ts +14 -0
  48. package/dist/types/error/auth-classify.d.ts +20 -0
  49. package/dist/types/error/auth.d.ts +27 -0
  50. package/dist/types/error/aws.d.ts +31 -0
  51. package/dist/types/error/classes.d.ts +106 -0
  52. package/dist/types/error/finalize.d.ts +41 -0
  53. package/dist/types/error/flags.d.ts +122 -0
  54. package/dist/types/error/format.d.ts +20 -0
  55. package/dist/types/error/gateway.d.ts +20 -0
  56. package/dist/types/error/index.d.ts +14 -0
  57. package/dist/types/error/oauth.d.ts +46 -0
  58. package/dist/types/error/provider.d.ts +44 -0
  59. package/dist/types/error/rate-limit.d.ts +85 -0
  60. package/dist/types/error/retryable.d.ts +20 -0
  61. package/dist/types/error/validation.d.ts +32 -0
  62. package/dist/types/index.d.ts +53 -0
  63. package/dist/types/oneshot-retry.d.ts +89 -0
  64. package/dist/types/provider-details.d.ts +24 -0
  65. package/dist/types/providers/amazon-bedrock.d.ts +58 -0
  66. package/dist/types/providers/anthropic-client.d.ts +106 -0
  67. package/dist/types/providers/anthropic-messages-server-schema.d.ts +1061 -0
  68. package/dist/types/providers/anthropic-messages-server.d.ts +17 -0
  69. package/dist/types/providers/anthropic-wire.d.ts +397 -0
  70. package/dist/types/providers/anthropic.d.ts +259 -0
  71. package/dist/types/providers/aws-credentials.d.ts +49 -0
  72. package/dist/types/providers/aws-eventstream.d.ts +39 -0
  73. package/dist/types/providers/aws-sigv4.d.ts +55 -0
  74. package/dist/types/providers/azure-openai-responses.d.ts +20 -0
  75. package/dist/types/providers/bedrock-mantle.d.ts +13 -0
  76. package/dist/types/providers/claude-code-fingerprint.d.ts +21 -0
  77. package/dist/types/providers/connect-error-detail.d.ts +14 -0
  78. package/dist/types/providers/cowork-fetch.d.ts +14 -0
  79. package/dist/types/providers/cursor/exec-modern.d.ts +98 -0
  80. package/dist/types/providers/cursor/interaction-query.d.ts +15 -0
  81. package/dist/types/providers/cursor-pi-args.d.ts +140 -0
  82. package/dist/types/providers/cursor.d.ts +258 -0
  83. package/dist/types/providers/devin.d.ts +12 -0
  84. package/dist/types/providers/error-message.d.ts +25 -0
  85. package/dist/types/providers/github-copilot-headers.d.ts +40 -0
  86. package/dist/types/providers/gitlab-duo-workflow.d.ts +254 -0
  87. package/dist/types/providers/gitlab-duo.d.ts +7 -0
  88. package/dist/types/providers/google-auth.d.ts +24 -0
  89. package/dist/types/providers/google-gemini-cli.d.ts +119 -0
  90. package/dist/types/providers/google-shared.d.ts +203 -0
  91. package/dist/types/providers/google-types.d.ts +161 -0
  92. package/dist/types/providers/google-vertex.d.ts +7 -0
  93. package/dist/types/providers/google.d.ts +4 -0
  94. package/dist/types/providers/grammar.d.ts +1 -0
  95. package/dist/types/providers/inference-headers.d.ts +24 -0
  96. package/dist/types/providers/kimi.d.ts +27 -0
  97. package/dist/types/providers/mock.d.ts +182 -0
  98. package/dist/types/providers/ollama.d.ts +8 -0
  99. package/dist/types/providers/openai-anthropic-shim.d.ts +35 -0
  100. package/dist/types/providers/openai-chat-server-schema.d.ts +1311 -0
  101. package/dist/types/providers/openai-chat-server.d.ts +16 -0
  102. package/dist/types/providers/openai-chat-wire.d.ts +669 -0
  103. package/dist/types/providers/openai-codex/request-transformer.d.ts +108 -0
  104. package/dist/types/providers/openai-codex/response-handler.d.ts +26 -0
  105. package/dist/types/providers/openai-codex-responses.d.ts +234 -0
  106. package/dist/types/providers/openai-completions.d.ts +46 -0
  107. package/dist/types/providers/openai-configuration-update.d.ts +64 -0
  108. package/dist/types/providers/openai-data-uri.d.ts +11 -0
  109. package/dist/types/providers/openai-reasoning-fallback.d.ts +33 -0
  110. package/dist/types/providers/openai-responses-server-schema.d.ts +1458 -0
  111. package/dist/types/providers/openai-responses-server.d.ts +17 -0
  112. package/dist/types/providers/openai-responses-wire.d.ts +6113 -0
  113. package/dist/types/providers/openai-responses.d.ts +136 -0
  114. package/dist/types/providers/openai-shared.d.ts +729 -0
  115. package/dist/types/providers/pi-native-client.d.ts +13 -0
  116. package/dist/types/providers/pi-native-server.d.ts +69 -0
  117. package/dist/types/providers/register-builtins.d.ts +37 -0
  118. package/dist/types/providers/synthetic.d.ts +26 -0
  119. package/dist/types/providers/transform-messages.d.ts +32 -0
  120. package/dist/types/providers/vision-guard.d.ts +15 -0
  121. package/dist/types/registry/amazon-bedrock.d.ts +3 -0
  122. package/dist/types/registry/api-key-validation.d.ts +46 -0
  123. package/dist/types/registry/aws.d.ts +15 -0
  124. package/dist/types/registry/bedrock-mantle.d.ts +3 -0
  125. package/dist/types/registry/build.d.ts +11 -0
  126. package/dist/types/registry/cloudflare-ai-gateway.d.ts +3 -0
  127. package/dist/types/registry/derived.d.ts +5 -0
  128. package/dist/types/registry/engine/api-key.d.ts +8 -0
  129. package/dist/types/registry/engine/common.d.ts +55 -0
  130. package/dist/types/registry/engine/device-code.d.ts +9 -0
  131. package/dist/types/registry/engine/oauth-code.d.ts +27 -0
  132. package/dist/types/registry/engine/refresh.d.ts +11 -0
  133. package/dist/types/registry/hooks/api-key.d.ts +8 -0
  134. package/dist/types/registry/hooks/custom.d.ts +7 -0
  135. package/dist/types/registry/hooks/device-code.d.ts +8 -0
  136. package/dist/types/registry/hooks/env.d.ts +2 -0
  137. package/dist/types/registry/hooks/index.d.ts +3 -0
  138. package/dist/types/registry/hooks/oauth-code.d.ts +8 -0
  139. package/dist/types/registry/hooks/types.d.ts +44 -0
  140. package/dist/types/registry/index.d.ts +4 -0
  141. package/dist/types/registry/muse-code.d.ts +3 -0
  142. package/dist/types/registry/oauth/alibaba-coding-plan.d.ts +2 -0
  143. package/dist/types/registry/oauth/alibaba-token-plan.d.ts +13 -0
  144. package/dist/types/registry/oauth/anthropic-constants.d.ts +12 -0
  145. package/dist/types/registry/oauth/anthropic.d.ts +32 -0
  146. package/dist/types/registry/oauth/callback-server.d.ts +76 -0
  147. package/dist/types/registry/oauth/cloudflare-ai-gateway.d.ts +3 -0
  148. package/dist/types/registry/oauth/coreweave.d.ts +1 -0
  149. package/dist/types/registry/oauth/cursor.d.ts +18 -0
  150. package/dist/types/registry/oauth/device-code.d.ts +25 -0
  151. package/dist/types/registry/oauth/github-copilot.d.ts +33 -0
  152. package/dist/types/registry/oauth/gitlab-duo.d.ts +3 -0
  153. package/dist/types/registry/oauth/google-antigravity.d.ts +11 -0
  154. package/dist/types/registry/oauth/google-gemini-cli.d.ts +19 -0
  155. package/dist/types/registry/oauth/google-oauth-shared.d.ts +32 -0
  156. package/dist/types/registry/oauth/index.d.ts +45 -0
  157. package/dist/types/registry/oauth/kilo.d.ts +2 -0
  158. package/dist/types/registry/oauth/kimi.d.ts +12 -0
  159. package/dist/types/registry/oauth/muse-code.d.ts +67 -0
  160. package/dist/types/registry/oauth/native-scheme-callback.d.ts +13 -0
  161. package/dist/types/registry/oauth/openai-codex.d.ts +26 -0
  162. package/dist/types/registry/oauth/perplexity.d.ts +9 -0
  163. package/dist/types/registry/oauth/pkce.d.ts +8 -0
  164. package/dist/types/registry/oauth/types.d.ts +89 -0
  165. package/dist/types/registry/oauth/xai-oauth.d.ts +41 -0
  166. package/dist/types/registry/oauth/xiaomi.d.ts +17 -0
  167. package/dist/types/registry/oauth/zai.d.ts +13 -0
  168. package/dist/types/registry/registry.d.ts +14 -0
  169. package/dist/types/registry/types.d.ts +82 -0
  170. package/dist/types/stream.d.ts +56 -0
  171. package/dist/types/types.d.ts +1171 -0
  172. package/dist/types/usage/alibaba-token-plan.d.ts +3 -0
  173. package/dist/types/usage/claude.d.ts +4 -0
  174. package/dist/types/usage/cline-pass.d.ts +2 -0
  175. package/dist/types/usage/cursor.d.ts +15 -0
  176. package/dist/types/usage/devin.d.ts +12 -0
  177. package/dist/types/usage/gemini.d.ts +2 -0
  178. package/dist/types/usage/github-copilot.d.ts +7 -0
  179. package/dist/types/usage/google-antigravity.d.ts +26 -0
  180. package/dist/types/usage/kimi.d.ts +4 -0
  181. package/dist/types/usage/minimax-code.d.ts +3 -0
  182. package/dist/types/usage/muse-code.d.ts +2 -0
  183. package/dist/types/usage/ollama.d.ts +5 -0
  184. package/dist/types/usage/openai-codex-base-url.d.ts +18 -0
  185. package/dist/types/usage/openai-codex-reset.d.ts +68 -0
  186. package/dist/types/usage/openai-codex.d.ts +10 -0
  187. package/dist/types/usage/opencode-go.d.ts +13 -0
  188. package/dist/types/usage/shared.d.ts +13 -0
  189. package/dist/types/usage/synthetic.d.ts +2 -0
  190. package/dist/types/usage/umans.d.ts +2 -0
  191. package/dist/types/usage/xai-oauth.d.ts +12 -0
  192. package/dist/types/usage/zai.d.ts +3 -0
  193. package/dist/types/usage.d.ts +551 -0
  194. package/dist/types/utils/abort.d.ts +25 -0
  195. package/dist/types/utils/anthropic-auth.d.ts +35 -0
  196. package/dist/types/utils/aws-profile.d.ts +17 -0
  197. package/dist/types/utils/block-symbols.d.ts +74 -0
  198. package/dist/types/utils/deterministic-id.d.ts +16 -0
  199. package/dist/types/utils/empty-completion-retry.d.ts +31 -0
  200. package/dist/types/utils/event-stream.d.ts +50 -0
  201. package/dist/types/utils/foundry.d.ts +1 -0
  202. package/dist/types/utils/glyph-codec.d.ts +22 -0
  203. package/dist/types/utils/google-validation.d.ts +2 -0
  204. package/dist/types/utils/harmony-leak.d.ts +144 -0
  205. package/dist/types/utils/http-inspector.d.ts +67 -0
  206. package/dist/types/utils/idle-iterator.d.ts +149 -0
  207. package/dist/types/utils/leaked-thinking-stream.d.ts +39 -0
  208. package/dist/types/utils/openai-http.d.ts +48 -0
  209. package/dist/types/utils/openrouter-headers.d.ts +1 -0
  210. package/dist/types/utils/parse-bind.d.ts +23 -0
  211. package/dist/types/utils/provider-response.d.ts +3 -0
  212. package/dist/types/utils/proxy.d.ts +65 -0
  213. package/dist/types/utils/request-debug.d.ts +30 -0
  214. package/dist/types/utils/retry-after.d.ts +4 -0
  215. package/dist/types/utils/schema/adapt.d.ts +24 -0
  216. package/dist/types/utils/schema/compatibility.d.ts +30 -0
  217. package/dist/types/utils/schema/dereference.d.ts +11 -0
  218. package/dist/types/utils/schema/draft.d.ts +10 -0
  219. package/dist/types/utils/schema/equality.d.ts +4 -0
  220. package/dist/types/utils/schema/fields.d.ts +54 -0
  221. package/dist/types/utils/schema/index.d.ts +14 -0
  222. package/dist/types/utils/schema/json-schema-validator.d.ts +22 -0
  223. package/dist/types/utils/schema/meta-validator.d.ts +2 -0
  224. package/dist/types/utils/schema/normalize.d.ts +163 -0
  225. package/dist/types/utils/schema/spill.d.ts +8 -0
  226. package/dist/types/utils/schema/stamps.d.ts +17 -0
  227. package/dist/types/utils/schema/strict-tool-validation.d.ts +25 -0
  228. package/dist/types/utils/schema/types.d.ts +4 -0
  229. package/dist/types/utils/schema/typescript.d.ts +24 -0
  230. package/dist/types/utils/schema/wire.d.ts +58 -0
  231. package/dist/types/utils/sdk-stream-timeout.d.ts +33 -0
  232. package/dist/types/utils/sse-debug.d.ts +5 -0
  233. package/dist/types/utils/stream-markup-healing.d.ts +84 -0
  234. package/dist/types/utils/thinking-loop.d.ts +91 -0
  235. package/dist/types/utils/tool-call-loop-guard.d.ts +26 -0
  236. package/dist/types/utils/tool-choice.d.ts +52 -0
  237. package/dist/types/utils/transport-fetch.d.ts +18 -0
  238. package/dist/types/utils/validation.d.ts +28 -0
  239. package/dist/types/utils.d.ts +65 -0
  240. package/package.json +134 -131
  241. package/src/auth-storage.ts +9 -5
  242. package/src/error/oauth.ts +2 -0
  243. package/src/index.ts +1 -0
  244. package/src/providers/openai-shared.ts +10 -6
  245. package/src/registry/engine/common.ts +13 -9
  246. package/src/registry/hooks/device-code.ts +3 -1
  247. package/src/registry/muse-code.ts +23 -0
  248. package/src/registry/oauth/index.ts +13 -21
  249. package/src/registry/oauth/muse-code.ts +174 -0
  250. package/src/registry/registry.ts +2 -0
  251. package/src/usage/muse-code.ts +158 -0
  252. package/src/usage/opencode-go.ts +8 -0
  253. package/src/usage.ts +2 -0
  254. package/src/utils/schema/json-schema-validator.ts +120 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,36 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.1.11] - 2026-09-08
6
+
7
+ ### Added
8
+
9
+ - Muse Code subscription sign-in, credential refresh, inference, and quota reporting in `/usage`, with durable rate-limit backoff so quota refresh recovers instead of repeatedly retrying.
10
+
11
+ ### Fixed
12
+
13
+ - Reasoning-off requests (e.g. GitHub Copilot `gpt-6-astra`) no longer surface `400 Unsupported value: 'none'`: the reasoning-effort fallback now recognizes `Supported values` phrasing and retries at the lowest allowed effort.
14
+ - Cursor GPT off-tier requests no longer send raw `-none` sibling ids (e.g. `gpt-5.6-sol-none-fast`), which the Run endpoint rejects; they normalize to the base model id with no reasoning parameter.
15
+ - Fixed Codex compaction timeouts triggering prolonged retries instead of advancing to the next compaction method.
16
+
17
+ ## [1.1.10-omp18.1.12] - 2026-09-06
18
+
19
+ ### Added
20
+
21
+ - Added Muse Code subscription sign-in, credential refresh, inference, and quota reporting in `/usage`, with durable rate-limit backoff so quota refresh recovers instead of repeatedly retrying.
22
+
23
+ ## [1.1.10-omp18.1.11] - 2026-09-05
24
+
25
+ ### Fixed
26
+
27
+ - Fixed OpenCode Go usage polls (`GET /zen/go/v1/usage`) missing `x-opencode-session` and omp's `User-Agent`: background polls now attribute with the stable install id so the requests OpenCode flags as `Bun fetch` carry the required session header.
28
+ - GitHub Copilot sign-in now requests only basic profile access, restoring login for Enterprise organizations that reject repository, gist, and Codespaces permissions ([#10656](https://github.com/can1357/oh-my-pi/issues/10656)).
29
+
30
+ ## [1.1.10] - 2026-09-07
31
+
32
+ - GitHub Copilot sign-in now requests only basic profile access, restoring login for Enterprise organizations that reject repository, gist, and Codespaces permissions.
33
+ - Transient gateway stream failures are now retried instead of surfacing as session errors.
34
+
5
35
  ## [1.1.9] - 2026-09-05
6
36
 
7
37
  - Z.ai OAuth key name sends zeta (merge restored the upstream oh-my-pi literal in tests); xAI/OpenAI-compatible requests send the zeta User-Agent again.