copilot-statusline 0.1.10 → 0.1.11

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.
@@ -52913,7 +52913,7 @@ import { execSync as execSync3 } from "child_process";
52913
52913
  import * as fs5 from "fs";
52914
52914
  import * as path4 from "path";
52915
52915
  var __dirname = "/Users/ts/workspace/active/statusline/copilot_statusline/src/utils";
52916
- var PACKAGE_VERSION = "0.1.10";
52916
+ var PACKAGE_VERSION = "0.1.11";
52917
52917
  function getPackageVersion() {
52918
52918
  if (/^\d+\.\d+\.\d+/.test(PACKAGE_VERSION)) {
52919
52919
  return PACKAGE_VERSION;
@@ -53931,6 +53931,13 @@ function normalizeThinkingEffort(value) {
53931
53931
  const match = LABELED_EFFORT_REGEX.exec(normalized);
53932
53932
  return match?.[1] ? match[1] : null;
53933
53933
  }
53934
+ function trustThinkingEffort(value) {
53935
+ if (!value) {
53936
+ return null;
53937
+ }
53938
+ const normalized = value.trim().toLowerCase();
53939
+ return normalized || null;
53940
+ }
53934
53941
  function parseDisplayName(displayName) {
53935
53942
  if (!displayName) {
53936
53943
  return { thinkingEffort: null, multiplier: null, multiplierValue: null };
@@ -54006,7 +54013,7 @@ class ThinkingEffortWidget {
54006
54013
  return item.rawValue ? "high" : "Thinking: high";
54007
54014
  }
54008
54015
  const model = context.data?.model;
54009
- const thinkingEffort = normalizeThinkingEffort(model?.thinking_effort_level) ?? normalizeThinkingEffort(model?.thinking_effort) ?? normalizeThinkingEffort(model?.reasoning_effort) ?? parseDisplayName(model?.display_name).thinkingEffort;
54016
+ const thinkingEffort = trustThinkingEffort(model?.thinking_effort_level) ?? normalizeThinkingEffort(model?.thinking_effort) ?? normalizeThinkingEffort(model?.reasoning_effort) ?? parseDisplayName(model?.display_name).thinkingEffort;
54010
54017
  if (thinkingEffort) {
54011
54018
  return item.rawValue ? thinkingEffort : `Thinking: ${thinkingEffort}`;
54012
54019
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilot-statusline",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "A customizable status line formatter for GitHub Copilot CLI — based on ccstatusline",
5
5
  "module": "src/copilot-statusline.ts",
6
6
  "type": "module",