@howaboua/pi-gpt-switcher 0.1.4 → 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,9 @@
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
+
3
7
  ## 0.1.4
4
8
 
5
9
  - The `/sol` shortcut now selects GPT-6.1 Sol while preserving configured context and reasoning defaults.
package/README.md CHANGED
@@ -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
 
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.4",
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.99.1",
53
+ "@earendil-works/pi-coding-agent": "1.0.4",
54
54
  "typescript": "^7.0.2"
55
55
  },
56
56
  "scripts": {