@fbincon/claude-code-statusline 3.4.0 → 3.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.
Files changed (98) hide show
  1. package/README.md +77 -75
  2. package/candidate.json +192 -167
  3. package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js +5 -0
  4. package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js.map +1 -1
  5. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.d.ts +2 -0
  6. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js +14 -0
  7. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js.map +1 -1
  8. package/node_modules/@fbincon/statusline-cli/dist/src/help.js +5 -2
  9. package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
  10. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js +1 -1
  11. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js.map +1 -1
  12. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +2 -0
  13. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -1
  14. package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.d.ts +2 -0
  15. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.d.ts +23 -0
  16. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.js +168 -0
  17. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.js.map +1 -0
  18. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.d.ts +3 -0
  19. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js +64 -0
  20. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js.map +1 -0
  21. package/node_modules/@fbincon/statusline-cli/dist/src/main.js +8 -4
  22. package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -1
  23. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +1 -1
  24. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +1 -0
  25. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
  26. package/node_modules/@fbincon/statusline-cli/resources/statusline-config/SKILL.md +5 -0
  27. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +1 -1
  28. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +7 -3
  29. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/profile-manager.ts +21 -2
  30. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts +14 -11
  31. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/setup.ts +60 -0
  32. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +500 -4
  33. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +432 -6
  34. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +11 -10
  35. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +1 -1
  36. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +1 -1
  37. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +3 -3
  38. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.d.ts +1 -0
  39. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +5 -2
  40. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js.map +1 -1
  41. package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +1 -1
  42. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +12 -10
  43. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -1
  44. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.d.ts +3 -0
  45. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +11 -0
  46. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -1
  47. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +4 -0
  48. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +37 -3
  49. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -1
  50. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +24 -0
  51. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +1 -1
  52. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -1
  53. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +131 -2
  54. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +485 -2
  55. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
  56. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +7 -3
  57. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
  58. package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.d.ts +3 -0
  59. package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js +26 -1
  60. package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js.map +1 -1
  61. package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.d.ts +4 -4
  62. package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js +16 -9
  63. package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js.map +1 -1
  64. package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.d.ts +30 -0
  65. package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js +96 -0
  66. package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js.map +1 -0
  67. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +426 -0
  68. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +432 -6
  69. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
  70. package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
  71. package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
  72. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.d.ts +3 -1
  73. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +24 -2
  74. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -1
  75. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +3 -1
  76. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +18 -5
  77. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -1
  78. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +4 -4
  79. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -1
  80. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.d.ts +15 -5
  81. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +78 -48
  82. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -1
  83. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +6 -0
  84. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -1
  85. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +3 -3
  86. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js.map +1 -1
  87. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +72 -1
  88. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +72 -1
  89. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +72 -1
  90. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +72 -1
  91. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +72 -1
  92. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +72 -1
  93. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +1 -1
  94. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
  95. package/node_modules/@fbincon/statusline-tui/dist/src/setup.d.ts +12 -0
  96. package/node_modules/@fbincon/statusline-tui/dist/src/setup.js +75 -0
  97. package/node_modules/@fbincon/statusline-tui/dist/src/setup.js.map +1 -0
  98. package/package.json +1 -1
@@ -1,10 +1,489 @@
1
1
  // Generated by tools/generation/resources.ts; do not edit.
2
- export const PROTOCOL_VERSION = 15 as const;
2
+ export const PROTOCOL_VERSION = 16 as const;
3
3
  export const ITEM_DEFAULTS = {"label": null, "icon": null, "priority": 50, "max_width": null, "formatting": {}, "foreground": null, "background": null, "visibility": "always", "visibility_threshold": 70};
4
4
  export const VISIBILITY_ITEMS = {"main": {"git": "git-dirty", "git-changes": "git-dirty", "active-agents": "nonzero", "task-progress": "nonzero", "context-used": "used-at-least", "context-remaining": "used-at-least", "five-hour-limit": "used-at-least", "weekly-limit": "used-at-least", "spend-limit": "used-at-least"}, "subagent": {"context-used": "used-at-least", "context-remaining": "used-at-least"}} as const;
