@k-electron/k-bench 0.4.1 → 0.5.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.
|
@@ -166,14 +166,18 @@ function launchHooks() {
|
|
|
166
166
|
return hooks;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* The `--settings` every launch passes: k-bench's hooks
|
|
169
|
+
* The `--settings` every launch passes: k-bench's hooks, Claude Code's `dark` theme and, with
|
|
170
|
+
* Focus view on, its keys. The theme is fixed, not a Launch option: the owner's own theme may
|
|
171
|
+
* be `light`, which colours some text near-black, unreadable on k-bench's dark terminal.
|
|
170
172
|
* Focus view needs both keys: it does nothing without the fullscreen renderer, and
|
|
171
173
|
* fullscreen is not the default on every machine. `--settings` applies to that launch only
|
|
172
|
-
* and adds to the owner's own settings and hooks, leaving their files
|
|
174
|
+
* and adds to the owner's own settings and hooks, or outranks them, leaving their files
|
|
175
|
+
* unchanged.
|
|
173
176
|
*/
|
|
174
177
|
function launchSettings(focusView) {
|
|
175
178
|
return JSON.stringify({
|
|
176
179
|
hooks: launchHooks(),
|
|
180
|
+
theme: "dark",
|
|
177
181
|
...(focusView ? { viewMode: "focus", tui: "fullscreen" } : {}),
|
|
178
182
|
});
|
|
179
183
|
}
|
|
@@ -181,7 +185,7 @@ function launchSettings(focusView) {
|
|
|
181
185
|
* The flags that follow the one naming the conversation. This is where Launch options become
|
|
182
186
|
* flags: a Default option adds nothing. Advisor Off is not a flag (there is none): the
|
|
183
187
|
* launcher sets `CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1` for it. `--settings` is always passed,
|
|
184
|
-
* for k-bench's hooks.
|
|
188
|
+
* for k-bench's hooks and the dark theme.
|
|
185
189
|
*/
|
|
186
190
|
function launchOptionArguments(options) {
|
|
187
191
|
const { model, effort, advisor, focusView } = options;
|