@howaboua/pi-gpt-switcher 0.1.3 → 0.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @howaboua/pi-gpt-switcher
2
2
 
3
+ ## 0.1.5
4
+
5
+ - Fixed model shortcuts rejecting configured context windows above their defaults.
6
+
7
+ ## 0.1.4
8
+
9
+ - The `/sol` shortcut now selects GPT-6.1 Sol while preserving configured context and reasoning defaults.
10
+
3
11
  ## 0.1.3
4
12
 
5
13
  - GPT-6 Sol and Luna now share Astra's Codex support.
package/README.md CHANGED
@@ -4,7 +4,7 @@ Pi extension adding quick model commands:
4
4
 
5
5
  | Command | Model |
6
6
  | --- | --- |
7
- | `/sol [reasoning]` | `openai-codex/gpt-6-sol` |
7
+ | `/sol [reasoning]` | `openai-codex/gpt-6.1-sol` |
8
8
  | `/luna [reasoning]` | `openai-codex/gpt-6-luna` |
9
9
  | `/astra [reasoning]` | `openai-codex/gpt-6-astra` |
10
10
 
@@ -27,8 +27,9 @@ agent directory:
27
27
 
28
28
  Edit the file to change a shortcut's session context window or default
29
29
  reasoning. Changes apply on the next shortcut invocation and do not alter the
30
- provider catalogue. Context windows may be lowered to 128k but not raised
31
- above the shortcut's shipped limit.
30
+ provider catalogue. Context windows must be safe integers of at least 128k.
31
+ Values above the shortcut's default are accepted. Set a window supported by
32
+ your provider; this setting changes Pi's budget, not the provider's capacity.
32
33
 
33
34
  Existing config files need no migration: omitted shortcuts use their shipped defaults, and unknown entries are ignored.
34
35
 
@@ -52,6 +53,8 @@ reports that instead of changing the current model.
52
53
 
53
54
  Pi clamps the requested reasoning level automatically if the selected model
54
55
  supports fewer levels.
56
+ GPT-6.1 Sol supports `low`, `medium`, `high`, `xhigh`, and `max`.
57
+ An `off` or `minimal` request is clamped to `low`.
55
58
 
56
59
  ## Local development
57
60
 
@@ -15,7 +15,7 @@ import {
15
15
  } from "./config.js";
16
16
 
17
17
  const MODELS = {
18
- sol: { id: "gpt-6-sol", name: "GPT-6 Sol" },
18
+ sol: { id: "gpt-6.1-sol", name: "GPT-6.1 Sol" },
19
19
  luna: { id: "gpt-6-luna", name: "GPT-6 Luna" },
20
20
  astra: { id: "gpt-6-astra", name: "GPT-6 Astra" },
21
21
  } as const;
package/config.ts CHANGED
@@ -56,12 +56,11 @@ function normalizeContextWindow(
56
56
  if (
57
57
  typeof value === "number" &&
58
58
  Number.isSafeInteger(value) &&
59
- value >= MIN_CONTEXT_WINDOW &&
60
- value <= fallback
59
+ value >= MIN_CONTEXT_WINDOW
61
60
  )
62
61
  return value;
63
62
  configurationError(
64
- `${alias}.contextWindow must be an integer from ${MIN_CONTEXT_WINDOW} to ${fallback}; using the default`,
63
+ `${alias}.contextWindow must be a safe integer of at least ${MIN_CONTEXT_WINDOW}; using the default`,
65
64
  );
66
65
  return fallback;
67
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-gpt-switcher",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Quick Pi commands for switching between GPT Codex models and reasoning levels.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,12 +45,12 @@
45
45
  ]
46
46
  },
47
47
  "peerDependencies": {
48
- "@earendil-works/pi-coding-agent": ">=0.84.3",
49
- "@earendil-works/pi-tui": ">=0.84.3"
48
+ "@earendil-works/pi-coding-agent": ">=1.0.0",
49
+ "@earendil-works/pi-tui": ">=1.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@biomejs/biome": "^2.5.10",
53
- "@earendil-works/pi-coding-agent": "0.87.0",
53
+ "@earendil-works/pi-coding-agent": "1.0.4",
54
54
  "typescript": "^7.0.2"
55
55
  },
56
56
  "scripts": {