@linxiraos/pi-ai 1.1.0 → 1.1.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 (292) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +6 -6
  3. package/THIRD-PARTY-NOTICES.txt +22909 -0
  4. package/dist/types/api-registry.d.ts +30 -0
  5. package/dist/types/auth/sqlite-credential-store.d.ts +102 -0
  6. package/dist/types/auth-broker/client.d.ts +100 -0
  7. package/dist/types/auth-broker/discover.d.ts +39 -0
  8. package/dist/types/auth-broker/index.d.ts +7 -0
  9. package/dist/types/auth-broker/refresher.d.ts +25 -0
  10. package/dist/types/auth-broker/remote-store.d.ts +136 -0
  11. package/dist/types/auth-broker/server.d.ts +48 -0
  12. package/dist/types/auth-broker/snapshot-cache.d.ts +17 -0
  13. package/dist/types/auth-broker/types.d.ts +152 -0
  14. package/dist/types/auth-broker/wire-schema-resource.d.ts +53 -0
  15. package/dist/types/auth-broker/wire-schemas.d.ts +69 -0
  16. package/dist/types/auth-gateway/http.d.ts +56 -0
  17. package/dist/types/auth-gateway/index.d.ts +3 -0
  18. package/dist/types/auth-gateway/server.d.ts +36 -0
  19. package/dist/types/auth-gateway/types.d.ts +127 -0
  20. package/dist/types/auth-retry.d.ts +155 -0
  21. package/dist/types/auth-storage.d.ts +1270 -0
  22. package/dist/types/dialect/anthropic.d.ts +15 -0
  23. package/dist/types/dialect/catalog.d.ts +3 -0
  24. package/dist/types/dialect/coercion.d.ts +23 -0
  25. package/dist/types/dialect/deepseek.d.ts +14 -0
  26. package/dist/types/dialect/demotion.d.ts +30 -0
  27. package/dist/types/dialect/examples.d.ts +18 -0
  28. package/dist/types/dialect/factory.d.ts +3 -0
  29. package/dist/types/dialect/fenced-thinking.d.ts +53 -0
  30. package/dist/types/dialect/gemini.d.ts +17 -0
  31. package/dist/types/dialect/gemma.d.ts +15 -0
  32. package/dist/types/dialect/glm.d.ts +9 -0
  33. package/dist/types/dialect/harmony.d.ts +8 -0
  34. package/dist/types/dialect/hermes.d.ts +9 -0
  35. package/dist/types/dialect/history.d.ts +3 -0
  36. package/dist/types/dialect/index.d.ts +11 -0
  37. package/dist/types/dialect/inventory.d.ts +9 -0
  38. package/dist/types/dialect/kimi.d.ts +14 -0
  39. package/dist/types/dialect/minimax.d.ts +3 -0
  40. package/dist/types/dialect/owned-stream.d.ts +4 -0
  41. package/dist/types/dialect/qwen-xml.d.ts +6 -0
  42. package/dist/types/dialect/qwen3.d.ts +9 -0
  43. package/dist/types/dialect/rendering.d.ts +54 -0
  44. package/dist/types/dialect/thinking-fence-strip.d.ts +39 -0
  45. package/dist/types/dialect/thinking.d.ts +6 -0
  46. package/dist/types/dialect/types.d.ts +68 -0
  47. package/dist/types/dialect/xml.d.ts +9 -0
  48. package/dist/types/error/abort.d.ts +14 -0
  49. package/dist/types/error/auth-classify.d.ts +20 -0
  50. package/dist/types/error/auth.d.ts +27 -0
  51. package/dist/types/error/aws.d.ts +31 -0
  52. package/dist/types/error/classes.d.ts +106 -0
  53. package/dist/types/error/finalize.d.ts +41 -0
  54. package/dist/types/error/flags.d.ts +122 -0
  55. package/dist/types/error/format.d.ts +20 -0
  56. package/dist/types/error/gateway.d.ts +20 -0
  57. package/dist/types/error/index.d.ts +14 -0
  58. package/dist/types/error/oauth.d.ts +44 -0
  59. package/dist/types/error/provider.d.ts +44 -0
  60. package/dist/types/error/rate-limit.d.ts +83 -0
  61. package/dist/types/error/retryable.d.ts +27 -0
  62. package/dist/types/error/validation.d.ts +32 -0
  63. package/dist/types/index.d.ts +53 -0
  64. package/dist/types/oneshot-retry.d.ts +89 -0
  65. package/dist/types/provider-details.d.ts +24 -0
  66. package/dist/types/providers/amazon-bedrock.d.ts +51 -0
  67. package/dist/types/providers/anthropic-client.d.ts +106 -0
  68. package/dist/types/providers/anthropic-messages-server-schema.d.ts +937 -0
  69. package/dist/types/providers/anthropic-messages-server.d.ts +17 -0
  70. package/dist/types/providers/anthropic-wire.d.ts +358 -0
  71. package/dist/types/providers/anthropic.d.ts +258 -0
  72. package/dist/types/providers/aws-credentials.d.ts +49 -0
  73. package/dist/types/providers/aws-eventstream.d.ts +39 -0
  74. package/dist/types/providers/aws-sigv4.d.ts +55 -0
  75. package/dist/types/providers/azure-openai-responses.d.ts +17 -0
  76. package/dist/types/providers/bedrock-mantle.d.ts +13 -0
  77. package/dist/types/providers/claude-code-fingerprint.d.ts +19 -0
  78. package/dist/types/providers/connect-error-detail.d.ts +14 -0
  79. package/dist/types/providers/cowork-fetch.d.ts +14 -0
  80. package/dist/types/providers/cursor/exec-modern.d.ts +98 -0
  81. package/dist/types/providers/cursor/interaction-query.d.ts +15 -0
  82. package/dist/types/providers/cursor-pi-args.d.ts +140 -0
  83. package/dist/types/providers/cursor.d.ts +256 -0
  84. package/dist/types/providers/devin.d.ts +12 -0
  85. package/dist/types/providers/error-message.d.ts +25 -0
  86. package/dist/types/providers/github-copilot-headers.d.ts +40 -0
  87. package/dist/types/providers/gitlab-duo-workflow.d.ts +254 -0
  88. package/dist/types/providers/gitlab-duo.d.ts +27 -0
  89. package/dist/types/providers/google-auth.d.ts +24 -0
  90. package/dist/types/providers/google-gemini-cli.d.ts +119 -0
  91. package/dist/types/providers/google-shared.d.ts +203 -0
  92. package/dist/types/providers/google-types.d.ts +161 -0
  93. package/dist/types/providers/google-vertex.d.ts +7 -0
  94. package/dist/types/providers/google.d.ts +4 -0
  95. package/dist/types/providers/grammar.d.ts +1 -0
  96. package/dist/types/providers/kimi.d.ts +27 -0
  97. package/dist/types/providers/mock.d.ts +181 -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 +111 -0
  104. package/dist/types/providers/openai-codex/response-handler.d.ts +26 -0
  105. package/dist/types/providers/openai-codex-responses.d.ts +238 -0
  106. package/dist/types/providers/openai-completions.d.ts +48 -0
  107. package/dist/types/providers/openai-reasoning-fallback.d.ts +33 -0
  108. package/dist/types/providers/openai-responses-server-schema.d.ts +1314 -0
  109. package/dist/types/providers/openai-responses-server.d.ts +17 -0
  110. package/dist/types/providers/openai-responses-wire.d.ts +6099 -0
  111. package/dist/types/providers/openai-responses.d.ts +132 -0
  112. package/dist/types/providers/openai-shared.d.ts +687 -0
  113. package/dist/types/providers/pi-native-client.d.ts +13 -0
  114. package/dist/types/providers/pi-native-server.d.ts +69 -0
  115. package/dist/types/providers/register-builtins.d.ts +37 -0
  116. package/dist/types/providers/synthetic.d.ts +26 -0
  117. package/dist/types/providers/transform-messages.d.ts +32 -0
  118. package/dist/types/providers/vision-guard.d.ts +41 -0
  119. package/dist/types/registry/aiand.d.ts +7 -0
  120. package/dist/types/registry/aimlapi.d.ts +4 -0
  121. package/dist/types/registry/alibaba-coding-plan.d.ts +8 -0
  122. package/dist/types/registry/alibaba-token-plan.d.ts +18 -0
  123. package/dist/types/registry/amazon-bedrock.d.ts +10 -0
  124. package/dist/types/registry/anthropic.d.ts +10 -0
  125. package/dist/types/registry/api-key-login.d.ts +44 -0
  126. package/dist/types/registry/api-key-validation.d.ts +43 -0
  127. package/dist/types/registry/aws.d.ts +15 -0
  128. package/dist/types/registry/azure.d.ts +4 -0
  129. package/dist/types/registry/baseten.d.ts +7 -0
  130. package/dist/types/registry/bedrock-mantle.d.ts +22 -0
  131. package/dist/types/registry/cerebras.d.ts +7 -0
  132. package/dist/types/registry/cloudflare-ai-gateway.d.ts +13 -0
  133. package/dist/types/registry/coreweave.d.ts +7 -0
  134. package/dist/types/registry/cursor.d.ts +7 -0
  135. package/dist/types/registry/deepseek.d.ts +8 -0
  136. package/dist/types/registry/derived.d.ts +5 -0
  137. package/dist/types/registry/devin.d.ts +8 -0
  138. package/dist/types/registry/exa.d.ts +8 -0
  139. package/dist/types/registry/firepass.d.ts +16 -0
  140. package/dist/types/registry/fireworks.d.ts +7 -0
  141. package/dist/types/registry/github-copilot.d.ts +7 -0
  142. package/dist/types/registry/gitlab-duo-workflow.d.ts +10 -0
  143. package/dist/types/registry/gitlab-duo.d.ts +9 -0
  144. package/dist/types/registry/gmi-cloud.d.ts +7 -0
  145. package/dist/types/registry/google-antigravity.d.ts +9 -0
  146. package/dist/types/registry/google-gemini-cli.d.ts +9 -0
  147. package/dist/types/registry/google-vertex.d.ts +5 -0
  148. package/dist/types/registry/google.d.ts +4 -0
  149. package/dist/types/registry/groq.d.ts +4 -0
  150. package/dist/types/registry/huggingface.d.ts +7 -0
  151. package/dist/types/registry/index.d.ts +4 -0
  152. package/dist/types/registry/kagi.d.ts +14 -0
  153. package/dist/types/registry/kilo.d.ts +7 -0
  154. package/dist/types/registry/kimi-code.d.ts +7 -0
  155. package/dist/types/registry/litellm.d.ts +13 -0
  156. package/dist/types/registry/llama-cpp.d.ts +8 -0
  157. package/dist/types/registry/lm-studio.d.ts +8 -0
  158. package/dist/types/registry/meta.d.ts +7 -0
  159. package/dist/types/registry/minimax-code-cn.d.ts +6 -0
  160. package/dist/types/registry/minimax-code.d.ts +6 -0
  161. package/dist/types/registry/minimax.d.ts +4 -0
  162. package/dist/types/registry/mistral.d.ts +4 -0
  163. package/dist/types/registry/moonshot.d.ts +7 -0
  164. package/dist/types/registry/nanogpt.d.ts +7 -0
  165. package/dist/types/registry/novita.d.ts +6 -0
  166. package/dist/types/registry/nvidia.d.ts +7 -0
  167. package/dist/types/registry/oauth/anthropic-constants.d.ts +12 -0
  168. package/dist/types/registry/oauth/anthropic.d.ts +24 -0
  169. package/dist/types/registry/oauth/callback-server.d.ts +74 -0
  170. package/dist/types/registry/oauth/cursor.d.ts +16 -0
  171. package/dist/types/registry/oauth/device-code.d.ts +25 -0
  172. package/dist/types/registry/oauth/devin.d.ts +5 -0
  173. package/dist/types/registry/oauth/github-copilot.d.ts +30 -0
  174. package/dist/types/registry/oauth/gitlab-duo-workflow.d.ts +6 -0
  175. package/dist/types/registry/oauth/gitlab-duo.d.ts +3 -0
  176. package/dist/types/registry/oauth/google-antigravity.d.ts +15 -0
  177. package/dist/types/registry/oauth/google-gemini-cli.d.ts +22 -0
  178. package/dist/types/registry/oauth/google-oauth-shared.d.ts +56 -0
  179. package/dist/types/registry/oauth/index.d.ts +44 -0
  180. package/dist/types/registry/oauth/kimi.d.ts +21 -0
  181. package/dist/types/registry/oauth/minimax-code.d.ts +27 -0
  182. package/dist/types/registry/oauth/openai-codex.d.ts +33 -0
  183. package/dist/types/registry/oauth/opencode.d.ts +25 -0
  184. package/dist/types/registry/oauth/perplexity.d.ts +9 -0
  185. package/dist/types/registry/oauth/pkce.d.ts +8 -0
  186. package/dist/types/registry/oauth/types.d.ts +88 -0
  187. package/dist/types/registry/oauth/wafer.d.ts +1 -0
  188. package/dist/types/registry/oauth/xai-oauth.d.ts +46 -0
  189. package/dist/types/registry/oauth/xiaomi.d.ts +25 -0
  190. package/dist/types/registry/oauth/zai.d.ts +25 -0
  191. package/dist/types/registry/ollama-cloud.d.ts +7 -0
  192. package/dist/types/registry/ollama.d.ts +12 -0
  193. package/dist/types/registry/openai-codex-device.d.ts +8 -0
  194. package/dist/types/registry/openai-codex.d.ts +9 -0
  195. package/dist/types/registry/openai.d.ts +4 -0
  196. package/dist/types/registry/opencode-go.d.ts +6 -0
  197. package/dist/types/registry/opencode-zen.d.ts +6 -0
  198. package/dist/types/registry/openrouter.d.ts +13 -0
  199. package/dist/types/registry/parallel.d.ts +14 -0
  200. package/dist/types/registry/perplexity.d.ts +7 -0
  201. package/dist/types/registry/qianfan.d.ts +7 -0
  202. package/dist/types/registry/qwen-portal.d.ts +7 -0
  203. package/dist/types/registry/registry.d.ts +372 -0
  204. package/dist/types/registry/sakana.d.ts +7 -0
  205. package/dist/types/registry/siliconflow-cn.d.ts +7 -0
  206. package/dist/types/registry/siliconflow.d.ts +7 -0
  207. package/dist/types/registry/synthetic.d.ts +6 -0
  208. package/dist/types/registry/tavily.d.ts +14 -0
  209. package/dist/types/registry/together.d.ts +6 -0
  210. package/dist/types/registry/types.d.ts +76 -0
  211. package/dist/types/registry/umans.d.ts +7 -0
  212. package/dist/types/registry/venice.d.ts +13 -0
  213. package/dist/types/registry/vercel-ai-gateway.d.ts +7 -0
  214. package/dist/types/registry/vllm.d.ts +7 -0
  215. package/dist/types/registry/wafer-serverless.d.ts +6 -0
  216. package/dist/types/registry/xai-oauth.d.ts +7 -0
  217. package/dist/types/registry/xai.d.ts +7 -0
  218. package/dist/types/registry/xiaomi-token-plan-ams.d.ts +6 -0
  219. package/dist/types/registry/xiaomi-token-plan-cn.d.ts +6 -0
  220. package/dist/types/registry/xiaomi-token-plan-sgp.d.ts +6 -0
  221. package/dist/types/registry/xiaomi.d.ts +6 -0
  222. package/dist/types/registry/zai.d.ts +15 -0
  223. package/dist/types/registry/zenmux.d.ts +7 -0
  224. package/dist/types/registry/zhipu-coding-plan.d.ts +7 -0
  225. package/dist/types/stream.d.ts +53 -0
  226. package/dist/types/types.d.ts +1126 -0
  227. package/dist/types/usage/alibaba-token-plan.d.ts +3 -0
  228. package/dist/types/usage/claude.d.ts +4 -0
  229. package/dist/types/usage/cursor.d.ts +15 -0
  230. package/dist/types/usage/gemini.d.ts +2 -0
  231. package/dist/types/usage/github-copilot.d.ts +7 -0
  232. package/dist/types/usage/google-antigravity.d.ts +15 -0
  233. package/dist/types/usage/kimi.d.ts +4 -0
  234. package/dist/types/usage/minimax-code.d.ts +3 -0
  235. package/dist/types/usage/ollama.d.ts +5 -0
  236. package/dist/types/usage/openai-codex-base-url.d.ts +18 -0
  237. package/dist/types/usage/openai-codex-reset.d.ts +68 -0
  238. package/dist/types/usage/openai-codex.d.ts +10 -0
  239. package/dist/types/usage/opencode-go.d.ts +13 -0
  240. package/dist/types/usage/shared.d.ts +13 -0
  241. package/dist/types/usage/synthetic.d.ts +2 -0
  242. package/dist/types/usage/umans.d.ts +2 -0
  243. package/dist/types/usage/xai-oauth.d.ts +12 -0
  244. package/dist/types/usage/zai.d.ts +3 -0
  245. package/dist/types/usage.d.ts +518 -0
  246. package/dist/types/utils/abort.d.ts +25 -0
  247. package/dist/types/utils/anthropic-auth.d.ts +35 -0
  248. package/dist/types/utils/aws-profile.d.ts +17 -0
  249. package/dist/types/utils/block-symbols.d.ts +74 -0
  250. package/dist/types/utils/deterministic-id.d.ts +16 -0
  251. package/dist/types/utils/empty-completion-retry.d.ts +22 -0
  252. package/dist/types/utils/event-stream.d.ts +50 -0
  253. package/dist/types/utils/foundry.d.ts +1 -0
  254. package/dist/types/utils/glyph-codec.d.ts +22 -0
  255. package/dist/types/utils/google-validation.d.ts +2 -0
  256. package/dist/types/utils/harmony-leak.d.ts +135 -0
  257. package/dist/types/utils/http-inspector.d.ts +49 -0
  258. package/dist/types/utils/idle-iterator.d.ts +149 -0
  259. package/dist/types/utils/leaked-thinking-stream.d.ts +33 -0
  260. package/dist/types/utils/openai-http.d.ts +48 -0
  261. package/dist/types/utils/openrouter-headers.d.ts +1 -0
  262. package/dist/types/utils/parse-bind.d.ts +23 -0
  263. package/dist/types/utils/provider-response.d.ts +3 -0
  264. package/dist/types/utils/proxy.d.ts +58 -0
  265. package/dist/types/utils/request-debug.d.ts +29 -0
  266. package/dist/types/utils/retry-after.d.ts +4 -0
  267. package/dist/types/utils/retry.d.ts +14 -0
  268. package/dist/types/utils/schema/adapt.d.ts +24 -0
  269. package/dist/types/utils/schema/compatibility.d.ts +30 -0
  270. package/dist/types/utils/schema/dereference.d.ts +11 -0
  271. package/dist/types/utils/schema/draft.d.ts +10 -0
  272. package/dist/types/utils/schema/equality.d.ts +4 -0
  273. package/dist/types/utils/schema/fields.d.ts +54 -0
  274. package/dist/types/utils/schema/index.d.ts +14 -0
  275. package/dist/types/utils/schema/json-schema-validator.d.ts +20 -0
  276. package/dist/types/utils/schema/meta-validator.d.ts +2 -0
  277. package/dist/types/utils/schema/normalize.d.ts +153 -0
  278. package/dist/types/utils/schema/spill.d.ts +8 -0
  279. package/dist/types/utils/schema/stamps.d.ts +17 -0
  280. package/dist/types/utils/schema/strict-tool-validation.d.ts +25 -0
  281. package/dist/types/utils/schema/types.d.ts +4 -0
  282. package/dist/types/utils/schema/typescript.d.ts +24 -0
  283. package/dist/types/utils/schema/wire.d.ts +58 -0
  284. package/dist/types/utils/sdk-stream-timeout.d.ts +33 -0
  285. package/dist/types/utils/sse-debug.d.ts +5 -0
  286. package/dist/types/utils/stream-markup-healing.d.ts +87 -0
  287. package/dist/types/utils/thinking-loop.d.ts +94 -0
  288. package/dist/types/utils/tool-call-loop-guard.d.ts +26 -0
  289. package/dist/types/utils/tool-choice.d.ts +52 -0
  290. package/dist/types/utils/validation.d.ts +28 -0
  291. package/dist/types/utils.d.ts +57 -0
  292. package/package.json +137 -134
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.1.2] - 2026-08-25
6
+
7
+ ### Fixed
8
+
9
+ - Republished as 1.1.2 to reset the `latest` tag after the broken 1.1.0 (no functional change over 1.1.1).
10
+
11
+ ## [1.1.1] - 2026-08-25
12
+
13
+ ### Fixed
14
+
15
+ - Published tarballs now carry real dependency versions instead of Bun's `catalog:` protocol (1.1.0 installs failed with "Unsupported URL Type catalog:").
16
+
5
17
  ## [1.1.0] - 2026-08-25
