@howaboua/pi-gpt-switcher 0.1.2 → 0.1.3

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,15 @@
1
1
  # @howaboua/pi-gpt-switcher
2
2
 
3
+ ## 0.1.3
4
+
5
+ - GPT-6 Sol and Luna now share Astra's Codex support.
6
+
7
+ - Removed `/terra`; use `/luna` instead.
8
+ - Added Responses Lite, non-destructive reasoning changes and terse context guidance for GPT-6 Sol and Luna.
9
+ - Image descriptions now use GPT-6 Luna directly instead of preferring older mini models.
10
+ - Cost estimates now use published GPT-6 Sol and Luna rates, including cache writes and long-context pricing.
11
+ - Agent, review, exploration, web search, voice summary and image-description defaults now use GPT-6; Luna replaces Terra defaults. GPT Switcher retains Luna's 472K context limit, while Codex Conversion defaults all three GPT-6 models to 272K.
12
+
3
13
  ## 0.1.2
4
14
 
5
15
  - Add /astra for GPT-6 Astra with low reasoning by default and an optional reasoning override.
package/README.md CHANGED
@@ -4,9 +4,8 @@ Pi extension adding quick model commands:
4
4
 
5
5
  | Command | Model |
6
6
  | --- | --- |
7
- | `/sol [reasoning]` | `openai-codex/gpt-5.6-sol` |
8
- | `/terra [reasoning]` | `openai-codex/gpt-5.6-terra` |
9
- | `/luna [reasoning]` | `openai-codex/gpt-5.6-luna` |
7
+ | `/sol [reasoning]` | `openai-codex/gpt-6-sol` |
8
+ | `/luna [reasoning]` | `openai-codex/gpt-6-luna` |
10
9
  | `/astra [reasoning]` | `openai-codex/gpt-6-astra` |
11
10
 
12
11
  An explicit reasoning argument overrides the configured default. Valid arguments
@@ -21,7 +20,6 @@ agent directory:
21
20
  ```json
22
21
  {
23
22
  "sol": { "contextWindow": 272000, "reasoning": "high" },
24
- "terra": { "contextWindow": 872000, "reasoning": "high" },
25
23
  "luna": { "contextWindow": 472000, "reasoning": "xhigh" },
26
24
  "astra": { "contextWindow": 272000, "reasoning": "low" }
27
25
  }
@@ -32,7 +30,7 @@ reasoning. Changes apply on the next shortcut invocation and do not alter the
32
30
  provider catalogue. Context windows may be lowered to 128k but not raised
33
31
  above the shortcut's shipped limit.
34
32
 
35
- Existing config files need no migration: omitted shortcuts use their shipped defaults.
33
+ Existing config files need no migration: omitted shortcuts use their shipped defaults, and unknown entries are ignored.
36
34
 
37
35
  ## Install
38
36
 
@@ -15,10 +15,9 @@ import {
15
15
  } from "./config.js";
16
16
 
17
17
  const MODELS = {
18
- sol: "gpt-5.6-sol",
19
- terra: "gpt-5.6-terra",
20
- luna: "gpt-5.6-luna",
21
- astra: "gpt-6-astra",
18
+ sol: { id: "gpt-6-sol", name: "GPT-6 Sol" },
19
+ luna: { id: "gpt-6-luna", name: "GPT-6 Luna" },
20
+ astra: { id: "gpt-6-astra", name: "GPT-6 Astra" },
22
21
  } as const;
23
22
 
24
23
  type Alias = keyof typeof MODELS & ShortcutAlias;
@@ -42,8 +41,9 @@ export default function (
42
41
  if (!options.getConfig) ensureGptSwitcherConfig();
43
42
 
44
43
  for (const alias of Object.keys(MODELS) as Alias[]) {
44
+ const shortcut = MODELS[alias];
45
45
  pi.registerCommand(alias, {
46
- description: `Switch to GPT-${alias === "astra" ? "6" : "5.6"} ${alias.charAt(0).toUpperCase()}${alias.slice(1)}`,
46
+ description: `Switch to ${shortcut.name}`,
47
47
  handler: async (args, ctx) => {
48
48
  const defaults = getConfig()[alias];
49
49
  const thinkingLevel = parseThinkingLevel(args, defaults.reasoning);
@@ -55,7 +55,7 @@ export default function (
55
55
  return;
56
56
  }
57
57
 
58
- const modelId = MODELS[alias];
58
+ const modelId = shortcut.id;
59
59
  const model = ctx.modelRegistry.find("openai-codex", modelId);
60
60
 
61
61
  if (!model) {
package/config.ts CHANGED
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
2
  import { dirname, join } from "node:path";
3
3
  import { getAgentDir } from "@earendil-works/pi-coding-agent";
4
4
 
5
- export const SHORTCUT_ALIASES = ["sol", "terra", "luna", "astra"] as const;
5
+ export const SHORTCUT_ALIASES = ["sol", "luna", "astra"] as const;
6
6
  export type ShortcutAlias = (typeof SHORTCUT_ALIASES)[number];
7
7
  export type ThinkingLevel =
8
8
  | "off"
@@ -32,7 +32,6 @@ export type GptSwitcherConfig = Record<ShortcutAlias, ShortcutDefaults>;
32
32
 
33
33
  export const DEFAULT_GPT_SWITCHER_CONFIG: GptSwitcherConfig = {
34
34
  sol: { contextWindow: 272_000, reasoning: "high" },
35
- terra: { contextWindow: 872_000, reasoning: "high" },
36
35
  luna: { contextWindow: 472_000, reasoning: "xhigh" },
37
36
  astra: { contextWindow: 272_000, reasoning: "low" },
38
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-gpt-switcher",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Quick Pi commands for switching between GPT Codex models and reasoning levels.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "pi-package",
19
19
  "pi-extension",
20
20
  "pi-coding-agent",
21
- "gpt-5.6",
21
+ "gpt-6",
22
22
  "model-switching",
23
23
  "reasoning-level"
24
24
  ],
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@biomejs/biome": "^2.5.10",
53
- "@earendil-works/pi-coding-agent": "0.85.0",
53
+ "@earendil-works/pi-coding-agent": "0.87.0",
54
54
  "typescript": "^7.0.2"
55
55
  },
56
56
  "scripts": {