@psnext/slingcli 2.5.20260629-1 → 2.5.20260705-1

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 (380) hide show
  1. package/node_modules/@aws/lambda-invoke-store/README.md +25 -1
  2. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +12 -0
  3. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +12 -0
  4. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +6 -0
  5. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  6. package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
  7. package/node_modules/@aws-sdk/core/client.d.ts +1 -3
  8. package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
  9. package/node_modules/@aws-sdk/core/package.json +10 -17
  10. package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
  11. package/node_modules/@aws-sdk/core/util.d.ts +1 -3
  12. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  13. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
  14. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
  15. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
  16. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
  17. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +4 -4
  18. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
  19. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  20. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  21. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  22. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  23. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
  24. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  25. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
  26. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
  27. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
  28. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  29. package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
  30. package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +13 -25
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +13 -17
  33. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +12 -15
  34. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +12 -15
  35. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -25
  36. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
  37. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
  38. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
  39. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +1 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
  41. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
  42. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +8 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +1 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
  48. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
  49. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
  50. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js +6 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js +1 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
  60. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +1 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js +6 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
  67. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
  68. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +1 -0
  69. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
  70. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
  71. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
  72. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +1 -0
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
  83. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -0
  84. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -2
  85. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -2
  86. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -2
  87. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
  88. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
  89. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
  90. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/index.d.ts +1 -0
  91. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -2
  92. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -2
  93. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -2
  94. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
  95. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
  96. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
  97. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -0
  98. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
  99. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
  100. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
  101. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  102. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
  103. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
  104. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
  105. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +1 -0
  106. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -2
  107. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -2
  108. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -2
  109. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
  110. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
  111. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
  112. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
  113. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
  114. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +8 -2
  115. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +8 -2
  116. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +8 -2
  117. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
  118. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
  119. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
  120. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
  121. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +8 -2
  122. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +8 -2
  123. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +8 -2
  124. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
  125. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
  126. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
  127. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
  128. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +8 -2
  129. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +8 -2
  130. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +8 -2
  131. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
  132. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
  133. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
  134. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
  135. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +8 -2
  136. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +8 -2
  137. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +8 -2
  138. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  139. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
  140. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
  141. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
  142. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
  143. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -2
  144. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +8 -2
  145. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -2
  146. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
  147. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
  148. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
  149. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
  150. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +4 -4
  151. package/node_modules/@aws-sdk/nested-clients/package.json +8 -10
  152. package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
  153. package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
  154. package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
  155. package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
  156. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  157. package/node_modules/@aws-sdk/types/package.json +2 -2
  158. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
  159. package/node_modules/@aws-sdk/xml-builder/package.json +3 -4
  160. package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +10 -1
  161. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +4 -6
  162. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +20 -2
  163. package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  164. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +2 -14
  165. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +16 -5
  166. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +2 -1
  167. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +2 -1
  168. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +54 -19
  169. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +8 -3
  170. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +2 -14
  171. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +2 -1
  172. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +15 -45
  173. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +124 -4
  174. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +18 -0
  175. package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +18 -0
  176. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +18 -0
  177. package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +4 -3
  178. package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +57 -0
  179. package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -1
  180. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +4 -4
  181. package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +4 -4
  182. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +5 -5
  183. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +75 -2
  184. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +105 -88
  185. package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +2 -2
  186. package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +41 -4
  187. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +12 -12
  188. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +12 -12
  189. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +12 -12
  190. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +15 -15
  191. package/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +109 -0
  192. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js +15 -2
  193. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +3 -2
  194. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -0
  195. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +1 -0
  196. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  197. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +35 -4
  198. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +13 -5
  199. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +5 -8
  200. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +6 -0
  201. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +33 -1
  202. package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +28 -1
  203. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +14 -17
  204. package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +1 -1
  205. package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +0 -10
  206. package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +87 -68
  207. package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +8 -0
  208. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +20 -5
  209. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +2 -2
  210. package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -1
  211. package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +1 -1
  212. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +15 -7
  213. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-entry.js +52 -0
  214. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +13 -1
  215. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/status-indicator.js +60 -0
  216. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js +18 -5
  217. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +143 -130
  218. package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +7 -0
  219. package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -12
  220. package/node_modules/@earendil-works/pi-coding-agent/package.json +4 -4
  221. package/node_modules/@earendil-works/pi-orchestrator/package.json +2 -2
  222. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  223. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +358 -145
  224. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +462 -142
  225. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +358 -145
  226. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +18 -0
  227. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +108 -63
  228. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +11 -8
  229. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -8
  230. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -2
  231. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +30 -36
  232. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +85 -137
  233. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +30 -36
  234. package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +30 -0
  235. package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +24 -0
  236. package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +7 -1
  237. package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +7 -1
  238. package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +7 -1
  239. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js +92 -0
  240. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js +29 -0
  241. package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js +179 -0
  242. package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js +59 -0
  243. package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js +71 -0
  244. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -0
  245. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js +17 -0
  246. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js +6 -1
  247. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js +92 -0
  248. package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js +3 -0
  249. package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +3 -56
  250. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js +5 -3
  251. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js +7 -6
  252. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -1
  253. package/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js +15 -0
  254. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +2 -0
  255. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
  256. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +2 -0
  257. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +35 -27
  258. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js +2 -1
  259. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +12 -38
  260. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +18 -33
  261. package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js +3 -0
  262. package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js +3 -0
  263. package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +18 -0
  264. package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +18 -0
  265. package/node_modules/@smithy/core/dist-types/submodules/checksum/index.browser.d.ts +7 -1
  266. package/node_modules/@smithy/core/dist-types/submodules/checksum/index.d.ts +7 -1
  267. package/node_modules/@smithy/core/dist-types/submodules/checksum/index.native.d.ts +7 -1
  268. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Js.d.ts +19 -0
  269. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Node.d.ts +17 -0
  270. package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
  271. package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
  272. package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
  273. package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -0
  274. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client-command-builder.d.ts +22 -0
  275. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/command.d.ts +5 -6
  276. package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.d.ts +7 -0
  277. package/node_modules/@smithy/core/dist-types/submodules/config/defaults-mode/constants.d.ts +12 -0
  278. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +4 -5
  279. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +4 -5
  280. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.d.ts +3 -4
  281. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/endpointMiddleware.d.ts +1 -2
  282. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/getEndpointPlugin.d.ts +1 -2
  283. package/node_modules/@smithy/core/dist-types/submodules/serde/concatBytes.d.ts +6 -0
  284. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +2 -0
  285. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
  286. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +2 -0
  287. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +29 -12
  288. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +8 -2
  289. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.d.ts +4 -1
  290. package/node_modules/@smithy/core/package.json +5 -5
  291. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  292. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -55
  293. package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -2
  294. package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -2
  295. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  296. package/node_modules/@smithy/signature-v4/package.json +3 -4
  297. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  298. package/node_modules/@smithy/types/package.json +1 -1
  299. package/node_modules/@types/node/README.md +1 -1
  300. package/node_modules/@types/node/buffer.d.ts +64 -25
  301. package/node_modules/@types/node/crypto.d.ts +18 -5
  302. package/node_modules/@types/node/diagnostics_channel.d.ts +237 -3
  303. package/node_modules/@types/node/dns.d.ts +1 -1
  304. package/node_modules/@types/node/ffi.d.ts +486 -0
  305. package/node_modules/@types/node/fs/promises.d.ts +3 -0
  306. package/node_modules/@types/node/fs.d.ts +21 -6
  307. package/node_modules/@types/node/http.d.ts +25 -0
  308. package/node_modules/@types/node/index.d.ts +1 -0
  309. package/node_modules/@types/node/package.json +2 -2
  310. package/node_modules/@types/node/process.d.ts +14 -1
  311. package/node_modules/@types/node/quic.d.ts +92 -11
  312. package/node_modules/@types/node/sqlite.d.ts +55 -0
  313. package/node_modules/@types/node/stream/iter.d.ts +150 -0
  314. package/node_modules/@types/node/stream.d.ts +32 -0
  315. package/node_modules/@types/node/test.d.ts +112 -2
  316. package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  317. package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  318. package/node_modules/@types/node/util.d.ts +19 -2
  319. package/node_modules/@types/node/v8.d.ts +84 -2
  320. package/node_modules/@types/node/worker_threads.d.ts +8 -7
  321. package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
  322. package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
  323. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  324. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  325. package/node_modules/protobufjs/dist/protobuf.js +5 -2
  326. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  327. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  328. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  329. package/node_modules/protobufjs/package.json +1 -1
  330. package/node_modules/protobufjs/src/parse.js +3 -0
  331. package/package.json +7 -7
  332. package/slingshot/index.js +261 -261
  333. package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -100
  334. package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
  335. package/node_modules/@aws-crypto/crc32/README.md +0 -16
  336. package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.d.ts +0 -7
  337. package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +0 -31
  338. package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js.map +0 -1
  339. package/node_modules/@aws-crypto/crc32/build/main/index.d.ts +0 -7
  340. package/node_modules/@aws-crypto/crc32/build/main/index.js +0 -108
  341. package/node_modules/@aws-crypto/crc32/build/main/index.js.map +0 -1
  342. package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.d.ts +0 -7
  343. package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js +0 -28
  344. package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js.map +0 -1
  345. package/node_modules/@aws-crypto/crc32/build/module/index.d.ts +0 -7
  346. package/node_modules/@aws-crypto/crc32/build/module/index.js +0 -103
  347. package/node_modules/@aws-crypto/crc32/build/module/index.js.map +0 -1
  348. package/node_modules/@aws-crypto/crc32/package.json +0 -32
  349. package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
  350. package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
  351. package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -9
  352. package/node_modules/@aws-crypto/crc32/tsconfig.module.json +0 -7
  353. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
  354. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
  355. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
  356. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
  357. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
  358. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
  359. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
  360. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
  361. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
  362. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
  363. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
  364. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
  365. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
  366. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
  367. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
  368. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
  369. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
  370. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
  371. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
  372. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -234
  373. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +0 -3
  374. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +0 -168
  375. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/constants.d.ts +0 -12
  376. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/md5.d.ts +0 -16
  377. package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -53
  378. package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
  379. /package/node_modules/@smithy/{core/dist-es/submodules/endpoints/middleware-endpoint/types.js → types/dist-es/endpoints/EndpointParameterInstructions.js} +0 -0
  380. /package/node_modules/@smithy/{core/dist-types/submodules/endpoints/middleware-endpoint/types.d.ts → types/dist-types/endpoints/EndpointParameterInstructions.d.ts} +0 -0
