pi-model-control 0.1.7 → 0.1.9

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.
@@ -1,25 +1,22 @@
1
- const NULL_LEVELS = "none";
2
-
3
- export const DISPLAY_LEVELS = [NULL_LEVELS, "minimal", "low", "medium", "high", "max"];
1
+ const NULL_LEVELS = "default";
2
+ export const DISPLAY_LEVELS = [NULL_LEVELS, "low", "medium", "high", "max"];
4
3
 
5
4
  export function getSupportedLevels(m: any): string[] {
6
5
  if (!m.reasoning) return [NULL_LEVELS];
7
-
6
+
8
7
  return DISPLAY_LEVELS.filter((level) => {
9
- const piLevel = level === NULL_LEVELS ? "off" : level;
10
-
11
- const mapped = m.thinkingLevelMap?.[piLevel];
12
-
8
+ const mapped = m.thinkingLevelMap?.[level];
9
+
13
10
  if (mapped === null) return false;
14
-
11
+
15
12
  return true;
16
13
  });
17
14
  }
18
15
 
19
16
  export function displayToPi(display: string): string {
20
- return display === NULL_LEVELS ? "off" : display;
17
+ return display;
21
18
  }
22
19
 
23
20
  export function piToDisplay(pi: string): string {
24
- return pi === "off" ? NULL_LEVELS : pi;
21
+ return pi;
25
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-model-control",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Model and thinking level controls for pi — /variants and /thinking commands",
5
5
  "type": "module",
6
6
  "files": [