@code-yeongyu/senpi-ai 2026.9.22-2 → 2026.9.22-4

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 (94) hide show
  1. package/README.md +3 -3
  2. package/dist/api/anthropic-messages.js +1 -1
  3. package/dist/api/anthropic-messages.js.map +1 -1
  4. package/dist/api/azure-openai-responses.js +1 -1
  5. package/dist/api/azure-openai-responses.js.map +1 -1
  6. package/dist/api/bedrock-converse-stream.js +1 -1
  7. package/dist/api/bedrock-converse-stream.js.map +1 -1
  8. package/dist/api/openai-codex-responses/fallback-state.d.ts +3 -3
  9. package/dist/api/openai-codex-responses/fallback-state.d.ts.map +1 -1
  10. package/dist/api/openai-codex-responses/fallback-state.js.map +1 -1
  11. package/dist/api/openai-codex-responses.d.ts +5 -5
  12. package/dist/api/openai-codex-responses.d.ts.map +1 -1
  13. package/dist/api/openai-codex-responses.js +10 -10
  14. package/dist/api/openai-codex-responses.js.map +1 -1
  15. package/dist/api/openai-prompt-cache.d.ts +1 -1
  16. package/dist/api/openai-prompt-cache.d.ts.map +1 -1
  17. package/dist/api/openai-prompt-cache.js +1 -1
  18. package/dist/api/openai-prompt-cache.js.map +1 -1
  19. package/dist/api/openai-responses-shared.js +1 -1
  20. package/dist/api/openai-responses-shared.js.map +1 -1
  21. package/dist/api/openai-responses.js +1 -1
  22. package/dist/api/openai-responses.js.map +1 -1
  23. package/dist/auth/oauth/{openai-codex.d.ts → chatgpt-subscription.d.ts} +3 -3
  24. package/dist/auth/oauth/chatgpt-subscription.d.ts.map +1 -0
  25. package/dist/auth/oauth/{openai-codex.js → chatgpt-subscription.js} +35 -35
  26. package/dist/auth/oauth/chatgpt-subscription.js.map +1 -0
  27. package/dist/auth/oauth/load.d.ts +2 -2
  28. package/dist/auth/oauth/load.d.ts.map +1 -1
  29. package/dist/auth/oauth/load.js +4 -3
  30. package/dist/auth/oauth/load.js.map +1 -1
  31. package/dist/auth/pool/slots.d.ts +7 -0
  32. package/dist/auth/pool/slots.d.ts.map +1 -1
  33. package/dist/auth/pool/slots.js +20 -2
  34. package/dist/auth/pool/slots.js.map +1 -1
  35. package/dist/bun-oauth.js +2 -2
  36. package/dist/bun-oauth.js.map +1 -1
  37. package/dist/image-models.generated.d.ts +15 -0
  38. package/dist/image-models.generated.d.ts.map +1 -1
  39. package/dist/image-models.generated.js +15 -0
  40. package/dist/image-models.generated.js.map +1 -1
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/index.js.map +1 -1
  45. package/dist/legacy-provider-ids.d.ts +20 -0
  46. package/dist/legacy-provider-ids.d.ts.map +1 -1
  47. package/dist/legacy-provider-ids.js +56 -0
  48. package/dist/legacy-provider-ids.js.map +1 -1
  49. package/dist/models.generated.d.ts +2 -2
  50. package/dist/models.generated.d.ts.map +1 -1
  51. package/dist/models.generated.js +2 -2
  52. package/dist/models.generated.js.map +1 -1
  53. package/dist/providers/all.d.ts.map +1 -1
  54. package/dist/providers/all.js +2 -2
  55. package/dist/providers/all.js.map +1 -1
  56. package/dist/providers/chatgpt-subscription.d.ts +3 -0
  57. package/dist/providers/chatgpt-subscription.d.ts.map +1 -0
  58. package/dist/providers/chatgpt-subscription.js +22 -0
  59. package/dist/providers/chatgpt-subscription.js.map +1 -0
  60. package/dist/providers/chatgpt-subscription.models.d.ts +4 -0
  61. package/dist/providers/chatgpt-subscription.models.d.ts.map +1 -0
  62. package/dist/providers/chatgpt-subscription.models.js +6 -0
  63. package/dist/providers/chatgpt-subscription.models.js.map +1 -0
  64. package/dist/providers/data/.manifest.json +1 -1
  65. package/dist/providers/data/amazon-bedrock.json +1 -1
  66. package/dist/providers/data/anthropic.json +1 -1
  67. package/dist/providers/data/chatgpt-subscription.json +1 -0
  68. package/dist/providers/data/openrouter.json +1 -1
  69. package/dist/providers/data/venice.json +1 -1
  70. package/dist/providers/data/vercel-ai-gateway.json +1 -1
  71. package/dist/types.d.ts +1 -1
  72. package/dist/types.d.ts.map +1 -1
  73. package/dist/types.js.map +1 -1
  74. package/dist/utils/{openai-codex-auth.d.ts → chatgpt-subscription-auth.d.ts} +3 -3
  75. package/dist/utils/chatgpt-subscription-auth.d.ts.map +1 -0
  76. package/dist/utils/{openai-codex-auth.js → chatgpt-subscription-auth.js} +4 -4
  77. package/dist/utils/chatgpt-subscription-auth.js.map +1 -0
  78. package/dist/utils/prompt-cache-ttl.d.ts.map +1 -1
  79. package/dist/utils/prompt-cache-ttl.js +6 -2
  80. package/dist/utils/prompt-cache-ttl.js.map +1 -1
  81. package/package.json +2 -2
  82. package/dist/auth/oauth/openai-codex.d.ts.map +0 -1
  83. package/dist/auth/oauth/openai-codex.js.map +0 -1
  84. package/dist/providers/data/openai-codex.json +0 -1
  85. package/dist/providers/openai-codex.d.ts +0 -3
  86. package/dist/providers/openai-codex.d.ts.map +0 -1
  87. package/dist/providers/openai-codex.js +0 -22
  88. package/dist/providers/openai-codex.js.map +0 -1
  89. package/dist/providers/openai-codex.models.d.ts +0 -4
  90. package/dist/providers/openai-codex.models.d.ts.map +0 -1
  91. package/dist/providers/openai-codex.models.js +0 -6
  92. package/dist/providers/openai-codex.models.js.map +0 -1
  93. package/dist/utils/openai-codex-auth.d.ts.map +0 -1
  94. package/dist/utils/openai-codex-auth.js.map +0 -1
