@fbincon/claude-code-statusline 3.3.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 (161) hide show
  1. package/README.md +78 -73
  2. package/candidate.json +291 -215
  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/profile-command.d.ts +12 -0
  6. package/node_modules/@fbincon/statusline-cli/dist/src/config/profile-command.js +101 -0
  7. package/node_modules/@fbincon/statusline-cli/dist/src/config/profile-command.js.map +1 -0
  8. package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.d.ts +54 -0
  9. package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.js +199 -0
  10. package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.js.map +1 -0
  11. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.d.ts +2 -0
  12. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js +19 -1
  13. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js.map +1 -1
  14. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.d.ts +1 -0
  15. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js +4 -1
  16. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js.map +1 -1
  17. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/command.js +9 -2
  18. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/command.js.map +1 -1
  19. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.d.ts +8 -2
  20. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js +6 -3
  21. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js.map +1 -1
  22. package/node_modules/@fbincon/statusline-cli/dist/src/help.js +14 -2
  23. package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
  24. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js +1 -1
  25. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js.map +1 -1
  26. package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.d.ts +2 -1
  27. package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js +3 -1
  28. package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js.map +1 -1
  29. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +6 -1
  30. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -1
  31. package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.d.ts +2 -0
  32. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.d.ts +23 -0
  33. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.js +168 -0
  34. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.js.map +1 -0
  35. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.d.ts +3 -0
  36. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js +64 -0
  37. package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js.map +1 -0
  38. package/node_modules/@fbincon/statusline-cli/dist/src/main.js +35 -9
  39. package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -1
  40. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js +1 -1
  41. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js.map +1 -1
  42. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/configuration.d.ts +12 -0
  43. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/configuration.js +59 -0
  44. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/configuration.js.map +1 -0
  45. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.js +15 -2
  46. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.js.map +1 -1
  47. package/node_modules/@fbincon/statusline-cli/dist/src/tasks/command.d.ts +3 -0
  48. package/node_modules/@fbincon/statusline-cli/dist/src/tasks/command.js +25 -0
  49. package/node_modules/@fbincon/statusline-cli/dist/src/tasks/command.js.map +1 -0
  50. package/node_modules/@fbincon/statusline-cli/dist/src/tasks/service.d.ts +4 -0
  51. package/node_modules/@fbincon/statusline-cli/dist/src/tasks/service.js +93 -0
  52. package/node_modules/@fbincon/statusline-cli/dist/src/tasks/service.js.map +1 -0
  53. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +5 -3
  54. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +34 -8
  55. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
  56. package/node_modules/@fbincon/statusline-cli/resources/statusline-config/SKILL.md +5 -0
  57. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +1 -1
  58. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +89 -3
  59. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +61 -7
  60. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +8 -1
  61. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +1 -0
  62. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +2 -0
  63. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/profile-manager.ts +258 -0
  64. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts +14 -11
  65. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/setup.ts +60 -0
  66. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/task-detail.ts +27 -0
  67. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +552 -6
  68. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +1194 -6
  69. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/session.ts +2 -1
  70. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +18 -15
  71. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +7 -3
  72. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +1 -0
  73. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +1 -1
  74. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +3 -3
  75. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.d.ts +1 -0
  76. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +5 -2
  77. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js.map +1 -1
  78. package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +1 -1
  79. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +12 -10
  80. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -1
  81. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.d.ts +3 -0
  82. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +11 -0
  83. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -1
  84. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +4 -0
  85. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +37 -3
  86. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -1
  87. package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.d.ts +16 -0
  88. package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.js +69 -0
  89. package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.js.map +1 -0
  90. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +24 -0
  91. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +1 -1
  92. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -1
  93. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +212 -4
  94. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +485 -2
  95. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
  96. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +78 -7
  97. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
  98. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +2 -0
  99. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +1 -0
  100. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -1
  101. package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.d.ts +63 -0
  102. package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js +355 -0
  103. package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js.map +1 -0
  104. package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.d.ts +4 -4
  105. package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js +16 -9
  106. package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js.map +1 -1
  107. package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.d.ts +30 -0
  108. package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js +96 -0
  109. package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js.map +1 -0
  110. package/node_modules/@fbincon/statusline-core/dist/src/editor/task-detail.d.ts +4 -0
  111. package/node_modules/@fbincon/statusline-core/dist/src/editor/task-detail.js +25 -0
  112. package/node_modules/@fbincon/statusline-core/dist/src/editor/task-detail.js.map +1 -0
  113. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +1188 -0
  114. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +1194 -6
  115. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
  116. package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
  117. package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
  118. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.d.ts +3 -1
  119. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +24 -2
  120. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -1
  121. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +3 -1
  122. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +18 -5
  123. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -1
  124. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +4 -4
  125. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -1
  126. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.d.ts +15 -5
  127. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +78 -48
  128. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -1
  129. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +6 -0
  130. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -1
  131. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +3 -3
  132. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js.map +1 -1
  133. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/details.d.ts +24 -0
  134. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/details.js +153 -0
  135. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/details.js.map +1 -0
  136. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +199 -1
  137. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +199 -1
  138. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +199 -1
  139. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +199 -1
  140. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +199 -1
  141. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +199 -1
  142. package/node_modules/@fbincon/statusline-platform/dist/src/project-paths.d.ts +8 -0
  143. package/node_modules/@fbincon/statusline-platform/dist/src/project-paths.js +41 -0
  144. package/node_modules/@fbincon/statusline-platform/dist/src/project-paths.js.map +1 -0
  145. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +6 -1
  146. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
  147. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js +2 -0
  148. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js.map +1 -1
  149. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js +2 -0
  150. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js.map +1 -1
  151. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +3 -2
  152. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -1
  153. package/node_modules/@fbincon/statusline-tui/dist/src/session.js +7 -3
  154. package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -1
  155. package/node_modules/@fbincon/statusline-tui/dist/src/setup.d.ts +12 -0
  156. package/node_modules/@fbincon/statusline-tui/dist/src/setup.js +75 -0
  157. package/node_modules/@fbincon/statusline-tui/dist/src/setup.js.map +1 -0
  158. package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +1 -1
  159. package/node_modules/@fbincon/statusline-tui/dist/src/state.js +18 -2
  160. package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
  161. 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 = 14 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";
