claude-scope 0.2.2 → 0.2.4
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/claude-scope.cjs +2 -2
- package/package.json +1 -1
package/dist/claude-scope.cjs
CHANGED
|
@@ -429,7 +429,7 @@ var ContextWidget = class extends StdinDataWidget {
|
|
|
429
429
|
renderWithData(data, context) {
|
|
430
430
|
const { current_usage, context_window_size } = data.context_window;
|
|
431
431
|
if (!current_usage) return null;
|
|
432
|
-
const used = current_usage.input_tokens + current_usage.cache_creation_input_tokens + current_usage.output_tokens;
|
|
432
|
+
const used = current_usage.input_tokens + current_usage.cache_creation_input_tokens + current_usage.cache_read_input_tokens + current_usage.output_tokens;
|
|
433
433
|
const percent = Math.round(used / context_window_size * 100);
|
|
434
434
|
const bar = progressBar(percent, DEFAULTS.PROGRESS_BAR_WIDTH);
|
|
435
435
|
const color = getContextColor(percent);
|
|
@@ -643,7 +643,7 @@ var OutputStyleSchema = object({
|
|
|
643
643
|
name: string()
|
|
644
644
|
});
|
|
645
645
|
var StdinDataSchema = object({
|
|
646
|
-
hook_event_name: literal("Status"),
|
|
646
|
+
hook_event_name: optional(literal("Status")),
|
|
647
647
|
session_id: string(),
|
|
648
648
|
transcript_path: string(),
|
|
649
649
|
cwd: string(),
|