package/README.md CHANGED
@@ -61,7 +61,7 @@ Unified LLM API with provider collections, automatic auth resolution, token and
61
61
  - **B.AI** (credential-scoped multi-provider catalog)
62
62
  - **Ant Ling**
63
63
  - **Azure OpenAI (Responses)**
64
- - **OpenAI Codex** (ChatGPT Plus/Pro subscription, requires OAuth, see below)
64
+ - **ChatGPT Subscription** (ChatGPT Plus/Pro subscription, requires OAuth, see below)
65
65
  - **DeepSeek**
66
66
  - **NVIDIA NIM**
67
67
  - **Anthropic**
@@ -1532,7 +1532,7 @@ Use this when one process needs different provider settings per request, or when
1532
1532
  Several providers support OAuth authentication instead of static API keys:
1533
1533
 
1534
1534
  - **Anthropic** (Claude Pro/Max subscription)
1535
- - **OpenAI Codex** (ChatGPT Plus/Pro subscription, access to GPT-5.x Codex models)
1535
+ - **ChatGPT Subscription** (ChatGPT Plus/Pro subscription, access to GPT-5.x Codex models)
1536
1536
  - **GitHub Copilot** (Copilot subscription)
1537
1537
  - **OpenRouter** (OAuth PKCE that mints a user-controlled API key)
1538
1538
  - **Cursor** (Pro/Ultra/Teams subscription; browser deep-link + poll flow. After login, the per-account model catalog is discovered through `GetUsableModels` and chat streams over the native `cursor-agent` protocol with in-band tool execution — hosts supply `CursorAgentOptions.execHandlers` to bridge Cursor's server-driven tool calls onto local tools)
@@ -1613,7 +1613,7 @@ Built-in login and refresh flows are private provider implementations. Use provi
1613
1613
 
1614
1614
  Provider notes:
1615
1615
 
1616
- **OpenAI Codex**: Requires a ChatGPT Plus or Pro subscription. Provides access to GPT-5.x Codex models with extended context windows and reasoning capabilities. The library automatically handles session-based prompt caching when `sessionId` is provided in stream options unless `cacheRetention` is `"none"`. You can set `transport` in stream options to `"sse"`, `"websocket"`, or `"auto"` for Codex Responses transport selection. When using WebSocket with a `sessionId` and cache retention enabled, connections are reused per session and expire after 5 minutes of inactivity.
1616
+ **ChatGPT Subscription**: Requires a ChatGPT Plus or Pro subscription. Provides access to GPT-5.x Codex models with extended context windows and reasoning capabilities. The library automatically handles session-based prompt caching when `sessionId` is provided in stream options unless `cacheRetention` is `"none"`. You can set `transport` in stream options to `"sse"`, `"websocket"`, or `"auto"` for Codex Responses transport selection. When using WebSocket with a `sessionId` and cache retention enabled, connections are reused per session and expire after 5 minutes of inactivity.
1617
1617
 
1618
1618
  **Azure OpenAI (Responses)**: Uses the Responses API only. Set `AZURE_OPENAI_API_KEY` and either `AZURE_OPENAI_BASE_URL` or `AZURE_OPENAI_RESOURCE_NAME`. `AZURE_OPENAI_BASE_URL` supports both `https://<resource>.openai.azure.com` and `https://<resource>.cognitiveservices.azure.com`; root endpoints are normalized to `.../openai/v1` automatically. Use `AZURE_OPENAI_API_VERSION` (defaults to `v1`) to override the API version if needed. Deployment names are treated as model IDs by default, override with `azureDeploymentName` or `AZURE_OPENAI_DEPLOYMENT_NAME_MAP` using comma-separated `model-id=deployment` pairs (for example `gpt-4o-mini=my-deployment,gpt-4o=prod`). Legacy deployment-based URLs are intentionally unsupported.
1619
1619
 
@@ -173,7 +173,7 @@ const NATIVE_XHIGH_EFFORT_MODEL_MARKERS = [
173
173
  * this as `compat.supportsDisabledThinking: false`, but `models.json` entries and third-party
174
174
  * gateway rows carry no generated compat, so the family fact has to live here as well.
175
175
  */
176
- const DISABLED_THINKING_REJECTING_MODEL_MARKERS = ["fable-5", "mythos-5"];
176
+ const DISABLED_THINKING_REJECTING_MODEL_MARKERS = ["fable-5", "mythos-5", "opus-5-5", "opus-5.5"];
177
177
  const UNSUPPORTED_NATIVE_COMPUTER_TOOL_MODEL_MARKERS = [
178
178
  "opus-4-6",
179
179
  "opus-4.6",