@@ -1,24 +1,16 @@
1
- var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
2
- if (typeof path === "string" && /^\.\.?\//.test(path)) {
3
- return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
4
- return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
5
- });
1
+ function loadNodeOs() {
2
+ if (typeof process === "undefined" || !(process.versions?.node || process.versions?.bun)) {
3
+ return null;
6
4
  }
7
- return path;
8
- };
9
- // NEVER convert to top-level runtime imports - breaks browser/Vite builds
10
- let _os = null;
11
- const dynamicImport = (specifier) => import(__rewriteRelativeImportExtension(specifier));
12
- const NODE_OS_SPECIFIER = "node:" + "os";
13
- if (typeof process !== "undefined" && (process.versions?.node || process.versions?.bun)) {
14
- dynamicImport(NODE_OS_SPECIFIER).then((m) => {
15
- _os = m;
16
- });
5
+ return process.getBuiltinModule?.("node:os") ?? null;
17
6
  }
7
+ // NEVER convert to top-level runtime imports - breaks browser/Vite builds
8
+ const _os = loadNodeOs();
18
9
  import { clampThinkingLevel } from "../models.js";
19
10
  import { registerSessionResourceCleanup } from "../session-resources.js";
20
11
  import { combineAbortSignals } from "../utils/abort-signals.js";
