@fbincon/claude-code-statusline 3.5.0 → 3.7.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 (248) hide show
  1. package/README.md +77 -74
  2. package/candidate.json +437 -315
  3. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js +23 -5
  4. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js.map +1 -1
  5. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js +43 -1
  6. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js.map +1 -1
  7. package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.js +2 -1
  8. package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.js.map +1 -1
  9. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js +5 -3
  10. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js.map +1 -1
  11. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js +24 -0
  12. package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js.map +1 -1
  13. package/node_modules/@fbincon/statusline-cli/dist/src/help.js +4 -0
  14. package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
  15. package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js +2 -1
  16. package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js.map +1 -1
  17. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +2 -1
  18. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -1
  19. package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.js +1 -1
  20. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js +2 -1
  21. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js.map +1 -1
  22. package/node_modules/@fbincon/statusline-cli/dist/src/main.js +19 -3
  23. package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -1
  24. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js +1 -1
  25. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js.map +1 -1
  26. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js +46 -1
  27. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js.map +1 -1
  28. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js +11 -3
  29. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js.map +1 -1
  30. package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.d.ts +35 -0
  31. package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js +75 -0
  32. package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js.map +1 -0
  33. package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.d.ts +12 -0
  34. package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.js +99 -0
  35. package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.js.map +1 -0
  36. package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.d.ts +3 -0
  37. package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js +119 -0
  38. package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js.map +1 -0
  39. package/node_modules/@fbincon/statusline-cli/dist/src/sources/context.d.ts +4 -0
  40. package/node_modules/@fbincon/statusline-cli/dist/src/sources/context.js +35 -0
  41. package/node_modules/@fbincon/statusline-cli/dist/src/sources/context.js.map +1 -0
  42. package/node_modules/@fbincon/statusline-cli/dist/src/sources/lifecycle.d.ts +6 -0
  43. package/node_modules/@fbincon/statusline-cli/dist/src/sources/lifecycle.js +12 -0
  44. package/node_modules/@fbincon/statusline-cli/dist/src/sources/lifecycle.js.map +1 -0
  45. package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.d.ts +8 -0
  46. package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.js +118 -0
  47. package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.js.map +1 -0
  48. package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.d.ts +40 -0
  49. package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js +425 -0
  50. package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js.map +1 -0
  51. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +2 -2
  52. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +30 -1
  53. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
  54. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +1 -1
  55. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +15 -5
  56. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +15 -8
  57. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +10 -2
  58. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +2 -0
  59. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/appearance.ts +26 -6
  60. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/cost-rate.ts +9 -0
  61. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +8 -1
  62. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +4 -2
  63. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/group-manager.ts +102 -0
  64. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/groups.ts +89 -0
  65. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/indicators.ts +20 -0
  66. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-manager.ts +304 -0
  67. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-validation.ts +46 -0
  68. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +94 -11
  69. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +1020 -6
  70. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/presentation.ts +3 -1
  71. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/session.ts +2 -1
  72. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +23 -17
  73. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +9 -1
  74. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +2 -0
  75. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +7 -1
  76. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/observe.ts +27 -2
  77. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/generated-contracts.ts +1 -1
  78. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +6 -6
  79. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.d.ts +214 -0
  80. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js +418 -0
  81. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js.map +1 -1
  82. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +2 -2
  83. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js.map +1 -1
  84. package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +2 -2
  85. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +31 -14
  86. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -1
  87. package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js +13 -10
  88. package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js.map +1 -1
  89. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +11 -1
  90. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -1
  91. package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js +6 -2
  92. package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js.map +1 -1
  93. package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js +14 -7
  94. package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js.map +1 -1
  95. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +1 -1
  96. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -1
  97. package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.js +2 -1
  98. package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.js.map +1 -1
  99. package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js +5 -3
  100. package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js.map +1 -1
  101. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +2 -2
  102. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +2 -2
  103. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -1
  104. package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.d.ts +1 -1
  105. package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.js +1 -1
  106. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +170 -9
  107. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +5 -5
  108. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
  109. package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.d.ts +4 -2
  110. package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js +31 -6
  111. package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js.map +1 -1
  112. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +18 -8
  113. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
  114. package/node_modules/@fbincon/statusline-core/dist/src/editor/cost-rate.d.ts +7 -0
  115. package/node_modules/@fbincon/statusline-core/dist/src/editor/cost-rate.js +8 -0
  116. package/node_modules/@fbincon/statusline-core/dist/src/editor/cost-rate.js.map +1 -0
  117. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +4 -0
  118. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +6 -1
  119. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -1
  120. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +4 -2
  121. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -1
  122. package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.d.ts +23 -0
  123. package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js +131 -0
  124. package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js.map +1 -0
  125. package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.d.ts +18 -0
  126. package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.js +103 -0
  127. package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.js.map +1 -0
  128. package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.d.ts +11 -0
  129. package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.js +18 -0
  130. package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.js.map +1 -0
  131. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.d.ts +40 -0
  132. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js +279 -0
  133. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js.map +1 -0
  134. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.d.ts +2 -0
  135. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js +47 -0
  136. package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js.map +1 -0
  137. package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.d.ts +27 -0
  138. package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js +238 -0
  139. package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js.map +1 -0
  140. package/node_modules/@fbincon/statusline-core/dist/src/extensions/portable.d.ts +3 -0
  141. package/node_modules/@fbincon/statusline-core/dist/src/extensions/portable.js +6 -0
  142. package/node_modules/@fbincon/statusline-core/dist/src/extensions/portable.js.map +1 -0
  143. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +1014 -0
  144. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +1020 -6
  145. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
  146. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.d.ts +30 -0
  147. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +31 -1
  148. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js.map +1 -1
  149. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.d.ts +30 -0
  150. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +31 -1
  151. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js.map +1 -1
  152. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.d.ts +30 -0
  153. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +31 -1
  154. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js.map +1 -1
  155. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.d.ts +30 -0
  156. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +31 -1
  157. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js.map +1 -1
  158. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.d.ts +30 -0
  159. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js +31 -1
  160. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js.map +1 -1
  161. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.d.ts +30 -0
  162. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js +31 -1
  163. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js.map +1 -1
  164. package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
  165. package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
  166. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +1 -1
  167. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -1
  168. package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.d.ts +3 -0
  169. package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.d.ts +2 -2
  170. package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js +6 -3
  171. package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js.map +1 -1
  172. package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js +6 -0
  173. package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js.map +1 -1
  174. package/node_modules/@fbincon/statusline-core/dist/src/rendering/extensions.d.ts +7 -0
  175. package/node_modules/@fbincon/statusline-core/dist/src/rendering/extensions.js +35 -0
  176. package/node_modules/@fbincon/statusline-core/dist/src/rendering/extensions.js.map +1 -0
  177. package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.d.ts +7 -0
  178. package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js +124 -0
  179. package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js.map +1 -0
  180. package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.d.ts +4 -0
  181. package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js +48 -0
  182. package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js.map +1 -0
  183. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +19 -2
  184. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -1
  185. package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.d.ts +3 -0
  186. package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js +30 -9
  187. package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js.map +1 -1
  188. package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.d.ts +3 -0
  189. package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js +14 -0
  190. package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js.map +1 -1
  191. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +1 -1
  192. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -1
  193. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +1 -1
  194. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -1
  195. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js +3 -1
  196. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js.map +1 -1
  197. package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.d.ts +1 -0
  198. package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js +2 -2
  199. package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js.map +1 -1
  200. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +23 -2
  201. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js.map +1 -1
  202. package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.d.ts +1 -1
  203. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.d.ts +2 -1
  204. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js +2 -1
  205. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js.map +1 -1
  206. package/node_modules/@fbincon/statusline-core/dist/src/terminal/links.d.ts +6 -0
  207. package/node_modules/@fbincon/statusline-core/dist/src/terminal/links.js +37 -0
  208. package/node_modules/@fbincon/statusline-core/dist/src/terminal/links.js.map +1 -0
  209. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +170 -1
  210. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +170 -1
  211. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +170 -1
  212. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +170 -1
  213. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +170 -1
  214. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +170 -1
  215. package/node_modules/@fbincon/statusline-platform/dist/src/files.d.ts +3 -0
  216. package/node_modules/@fbincon/statusline-platform/dist/src/files.js +7 -2
  217. package/node_modules/@fbincon/statusline-platform/dist/src/files.js.map +1 -1
  218. package/node_modules/@fbincon/statusline-platform/dist/src/posix-source-exec.d.ts +1 -0
  219. package/node_modules/@fbincon/statusline-platform/dist/src/posix-source-exec.js +26 -0
  220. package/node_modules/@fbincon/statusline-platform/dist/src/posix-source-exec.js.map +1 -0
  221. package/node_modules/@fbincon/statusline-platform/dist/src/source-files.d.ts +2 -0
  222. package/node_modules/@fbincon/statusline-platform/dist/src/source-files.js +52 -0
  223. package/node_modules/@fbincon/statusline-platform/dist/src/source-files.js.map +1 -0
  224. package/node_modules/@fbincon/statusline-platform/dist/src/source-process.d.ts +19 -0
  225. package/node_modules/@fbincon/statusline-platform/dist/src/source-process.js +122 -0
  226. package/node_modules/@fbincon/statusline-platform/dist/src/source-process.js.map +1 -0
  227. package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-environment.d.ts +4 -0
  228. package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-environment.js +61 -0
  229. package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-environment.js.map +1 -0
  230. package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-job.d.ts +3 -0
  231. package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-job.js +61 -0
  232. package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-job.js.map +1 -0
  233. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/canvas.js +3 -2
  234. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/canvas.js.map +1 -1
  235. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +10 -0
  236. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
  237. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js +8 -0
  238. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js.map +1 -1
  239. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js +4 -0
  240. package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js.map +1 -1
  241. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +1 -1
  242. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -1
  243. package/node_modules/@fbincon/statusline-tui/dist/src/session.js +6 -0
  244. package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -1
  245. package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +1 -1
  246. package/node_modules/@fbincon/statusline-tui/dist/src/state.js +23 -1
  247. package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
  248. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import type { SourceContext, SourceDefinition, SourceObservation, SourceReference, SourceRegistry, SourceScope, SourceSettings, SourceView } from '../contracts/ui.js';