5
5
  export const GUIDANCE_KEYS = {"source_kinds": ["configuration", "official_input", "local_git", "local_system", "transcript", "local_state", "lifecycle", "native_timing", "live_metrics", "telemetry"], "scopes": ["main", "main_context", "session", "all_sessions", "task", "subagent", "subagent_context", "repository", "local", "latest_request"], "requirements": ["observed_field", "subagent_rows", "agent_context", "configured_effort", "agent_effort_optional", "git_repository", "git_upstream", "git_base", "pull_request", "worktree_session", "usage_records", "task_observation", "native_timing", "complete_waits", "live_metrics", "owned_agents", "checklist_events", "tool_events", "complete_stream", "request_coverage", "existing_telemetry", "gateway", "gateway_284", "valid_window", "warm_cache", "fast_mode", "thinking", "agent_mode", "vim_mode", "context_observation"]} as const;
6
- export const EDITOR_FIELDS = {"global": [{"key": "theme", "label": "Statusline theme", "group": "Appearance", "kind": "choice", "choices": ["classic", "dark", "light", "terminal"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "powerline_glyph", "label": "Powerline separator", "group": "Appearance", "kind": "choice", "choices": ["ascii", "powerline"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "statusline_language", "label": "Statusline language (save with display settings)", "group": "Appearance", "kind": "choice", "choices": ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "metrics.branch_diff_base_ref", "label": "Branch diff base (inherit = auto)", "group": "Git metrics", "kind": "text", "choices": [], "minimum": 0, "maximum": 10000, "nullable": true}, {"key": "formatting.model_name", "label": "Model Name", "group": "Formatting", "kind": "choice", "choices": ["original", "short"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.number_format", "label": "Number Format", "group": "Formatting", "kind": "choice", "choices": ["legacy", "compact", "full", "grouped"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.labels", "label": "Labels", "group": "Formatting", "kind": "choice", "choices": ["legacy", "short", "off"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.icons", "label": "Icons", "group": "Formatting", "kind": "choice", "choices": ["legacy", "unicode", "ascii", "off"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.allowance", "label": "Allowance", "group": "Formatting", "kind": "choice", "choices": ["remaining", "used"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.reset_format", "label": "Reset Format", "group": "Formatting", "kind": "choice", "choices": ["countdown", "time", "datetime"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.reset_timezone", "label": "Reset Timezone", "group": "Formatting", "kind": "choice", "choices": ["local", "UTC"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.thresholds.enabled", "label": "Threshold colors", "group": "Risk colors", "kind": "boolean", "choices": [], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "formatting.thresholds.warning", "label": "Warning (%)", "group": "Risk colors", "kind": "integer", "choices": [], "minimum": 0, "maximum": 100, "nullable": false}, {"key": "formatting.thresholds.critical", "label": "Critical (%)", "group": "Risk colors", "kind": "integer", "choices": [], "minimum": 0, "maximum": 100, "nullable": false}, {"key": "subagents.visibility", "label": "Visible agents", "group": "Subagent visibility", "kind": "choice", "choices": ["all", "running"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "subagents.hide_completed", "label": "Hide completed", "group": "Subagent visibility", "kind": "boolean", "choices": [], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "subagents.row_limit", "label": "Agent row limit", "group": "Subagent visibility", "kind": "integer", "choices": [], "minimum": 0, "maximum": 10000, "nullable": true}, {"key": "subagents.task_max_width", "label": "Task text width", "group": "Subagent visibility", "kind": "integer", "choices": [], "minimum": 2, "maximum": 10000, "nullable": true}], "item": [{"key": "foreground", "label": "Foreground (inherit/default/ansi:N/#RRGGBB)", "group": "Item colors", "kind": "text", "choices": [], "minimum": 0, "maximum": 10000, "nullable": true}, {"key": "background", "label": "Background (inherit/default/ansi:N/#RRGGBB)", "group": "Item colors", "kind": "text", "choices": [], "minimum": 0, "maximum": 10000, "nullable": true}, {"key": "visibility", "label": "Visibility rule", "group": "Conditional visibility", "kind": "choice", "choices": ["always", "git-dirty", "nonzero", "used-at-least"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "visibility_threshold", "label": "Minimum used (%)", "group": "Conditional visibility", "kind": "integer", "choices": [], "minimum": 0, "maximum": 100, "nullable": false}, {"key": "label", "label": "Label (inherit = default)", "group": "Item format", "kind": "text", "choices": [], "minimum": 0, "maximum": 10000, "nullable": true}, {"key": "icon", "label": "Icon (inherit = default)", "group": "Item format", "kind": "text", "choices": [], "minimum": 0, "maximum": 10000, "nullable": true}, {"key": "priority", "label": "Priority", "group": "Item fitting", "kind": "integer", "choices": [], "minimum": 0, "maximum": 100, "nullable": false}, {"key": "max_width", "label": "Maximum width", "group": "Item fitting", "kind": "integer", "choices": [], "minimum": 2, "maximum": 10000, "nullable": true}, {"key": "model_name", "label": "Model Name", "group": "Item format", "kind": "choice", "choices": ["inherit", "original", "short"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "number_format", "label": "Number Format", "group": "Item format", "kind": "choice", "choices": ["inherit", "legacy", "compact", "full", "grouped"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "labels", "label": "Labels", "group": "Item format", "kind": "choice", "choices": ["inherit", "legacy", "short", "off"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "icons", "label": "Icons", "group": "Item format", "kind": "choice", "choices": ["inherit", "legacy", "unicode", "ascii", "off"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "allowance", "label": "Allowance", "group": "Item format", "kind": "choice", "choices": ["inherit", "remaining", "used"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "reset_format", "label": "Reset Format", "group": "Item format", "kind": "choice", "choices": ["inherit", "countdown", "time", "datetime"], "minimum": 0, "maximum": 10000, "nullable": false}, {"key": "reset_timezone", "label": "Reset Timezone", "group": "Item format", "kind": "choice", "choices": ["inherit", "local", "UTC"], "minimum": 0, "maximum": 10000, "nullable": false}]} as const;
7
- export const PRESETS = [{"id": "developer", "purpose_key": "quick.purpose.developer", "requirements_key": "quick.requirements.developer", "example": false, "label": "Developer", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer", "session-cost"]], "layout_mode": "explicit"}, {"id": "minimal", "purpose_key": "quick.purpose.minimal", "requirements_key": "quick.requirements.minimal", "example": false, "label": "Minimal", "rows": [["model-with-effort", "current-dir", "context-remaining", "task-timer"]], "layout_mode": "auto"}, {"id": "monitoring", "purpose_key": "quick.purpose.monitoring", "requirements_key": "quick.requirements.monitoring", "example": false, "label": "Monitoring", "rows": [["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]], "layout_mode": "explicit"}, {"id": "multi-agent", "purpose_key": "quick.purpose.multi-agent", "requirements_key": "quick.requirements.multi-agent", "example": false, "label": "Multi Agent", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer"]], "layout_mode": "explicit"}, {"id": "left-right", "purpose_key": "quick.purpose.left-right", "requirements_key": "quick.requirements.left-right", "example": true, "label": "Left Right", "rows": [["model-with-effort", "git", "spacer", "context-remaining"]], "layout_mode": "explicit"}, {"id": "repeated-metrics", "purpose_key": "quick.purpose.repeated-metrics", "requirements_key": "quick.requirements.repeated-metrics", "example": true, "label": "Repeated Metrics", "rows": [["input-tokens", "input-tokens"]], "layout_mode": "explicit"}] as const;
6
+ export const POWERLINE_FIELDS = [
7
+ {
8
+ "key": "powerline.padding",
9
+ "label": "Block padding",
10
+ "group": "Appearance",
11
+ "kind": "choice",
12
+ "choices": [
13
+ "none",
14
+ "left",
15
+ "right",
16
+ "both"
17
+ ],
18
+ "minimum": 0,
19
+ "maximum": 10000,
20
+ "nullable": false
21
+ },
22
+ {
23
+ "key": "powerline.separator",
24
+ "label": "Block separator",
25
+ "group": "Appearance",
26
+ "kind": "choice",
27
+ "choices": [
28
+ "arrow",
29
+ "slash",
30
+ "bar",
31
+ "none"
32
+ ],
33
+ "minimum": 0,
34
+ "maximum": 10000,
35
+ "nullable": false
36
+ },
37
+ {
38
+ "key": "powerline.start_cap",
39
+ "label": "Start decoration",
40
+ "group": "Appearance",
41
+ "kind": "boolean",
42
+ "choices": [],
43
+ "minimum": 0,
44
+ "maximum": 10000,
45
+ "nullable": false
46
+ },
47
+ {
48
+ "key": "powerline.end_cap",
49
+ "label": "End decoration",
50
+ "group": "Appearance",
51
+ "kind": "boolean",
52
+ "choices": [],
53
+ "minimum": 0,
54
+ "maximum": 10000,
55
+ "nullable": false
56
+ },
57
+ {
58
+ "key": "powerline.color_mode",
59
+ "label": "Block colors across lines",
60
+ "group": "Appearance",
61
+ "kind": "choice",
62
+ "choices": [
63
+ "semantic",
64
+ "continuous",
65
+ "restart"
66
+ ],
67
+ "minimum": 0,
68
+ "maximum": 10000,
69
+ "nullable": false
70
+ }
71
+ ] as const;
72
+ export const EDITOR_FIELDS = {
73
+ "global": [
74
+ {
75
+ "key": "theme",
76
+ "label": "Statusline theme",
77
+ "group": "Appearance",
78
+ "kind": "choice",
79
+ "choices": [
80
+ "classic",
81
+ "dark",
82
+ "light",
83
+ "terminal"
84
+ ],
85
+ "minimum": 0,
86
+ "maximum": 10000,
87
+ "nullable": false
88
+ },
89
+ {
90
+ "key": "powerline_glyph",
91
+ "label": "Powerline separator",
92
+ "group": "Appearance",
93
+ "kind": "choice",
94
+ "choices": [
95
+ "ascii",
96
+ "powerline"
97
+ ],
98
+ "minimum": 0,
99
+ "maximum": 10000,
100
+ "nullable": false
101
+ },
102
+ ...POWERLINE_FIELDS,
103
+ {
104
+ "key": "statusline_language",
105
+ "label": "Statusline language (save with display settings)",
106
+ "group": "Appearance",
107
+ "kind": "choice",
108
+ "choices": ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"],
109
+ "minimum": 0,
110
+ "maximum": 10000,
111
+ "nullable": false
112
+ },
113
+ {
114
+ "key": "metrics.branch_diff_base_ref",
115
+ "label": "Branch diff base (inherit = auto)",
116
+ "group": "Git metrics",
117
+ "kind": "text",
118
+ "choices": [],
119
+ "minimum": 0,
120
+ "maximum": 10000,
121
+ "nullable": true
122
+ },
123
+ {
124
+ "key": "formatting.model_name",
125
+ "label": "Model Name",
126
+ "group": "Formatting",
127
+ "kind": "choice",
128
+ "choices": [
129
+ "original",
130
+ "short"
131
+ ],
132
+ "minimum": 0,
133
+ "maximum": 10000,
134
+ "nullable": false
135
+ },
136
+ {
137
+ "key": "formatting.number_format",
138
+ "label": "Number Format",
139
+ "group": "Formatting",
140
+ "kind": "choice",
141
+ "choices": [
142
+ "legacy",
143
+ "compact",
144
+ "full",
145
+ "grouped"
146
+ ],
147
+ "minimum": 0,
148
+ "maximum": 10000,
149
+ "nullable": false
150
+ },
151
+ {
152
+ "key": "formatting.labels",
153
+ "label": "Labels",
154
+ "group": "Formatting",
155
+ "kind": "choice",
156
+ "choices": [
157
+ "legacy",
158
+ "short",
159
+ "off"
160
+ ],
161
+ "minimum": 0,
162
+ "maximum": 10000,
163
+ "nullable": false
164
+ },
165
+ {
166
+ "key": "formatting.icons",
167
+ "label": "Icons",
168
+ "group": "Formatting",
169
+ "kind": "choice",
170
+ "choices": [
171
+ "legacy",
172
+ "unicode",
173
+ "ascii",
174
+ "off"
175
+ ],
176
+ "minimum": 0,
177
+ "maximum": 10000,
178
+ "nullable": false
179
+ },
180
+ {
181
+ "key": "formatting.allowance",
182
+ "label": "Allowance",
183
+ "group": "Formatting",
184
+ "kind": "choice",
185
+ "choices": [
186
+ "remaining",
187
+ "used"
188
+ ],
189
+ "minimum": 0,
190
+ "maximum": 10000,
191
+ "nullable": false
192
+ },
193
+ {
194
+ "key": "formatting.reset_format",
195
+ "label": "Reset Format",
196
+ "group": "Formatting",
197
+ "kind": "choice",
198
+ "choices": [
199
+ "countdown",
200
+ "time",
201
+ "datetime"
202
+ ],
203
+ "minimum": 0,
204
+ "maximum": 10000,
205
+ "nullable": false
206
+ },
207
+ {
208
+ "key": "formatting.reset_timezone",
209
+ "label": "Reset Timezone",
210
+ "group": "Formatting",
211
+ "kind": "choice",
212
+ "choices": [
213
+ "local",
214
+ "UTC"
215
+ ],
216
+ "minimum": 0,
217
+ "maximum": 10000,
218
+ "nullable": false
219
+ },
220
+ {
221
+ "key": "formatting.thresholds.enabled",
222
+ "label": "Threshold colors",
223
+ "group": "Risk colors",
224
+ "kind": "boolean",
225
+ "choices": [],
226
+ "minimum": 0,
227
+ "maximum": 10000,
228
+ "nullable": false
229
+ },
230
+ {
231
+ "key": "formatting.thresholds.warning",
232
+ "label": "Warning (%)",
233
+ "group": "Risk colors",
234
+ "kind": "integer",
235
+ "choices": [],
236
+ "minimum": 0,
237
+ "maximum": 100,
238
+ "nullable": false
239
+ },
240
+ {
241
+ "key": "formatting.thresholds.critical",
242
+ "label": "Critical (%)",
243
+ "group": "Risk colors",
244
+ "kind": "integer",
245
+ "choices": [],
246
+ "minimum": 0,
247
+ "maximum": 100,
248
+ "nullable": false
249
+ },
250
+ {
251
+ "key": "subagents.visibility",
252
+ "label": "Visible agents",
253
+ "group": "Subagent visibility",
254
+ "kind": "choice",
255
+ "choices": [
256
+ "all",
257
+ "running"
258
+ ],
259
+ "minimum": 0,
260
+ "maximum": 10000,
261
+ "nullable": false
262
+ },
263
+ {
264
+ "key": "subagents.hide_completed",
265
+ "label": "Hide completed",
266
+ "group": "Subagent visibility",
267
+ "kind": "boolean",
268
+ "choices": [],
269
+ "minimum": 0,
270
+ "maximum": 10000,
271
+ "nullable": false
272
+ },
273
+ {
274
+ "key": "subagents.row_limit",
275
+ "label": "Agent row limit",
276
+ "group": "Subagent visibility",
277
+ "kind": "integer",
278
+ "choices": [],
279
+ "minimum": 0,
280
+ "maximum": 10000,
281
+ "nullable": true
282
+ },
283
+ {
284
+ "key": "subagents.task_max_width",
285
+ "label": "Task text width",
286
+ "group": "Subagent visibility",
287
+ "kind": "integer",
288
+ "choices": [],
289
+ "minimum": 2,
290
+ "maximum": 10000,
291
+ "nullable": true
292
+ }
293
+ ],
294
+ "item": [
295
+ {
296
+ "key": "foreground",
297
+ "label": "Foreground (inherit/default/ansi:N/#RRGGBB)",
298
+ "group": "Item colors",
299
+ "kind": "text",
300
+ "choices": [],
301
+ "minimum": 0,
302
+ "maximum": 10000,
303
+ "nullable": true
304
+ },
305
+ {
306
+ "key": "background",
307
+ "label": "Background (inherit/default/ansi:N/#RRGGBB)",
308
+ "group": "Item colors",
309
+ "kind": "text",
310
+ "choices": [],
311
+ "minimum": 0,
312
+ "maximum": 10000,
313
+ "nullable": true
314
+ },
315
+ {
316
+ "key": "visibility",
317
+ "label": "Visibility rule",
318
+ "group": "Conditional visibility",
319
+ "kind": "choice",
320
+ "choices": [
321
+ "always",
322
+ "git-dirty",
323
+ "nonzero",
324
+ "used-at-least"
325
+ ],
326
+ "minimum": 0,
327
+ "maximum": 10000,
328
+ "nullable": false
329
+ },
330
+ {
331
+ "key": "visibility_threshold",
332
+ "label": "Minimum used (%)",
333
+ "group": "Conditional visibility",
334
+ "kind": "integer",
335
+ "choices": [],
336
+ "minimum": 0,
337
+ "maximum": 100,
338
+ "nullable": false
339
+ },
340
+ {
341
+ "key": "label",
342
+ "label": "Label (inherit = default)",
343
+ "group": "Item format",
344
+ "kind": "text",
345
+ "choices": [],
346
+ "minimum": 0,
347
+ "maximum": 10000,
348
+ "nullable": true
349
+ },
350
+ {
351
+ "key": "icon",
352
+ "label": "Icon (inherit = default)",
353
+ "group": "Item format",
354
+ "kind": "text",
355
+ "choices": [],
356
+ "minimum": 0,
357
+ "maximum": 10000,
358
+ "nullable": true
359
+ },
360
+ {
361
+ "key": "priority",
362
+ "label": "Priority",
363
+ "group": "Item fitting",
364
+ "kind": "integer",
365
+ "choices": [],
366
+ "minimum": 0,
367
+ "maximum": 100,
368
+ "nullable": false
369
+ },
370
+ {
371
+ "key": "max_width",
372
+ "label": "Maximum width",
373
+ "group": "Item fitting",
374
+ "kind": "integer",
375
+ "choices": [],
376
+ "minimum": 2,
377
+ "maximum": 10000,
378
+ "nullable": true
379
+ },
380
+ {
381
+ "key": "model_name",
382
+ "label": "Model Name",
383
+ "group": "Item format",
384
+ "kind": "choice",
385
+ "choices": [
386
+ "inherit",
387
+ "original",
388
+ "short"
389
+ ],
390
+ "minimum": 0,
391
+ "maximum": 10000,
392
+ "nullable": false
393
+ },
394
+ {
395
+ "key": "number_format",
396
+ "label": "Number Format",
397
+ "group": "Item format",
398
+ "kind": "choice",
399
+ "choices": [
400
+ "inherit",
401
+ "legacy",
402
+ "compact",
403
+ "full",
404
+ "grouped"
405
+ ],
406
+ "minimum": 0,
407
+ "maximum": 10000,
408
+ "nullable": false
409
+ },
410
+ {
411
+ "key": "labels",
412
+ "label": "Labels",
413
+ "group": "Item format",
414
+ "kind": "choice",
415
+ "choices": [
416
+ "inherit",
417
+ "legacy",
418
+ "short",
419
+ "off"
420
+ ],
421
+ "minimum": 0,
422
+ "maximum": 10000,
423
+ "nullable": false
424
+ },
425
+ {
426
+ "key": "icons",
427
+ "label": "Icons",
428
+ "group": "Item format",
429
+ "kind": "choice",
430
+ "choices": [
431
+ "inherit",
432
+ "legacy",
433
+ "unicode",
434
+ "ascii",
435
+ "off"
436
+ ],
437
+ "minimum": 0,
438
+ "maximum": 10000,
439
+ "nullable": false
440
+ },
441
+ {
442
+ "key": "allowance",
443
+ "label": "Allowance",
444
+ "group": "Item format",
445
+ "kind": "choice",
446
+ "choices": [
447
+ "inherit",
448
+ "remaining",
449
+ "used"
450
+ ],
451
+ "minimum": 0,
452
+ "maximum": 10000,
453
+ "nullable": false
454
+ },
455
+ {
456
+ "key": "reset_format",
457
+ "label": "Reset Format",
458
+ "group": "Item format",
459
+ "kind": "choice",
460
+ "choices": [
461
+ "inherit",
462
+ "countdown",
463
+ "time",
464
+ "datetime"
465
+ ],
466
+ "minimum": 0,
467
+ "maximum": 10000,
468
+ "nullable": false
469
+ },
470
+ {
471
+ "key": "reset_timezone",
472
+ "label": "Reset Timezone",
473
+ "group": "Item format",
474
+ "kind": "choice",
475
+ "choices": [
476
+ "inherit",
477
+ "local",
478
+ "UTC"
479
+ ],
480
+ "minimum": 0,
481
+ "maximum": 10000,
482
+ "nullable": false
483
+ }
484
+ ]
485
+ } as const;
486
+ export const PRESETS = [{"id": "developer", "purpose_key": "quick.purpose.developer", "requirements_key": "quick.requirements.developer", "example": false, "label": "Developer", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer", "session-cost"]], "layout_mode": "explicit"}, {"id": "minimal", "purpose_key": "quick.purpose.minimal", "requirements_key": "quick.requirements.minimal", "example": false, "label": "Minimal", "rows": [["model-with-effort", "current-dir", "context-remaining", "task-timer"]], "layout_mode": "auto"}, {"id": "monitoring", "purpose_key": "quick.purpose.monitoring", "requirements_key": "quick.requirements.monitoring", "example": false, "label": "Monitoring", "rows": [["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]], "layout_mode": "explicit"}, {"id": "multi-agent", "purpose_key": "quick.purpose.multi-agent", "requirements_key": "quick.requirements.multi-agent", "example": false, "label": "Multi Agent", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer"]], "layout_mode": "explicit"}, {"id": "left-right", "purpose_key": "quick.purpose.left-right", "requirements_key": "quick.requirements.left-right", "example": true, "label": "Left Right", "rows": [["model-with-effort", "git", "spacer", "context-remaining"]], "layout_mode": "explicit"}, {"id": "repeated-metrics", "purpose_key": "quick.purpose.repeated-metrics", "requirements_key": "quick.requirements.repeated-metrics", "example": true, "label": "Repeated Metrics", "rows": [["input-tokens", "input-tokens"]], "layout_mode": "explicit"}, {"id": "daily-development", "purpose_key": "quick.purpose.daily-development", "requirements_key": "quick.requirements.daily-development", "example": false, "label": "Daily Development", "rows": [["model-with-effort", "current-dir", "git", "context-remaining", "task-timer"], ["session-cost"]], "layout_mode": "explicit"}, {"id": "agent-focus", "purpose_key": "quick.purpose.agent-focus", "requirements_key": "quick.requirements.agent-focus", "example": false, "label": "Agent Focus", "rows": [["task-timer", "context-remaining", "git"], ["run-state", "task-progress", "active-agents"]], "layout_mode": "explicit"}, {"id": "quota-watch", "purpose_key": "quick.purpose.quota-watch", "requirements_key": "quick.requirements.quota-watch", "example": false, "label": "Quota Watch", "rows": [["context-used", "five-hour-limit", "weekly-limit"], ["five-hour-reset", "weekly-reset"], ["session-cost", "spend-limit", "cache-state", "cache-expires"]], "layout_mode": "explicit"}] as const;
8
487
  export const FORMAT_CHOICES = {"model_name": ["original", "short"], "number_format": ["legacy", "compact", "full", "grouped"], "labels": ["legacy", "short", "off"], "icons": ["legacy", "unicode", "ascii", "off"], "allowance": ["remaining", "used"], "reset_format": ["countdown", "time", "datetime"], "reset_timezone": ["local", "UTC"]} as const;
9
488
  export const FORMAT_DEFAULTS = {"model_name": "original", "number_format": "legacy", "labels": "legacy", "icons": "legacy", "allowance": "remaining", "reset_format": "countdown", "reset_timezone": "local", "thresholds": {"enabled": false, "warning": 70, "critical": 90}} as const;
10
489
  export type MainItemId = "model-with-effort" | "model" | "effort" | "fast-mode" | "thinking" | "current-dir" | "project-name" | "hostname" | "git" | "git-branch" | "git-changes" | "git-ahead-behind" | "branch-diff" | "pr" | "repo" | "worktree" | "context-remaining" | "context-used" | "context-window-size" | "context-tokens" | "five-hour-limit" | "five-hour-reset" | "weekly-limit" | "weekly-reset" | "spend-limit" | "spend-amount" | "spend-period" | "tokens" | "input-tokens" | "output-tokens" | "prompt-cache" | "cache-state" | "cache-expires" | "cache-misses" | "cache-miss-reason" | "api-requests" | "task-timer" | "task-active-timer" | "version" | "session" | "session-name" | "session-id" | "session-id-short" | "output-style" | "cost" | "session-cost" | "session-duration" | "api-duration" | "lines-changed" | "agent" | "vim-mode" | "run-state" | "permission-mode" | "active-agents" | "task-progress" | "last-tool" | "ttft" | "output-rate" | "prompt-input-tokens" | "prompt-output-tokens" | "prompt-cost" | "text" | "spacer";
@@ -71,6 +550,11 @@ export interface ConfigurationOptions {
71
550
  palette: ChoiceOptions;
72
551
  theme: ChoiceOptions;
73
552
  "powerline-glyph": ChoiceOptions;
553
+ "powerline-padding": ChoiceOptions;
554
+ "powerline-separator": ChoiceOptions;
555
+ "powerline-start-cap": ChoiceOptions;
556
+ "powerline-end-cap": ChoiceOptions;
557
+ "powerline-color-mode": ChoiceOptions;
74
558
  "directory-style": ChoiceOptions;
75
559
  "separator-style": ChoiceOptions;
76
560
  "scope-labels": ChoiceOptions;
@@ -80,6 +564,10 @@ export interface ConfigurationOptions {
80
564
  "refresh-interval": RefreshOptions;
81
565
  "hide-vim-mode-indicator": ChoiceOptions;
82
566
  }
567
+ export const POWERLINE_OPTIONS = Object.fromEntries(POWERLINE_FIELDS.map(field => [
568
+ field.key.replaceAll('.', '-').replaceAll('_', '-'),
569
+ { choices: field.kind === 'boolean' ? [true, false] : [...field.choices] },
570
+ ])) as Pick<ConfigurationOptions, 'powerline-padding' | 'powerline-separator' | 'powerline-start-cap' | 'powerline-end-cap' | 'powerline-color-mode'>;
83
571
  export interface Capabilities {
84
572
  host_version: string | null;
85
573
  subagent_rows: "unknown" | "supported" | "unsupported";
@@ -135,14 +623,22 @@ export interface SubagentDraft {
135
623
  export interface MetricsDraft {
136
624
  branch_diff_base_ref: string | null;
137
625
  }
626
+ export interface PowerlineDraft {
627
+ padding: "none" | "left" | "right" | "both";
628
+ separator: "arrow" | "slash" | "bar" | "none";
629
+ start_cap: boolean;
630
+ end_cap: boolean;
631
+ color_mode: "semantic" | "continuous" | "restart";
632
+ }
138
633
  export interface DisplayDraft {
139
- schema_version: 8;
634
+ schema_version: 9;
140
635
  statusline_language: StatuslineLanguage;
141
636
  instances: InstanceDraft[];
142
637
  use_colors: boolean;
143
638
  palette: Palette;
144
639
  theme: Theme;
145
640
  powerline_glyph: PowerlineGlyph;
641
+ powerline: PowerlineDraft;
146
642
  directory_style: DirectoryStyle;
147
643
  separator_style: SeparatorStyle;
148
644
  scope_labels: ScopeLabels;