21
12
  import { appendAssistantMessageDiagnostic, createAssistantMessageDiagnostic, formatThrownValue, } from "../utils/diagnostics.js";
13
+ import { formatProviderError, normalizeProviderError } from "../utils/error-body.js";
22
14
  import { AssistantMessageEventStream } from "../utils/event-stream.js";
23
15
  import { headersToRecord } from "../utils/headers.js";
24
16
  import { resolveHttpProxyUrlForTarget } from "../utils/node-http-proxy.js";
@@ -34,6 +26,9 @@ const DEFAULT_MAX_RETRIES = 0;
34
26
  const BASE_DELAY_MS = 1000;
35
27
  const DEFAULT_MAX_RETRY_DELAY_MS = 60_000;
36
28
  const DEFAULT_WEBSOCKET_CONNECT_TIMEOUT_MS = 15_000;
29
+ // The Codex backend accepts zstd-compressed request bodies on the SSE responses
30
+ // endpoint (the same endpoint the official Codex client compresses against).
31
+ const REQUEST_COMPRESSION_ZSTD_LEVEL = 3;
37
32
  const CODEX_TOOL_CALL_PROVIDERS = new Set(["openai", "openai-codex", "opencode"]);
38
33
  const WEBSOCKET_MESSAGE_TOO_BIG_CLOSE_CODE = 1009;
39
34
  const WEBSOCKET_CONNECTION_LIMIT_REACHED_CODE = "websocket_connection_limit_reached";
@@ -107,6 +102,30 @@ function normalizeTimeoutMs(value) {
107
102
  }
108
103
  return Math.floor(value);
109
104
  }
105
+ function loadNodeZlib() {
106
+ if (typeof process === "undefined" || !(process.versions?.node || process.versions?.bun)) {
107
+ return null;
108
+ }
109
+ return process.getBuiltinModule?.("node:zlib") ?? null;
110
+ }
111
+ // Returns the zstd-compressed body bytes, or null when compression is
112
+ // unavailable (browser/Vite builds). Callers fall back to sending the
113
+ // uncompressed JSON when this returns null.
114
+ function compressRequestBodyZstd(bodyJson) {
115
+ const zlib = loadNodeZlib();
116
+ if (!zlib || typeof zlib.zstdCompressSync !== "function") {
117
+ return null;
118
+ }
119
+ try {
120
+ const compressed = zlib.zstdCompressSync(bodyJson, {
121
+ params: { [zlib.constants.ZSTD_c_compressionLevel]: REQUEST_COMPRESSION_ZSTD_LEVEL },
122
+ });
123
+ return new Uint8Array(compressed.buffer, compressed.byteOffset, compressed.byteLength);
124
+ }
125
+ catch {
126
+ return null;
127
+ }
128
+ }
110
129
  // ============================================================================
111
130
  // Main Stream Function
112
131
  // ============================================================================
@@ -198,6 +217,14 @@ export const stream = (model, context, options) => {
198
217
  }
199
218
  }
200
219
  }
220
+ // Compress the request body once for the SSE path. The Codex backend
221
+ // decodes Content-Encoding: zstd; the WebSocket transport above sends the
222
+ // uncompressed JSON frame, matching the official Codex client.
223
+ const compressedBody = compressRequestBodyZstd(bodyJson);
224
+ if (compressedBody) {
225
+ sseHeaders.set("content-encoding", "zstd");
226
+ }
227
+ const sseBody = compressedBody ?? bodyJson;
201
228
  // Fetch with retry logic for rate limits and transient errors
202
229
  let response;
203
230
  let lastError;
