@diousk/pi-usage-fast 0.1.0 → 0.2.0

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.
package/README.md CHANGED
@@ -6,7 +6,7 @@ Inspect usage and DeepSeek API balance for Pi's active provider account, query o
6
6
  The extension keeps each provider's native quota, allowance, and spending semantics instead of treating unlike values as equivalent.
7
7
  xAI OAuth subscription reporting follows the reviewed Grok Build contract and runs only after an explicit `/usage` action.
8
8
 
9
- This fork of [pi-usage](https://github.com/narumiruna/pi-extensions/tree/main/packages/pi-usage) adds Fast mode support for `gpt-6-*` models.
9
+ This fork of [pi-usage](https://github.com/narumiruna/pi-extensions/tree/main/packages/pi-usage) adds Fast mode support for `gpt-6-*` and `gpt-6.<minor>-*` models, including `gpt-6.1-sol`.
10
10
  Install it instead of the upstream pi-usage package to avoid duplicate commands and status updates.
11
11
  Existing `pi-usage.json` settings remain compatible.
12
12
 
@@ -91,7 +91,8 @@ Run `/fast` without arguments to toggle Fast for the active supported Codex mode
91
91
  Fast is about 1.5× faster and uses more of your plan allowance.
92
92
  The `codexFastMode` preference defaults to Off.
93
93
 
94
- Fast currently applies only to official `openai-codex-responses` requests for `gpt-5.5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, and `gpt-6-*` models at `https://chatgpt.com`.
94
+ Fast currently applies only to official `openai-codex-responses` requests for `gpt-5.5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-6-*`, and `gpt-6.<minor>-*` models at `https://chatgpt.com`.
95
+ For example, `gpt-6.1-sol` supports the same toggle, routing, statusline, and priority cost correction as `gpt-6-sol`.
95
96
  It sends `service_tier: "priority"` while enabled and explicit `service_tier: "default"` otherwise.
96
97
  The statusline adds `fast` only while the preference is effective, for example `codex fast 59% ↻ 2h30m` with the default reset countdown.
97
98
  Unsupported models and custom or proxy origins are left unchanged.
package/dist/index.ts CHANGED
@@ -12,7 +12,7 @@ var CODEX_FAST_MODEL_IDS = /* @__PURE__ */ new Set([
12
12
  "gpt-5.6-terra"
13
13
  ]);
14
14
  function supportsCodexFast(modelId) {
15
- return CODEX_FAST_MODEL_IDS.has(modelId) || /^gpt-6-.+/u.test(modelId);
15
+ return CODEX_FAST_MODEL_IDS.has(modelId) || /^gpt-6(?:\.\d+)?-.+/u.test(modelId);
16
16
  }
17
17
  function codexFastAvailability(model, enabled) {
18
18
  if (model?.provider !== "openai-codex") return { kind: "not-codex" };