2
+ export declare const SOURCE_FILENAME = "claude-statusline-sources.json";
3
+ export declare const MAX_SOURCE_BYTES = 1048576;
4
+ export declare const SOURCE_TYPES: string[];
5
+ export declare const INPUT_FIELDS: readonly ["project", "session", "agent", "branch", "head"];
6
+ export declare const emptyRegistry: () => SourceRegistry;
7
+ export declare function sourceError(reason: string): never;
8
+ export declare function sourceText(value: unknown, maximum?: number, empty?: boolean): string;
9
+ export declare function sourceId(value: unknown): string;
10
+ export declare function sourceScope(value: unknown): SourceScope;
11
+ export declare function sourceContext(value: unknown): SourceContext;
12
+ export declare function matchesScope(scope: SourceScope, context: SourceScope): boolean;
13
+ export declare function sameContext(a: SourceContext, b: SourceContext): boolean;
14
+ /** Cache only declared scope and supplied input identities; a project source is
15
+ * reusable across sessions unless it explicitly consumes session/agent input. */
16
+ export declare function observationContext(source: SourceDefinition, actual: SourceContext): SourceContext;
17
+ export declare function reference(value: unknown): SourceReference;
18
+ export declare function pointerParts(value: unknown): string[];
19
+ export declare function selectPointer(value: unknown, pointer: string): unknown;
20
+ export declare function settings(kind: SourceDefinition['kind'], value: unknown): SourceSettings;
21
+ export declare function definition(value: unknown): SourceDefinition;
22
+ export declare function registry(value: unknown): SourceRegistry;
23
+ export declare function stamp(value: unknown): string | null;
24
+ export declare function scalar(value: unknown): string | number | boolean;
25
+ export declare function emptyObservation(source: SourceDefinition, context: SourceContext, reason: string, state?: SourceObservation['state']): SourceObservation;
26
+ export declare function parseObservation(raw: unknown, source: SourceDefinition, context: SourceContext, contracted?: boolean): SourceObservation;
27
+ export declare function sourceView(source: SourceDefinition | undefined, context: SourceContext, current: SourceObservation | null, good: SourceObservation | null, now: number): SourceView;
@@ -0,0 +1,238 @@
1
+ import { ConfigError, object, exact, integer, isSchema } from '../config/validation.js';
2
+ import { numeric } from '../runtime/values.js';
3
+ export const SOURCE_FILENAME = 'claude-statusline-sources.json';
4
+ export const MAX_SOURCE_BYTES = 1048576;
5
+ export const SOURCE_TYPES = ['external-value', 'github-pr', 'github-ci'];
6
+ export const INPUT_FIELDS = ['project', 'session', 'agent', 'branch', 'head'];
7
+ export const emptyRegistry = () => ({ version: 2, sources: [], bindings: [], automatic: [] });
8
+ export function sourceError(reason) { throw new ConfigError('sources.error.' + reason, {}, reason); }
9
+ export function sourceText(value, maximum = 4096, empty = false) {
10
+ if (typeof value !== 'string' || (!empty && !value.trim()) || value.length > maximum || /[\p{Cc}\p{Cs}]/u.test(value))
11
+ sourceError('invalid');
12
+ return value;
13
+ }
14
+ export function sourceId(value) {
15
+ const id = sourceText(value, 96);
16
+ if (!/^[A-Za-z0-9][A-Za-z0-9_-]*$/u.test(id))
17
+ sourceError('invalid');
18
+ return id;
19
+ }
20
+ export function sourceScope(value) {
21
+ exact(value, ['project', 'session', 'agent'], 'source scope');
22
+ const result = Object.fromEntries(['project', 'session', 'agent'].map(key => [key, value[key] === null ? null : sourceText(value[key])]));
23
+ if (result.agent && !result.session)
24
+ sourceError('scope');
25
+ return result;
26
+ }
27
+ export function sourceContext(value) {
28
+ exact(value, ['project', 'session', 'agent', 'branch', 'head'], 'source context');
29
+ return { ...sourceScope({ project: value.project, session: value.session, agent: value.agent }),
30
+ branch: value.branch === null ? null : sourceText(value.branch), head: value.head === null ? null : sourceText(value.head) };
31
+ }
32
+ export function matchesScope(scope, context) {
33
+ return ['project', 'session', 'agent'].every(key => scope[key] === null || scope[key] === context[key]);
34
+ }
35
+ export function sameContext(a, b) {
36
+ return ['project', 'session', 'agent', 'branch', 'head'].every(key => a[key] === b[key]);
37
+ }
38
+ /** Cache only declared scope and supplied input identities; a project source is
39
+ * reusable across sessions unless it explicitly consumes session/agent input. */
40
+ export function observationContext(source, actual) {
41
+ const inputs = Object.values(source.settings.input ?? {});
42
+ const git = source.kind === 'github';
43
+ return {
44
+ project: source.scope.project !== null || git || inputs.some(key => ['project', 'branch', 'head'].includes(key)) ? actual.project : null,
45
+ session: source.scope.session !== null || inputs.includes('session') || inputs.includes('agent') ? actual.session : null,
46
+ agent: source.scope.agent !== null || inputs.includes('agent') ? actual.agent : null,
47
+ branch: git || inputs.includes('branch') ? actual.branch : null,
48
+ head: git || inputs.includes('head') ? actual.head : null,
49
+ };
50
+ }
51
+ export function reference(value) {
52
+ exact(value, ['binding', 'hint'], 'source reference');
53
+ return { binding: value.binding === null ? null : sourceId(value.binding), hint: sourceText(value.hint, 128, true) };
54
+ }
55
+ export function pointerParts(value) {
56
+ const text = sourceText(value, 512, true);
57
+ if (!text)
58
+ return [];
59
+ if (!text.startsWith('/') || /~(?![01])/u.test(text))
60
+ sourceError('pointer');
61
+ const parts = text.slice(1).split('/').map(part => part.replaceAll('~1', '/').replaceAll('~0', '~'));
62
+ if (parts.length > 32 || parts.some(part => ['__proto__', 'prototype', 'constructor'].includes(part)))
63
+ sourceError('pointer');
64
+ return parts;
65
+ }
66
+ export function selectPointer(value, pointer) {
67
+ for (const key of pointerParts(pointer)) {
68
+ if ((!object(value) && !Array.isArray(value)) || !Object.hasOwn(value, key))
69
+ return undefined;
70
+ value = value[key];
71
+ }
72
+ return value;
73
+ }
74
+ function keys(value, allowed) {
75
+ if (Object.keys(value).some(key => !allowed.includes(key)))
76
+ sourceError('invalid');
77
+ }
78
+ export function settings(kind, value) {
79
+ if (!object(value))
80
+ sourceError('invalid');
81
+ if (kind === 'json') {
82
+ keys(value, ['path', 'pointer', 'observed_at_pointer', 'unit']);
83
+ const pointer = sourceText(value.pointer ?? '/value', 512, true);
84
+ pointerParts(pointer);
85
+ const observed = sourceText(value.observed_at_pointer ?? '/observed_at', 512, true);
86
+ pointerParts(observed);
87
+ return { path: sourceText(value.path), pointer, observed_at_pointer: observed, unit: sourceText(value.unit ?? '', 32, true) };
88
+ }
89
+ if (kind === 'github') {
90
+ keys(value, ['host', 'repository', 'branch', 'account', 'pr']);
91
+ const host = sourceText(value.host ?? 'github.com', 253).toLowerCase(), repository = sourceText(value.repository, 256);
92
+ if (!/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/u.test(host) || !/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/u.test(repository))
93
+ sourceError('invalid');
94
+ const branch = sourceText(value.branch, 256), account = sourceText(value.account, 128);
95
+ if (branch.startsWith('-') || !/^[A-Za-z0-9_-]+$/u.test(account))
96
+ sourceError('invalid');
97
+ return { host, repository, branch, account, pr: value.pr == null ? null : integer(value.pr, 1, Number.MAX_SAFE_INTEGER, 'PR') };
98
+ }
99
+ if (kind !== 'command')
100
+ sourceError('invalid');
101
+ keys(value, ['executable', 'args', 'cwd', 'input', 'output', 'timeout_ms']);
102
+ if (!Array.isArray(value.args) || value.args.length > 128 || value.args.some(arg => typeof arg !== 'string' || arg.length > 8192 || arg.includes('\0')))
103
+ sourceError('invalid');
104
+ const input = value.input ?? {};
105
+ if (!object(input) || Object.keys(input).length > 16 || Object.entries(input).some(([key, field]) => !/^[A-Za-z][A-Za-z0-9_]{0,63}$/u.test(key) || !INPUT_FIELDS.includes(field)))
106
+ sourceError('input');
107
+ const output = value.output ?? 'json';
108
+ if (output !== 'json' && output !== 'text')
109
+ sourceError('invalid');
110
+ return { executable: sourceText(value.executable), args: [...value.args], cwd: sourceText(value.cwd), input: { ...input }, output,
111
+ timeout_ms: integer(value.timeout_ms ?? 5000, 100, 30000, 'timeout_ms') };
112
+ }
113
+ export function definition(value) {
114
+ exact(value, ['id', 'name', 'kind', 'scope', 'ttl_seconds', 'settings', 'enabled', 'revision'], 'source');
115
+ if (!['json', 'github', 'command'].includes(value.kind) || typeof value.enabled !== 'boolean')
116
+ sourceError('invalid');
117
+ const kind = value.kind, scope = sourceScope(value.scope);
118
+ if (kind === 'github' && !scope.project)
119
+ sourceError('scope');
120
+ return { id: sourceId(value.id), name: sourceText(value.name, 128), kind, scope, ttl_seconds: integer(value.ttl_seconds, 1, 86400, 'ttl_seconds'),
121
+ settings: settings(kind, value.settings), enabled: value.enabled, revision: sourceId(value.revision) };
122
+ }
123
+ export function registry(value) {
124
+ if (!object(value))
125
+ sourceError('invalid');
126
+ const legacy = isSchema(value.version, 1);
127
+ exact(value, ['version', 'sources', 'bindings', ...(legacy ? [] : ['automatic'])], 'source registry');
128
+ if (!(legacy || isSchema(value.version, 2)) || !Array.isArray(value.sources) || !Array.isArray(value.bindings) || value.sources.length > 128 || value.bindings.length > 4096)
129
+ sourceError('invalid');
130
+ const sources = value.sources.map(definition), ids = new Set(sources.map(source => source.id));
131
+ if (ids.size !== sources.length)
132
+ sourceError('invalid');
133
+ const bindings = value.bindings.map(raw => { exact(raw, ['id', 'source_id'], 'source binding'); return { id: sourceId(raw.id), source_id: sourceId(raw.source_id) }; });
134
+ if (new Set(bindings.map(binding => binding.id)).size !== bindings.length || bindings.some(binding => !ids.has(binding.source_id)))
135
+ sourceError('invalid');
136
+ const automatic = legacy ? [] : (() => {
137
+ if (!Array.isArray(value.automatic) || value.automatic.length > sources.length)
138
+ sourceError('invalid');
139
+ return value.automatic.map(raw => {
140
+ exact(raw, ['source_id', 'enabled', 'review_revision', 'interval_seconds', 'auth_revision'], 'automatic policy');
141
+ const source = sources.find(s => s.id === raw.source_id);
142
+ if (!source || source.kind !== 'github' || typeof raw.enabled !== 'boolean' || raw.review_revision !== source.revision || typeof raw.auth_revision !== 'string' || !/^[a-f0-9]{64}$/.test(raw.auth_revision) || raw.enabled && !source.enabled)
143
+ sourceError('review');
144
+ return { source_id: source.id, enabled: raw.enabled, review_revision: source.revision, interval_seconds: integer(raw.interval_seconds, 60, 86400, 'interval_seconds'), auth_revision: raw.auth_revision };
145
+ });
146
+ })();
147
+ if (new Set(automatic.map(p => p.source_id)).size !== automatic.length)
148
+ sourceError('invalid');
149
+ return { version: 2, sources, bindings, automatic };
150
+ }
151
+ export function stamp(value) {
152
+ if (value == null)
153
+ return null;
154
+ if (typeof value !== 'string' || !/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2})$/u.test(value) || !Number.isFinite(Date.parse(value)))
155
+ sourceError('time');
156
+ const [year, month, day, hour, minute, second] = value.match(/\d+/gu).slice(0, 6).map(Number);
157
+ if (month < 1 || month > 12 || day < 1 || day > new Date(Date.UTC(year, month, 0)).getUTCDate() || hour > 23 || minute > 59 || second > 59)
158
+ sourceError('time');
159
+ return new Date(value).toISOString();
160
+ }
161
+ export function scalar(value) {
162
+ if (typeof value === 'boolean')
163
+ return value;
164
+ if (typeof value === 'string')
165
+ return value.replace(/\x1b(?:\[[0-?]*[ -/]*[@-~]|\][^\x07\x1b]*(?:\x07|\x1b\\))/gu, '').replace(/[\p{Cc}\p{Cs}\p{Zl}\p{Zp}]/gu, ' ').slice(0, 4096);
166
+ const n = numeric(value);
167
+ if (n !== null && Number.isFinite(n))
168
+ return n;
169
+ return sourceError('type');
170
+ }
171
+ export function emptyObservation(source, context, reason, state = 'error') {
172
+ return { version: 1, source_id: source.id, source_revision: source.revision, context, observed_at: null, state, reason, value: null, unit: null };
173
+ }
174
+ export function parseObservation(raw, source, context, contracted = false) {
175
+ const result = emptyObservation(source, context, 'missing', 'missing');
176
+ if (contracted) {
177
+ if (!object(raw) || !isSchema(raw.version, 1))
178
+ sourceError('version');
179
+ exact(raw, ['version', 'source_id', 'scope', 'observed_at', 'state', 'value', 'unit'], 'source output');
180
+ if (raw.source_id !== source.id || !matchesScope(sourceScope(raw.scope), context) || !['project', 'session', 'agent'].every(key => sourceScope(raw.scope)[key] === source.scope[key]))
181
+ sourceError('scope');
182
+ if (!['valid', 'missing', 'partial', 'error', 'unsupported'].includes(raw.state))
183
+ sourceError('invalid');
184
+ result.state = raw.state;
185
+ result.reason = result.state;
186
+ result.value = raw.value === null ? null : scalar(raw.value);
187
+ if (result.state === 'valid' && result.value === null)
188
+ sourceError('type');
189
+ result.observed_at = stamp(raw.observed_at);
190
+ result.unit = raw.unit === null ? null : sourceText(raw.unit, 32, true);
191
+ }
192
+ else {
193
+ if (object(raw) && Object.hasOwn(raw, 'version') && !isSchema(raw.version, 1))
194
+ sourceError('version');
195
+ if (object(raw) && Object.hasOwn(raw, 'source_id') && raw.source_id !== source.id)
196
+ sourceError('scope');
197
+ if (object(raw) && Object.hasOwn(raw, 'scope') && (!matchesScope(sourceScope(raw.scope), context) || !['project', 'session', 'agent'].every(key => sourceScope(raw.scope)[key] === source.scope[key])))
198
+ sourceError('scope');
199
+ const value = selectPointer(raw, source.settings.pointer ?? '/value');
200
+ result.observed_at = stamp(selectPointer(raw, source.settings.observed_at_pointer ?? '/observed_at'));
201
+ result.unit = source.settings.unit || null;
202
+ if (value !== undefined && value !== null) {
203
+ result.value = scalar(value);
204
+ result.state = 'valid';
205
+ result.reason = 'valid';
206
+ }
207
+ if (object(raw) && Object.hasOwn(raw, 'state')) {
208
+ if (!['valid', 'missing', 'partial', 'error', 'unsupported'].includes(raw.state))
209
+ sourceError('invalid');
210
+ result.state = raw.state;
211
+ result.reason = result.state;
212
+ if (result.state === 'valid' && result.value === null)
213
+ sourceError('type');
214
+ }
215
+ }
216
+ return result;
217
+ }
218
+ export function sourceView(source, context, current, good, now) {
219
+ const result = { source_id: source?.id ?? null, name: source?.name ?? '', state: 'unbound', reason: 'unbound', observed_at: null, freshness: 'unknown', value: null, unit: null };
220
+ if (!source)
221
+ return result;
222
+ if (!source.enabled)
223
+ return { ...result, state: 'disabled', reason: 'disabled' };
224
+ if (!matchesScope(source.scope, context))
225
+ return { ...result, state: 'mismatch', reason: 'scope' };
226
+ const valid = (entry) => entry && entry.source_id === source.id && entry.source_revision === source.revision && sameContext(entry.context, context);
227
+ if (current && !valid(current))
228
+ return { ...result, state: 'mismatch', reason: 'identity' };
229
+ if (!current)
230
+ return { ...result, state: 'missing', reason: 'not_refreshed' };
231
+ if (['scope', 'identity', 'account'].includes(current.reason))
232
+ return { ...result, state: 'mismatch', reason: current.reason };
233
+ const latest = current.value !== null && ['valid', 'partial'].includes(current.state) ? current : valid(good) ? good : { ...current, value: null, unit: null, fields: undefined };
234
+ const time = latest.observed_at === null ? null : Date.parse(latest.observed_at), age = time === null ? null : now - time;
235
+ return { ...result, state: current.state, reason: current.reason, value: latest.value, unit: latest.unit, observed_at: latest.observed_at,
236
+ freshness: age === null || age < 0 ? 'unknown' : age > source.ttl_seconds * 1000 ? 'stale' : 'current', ...(latest.fields ? { fields: latest.fields } : {}) };
237
+ }
238
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/extensions/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,sBA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AAC,CAAC,EAAE,CAAC,EAAE,CAAC;AACtK,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DisplayDraft } from '../contracts/ui.js';
2
+ /** A portable file cannot carry a machine's opaque authorization binding. */
3
+ export declare function unboundDisplay(display: DisplayDraft): DisplayDraft;
@@ -0,0 +1,6 @@
1
+ /** A portable file cannot carry a machine's opaque authorization binding. */
2
+ export function unboundDisplay(display) {
3
+ const clear = (nodes) => nodes.map(node => node.source ? { ...node, source: { binding: null, hint: node.source.hint } } : node);
4
+ return { ...display, instances: clear(display.instances), subagents: { ...display.subagents, instances: clear(display.subagents.instances) } };
5
+ }
6
+ //# sourceMappingURL=portable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portable.js","sourceRoot":"","sources":["../../../src/extensions/portable.ts"],"names":[],"mappings":"AACA,6EAA6E;AAC7E,MAAM,UAAU,cAAc,CAAC,OAAqB;IAChD,MAAM,KAAK,GAAG,CAAC,KAAgC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC3J,OAAO,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;AACnJ,CAAC"}