@@ -213,7 +240,7 @@ export const stream = (model, context, options) => {
213
240
  response = await fetch(resolveCodexUrl(model.baseUrl), {
214
241
  method: "POST",
215
242
  headers: sseHeaders,
216
- body: bodyJson,
243
+ body: sseBody,
217
244
  signal: combinedSignal.signal,
218
245
  });
219
246
  }
@@ -285,7 +312,7 @@ export const stream = (model, context, options) => {
285
312
  delete block.partialJson;
286
313
  }
287
314
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
288
- output.errorMessage = error instanceof Error ? error.message : String(error);
315
+ output.errorMessage = formatProviderError(normalizeProviderError(error));
289
316
  stream.push({ type: "error", reason: output.stopReason, error: output });
290
317
  stream.end();
291
318
  }
@@ -538,6 +565,7 @@ async function* parseSSE(response, signal) {
538
565
  // ============================================================================
539
566
  const OPENAI_BETA_RESPONSES_WEBSOCKETS = "responses_websockets=2026-02-06";
540
567
  const SESSION_WEBSOCKET_CACHE_TTL_MS = 5 * 60 * 1000;
568
+ const SESSION_WEBSOCKET_MAX_AGE_MS = 55 * 60 * 1000;
541
569
  const websocketSessionCache = new Map();
542
570
  const websocketDebugStats = new Map();
543
571
  const websocketSseFallbackSessions = new Set();
@@ -662,6 +690,9 @@ function isWebSocketReusable(socket) {
662
690
  // If readyState is unavailable, assume the runtime keeps it open/reusable.
663
691
  return readyState === undefined || readyState === 1;
664
692
  }
693
+ function isWebSocketSessionExpired(entry) {
694
+ return Date.now() - entry.createdAt >= SESSION_WEBSOCKET_MAX_AGE_MS;
695
+ }
665
696
  function closeWebSocketSilently(socket, code = 1000, reason = "done") {
666
697
  try {
667
698
  socket.close(code, reason);
@@ -762,7 +793,11 @@ async function acquireWebSocket(url, headers, sessionId, signal, connectTimeoutM
762
793
  clearTimeout(cached.idleTimer);
763
794
  cached.idleTimer = undefined;
764
795
  }
765
- if (!cached.busy && isWebSocketReusable(cached.socket)) {
796
+ if (!cached.busy && isWebSocketSessionExpired(cached)) {
797
+ closeWebSocketSilently(cached.socket, 1000, "connection_age_limit");
798
+ websocketSessionCache.delete(sessionId);
799
+ }
800
+ else if (!cached.busy && isWebSocketReusable(cached.socket)) {
766
801
  cached.busy = true;
767
802
  return {
768
803
  socket: cached.socket,
@@ -795,7 +830,7 @@ async function acquireWebSocket(url, headers, sessionId, signal, connectTimeoutM
795
830
  }
796
831
  }
797
832
  const socket = await connectWebSocket(url, headers, signal, connectTimeoutMs, env);
798
- const entry = { socket, busy: true };
833
+ const entry = { socket, busy: true, createdAt: Date.now() };
799
834
  websocketSessionCache.set(sessionId, entry);
800
835
  return {
801
836
  socket,
@@ -1,5 +1,6 @@
1
1
  import OpenAI from "openai";
2
2
  import { calculateCost, clampThinkingLevel } from "../models.js";
3
+ import { formatProviderError, normalizeProviderError } from "../utils/error-body.js";
3
4
  import { AssistantMessageEventStream } from "../utils/event-stream.js";
4
5
  import { headersToRecord } from "../utils/headers.js";
5
6
  import { parseStreamingJson } from "../utils/json-parse.js";
@@ -366,11 +367,15 @@ export const stream = (model, context, options) => {
366
367
  delete block.streamIndex;
367
368
  }
368
369
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
369
- output.errorMessage = error instanceof Error ? error.message : JSON.stringify(error);
370
+ output.errorMessage = formatProviderError(normalizeProviderError(error));
370
371
  // Some providers via OpenRouter give additional information in this field.
372
+ // normalizeProviderError already stringifies the parsed body (error.error)
373
+ // into errorMessage, so only append the raw metadata when it is not already
374
+ // present to avoid double-printing it.
371
375
  const rawMetadata = error?.error?.metadata?.raw;
372
- if (rawMetadata)
376
+ if (rawMetadata && !output.errorMessage.includes(String(rawMetadata))) {
373
377
  output.errorMessage += `\n${rawMetadata}`;
378
+ }
374
379
  stream.push({ type: "error", reason: output.stopReason, error: output });
375
380
  stream.end();
376
381
  }
@@ -463,7 +468,7 @@ function buildParams(model, context, options, compat = getCompat(model), cacheRe
463
468
  }
464
469
  if (compat.thinkingFormat === "zai" && model.reasoning) {
465
470
  const zaiParams = params;
466
- zaiParams.thinking = { type: options?.reasoningEffort ? "enabled" : "disabled" };
471
+ zaiParams.thinking = options?.reasoningEffort ? { type: "enabled", clear_thinking: false } : { type: "disabled" };
467
472
  if (options?.reasoningEffort && compat.supportsReasoningEffort) {
468
473
  const mappedEffort = model.thinkingLevelMap?.[options.reasoningEffort];
469
474
  const effort = mappedEffort === undefined ? options.reasoningEffort : mappedEffort;
@@ -1,5 +1,6 @@
1
1
  import OpenAI from "openai";
2
2
  import { clampThinkingLevel } from "../models.js";
3
+ import { formatProviderError, normalizeProviderError } from "../utils/error-body.js";
3
4
  import { AssistantMessageEventStream } from "../utils/event-stream.js";
4
5
  import { headersToRecord } from "../utils/headers.js";
5
6
  import { getProviderEnvValue } from "../utils/provider-env.js";
@@ -49,20 +50,7 @@ function getPromptCacheRetention(compat, cacheRetention) {
49
50
  return cacheRetention === "long" && compat.supportsLongCacheRetention ? "24h" : undefined;
50
51
  }
51
52
  function formatOpenAIResponsesError(error) {
52
- if (error instanceof Error) {
53
- const status = error.status;
54
- const statusCode = typeof status === "number" ? status : undefined;
55
- if (statusCode !== undefined) {
56
- return `OpenAI API error (${statusCode}): ${error.message}`;
57
- }
58
- return error.message;
59
- }
60
- try {
61
- return JSON.stringify(error);
62
- }
63
- catch {
64
- return String(error);
65
- }
53
+ return formatProviderError(normalizeProviderError(error), "OpenAI API error");
66
54
  }
67
55
  /**
68
56
  * Generate function for OpenAI Responses API
@@ -1,4 +1,5 @@
1
1
  import OpenAI from "openai";
2
+ import { formatProviderError, normalizeProviderError } from "../utils/error-body.js";
2
3
  import { headersToRecord, providerHeadersToRecord } from "../utils/headers.js";
3
4
  import { sanitizeSurrogates } from "../utils/sanitize-unicode.js";
4
5
  export const generateImages = async (model, context, options) => {
@@ -59,7 +60,7 @@ export const generateImages = async (model, context, options) => {
59
60
  }
60
61
  catch (error) {
61
62
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
62
- output.errorMessage = error instanceof Error ? error.message : JSON.stringify(error);
63
+ output.errorMessage = formatProviderError(normalizeProviderError(error));
63
64
  return output;
64
65
  }
65
66
  };
@@ -152,6 +152,21 @@ export const IMAGE_MODELS = {
152
152
  "cacheWrite": 0
153
153
  }
154
154
  },
155
+ "google/gemini-3.1-flash-lite-image": {
156
+ id: "google/gemini-3.1-flash-lite-image",
157
+ name: "Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)",
158
+ api: "openrouter-images",
159
+ provider: "openrouter",
160
+ baseUrl: "https://openrouter.ai/api/v1",
161
+ input: ["image", "text"],
162
+ output: ["image", "text"],
163
+ cost: {
164
+ "input": 0.25,
165
+ "output": 1.5,
166
+ "cacheRead": 0,
167
+ "cacheWrite": 0
168
+ }
169
+ },
155
170
  "microsoft/mai-image-2.5": {
156
171
  id: "microsoft/mai-image-2.5",
157
172
  name: "Microsoft: MAI-Image-2.5",
@@ -452,36 +467,6 @@ export const IMAGE_MODELS = {
452
467
  "cacheWrite": 0
453
468
  }
454
469
  },
455
- "sourceful/riverflow-v2-fast-preview": {
456
- id: "sourceful/riverflow-v2-fast-preview",
457
- name: "Sourceful: Riverflow V2 Fast Preview",
458
- api: "openrouter-images",
459
- provider: "openrouter",
460
- baseUrl: "https://openrouter.ai/api/v1",
461
- input: ["text", "image"],
462
- output: ["image"],
463
- cost: {
464
- "input": 0,
465
- "output": 0,
466
- "cacheRead": 0,
467
- "cacheWrite": 0
468
- }
469
- },
470
- "sourceful/riverflow-v2-max-preview": {
471
- id: "sourceful/riverflow-v2-max-preview",
472
- name: "Sourceful: Riverflow V2 Max Preview",
473
- api: "openrouter-images",
474
- provider: "openrouter",
475
- baseUrl: "https://openrouter.ai/api/v1",
476
- input: ["text", "image"],
477
- output: ["image"],
478
- cost: {
479
- "input": 0,
480
- "output": 0,
481
- "cacheRead": 0,
482
- "cacheWrite": 0
483
- }
484
- },
485
470
  "sourceful/riverflow-v2-pro": {
486
471
  id: "sourceful/riverflow-v2-pro",
487
472
  name: "Sourceful: Riverflow V2 Pro",
@@ -497,21 +482,6 @@ export const IMAGE_MODELS = {
497
482
  "cacheWrite": 0
498
483
  }
499
484
  },
500
- "sourceful/riverflow-v2-standard-preview": {
501
- id: "sourceful/riverflow-v2-standard-preview",
502
- name: "Sourceful: Riverflow V2 Standard Preview",
503
- api: "openrouter-images",
504
- provider: "openrouter",
505
- baseUrl: "https://openrouter.ai/api/v1",
506
- input: ["text", "image"],
507
- output: ["image"],
508
- cost: {
509
- "input": 0,
510
- "output": 0,
511
- "cacheRead": 0,
512
- "cacheWrite": 0
513
- }
514
- },
515
485
  "sourceful/riverflow-v2.5-fast": {
516
486
  id: "sourceful/riverflow-v2.5-fast",
517
487
  name: "Sourceful: Riverflow V2.5 Fast",
@@ -69,6 +69,24 @@ export const AMAZON_BEDROCK_MODELS = {
69
69
  contextWindow: 300000,
70
70
  maxTokens: 8192,
71
71
  },
72
+ "anthropic.claude-fable-5": {
73
+ id: "anthropic.claude-fable-5",
74
+ name: "Claude Fable 5",
75
+ api: "bedrock-converse-stream",
76
+ provider: "amazon-bedrock",
77
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
78
+ reasoning: true,
79
+ thinkingLevelMap: { "off": null, "xhigh": "xhigh" },
80
+ input: ["text", "image"],
81
+ cost: {
82
+ input: 10,
83
+ output: 50,
84
+ cacheRead: 1,
85
+ cacheWrite: 12.5,
86
+ },
87
+ contextWindow: 1000000,
88
+ maxTokens: 128000,
89
+ },
72
90
  "anthropic.claude-haiku-4-5-20251001-v1:0": {
73
91
  id: "anthropic.claude-haiku-4-5-20251001-v1:0",
74
92
  name: "Claude Haiku 4.5",
@@ -208,6 +226,23 @@ export const AMAZON_BEDROCK_MODELS = {
208
226
  contextWindow: 1000000,
209
227
  maxTokens: 64000,
210
228
  },
229
+ "anthropic.claude-sonnet-5": {
230
+ id: "anthropic.claude-sonnet-5",
231
+ name: "Claude Sonnet 5",
232
+ api: "bedrock-converse-stream",
233
+ provider: "amazon-bedrock",
234
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
235
+ reasoning: true,
236
+ input: ["text", "image"],
237
+ cost: {
238
+ input: 2,
239
+ output: 10,
240
+ cacheRead: 0.2,
241
+ cacheWrite: 2.5,
242
+ },
243
+ contextWindow: 1000000,
244
+ maxTokens: 128000,
245
+ },
211
246
  "au.anthropic.claude-haiku-4-5-20251001-v1:0": {
212
247
  id: "au.anthropic.claude-haiku-4-5-20251001-v1:0",
213
248
  name: "Claude Haiku 4.5 (AU)",
@@ -237,8 +272,8 @@ export const AMAZON_BEDROCK_MODELS = {
237
272
  cost: {
238
273
  input: 16.5,
239
274
  output: 82.5,
240
- cacheRead: 0.5,
241
- cacheWrite: 6.25,
275
+ cacheRead: 1.65,
276
+ cacheWrite: 20.625,
242
277
  },
243
278
  contextWindow: 1000000,
244
279
  maxTokens: 128000,
@@ -295,6 +330,23 @@ export const AMAZON_BEDROCK_MODELS = {
295
330
  contextWindow: 1000000,
296
331
  maxTokens: 128000,
297
332
  },
333
+ "au.anthropic.claude-sonnet-5": {
334
+ id: "au.anthropic.claude-sonnet-5",
335
+ name: "Claude Sonnet 5 (AU)",
336
+ api: "bedrock-converse-stream",
337
+ provider: "amazon-bedrock",
338
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
339
+ reasoning: true,
340
+ input: ["text", "image"],
341
+ cost: {
342
+ input: 2,
343
+ output: 10,
344
+ cacheRead: 0.2,
345
+ cacheWrite: 2.5,
346
+ },
347
+ contextWindow: 1000000,
348
+ maxTokens: 128000,
349
+ },
298
350
  "deepseek.r1-v1:0": {
299
351
  id: "deepseek.r1-v1:0",
300
352
  name: "DeepSeek-R1",
@@ -410,8 +462,8 @@ export const AMAZON_BEDROCK_MODELS = {
410
462
  cost: {
411
463
  input: 5.5,
412
464
  output: 27.5,
413
- cacheRead: 0.5,
414
- cacheWrite: 6.25,
465
+ cacheRead: 0.55,
466
+ cacheWrite: 6.875,
415
467
  },
416
468
  contextWindow: 1000000,
417
469
  maxTokens: 128000,
@@ -486,6 +538,23 @@ export const AMAZON_BEDROCK_MODELS = {
486
538
  contextWindow: 1000000,
487
539
  maxTokens: 64000,
488
540
  },
541
+ "eu.anthropic.claude-sonnet-5": {
542
+ id: "eu.anthropic.claude-sonnet-5",
543
+ name: "Claude Sonnet 5 (EU)",
544
+ api: "bedrock-converse-stream",
545
+ provider: "amazon-bedrock",
546
+ baseUrl: "https://bedrock-runtime.eu-central-1.amazonaws.com",
547
+ reasoning: true,
548
+ input: ["text", "image"],
549
+ cost: {
550
+ input: 2.2,
551
+ output: 11,
552
+ cacheRead: 0.22,
553
+ cacheWrite: 2.75,
554
+ },
555
+ contextWindow: 1000000,
556
+ maxTokens: 128000,
557
+ },
489
558
  "global.anthropic.claude-fable-5": {
490
559
  id: "global.anthropic.claude-fable-5",
491
560
  name: "Claude Fable 5 (Global)",
@@ -626,6 +695,23 @@ export const AMAZON_BEDROCK_MODELS = {
626
695
  contextWindow: 1000000,
627
696
  maxTokens: 64000,
628
697
  },
698
+ "global.anthropic.claude-sonnet-5": {
699
+ id: "global.anthropic.claude-sonnet-5",
700
+ name: "Claude Sonnet 5 (Global)",
701
+ api: "bedrock-converse-stream",
702
+ provider: "amazon-bedrock",
703
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
704
+ reasoning: true,
705
+ input: ["text", "image"],
706
+ cost: {
707
+ input: 2,
708
+ output: 10,
709
+ cacheRead: 0.2,
710
+ cacheWrite: 2.5,
711
+ },
712
+ contextWindow: 1000000,
713
+ maxTokens: 128000,
714
+ },
629
715
  "google.gemma-3-27b-it": {
630
716
  id: "google.gemma-3-27b-it",
631
717
  name: "Google Gemma 3 27B Instruct",
@@ -730,6 +816,23 @@ export const AMAZON_BEDROCK_MODELS = {
730
816
  contextWindow: 1000000,
731
817
  maxTokens: 64000,
732
818
  },
819
+ "jp.anthropic.claude-sonnet-5": {
820
+ id: "jp.anthropic.claude-sonnet-5",
821
+ name: "Claude Sonnet 5 (JP)",
822
+ api: "bedrock-converse-stream",
823
+ provider: "amazon-bedrock",
824
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
825
+ reasoning: true,
826
+ input: ["text", "image"],
827
+ cost: {
828
+ input: 2,
829
+ output: 10,
830
+ cacheRead: 0.2,
831
+ cacheWrite: 2.5,
832
+ },
833
+ contextWindow: 1000000,
834
+ maxTokens: 128000,
835
+ },
733
836
  "meta.llama3-1-70b-instruct-v1:0": {
734
837
  id: "meta.llama3-1-70b-instruct-v1:0",
735
838
  name: "Llama 3.1 70B Instruct",
@@ -1535,6 +1638,23 @@ export const AMAZON_BEDROCK_MODELS = {
1535
1638
  contextWindow: 1000000,
1536
1639
  maxTokens: 64000,
1537
1640
  },
1641
+ "us.anthropic.claude-sonnet-5": {
1642
+ id: "us.anthropic.claude-sonnet-5",
1643
+ name: "Claude Sonnet 5 (US)",
1644
+ api: "bedrock-converse-stream",
1645
+ provider: "amazon-bedrock",
1646
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
1647
+ reasoning: true,
1648
+ input: ["text", "image"],
1649
+ cost: {
1650
+ input: 2,
1651
+ output: 10,
1652
+ cacheRead: 0.2,
1653
+ cacheWrite: 2.5,
1654
+ },
1655
+ contextWindow: 1000000,
1656
+ maxTokens: 128000,
1657
+ },
1538
1658
  "us.deepseek.r1-v1:0": {
1539
1659
  id: "us.deepseek.r1-v1:0",
1540
1660
  name: "DeepSeek-R1 (US)",
@@ -401,5 +401,23 @@ export const ANTHROPIC_MODELS = {
401
401
  contextWindow: 1000000,
402
402
  maxTokens: 64000,
403
403
  },
404
+ "claude-sonnet-5": {
405
+ id: "claude-sonnet-5",
406
+ name: "Claude Sonnet 5",
407
+ api: "anthropic-messages",
408
+ provider: "anthropic",
409
+ baseUrl: "https://api.anthropic.com",
410
+ compat: { "forceAdaptiveThinking": true },
411
+ reasoning: true,
412
+ input: ["text", "image"],
413
+ cost: {
414
+ input: 2,
415
+ output: 10,
416
+ cacheRead: 0.2,
417
+ cacheWrite: 2.5,
418
+ },
419
+ contextWindow: 1000000,
420
+ maxTokens: 128000,
421
+ },
404
422
  };
405
423
  //# sourceMappingURL=anthropic.models.js.map
@@ -1,6 +1,24 @@
1
1
  // This file is auto-generated by scripts/generate-models.ts
2
2
  // Do not edit manually - run 'npm run generate-models' to update
3
3
  export const CEREBRAS_MODELS = {
4
+ "gemma-4-31b": {
5
+ id: "gemma-4-31b",
6
+ name: "Gemma 4 31B IT",
7
+ api: "openai-completions",
8
+ provider: "cerebras",
9
+ baseUrl: "https://api.cerebras.ai/v1",
10
+ compat: { "supportsStore": false, "supportsDeveloperRole": false },
11
+ reasoning: true,
12
+ input: ["text", "image"],
13
+ cost: {
14
+ input: 0.99,
15
+ output: 1.49,
16
+ cacheRead: 0,
17
+ cacheWrite: 0,
18
+ },
19
+ contextWindow: 131072,
20
+ maxTokens: 40960,
21
+ },
4
22
  "gpt-oss-120b": {
5
23
  id: "gpt-oss-120b",
6
24
  name: "GPT OSS 120B",
@@ -311,6 +311,24 @@ export const CLOUDFLARE_AI_GATEWAY_MODELS = {
311
311
  contextWindow: 1000000,
312
312
  maxTokens: 64000,
313
313
  },
314
+ "claude-sonnet-5": {
315
+ id: "claude-sonnet-5",
316
+ name: "Claude Sonnet 5",
317
+ api: "anthropic-messages",
318
+ provider: "cloudflare-ai-gateway",
319
+ baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic",
320
+ compat: { "sendSessionAffinityHeaders": true, "forceAdaptiveThinking": true },
321
+ reasoning: true,
322
+ input: ["text", "image"],
323
+ cost: {
324
+ input: 2,
325
+ output: 10,
326
+ cacheRead: 0.2,
327
+ cacheWrite: 2.5,
328
+ },
329
+ contextWindow: 1000000,
330
+ maxTokens: 128000,
331
+ },
314
332
  "gpt-4": {
315
333
  id: "gpt-4",
316
334
  name: "GPT-4",
@@ -221,11 +221,12 @@ export const FIREWORKS_MODELS = {
221
221
  "accounts/fireworks/routers/glm-5p2-fast": {
222
222
  id: "accounts/fireworks/routers/glm-5p2-fast",
223
223
  name: "GLM 5.2 Fast",
224
- api: "anthropic-messages",
224
+ api: "openai-completions",
225
225
  provider: "fireworks",
226
- baseUrl: "https://api.fireworks.ai/inference",
227
- compat: { "sendSessionAffinityHeaders": true, "supportsEagerToolInputStreaming": false, "supportsCacheControlOnTools": false, "supportsLongCacheRetention": false },
226
+ baseUrl: "https://api.fireworks.ai/inference/v1",
227
+ compat: { "supportsStore": false, "supportsDeveloperRole": false },
228
228
  reasoning: true,
229
+ thinkingLevelMap: { "off": "none", "minimal": null, "low": "high", "medium": "high", "xhigh": "max" },
229
230
  input: ["text"],
230
231
  cost: {
231
232
  input: 2.1,
@@ -175,6 +175,25 @@ export const GITHUB_COPILOT_MODELS = {
175
175
  contextWindow: 1000000,
176
176
  maxTokens: 32000,
177
177
  },
178
+ "claude-sonnet-5": {
179
+ id: "claude-sonnet-5",
180
+ name: "Claude Sonnet 5",
181
+ api: "anthropic-messages",
182
+ provider: "github-copilot",
183
+ baseUrl: "https://api.individual.githubcopilot.com",
184
+ headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
185
+ compat: { "forceAdaptiveThinking": true },
186
+ reasoning: true,
187
+ input: ["text", "image"],
188
+ cost: {
189
+ input: 2,
190
+ output: 10,
191
+ cacheRead: 0.2,
192
+ cacheWrite: 2.5,
193
+ },
194
+ contextWindow: 1000000,
195
+ maxTokens: 128000,
196
+ },
178
197
  "gemini-2.5-pro": {
179
198
  id: "gemini-2.5-pro",
180
199
  name: "Gemini 2.5 Pro",
@@ -422,5 +441,43 @@ export const GITHUB_COPILOT_MODELS = {
422
441
  contextWindow: 400000,
423
442
  maxTokens: 128000,
424
443
  },
444
+ "kimi-k2.7-code": {
445
+ id: "kimi-k2.7-code",
446
+ name: "Kimi K2.7 Code",
447
+ api: "openai-completions",
448
+ provider: "github-copilot",
449
+ baseUrl: "https://api.individual.githubcopilot.com",
450
+ headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
451
+ compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
452
+ reasoning: true,
453
+ input: ["text", "image"],
454
+ cost: {
455
+ input: 0.95,
456
+ output: 4,
457
+ cacheRead: 0.19,
458
+ cacheWrite: 0,
459
+ },
460
+ contextWindow: 256000,
461
+ maxTokens: 32000,
462
+ },
463
+ "mai-code-1-flash-picker": {
464
+ id: "mai-code-1-flash-picker",
465
+ name: "MAI-Code-1-Flash",
466
+ api: "openai-completions",
467
+ provider: "github-copilot",
468
+ baseUrl: "https://api.individual.githubcopilot.com",
469
+ headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
470
+ compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
471
+ reasoning: true,
472
+ input: ["text"],
473
+ cost: {
474
+ input: 0.75,
475
+ output: 4.5,
476
+ cacheRead: 0.075,
477
+ cacheWrite: 0,
478
+ },
479
+ contextWindow: 256000,
480
+ maxTokens: 128000,
481
+ },
425
482
  };
426
483
  //# sourceMappingURL=github-copilot.models.js.map
@@ -97,7 +97,7 @@ export const GROQ_MODELS = {
97
97
  cost: {
98
98
  input: 0.075,
99
99
  output: 0.3,
100
- cacheRead: 0.037,
100
+ cacheRead: 0,
101
101
  cacheWrite: 0,
102
102
  },
103
103
  contextWindow: 131072,