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.
- package/extensions/shared.ts +8 -11
- package/package.json +1 -1
package/extensions/shared.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
const NULL_LEVELS = "
|
|
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
|
|
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
|
|
17
|
+
return display;
|
|
21
18
|
}
|
|
22
19
|
|
|
23
20
|
export function piToDisplay(pi: string): string {
|
|
24
|
-
return pi
|
|
21
|
+
return pi;
|
|
25
22
|
}
|