@promptctl/cc-candybar 1.87.0 → 1.88.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/dist/index.mjs +44 -44
- package/package.json +5 -5
- package/plugin/bin/preview.sh +1 -1
- package/plugin/commands/candybar.md +9 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptctl/cc-candybar",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.88.0",
|
|
4
4
|
"description": "Statusline renderer for Claude Code — a JSON5-configurable DSL with daemon-cached data sources, byte-clean palette-aware composition, and OSC8 click verbs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"mobx": "^6.15.0"
|
|
92
92
|
},
|
|
93
93
|
"optionalDependencies": {
|
|
94
|
-
"@promptctl/cc-candybar-darwin-arm64": "1.
|
|
95
|
-
"@promptctl/cc-candybar-darwin-x64": "1.
|
|
96
|
-
"@promptctl/cc-candybar-linux-x64": "1.
|
|
97
|
-
"@promptctl/cc-candybar-linux-arm64": "1.
|
|
94
|
+
"@promptctl/cc-candybar-darwin-arm64": "1.88.0",
|
|
95
|
+
"@promptctl/cc-candybar-darwin-x64": "1.88.0",
|
|
96
|
+
"@promptctl/cc-candybar-linux-x64": "1.88.0",
|
|
97
|
+
"@promptctl/cc-candybar-linux-arm64": "1.88.0"
|
|
98
98
|
}
|
|
99
99
|
}
|
package/plugin/bin/preview.sh
CHANGED
|
@@ -19,7 +19,7 @@ readonly TEMPLATE="${PLUGIN_ROOT}/templates/config.json"
|
|
|
19
19
|
readonly THEMES=(dark light nord tokyo-night rose-pine gruvbox catppuccin-mocha dracula solarized-dark monokai)
|
|
20
20
|
readonly STYLES=(powerline capsule plain)
|
|
21
21
|
readonly CHARSETS=(unicode ascii)
|
|
22
|
-
readonly PRESETS=(default compact verbose)
|
|
22
|
+
readonly PRESETS=(default compact verbose zen git usage dense)
|
|
23
23
|
|
|
24
24
|
THEME="${THEMES[0]}"
|
|
25
25
|
STYLE="${STYLES[0]}"
|
|
@@ -153,16 +153,19 @@ Tell the user the previews are in the bash output above, then display:
|
|
|
153
153
|
1. **default** -- Two rows: an identity row (directory, git) over a status row (model, context window, cache timer, 5-hour block usage, weekly usage). Good default.
|
|
154
154
|
2. **compact** -- One row (directory, git, context window) with no cell padding. For narrow terminals and split panes.
|
|
155
155
|
3. **verbose** -- The default's two rows plus pull-request, burn-rate, token-speed and token-sparkline segments. Maximum information.
|
|
156
|
+
4. **zen** -- One quiet row (directory, context window) in plain style under the dim look, so it replaces the style picked in Step 4. For heads-down work.
|
|
157
|
+
5. **git** -- The open pull request beside the git state, over a status row cut to model, context window and activity. For branch-and-review work.
|
|
158
|
+
6. **usage** -- Every cost and limit segment, one concern per row: context and cache, the rate-limit windows and burn rate, then session and today spend and token speed. For watching a budget.
|
|
159
|
+
7. **dense** -- The default's segments plus session spend on one row with no cell padding, wrapped only where the terminal runs out. For wide terminals.
|
|
156
160
|
````
|
|
157
161
|
|
|
158
162
|
Then ask:
|
|
159
163
|
|
|
160
|
-
- **Question**: "Which preset?"
|
|
164
|
+
- **Question**: "Which preset? Pick one or type any name from the list."
|
|
161
165
|
- **Header**: "Preset"
|
|
162
|
-
- **Options**:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
- "verbose" -> Set `preset=verbose`
|
|
166
|
+
- **Options**: the first four presets in the list above, each -> Set `preset=<that name>`
|
|
167
|
+
|
|
168
|
+
If the user types a name in the free text field, accept it only if the list above names it; otherwise show the list again and re-ask. Set `preset`.
|
|
166
169
|
|
|
167
170
|
## Step 6: Existing config
|
|
168
171
|
|
|
@@ -203,7 +206,7 @@ stamp=$(date -u +%Y%m%dT%H%M%SZ)
|
|
|
203
206
|
| `replace:THEME` | `theme` (the name chosen in Step 3) |
|
|
204
207
|
| `replace:STYLE` | `style` (`powerline`, `capsule`, or `plain`) |
|
|
205
208
|
| `replace:CHARSET` | `charset` (`unicode` or `ascii`) |
|
|
206
|
-
| `replace:PRESET` | `preset` (
|
|
209
|
+
| `replace:PRESET` | `preset` (a name from Step 5's list) |
|
|
207
210
|
|
|
208
211
|
3. Write the result to `~/.config/cc-candybar/config.json5` with the Write tool (create the directory if needed). Do NOT read or merge with any existing config; the file is replaced whole.
|
|
209
212
|
|