@@ -30,7 +509,7 @@ export const SEPARATORSTYLE_VALUES = ["classic", "compact", "powerline"] as cons
30
509
  export const SCOPELABELS_VALUES = ["off", "when-subagents", "always"] as const;
31
510
  export const STATUSLINELANGUAGE_VALUES = ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"] as const;
32
511
  export const UNAVAILABLEREASON_VALUES = ["not_observed", "unsupported_host", "unknown_host_version", "source_unavailable", "condition_not_met", "runtime_disabled", "native_timing_disabled", "wait_coverage_missing", "stale", "incomplete", "ambiguous_owner", "observed_only", "missing_stream", "synthetic_response", "abnormal_clock", "inconsistent_request", "request_join_unavailable"] as const;
33
- export type Operation = "describe" | "read" | "preview" | "apply" | "import" | "export" | "preset" | "read_ui_preferences" | "set_ui_language" | "review_import" | "explain" | "diagnose";
512
+ export type Operation = "describe" | "read" | "preview" | "apply" | "import" | "export" | "preset" | "read_ui_preferences" | "set_ui_language" | "review_import" | "explain" | "diagnose" | "profiles_read" | "profiles_apply" | "profile_import" | "profile_export" | "task_details";
34
513
  export interface ItemGuidance {
35
514
  source_kinds: string[];
36
515
  measurement_scope: string;
@@ -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;
@@ -223,6 +719,7 @@ export interface DiagnoseResult {
223
719
  prompt_id: string | null;
224
720
  host_version: string | null;
225
721
  include_local: boolean;
722
+ configuration?: ResolvedConfiguration;
226
723
  output: { id: string; spans: Span[] }[];
227
724
  instances: DiagnoseInstance[];
228
725
  host_fields: {
@@ -252,6 +749,49 @@ export interface ReadResult {
252
749
  installation: Record<string, unknown>;
253
750
  capabilities: Capabilities;
254
751
  backend_version: string;
752
+ configuration?: ResolvedConfiguration;
753
+ }
754
+ export type ConfigTarget = { kind: "user" } | { kind: "profile"; id: string } | { kind: "project"; path: string };
755
+ export interface DisplayProfile { id: string; name: string; display: DisplayDraft }
756
+ export interface ProjectBinding { root: string; profile_id: string }
757
+ export interface ProfileCollection { version: 1; profiles: DisplayProfile[]; bindings: ProjectBinding[] }
758
+ export interface ResolvedConfiguration {
759
+ target: ConfigTarget;
760
+ profile_id: string | null;
761
+ profile_name: string | null;
762
+ project_root: string | null;
763
+ reason: string;
764
+ shared_projects: string[];
765
+ }
766
+ export interface ProfilesResult extends ProfileCollection { revision: string; changed?: boolean; backup_dir?: string | null }
767
+ export interface ProfileImportResult { name: string; display: DisplayDraft }
768
+ export interface TaskEvidence {
769
+ source: string;
770
+ scope: string;
771
+ status: string;
772
+ observed_at: string | null;
773
+ freshness: "current" | "stale" | "unknown" | "newer_than_input";
774
+ }
775
+ export interface TaskAgentDetail {
776
+ id: string;
777
+ parent_id: string | null;
778
+ name: string | null;
779
+ status: string | null;
780
+ evidence: TaskEvidence[];
781
+ }
782
+ export interface TaskDetails {
783
+ version: 1;
784
+ session_id: string;
785
+ prompt_id: string | null;
786
+ captured_at: string;
787
+ status: string | null;
788
+ phase: string | null;
789
+ elapsed_seconds: number | null;
790
+ active_seconds: number | null;
791
+ progress: { completed: number; total: number } | null;
792
+ agents: TaskAgentDetail[];
793
+ evidence: TaskEvidence[];
794
+ limitations: string[];
255
795
  }
256
796
  export interface EditorField {
257
797
  key: string;
@@ -311,6 +851,7 @@ export interface ApplyResult {
311
851
  backend_version: string;
312
852
  changed: boolean;
313
853
  backup_dir: string | null;
854
+ configuration?: ResolvedConfiguration;
314
855
  }
315
856
  export interface ResultMap {
316
857
  describe: DescribeResult;
@@ -325,6 +866,11 @@ export interface ResultMap {
325
866
  preset: TransferResult;
326
867
  read_ui_preferences: UiPreferencesResult;
327
868
  set_ui_language: UiPreferencesResult;
869
+ profiles_read: ProfilesResult;
870
+ profiles_apply: ProfilesResult;
871
+ profile_import: ProfileImportResult;
872
+ profile_export: ExportResult;
873
+ task_details: TaskDetails;
328
874
  }
329
875
  export type ResultFor<O extends Operation> = ResultMap[O];
330
876
  export interface Request {
@@ -332,5 +878,5 @@ export interface Request {
332
878
  operation: Operation;
333
879
  payload: unknown;
334
880
  }
335
- export type Result = DiagnoseResult | ExplainResult | PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult;
881
+ export type Result = DiagnoseResult | ExplainResult | PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult | ProfilesResult | ProfileImportResult | TaskDetails;
336
882
  export type Response = { protocol_version: typeof PROTOCOL_VERSION; result: Result } | { protocol_version: typeof PROTOCOL_VERSION; error: ProtocolError };