@sushant-kum/ccstatus 0.3.3 → 0.3.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.
@@ -14,7 +14,7 @@ import {
14
14
  saveConfigFile,
15
15
  snapshotPath,
16
16
  writeLinkedLines
17
- } from "./chunk-VCE654NJ.js";
17
+ } from "./chunk-YBBGXKRW.js";
18
18
 
19
19
  // src/app.tsx
20
20
  import { Box as Box12, Text as Text12, useApp, useInput as useInput10 } from "ink";
@@ -297,7 +297,10 @@ register({
297
297
  register({
298
298
  type: "thinking-effort",
299
299
  label: "Effort",
300
- format: ({ snapshot, item }) => snapshot.effort ? labeled(rawOf(item), "Effort", snapshot.effort) : null
300
+ // The engine only reports an explicit effort level; when none is set it exposes
301
+ // nothing, so we can't derive a level here. Match ccstatusline and label that
302
+ // case "default" rather than inventing a level or hiding the widget. See DEC-0026.
303
+ format: ({ snapshot, item }) => labeled(rawOf(item), "Effort", snapshot.effort || "default")
301
304
  });
302
305
  register({
303
306
  type: "session-id",
@@ -339,7 +342,9 @@ register({
339
342
  register({
340
343
  type: "git-worktree",
341
344
  label: "Worktree",
342
- format: ({ snapshot }) => snapshot.repo && snapshot.gitWorktree ? `\u2387 ${snapshot.gitWorktree}` : null
345
+ // Inside a repo the widget stays visible: the worktree name, or a placeholder
346
+ // when the checkout is the main working tree rather than a linked worktree.
347
+ format: ({ snapshot }) => snapshot.repo ? `\u2387 ${snapshot.gitWorktree || "\u2014"}` : null
343
348
  });
344
349
  register({
345
350
  type: "git-insertions",
package/dist/index.js CHANGED
@@ -4,10 +4,10 @@
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  var sub = process.argv[2];
6
6
  if (sub === "statusline") {
7
- const { runStatusline } = await import("./statusline-cmd-GFPWLYEQ.js");
7
+ const { runStatusline } = await import("./statusline-cmd-OX52DYX2.js");
8
8
  await runStatusline();
9
9
  } else {
10
10
  const { render } = await import("ink");
11
- const { App } = await import("./app-O4Q6TMY4.js");
11
+ const { App } = await import("./app-TAM7W557.js");
12
12
  render(/* @__PURE__ */ jsx(App, {}));
13
13
  }
@@ -6,7 +6,7 @@ import {
6
6
  render,
7
7
  snapshotPath,
8
8
  toAnsi
9
- } from "./chunk-VCE654NJ.js";
9
+ } from "./chunk-YBBGXKRW.js";
10
10
 
11
11
  // src/statusline-cmd.ts
12
12
  function renderStatuslineAnsi(config, snapshot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sushant-kum/ccstatus",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Interactive configurator (npx @sushant-kum/ccstatus) for the ccstatus Claude Code status bar — band, status line, pane, and threshold toasts from one config.",
5
5
  "license": "MIT",
6
6
  "author": "Sushant Kumar",