@scotthamilton77/sidekick 0.1.32 → 0.1.34
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.
|
@@ -11,6 +11,7 @@ settings:
|
|
|
11
11
|
#
|
|
12
12
|
# Available placeholders:
|
|
13
13
|
# {model} - Current model name (e.g., "Opus")
|
|
14
|
+
# {effort} - Model reasoning effort level (e.g., "high"); empty when unsupported
|
|
14
15
|
# {contextBar} - Visual context usage graph (e.g., "🪙 ▓▓▒|░░░")
|
|
15
16
|
# {contextWindow} - Total context window size (e.g., "200k")
|
|
16
17
|
# {tokenUsageActual} - Current tokens without compaction buffer (e.g., "45k")
|
|
@@ -60,7 +61,7 @@ settings:
|
|
|
60
61
|
# Worktree-aware: "{branchWT,prefix=' | '}" → " | main" or " | feat/auth [wt]"
|
|
61
62
|
# Project name: "{projectDirShort}" → "claude-code-sidekick"
|
|
62
63
|
#
|
|
63
|
-
format: "{devMode,suffix=' | '}{personaName,prefix='[',suffix='] | '}{model,prefix='[',suffix='] |
|
|
64
|
+
format: "{devMode,suffix=' | '}{personaName,prefix='[',suffix='] | '}{model,prefix='[',suffix=']'}{effort,prefix=' (',suffix=')'} | {contextBar} {tokenPercentageActual} | {cost} | {logs} | {projectDirShort,maxLength=40}: {cwd,maxLength=40,truncateStyle='path'}{branchWT,prefix=' | ',maxLength=40}{title,wrapAt=120,prefix=' | ',wrapPrefix='\\n'}{summary,wrapAt=120,prefix=' | ',wrapPrefix='\\n'}"
|
|
64
65
|
|
|
65
66
|
# Threshold configuration for visual warnings
|
|
66
67
|
thresholds:
|
package/dist/bin.js
CHANGED
|
@@ -18830,7 +18830,7 @@ var require_hook_input = __commonJS({
|
|
|
18830
18830
|
"../types/dist/hook-input.js"(exports2) {
|
|
18831
18831
|
"use strict";
|
|
18832
18832
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18833
|
-
exports2.HookInputSchema = exports2.StatuslineInputSchema = exports2.StatuslineWorkspaceSchema = exports2.StatuslineCostSchema = exports2.StatuslineContextWindowSchema = exports2.StatuslineModelSchema = exports2.SubagentStopInputSchema = exports2.SubagentStartInputSchema = exports2.NotificationInputSchema = exports2.PostCompactInputSchema = exports2.PreCompactInputSchema = exports2.SessionEndInputSchema = exports2.SessionStartInputSchema = exports2.StopInputSchema = exports2.PostToolUseInputSchema = exports2.PreToolUseInputSchema = exports2.UserPromptSubmitInputSchema = exports2.HookInputBaseSchema = void 0;
|
|
18833
|
+
exports2.HookInputSchema = exports2.StatuslineInputSchema = exports2.StatuslineRateLimitsSchema = exports2.StatuslineRateLimitWindowSchema = exports2.StatuslineThinkingSchema = exports2.StatuslineWorkspaceSchema = exports2.StatuslineRepoSchema = exports2.StatuslineCostSchema = exports2.StatuslineContextWindowSchema = exports2.StatuslineEffortSchema = exports2.StatuslineModelSchema = exports2.SubagentStopInputSchema = exports2.SubagentStartInputSchema = exports2.NotificationInputSchema = exports2.PostCompactInputSchema = exports2.PreCompactInputSchema = exports2.SessionEndInputSchema = exports2.SessionStartInputSchema = exports2.StopInputSchema = exports2.PostToolUseInputSchema = exports2.PreToolUseInputSchema = exports2.UserPromptSubmitInputSchema = exports2.HookInputBaseSchema = void 0;
|
|
18834
18834
|
var zod_1 = require_zod();
|
|
18835
18835
|
exports2.HookInputBaseSchema = zod_1.z.object({
|
|
18836
18836
|
/** Unique identifier for the current Claude session */
|
|
@@ -18924,13 +18924,21 @@ var require_hook_input = __commonJS({
|
|
|
18924
18924
|
/** Human-readable display name (e.g., "Opus") */
|
|
18925
18925
|
display_name: zod_1.z.string()
|
|
18926
18926
|
});
|
|
18927
|
+
exports2.StatuslineEffortSchema = zod_1.z.object({
|
|
18928
|
+
/** Active effort level: "low", "medium", "high", "xhigh", or "max" */
|
|
18929
|
+
level: zod_1.z.string()
|
|
18930
|
+
});
|
|
18927
18931
|
exports2.StatuslineContextWindowSchema = zod_1.z.object({
|
|
18928
18932
|
/** Total input tokens used in session */
|
|
18929
18933
|
total_input_tokens: zod_1.z.number(),
|
|
18930
18934
|
/** Total output tokens used in session */
|
|
18931
18935
|
total_output_tokens: zod_1.z.number().optional(),
|
|
18932
18936
|
/** Maximum context window size for the model */
|
|
18933
|
-
context_window_size: zod_1.z.number().optional()
|
|
18937
|
+
context_window_size: zod_1.z.number().optional(),
|
|
18938
|
+
/** Percentage of context window used */
|
|
18939
|
+
used_percentage: zod_1.z.number().optional(),
|
|
18940
|
+
/** Percentage of context window remaining */
|
|
18941
|
+
remaining_percentage: zod_1.z.number().optional()
|
|
18934
18942
|
});
|
|
18935
18943
|
exports2.StatuslineCostSchema = zod_1.z.object({
|
|
18936
18944
|
/** Total cost in USD for the session */
|
|
@@ -18944,11 +18952,39 @@ var require_hook_input = __commonJS({
|
|
|
18944
18952
|
/** Total lines removed in session */
|
|
18945
18953
|
total_lines_removed: zod_1.z.number().optional()
|
|
18946
18954
|
});
|
|
18955
|
+
exports2.StatuslineRepoSchema = zod_1.z.object({
|
|
18956
|
+
/** Git hosting service (e.g., "github.com") */
|
|
18957
|
+
host: zod_1.z.string(),
|
|
18958
|
+
/** Repository owner/organization */
|
|
18959
|
+
owner: zod_1.z.string(),
|
|
18960
|
+
/** Repository name */
|
|
18961
|
+
name: zod_1.z.string()
|
|
18962
|
+
});
|
|
18947
18963
|
exports2.StatuslineWorkspaceSchema = zod_1.z.object({
|
|
18948
18964
|
/** Current working directory */
|
|
18949
18965
|
current_dir: zod_1.z.string(),
|
|
18950
18966
|
/** Original project directory */
|
|
18951
|
-
project_dir: zod_1.z.string()
|
|
18967
|
+
project_dir: zod_1.z.string(),
|
|
18968
|
+
/** Additional directories added to the session (e.g., via --add-dir) */
|
|
18969
|
+
added_dirs: zod_1.z.array(zod_1.z.string()).optional(),
|
|
18970
|
+
/** Git repository information, when the workspace is inside a known repo */
|
|
18971
|
+
repo: exports2.StatuslineRepoSchema.optional()
|
|
18972
|
+
});
|
|
18973
|
+
exports2.StatuslineThinkingSchema = zod_1.z.object({
|
|
18974
|
+
/** Whether extended thinking is enabled for the session */
|
|
18975
|
+
enabled: zod_1.z.boolean()
|
|
18976
|
+
});
|
|
18977
|
+
exports2.StatuslineRateLimitWindowSchema = zod_1.z.object({
|
|
18978
|
+
/** Percentage of the window's quota used */
|
|
18979
|
+
used_percentage: zod_1.z.number(),
|
|
18980
|
+
/** Unix epoch seconds when this window resets */
|
|
18981
|
+
resets_at: zod_1.z.number()
|
|
18982
|
+
});
|
|
18983
|
+
exports2.StatuslineRateLimitsSchema = zod_1.z.object({
|
|
18984
|
+
/** Five-hour rolling window usage */
|
|
18985
|
+
five_hour: exports2.StatuslineRateLimitWindowSchema.optional(),
|
|
18986
|
+
/** Seven-day rolling window usage */
|
|
18987
|
+
seven_day: exports2.StatuslineRateLimitWindowSchema.optional()
|
|
18952
18988
|
});
|
|
18953
18989
|
exports2.StatuslineInputSchema = zod_1.z.object({
|
|
18954
18990
|
/** Hook event name (always "Status" for statusline) */
|
|
@@ -18963,12 +18999,26 @@ var require_hook_input = __commonJS({
|
|
|
18963
18999
|
version: zod_1.z.string().optional(),
|
|
18964
19000
|
/** Model information with id and display_name */
|
|
18965
19001
|
model: exports2.StatuslineModelSchema,
|
|
19002
|
+
/** Model reasoning effort (present only when the model supports the effort parameter) */
|
|
19003
|
+
effort: exports2.StatuslineEffortSchema.optional(),
|
|
19004
|
+
/** Unique identifier for the current prompt */
|
|
19005
|
+
prompt_id: zod_1.z.string().optional(),
|
|
19006
|
+
/** User-assigned session name */
|
|
19007
|
+
session_name: zod_1.z.string().optional(),
|
|
18966
19008
|
/** Workspace paths */
|
|
18967
19009
|
workspace: exports2.StatuslineWorkspaceSchema.optional(),
|
|
18968
19010
|
/** Cost and duration metrics */
|
|
18969
19011
|
cost: exports2.StatuslineCostSchema.optional(),
|
|
18970
19012
|
/** Context window usage */
|
|
18971
19013
|
context_window: exports2.StatuslineContextWindowSchema.optional(),
|
|
19014
|
+
/** Whether the session has exceeded 200k tokens */
|
|
19015
|
+
exceeds_200k_tokens: zod_1.z.boolean().optional(),
|
|
19016
|
+
/** Whether fast mode is active for the session */
|
|
19017
|
+
fast_mode: zod_1.z.boolean().optional(),
|
|
19018
|
+
/** Extended thinking mode status */
|
|
19019
|
+
thinking: exports2.StatuslineThinkingSchema.optional(),
|
|
19020
|
+
/** Rate limit usage across rolling windows */
|
|
19021
|
+
rate_limits: exports2.StatuslineRateLimitsSchema.optional(),
|
|
18972
19022
|
/** Output style configuration */
|
|
18973
19023
|
output_style: zod_1.z.object({ name: zod_1.z.string() }).optional()
|
|
18974
19024
|
});
|
|
@@ -47587,7 +47637,7 @@ var require_build_identity = __commonJS({
|
|
|
47587
47637
|
var path_1 = __importDefault2(require("path"));
|
|
47588
47638
|
var DEV_PREFIX = "dev:";
|
|
47589
47639
|
var NO_DIST_SENTINEL = "nodist";
|
|
47590
|
-
function computeBuildIdentity(injectedVersion = true ? "0.1.
|
|
47640
|
+
function computeBuildIdentity(injectedVersion = true ? "0.1.34" : void 0, devFingerprint = computeDevFingerprint) {
|
|
47591
47641
|
return injectedVersion !== void 0 ? injectedVersion : DEV_PREFIX + devFingerprint();
|
|
47592
47642
|
}
|
|
47593
47643
|
function computeDevFingerprint() {
|
|
@@ -80565,7 +80615,7 @@ var require_types4 = __commonJS({
|
|
|
80565
80615
|
});
|
|
80566
80616
|
exports2.DEFAULT_STATUSLINE_CONFIG = {
|
|
80567
80617
|
enabled: true,
|
|
80568
|
-
format: "{devMode,suffix=' | '}{personaName,prefix='[',suffix='] | '}{model,prefix='[',suffix='] |
|
|
80618
|
+
format: "{devMode,suffix=' | '}{personaName,prefix='[',suffix='] | '}{model,prefix='[',suffix=']'}{effort,prefix=' (',suffix=')'} | {contextBar} {tokenPercentageActual} | {logs} | {cwd,maxLength=40,truncateStyle='path'}{branchWT,prefix=' | ',maxLength=40}{title,wrapAt=80,prefix=' | ',wrapPrefix='\\n'}\n{summary}",
|
|
80569
80619
|
thresholds: {
|
|
80570
80620
|
tokens: { warning: 1e5, critical: 16e4 },
|
|
80571
80621
|
cost: { warning: 0.5, critical: 1 },
|
|
@@ -81299,6 +81349,7 @@ var require_formatter = __commonJS({
|
|
|
81299
81349
|
const convertedTitle = this.convertMarkdown(viewModel.title);
|
|
81300
81350
|
const rawTokens = {
|
|
81301
81351
|
model: viewModel.model,
|
|
81352
|
+
effort: viewModel.effort,
|
|
81302
81353
|
contextWindow: viewModel.contextWindow,
|
|
81303
81354
|
tokenUsageActual: viewModel.tokenUsageActual,
|
|
81304
81355
|
tokenUsageEffective: viewModel.tokenUsageEffective,
|
|
@@ -81421,6 +81472,8 @@ var require_formatter = __commonJS({
|
|
|
81421
81472
|
return this.colorizeByStatus(value, viewModel.logStatus);
|
|
81422
81473
|
case "model":
|
|
81423
81474
|
return this.colorize(value, this.theme.colors.model);
|
|
81475
|
+
case "effort":
|
|
81476
|
+
return this.colorize(value, this.theme.colors.effort ?? this.theme.colors.model);
|
|
81424
81477
|
case "contextWindow":
|
|
81425
81478
|
return this.colorize(value, this.theme.colors.tokens);
|
|
81426
81479
|
case "duration":
|
|
@@ -81756,6 +81809,7 @@ var require_statusline_service = __commonJS({
|
|
|
81756
81809
|
var types_js_1 = require_types4();
|
|
81757
81810
|
var EMPTY_STATUSLINE_VIEWMODEL = {
|
|
81758
81811
|
model: "",
|
|
81812
|
+
effort: "",
|
|
81759
81813
|
contextWindow: "",
|
|
81760
81814
|
tokenUsageActual: "",
|
|
81761
81815
|
tokenUsageEffective: "",
|
|
@@ -82156,6 +82210,7 @@ var require_statusline_service = __commonJS({
|
|
|
82156
82210
|
const costUsd = this.hookInput?.cost.total_cost_usd ?? 0;
|
|
82157
82211
|
const durationMs = this.hookInput?.cost.total_duration_ms ?? 0;
|
|
82158
82212
|
const modelName = this.hookInput?.model.display_name ?? "unknown";
|
|
82213
|
+
const effort = this.hookInput?.effort?.level ?? "";
|
|
82159
82214
|
const totalWithBuffer = effectiveTokens + baseline.autocompactBufferTokens;
|
|
82160
82215
|
const contextWindowSize = this.hookInput?.context_window.context_window_size ?? 2e5;
|
|
82161
82216
|
const actualPercentage = Math.round(effectiveTokens / contextWindowSize * 100);
|
|
@@ -82170,6 +82225,7 @@ var require_statusline_service = __commonJS({
|
|
|
82170
82225
|
const homeShorten = (p) => this.homeDir && p.startsWith(this.homeDir) ? "~" + p.slice(this.homeDir.length) : p;
|
|
82171
82226
|
return {
|
|
82172
82227
|
model: this.formatModelName(modelName),
|
|
82228
|
+
effort,
|
|
82173
82229
|
contextWindow: (0, formatter_js_1.formatTokens)(contextWindowSize),
|
|
82174
82230
|
tokenUsageActual: isIndeterminate ? "\u27F3 compacted" : (0, formatter_js_1.formatTokens)(effectiveTokens),
|
|
82175
82231
|
tokenUsageEffective: isIndeterminate ? "\u27F3 compacted" : (0, formatter_js_1.formatTokens)(totalWithBuffer),
|
|
@@ -82469,12 +82525,32 @@ Examples:
|
|
|
82469
82525
|
if (typeof raw.cwd !== "string")
|
|
82470
82526
|
return void 0;
|
|
82471
82527
|
const model = raw.model;
|
|
82528
|
+
const effort = raw.effort;
|
|
82472
82529
|
const workspace = raw.workspace;
|
|
82473
82530
|
const outputStyle = raw.output_style;
|
|
82474
82531
|
const cost = raw.cost;
|
|
82475
82532
|
const contextWindow = raw.context_window;
|
|
82476
82533
|
const currentUsage = contextWindow?.current_usage;
|
|
82534
|
+
const thinking = raw.thinking;
|
|
82535
|
+
const rateLimits = raw.rate_limits;
|
|
82477
82536
|
const num = (val, fallback) => typeof val === "number" ? val : fallback;
|
|
82537
|
+
const parseRateLimitWindow = (val) => {
|
|
82538
|
+
if (typeof val !== "object" || val === null)
|
|
82539
|
+
return void 0;
|
|
82540
|
+
const w = val;
|
|
82541
|
+
if (typeof w.used_percentage !== "number" || typeof w.resets_at !== "number")
|
|
82542
|
+
return void 0;
|
|
82543
|
+
return { used_percentage: w.used_percentage, resets_at: w.resets_at };
|
|
82544
|
+
};
|
|
82545
|
+
const parseRepo = (val) => {
|
|
82546
|
+
if (typeof val !== "object" || val === null)
|
|
82547
|
+
return void 0;
|
|
82548
|
+
const r = val;
|
|
82549
|
+
if (typeof r.host !== "string" || typeof r.owner !== "string" || typeof r.name !== "string")
|
|
82550
|
+
return void 0;
|
|
82551
|
+
return { host: r.host, owner: r.owner, name: r.name };
|
|
82552
|
+
};
|
|
82553
|
+
const repo = parseRepo(workspace?.repo);
|
|
82478
82554
|
return {
|
|
82479
82555
|
hook_event_name: "Status",
|
|
82480
82556
|
session_id: raw.session_id,
|
|
@@ -82485,9 +82561,15 @@ Examples:
|
|
|
82485
82561
|
id: model?.id ?? "unknown",
|
|
82486
82562
|
display_name: model?.display_name ?? "unknown"
|
|
82487
82563
|
},
|
|
82564
|
+
// Preserve effort only when present; absent when the model doesn't support the parameter
|
|
82565
|
+
...typeof effort?.level === "string" && { effort: { level: effort.level } },
|
|
82566
|
+
...typeof raw.prompt_id === "string" && { prompt_id: raw.prompt_id },
|
|
82567
|
+
...typeof raw.session_name === "string" && { session_name: raw.session_name },
|
|
82488
82568
|
workspace: {
|
|
82489
82569
|
current_dir: workspace?.current_dir ?? raw.cwd,
|
|
82490
|
-
project_dir: workspace?.project_dir ?? raw.cwd
|
|
82570
|
+
project_dir: workspace?.project_dir ?? raw.cwd,
|
|
82571
|
+
...Array.isArray(workspace?.added_dirs) && { added_dirs: workspace.added_dirs },
|
|
82572
|
+
...repo !== void 0 && { repo }
|
|
82491
82573
|
},
|
|
82492
82574
|
output_style: {
|
|
82493
82575
|
name: outputStyle?.name ?? "default"
|
|
@@ -82504,6 +82586,10 @@ Examples:
|
|
|
82504
82586
|
total_output_tokens: num(contextWindow?.total_output_tokens, 0),
|
|
82505
82587
|
// Default to 200k if not specified - reasonable for Claude models
|
|
82506
82588
|
context_window_size: num(contextWindow?.context_window_size, 2e5),
|
|
82589
|
+
...typeof contextWindow?.used_percentage === "number" && { used_percentage: contextWindow.used_percentage },
|
|
82590
|
+
...typeof contextWindow?.remaining_percentage === "number" && {
|
|
82591
|
+
remaining_percentage: contextWindow.remaining_percentage
|
|
82592
|
+
},
|
|
82507
82593
|
// Preserve null when current_usage is null (can happen at session start)
|
|
82508
82594
|
// This allows StatuslineService to fall back to transcript metrics
|
|
82509
82595
|
current_usage: currentUsage ? {
|
|
@@ -82513,6 +82599,19 @@ Examples:
|
|
|
82513
82599
|
cache_read_input_tokens: num(currentUsage.cache_read_input_tokens, 0)
|
|
82514
82600
|
} : null
|
|
82515
82601
|
},
|
|
82602
|
+
...typeof raw.exceeds_200k_tokens === "boolean" && { exceeds_200k_tokens: raw.exceeds_200k_tokens },
|
|
82603
|
+
...typeof raw.fast_mode === "boolean" && { fast_mode: raw.fast_mode },
|
|
82604
|
+
...typeof thinking?.enabled === "boolean" && { thinking: { enabled: thinking.enabled } },
|
|
82605
|
+
...typeof rateLimits === "object" && rateLimits !== null && {
|
|
82606
|
+
rate_limits: (() => {
|
|
82607
|
+
const fiveHour = parseRateLimitWindow(rateLimits.five_hour);
|
|
82608
|
+
const sevenDay = parseRateLimitWindow(rateLimits.seven_day);
|
|
82609
|
+
return {
|
|
82610
|
+
...fiveHour !== void 0 && { five_hour: fiveHour },
|
|
82611
|
+
...sevenDay !== void 0 && { seven_day: sevenDay }
|
|
82612
|
+
};
|
|
82613
|
+
})()
|
|
82614
|
+
},
|
|
82516
82615
|
// Parse optional worktree data (only present in worktree sessions)
|
|
82517
82616
|
worktree: raw.worktree ? (() => {
|
|
82518
82617
|
const wt = raw.worktree;
|
|
@@ -87521,7 +87620,7 @@ var require_cli = __commonJS({
|
|
|
87521
87620
|
var promises_12 = require("node:fs/promises");
|
|
87522
87621
|
var node_stream_1 = require("node:stream");
|
|
87523
87622
|
var yargs_parser_1 = __importDefault2(require_build());
|
|
87524
|
-
var VERSION = true ? "0.1.
|
|
87623
|
+
var VERSION = true ? "0.1.34" : "dev";
|
|
87525
87624
|
var SANDBOX_ERROR_MESSAGE = `Error: Daemon commands cannot run in sandbox mode.
|
|
87526
87625
|
|
|
87527
87626
|
Claude Code's sandbox blocks Unix socket operations required for daemon IPC.
|
package/dist/daemon.js
CHANGED
|
@@ -17854,7 +17854,7 @@ var require_hook_input = __commonJS({
|
|
|
17854
17854
|
"../types/dist/hook-input.js"(exports2) {
|
|
17855
17855
|
"use strict";
|
|
17856
17856
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17857
|
-
exports2.HookInputSchema = exports2.StatuslineInputSchema = exports2.StatuslineWorkspaceSchema = exports2.StatuslineCostSchema = exports2.StatuslineContextWindowSchema = exports2.StatuslineModelSchema = exports2.SubagentStopInputSchema = exports2.SubagentStartInputSchema = exports2.NotificationInputSchema = exports2.PostCompactInputSchema = exports2.PreCompactInputSchema = exports2.SessionEndInputSchema = exports2.SessionStartInputSchema = exports2.StopInputSchema = exports2.PostToolUseInputSchema = exports2.PreToolUseInputSchema = exports2.UserPromptSubmitInputSchema = exports2.HookInputBaseSchema = void 0;
|
|
17857
|
+
exports2.HookInputSchema = exports2.StatuslineInputSchema = exports2.StatuslineRateLimitsSchema = exports2.StatuslineRateLimitWindowSchema = exports2.StatuslineThinkingSchema = exports2.StatuslineWorkspaceSchema = exports2.StatuslineRepoSchema = exports2.StatuslineCostSchema = exports2.StatuslineContextWindowSchema = exports2.StatuslineEffortSchema = exports2.StatuslineModelSchema = exports2.SubagentStopInputSchema = exports2.SubagentStartInputSchema = exports2.NotificationInputSchema = exports2.PostCompactInputSchema = exports2.PreCompactInputSchema = exports2.SessionEndInputSchema = exports2.SessionStartInputSchema = exports2.StopInputSchema = exports2.PostToolUseInputSchema = exports2.PreToolUseInputSchema = exports2.UserPromptSubmitInputSchema = exports2.HookInputBaseSchema = void 0;
|
|
17858
17858
|
var zod_1 = require_zod();
|
|
17859
17859
|
exports2.HookInputBaseSchema = zod_1.z.object({
|
|
17860
17860
|
/** Unique identifier for the current Claude session */
|
|
@@ -17948,13 +17948,21 @@ var require_hook_input = __commonJS({
|
|
|
17948
17948
|
/** Human-readable display name (e.g., "Opus") */
|
|
17949
17949
|
display_name: zod_1.z.string()
|
|
17950
17950
|
});
|
|
17951
|
+
exports2.StatuslineEffortSchema = zod_1.z.object({
|
|
17952
|
+
/** Active effort level: "low", "medium", "high", "xhigh", or "max" */
|
|
17953
|
+
level: zod_1.z.string()
|
|
17954
|
+
});
|
|
17951
17955
|
exports2.StatuslineContextWindowSchema = zod_1.z.object({
|
|
17952
17956
|
/** Total input tokens used in session */
|
|
17953
17957
|
total_input_tokens: zod_1.z.number(),
|
|
17954
17958
|
/** Total output tokens used in session */
|
|
17955
17959
|
total_output_tokens: zod_1.z.number().optional(),
|
|
17956
17960
|
/** Maximum context window size for the model */
|
|
17957
|
-
context_window_size: zod_1.z.number().optional()
|
|
17961
|
+
context_window_size: zod_1.z.number().optional(),
|
|
17962
|
+
/** Percentage of context window used */
|
|
17963
|
+
used_percentage: zod_1.z.number().optional(),
|
|
17964
|
+
/** Percentage of context window remaining */
|
|
17965
|
+
remaining_percentage: zod_1.z.number().optional()
|
|
17958
17966
|
});
|
|
17959
17967
|
exports2.StatuslineCostSchema = zod_1.z.object({
|
|
17960
17968
|
/** Total cost in USD for the session */
|
|
@@ -17968,11 +17976,39 @@ var require_hook_input = __commonJS({
|
|
|
17968
17976
|
/** Total lines removed in session */
|
|
17969
17977
|
total_lines_removed: zod_1.z.number().optional()
|
|
17970
17978
|
});
|
|
17979
|
+
exports2.StatuslineRepoSchema = zod_1.z.object({
|
|
17980
|
+
/** Git hosting service (e.g., "github.com") */
|
|
17981
|
+
host: zod_1.z.string(),
|
|
17982
|
+
/** Repository owner/organization */
|
|
17983
|
+
owner: zod_1.z.string(),
|
|
17984
|
+
/** Repository name */
|
|
17985
|
+
name: zod_1.z.string()
|
|
17986
|
+
});
|
|
17971
17987
|
exports2.StatuslineWorkspaceSchema = zod_1.z.object({
|
|
17972
17988
|
/** Current working directory */
|
|
17973
17989
|
current_dir: zod_1.z.string(),
|
|
17974
17990
|
/** Original project directory */
|
|
17975
|
-
project_dir: zod_1.z.string()
|
|
17991
|
+
project_dir: zod_1.z.string(),
|
|
17992
|
+
/** Additional directories added to the session (e.g., via --add-dir) */
|
|
17993
|
+
added_dirs: zod_1.z.array(zod_1.z.string()).optional(),
|
|
17994
|
+
/** Git repository information, when the workspace is inside a known repo */
|
|
17995
|
+
repo: exports2.StatuslineRepoSchema.optional()
|
|
17996
|
+
});
|
|
17997
|
+
exports2.StatuslineThinkingSchema = zod_1.z.object({
|
|
17998
|
+
/** Whether extended thinking is enabled for the session */
|
|
17999
|
+
enabled: zod_1.z.boolean()
|
|
18000
|
+
});
|
|
18001
|
+
exports2.StatuslineRateLimitWindowSchema = zod_1.z.object({
|
|
18002
|
+
/** Percentage of the window's quota used */
|
|
18003
|
+
used_percentage: zod_1.z.number(),
|
|
18004
|
+
/** Unix epoch seconds when this window resets */
|
|
18005
|
+
resets_at: zod_1.z.number()
|
|
18006
|
+
});
|
|
18007
|
+
exports2.StatuslineRateLimitsSchema = zod_1.z.object({
|
|
18008
|
+
/** Five-hour rolling window usage */
|
|
18009
|
+
five_hour: exports2.StatuslineRateLimitWindowSchema.optional(),
|
|
18010
|
+
/** Seven-day rolling window usage */
|
|
18011
|
+
seven_day: exports2.StatuslineRateLimitWindowSchema.optional()
|
|
17976
18012
|
});
|
|
17977
18013
|
exports2.StatuslineInputSchema = zod_1.z.object({
|
|
17978
18014
|
/** Hook event name (always "Status" for statusline) */
|
|
@@ -17987,12 +18023,26 @@ var require_hook_input = __commonJS({
|
|
|
17987
18023
|
version: zod_1.z.string().optional(),
|
|
17988
18024
|
/** Model information with id and display_name */
|
|
17989
18025
|
model: exports2.StatuslineModelSchema,
|
|
18026
|
+
/** Model reasoning effort (present only when the model supports the effort parameter) */
|
|
18027
|
+
effort: exports2.StatuslineEffortSchema.optional(),
|
|
18028
|
+
/** Unique identifier for the current prompt */
|
|
18029
|
+
prompt_id: zod_1.z.string().optional(),
|
|
18030
|
+
/** User-assigned session name */
|
|
18031
|
+
session_name: zod_1.z.string().optional(),
|
|
17990
18032
|
/** Workspace paths */
|
|
17991
18033
|
workspace: exports2.StatuslineWorkspaceSchema.optional(),
|
|
17992
18034
|
/** Cost and duration metrics */
|
|
17993
18035
|
cost: exports2.StatuslineCostSchema.optional(),
|
|
17994
18036
|
/** Context window usage */
|
|
17995
18037
|
context_window: exports2.StatuslineContextWindowSchema.optional(),
|
|
18038
|
+
/** Whether the session has exceeded 200k tokens */
|
|
18039
|
+
exceeds_200k_tokens: zod_1.z.boolean().optional(),
|
|
18040
|
+
/** Whether fast mode is active for the session */
|
|
18041
|
+
fast_mode: zod_1.z.boolean().optional(),
|
|
18042
|
+
/** Extended thinking mode status */
|
|
18043
|
+
thinking: exports2.StatuslineThinkingSchema.optional(),
|
|
18044
|
+
/** Rate limit usage across rolling windows */
|
|
18045
|
+
rate_limits: exports2.StatuslineRateLimitsSchema.optional(),
|
|
17996
18046
|
/** Output style configuration */
|
|
17997
18047
|
output_style: zod_1.z.object({ name: zod_1.z.string() }).optional()
|
|
17998
18048
|
});
|
|
@@ -46611,7 +46661,7 @@ var require_build_identity = __commonJS({
|
|
|
46611
46661
|
var path_1 = __importDefault(require("path"));
|
|
46612
46662
|
var DEV_PREFIX = "dev:";
|
|
46613
46663
|
var NO_DIST_SENTINEL = "nodist";
|
|
46614
|
-
function computeBuildIdentity(injectedVersion = true ? "0.1.
|
|
46664
|
+
function computeBuildIdentity(injectedVersion = true ? "0.1.34" : void 0, devFingerprint = computeDevFingerprint) {
|
|
46615
46665
|
return injectedVersion !== void 0 ? injectedVersion : DEV_PREFIX + devFingerprint();
|
|
46616
46666
|
}
|
|
46617
46667
|
function computeDevFingerprint() {
|