6
18
 
7
19
  ### Changed
package/README.md CHANGED
@@ -1070,14 +1070,14 @@ Official docs: [Application Default Credentials](https://cloud.google.com/docs/a
1070
1070
 
1071
1071
  ### CLI Login
1072
1072
 
1073
- Authenticate via the [`omp`](https://omp.sh) coding-agent CLI, which drives this library's OAuth/API-key flows in-process and persists into `agent.db`:
1073
+ Authenticate via the [`zeta`](https://linxira-os.github.io/zeta/) coding-agent CLI, which drives this library's OAuth/API-key flows in-process and persists into `agent.db`:
1074
1074
 
1075
1075
  ```bash
1076
- omp auth-broker login # interactive provider selection
1077
- omp auth-broker login anthropic # login to a specific provider
1078
- omp auth-broker login vllm # store vLLM API key (or placeholder for local no-auth)
1079
- omp auth-broker list # list supported providers
1080
- omp auth-broker logout # interactive — pick a stored credential to remove
1076
+ zeta auth-broker login # interactive provider selection
1077
+ zeta auth-broker login anthropic # login to a specific provider
1078
+ zeta auth-broker login vllm # store vLLM API key (or placeholder for local no-auth)
1079
+ zeta auth-broker list # list supported providers
1080
+ zeta auth-broker logout # interactive — pick a stored credential to remove
1081
1081
  ```
1082
1082
 
1083
1083
  Credentials are saved to `agent.db` in the agent directory. `/login qianfan` opens the Qianfan console and stores the pasted API key.