@promptctl/cc-candybar 1.76.0 → 1.78.0
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/README.md +1 -8
- package/dist/index.mjs +73 -72
- package/package.json +5 -5
- package/schema/cc-candybar.schema.json +3 -9
package/README.md
CHANGED
|
@@ -104,6 +104,7 @@ These are the segment names `DEFAULT_DSL_CONFIG` declares, each available to a u
|
|
|
104
104
|
| `gitaculous` | the same facts in gitaculous's spelling — `(git)`, repo, operation, sha, `S`/`U`/`?`/`!` counts, upstream, stashes, time since the last commit | in a repo |
|
|
105
105
|
| `gitPr` | `⇆ #N` linked to the pull request, or `⚠ PR` when the forge lookup failed | when a PR or a lookup error is known |
|
|
106
106
|
| `toolbar` | click affordances — copy the session id, open the project dir, the transcript and the repo page (also inside the settings menu) | always |
|
|
107
|
+
| `themeSwitcher` | `◀ <theme> ▶` — the theme the bar is wearing; ◀/▶ switch this session to the previous/next theme | always (not placed by default) |
|
|
107
108
|
| `session` | `§` this session's cost and tokens, plus budget status | always |
|
|
108
109
|
| `today` | `☉` today's cost and tokens across sessions, plus budget status | always |
|
|
109
110
|
| `block` | `◱` the 5-hour rate-limit window's utilization | while that window is active |
|
|
@@ -116,14 +117,6 @@ These are the segment names `DEFAULT_DSL_CONFIG` declares, each available to a u
|
|
|
116
117
|
| `metrics` | `Δ` last response time, `⧖` response time, `⧗` session duration, `◆` message count, lines changed | when any of those exist |
|
|
117
118
|
| `activity` | `⌘` the slash command that opened the turn, `☐` the in-progress todo with its position, `⟳` tools in flight and `✓` tools finished this turn | while the session is doing something |
|
|
118
119
|
|
|
119
|
-
Three more declarations are controls for the settings drawer rather than things the bar reports. Each pairs a picker with a `↺` reset:
|
|
120
|
-
|
|
121
|
-
| Control | Sets |
|
|
122
|
-
|---------|------|
|
|
123
|
-
| `charsetControl` | the joiner glyph vocabulary (`unicode` or `ascii`) |
|
|
124
|
-
| `colorCompatControl` | the output colour depth (truecolor, 256, ansi, none) |
|
|
125
|
-
| `directoryPaletteControl` | `🎨 directory` — the palette pinned to the `directory` segment alone |
|
|
126
|
-
|
|
127
120
|
Each segment is a DSL declaration with a `template` (text + interpolation + style functions), a `bg`/`fg` palette spec, and optional `when` predicate. Templates compose freely — every formatter in the bundled function library (`formatCost`, `formatTokens`, `formatLongTimeRemaining`, `budgetStatus`, `link`, `urlEncode`, the sprig string/list/dict library, …) is available in every segment.
|
|
128
121
|
|
|
129
122
|
## Themes
|