@fbincon/claude-code-statusline 0.0.0-stage → 3.0.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 (648) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-Unicode.txt +39 -0
  3. package/LICENSE-Wcwidth.txt +27 -0
  4. package/README.md +420 -2
  5. package/bin/claude-statusline.js +2 -0
  6. package/candidate.json +1244 -0
  7. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.d.ts +35 -0
  8. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js +228 -0
  9. package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js.map +1 -0
  10. package/node_modules/@fbincon/statusline-cli/dist/src/config/backend-preferences.d.ts +6 -0
  11. package/node_modules/@fbincon/statusline-cli/dist/src/config/backend-preferences.js +72 -0
  12. package/node_modules/@fbincon/statusline-cli/dist/src/config/backend-preferences.js.map +1 -0
  13. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.d.ts +10 -0
  14. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js +140 -0
  15. package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js.map +1 -0
  16. package/node_modules/@fbincon/statusline-cli/dist/src/config/host.d.ts +10 -0
  17. package/node_modules/@fbincon/statusline-cli/dist/src/config/host.js +101 -0
  18. package/node_modules/@fbincon/statusline-cli/dist/src/config/host.js.map +1 -0
  19. package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.d.ts +10 -0
  20. package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js +96 -0
  21. package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js.map +1 -0
  22. package/node_modules/@fbincon/statusline-cli/dist/src/config/preferences.d.ts +11 -0
  23. package/node_modules/@fbincon/statusline-cli/dist/src/config/preferences.js +80 -0
  24. package/node_modules/@fbincon/statusline-cli/dist/src/config/preferences.js.map +1 -0
  25. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.d.ts +45 -0
  26. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js +99 -0
  27. package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js.map +1 -0
  28. package/node_modules/@fbincon/statusline-cli/dist/src/config/storage.d.ts +30 -0
  29. package/node_modules/@fbincon/statusline-cli/dist/src/config/storage.js +134 -0
  30. package/node_modules/@fbincon/statusline-cli/dist/src/config/storage.js.map +1 -0
  31. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.d.ts +3 -0
  32. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js +89 -0
  33. package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js.map +1 -0
  34. package/node_modules/@fbincon/statusline-cli/dist/src/context.d.ts +11 -0
  35. package/node_modules/@fbincon/statusline-cli/dist/src/context.js +2 -0
  36. package/node_modules/@fbincon/statusline-cli/dist/src/context.js.map +1 -0
  37. package/node_modules/@fbincon/statusline-cli/dist/src/entry.d.ts +1 -0
  38. package/node_modules/@fbincon/statusline-cli/dist/src/entry.js +3 -0
  39. package/node_modules/@fbincon/statusline-cli/dist/src/entry.js.map +1 -0
  40. package/node_modules/@fbincon/statusline-cli/dist/src/errors.d.ts +4 -0
  41. package/node_modules/@fbincon/statusline-cli/dist/src/errors.js +8 -0
  42. package/node_modules/@fbincon/statusline-cli/dist/src/errors.js.map +1 -0
  43. package/node_modules/@fbincon/statusline-cli/dist/src/help.d.ts +3 -0
  44. package/node_modules/@fbincon/statusline-cli/dist/src/help.js +67 -0
  45. package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -0
  46. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.d.ts +10 -0
  47. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js +40 -0
  48. package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js.map +1 -0
  49. package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.d.ts +3 -0
  50. package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js +63 -0
  51. package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js.map +1 -0
  52. package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.d.ts +4 -0
  53. package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js +153 -0
  54. package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js.map +1 -0
  55. package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor.d.ts +14 -0
  56. package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor.js +3 -0
  57. package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor.js.map +1 -0
  58. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.d.ts +6 -0
  59. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +142 -0
  60. package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -0
  61. package/node_modules/@fbincon/statusline-cli/dist/src/integration/launcher.d.ts +15 -0
  62. package/node_modules/@fbincon/statusline-cli/dist/src/integration/launcher.js +91 -0
  63. package/node_modules/@fbincon/statusline-cli/dist/src/integration/launcher.js.map +1 -0
  64. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mod-ownership.d.ts +20 -0
  65. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mod-ownership.js +109 -0
  66. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mod-ownership.js.map +1 -0
  67. package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.d.ts +60 -0
  68. package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.js +12 -0
  69. package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.js.map +1 -0
  70. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.d.ts +10 -0
  71. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js +234 -0
  72. package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js.map +1 -0
  73. package/node_modules/@fbincon/statusline-cli/dist/src/integration/ownership.d.ts +8 -0
  74. package/node_modules/@fbincon/statusline-cli/dist/src/integration/ownership.js +41 -0
  75. package/node_modules/@fbincon/statusline-cli/dist/src/integration/ownership.js.map +1 -0
  76. package/node_modules/@fbincon/statusline-cli/dist/src/integration/paths.d.ts +1 -0
  77. package/node_modules/@fbincon/statusline-cli/dist/src/integration/paths.js +14 -0
  78. package/node_modules/@fbincon/statusline-cli/dist/src/integration/paths.js.map +1 -0
  79. package/node_modules/@fbincon/statusline-cli/dist/src/integration/plan.d.ts +13 -0
  80. package/node_modules/@fbincon/statusline-cli/dist/src/integration/plan.js +92 -0
  81. package/node_modules/@fbincon/statusline-cli/dist/src/integration/plan.js.map +1 -0
  82. package/node_modules/@fbincon/statusline-cli/dist/src/integration/resources.d.ts +19 -0
  83. package/node_modules/@fbincon/statusline-cli/dist/src/integration/resources.js +91 -0
  84. package/node_modules/@fbincon/statusline-cli/dist/src/integration/resources.js.map +1 -0
  85. package/node_modules/@fbincon/statusline-cli/dist/src/integration/slash-hook.d.ts +6 -0
  86. package/node_modules/@fbincon/statusline-cli/dist/src/integration/slash-hook.js +94 -0
  87. package/node_modules/@fbincon/statusline-cli/dist/src/integration/slash-hook.js.map +1 -0
  88. package/node_modules/@fbincon/statusline-cli/dist/src/integration/transaction.d.ts +8 -0
  89. package/node_modules/@fbincon/statusline-cli/dist/src/integration/transaction.js +3 -0
  90. package/node_modules/@fbincon/statusline-cli/dist/src/integration/transaction.js.map +1 -0
  91. package/node_modules/@fbincon/statusline-cli/dist/src/main.d.ts +22 -0
  92. package/node_modules/@fbincon/statusline-cli/dist/src/main.js +197 -0
  93. package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -0
  94. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/files.d.ts +7 -0
  95. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/files.js +134 -0
  96. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/files.js.map +1 -0
  97. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.d.ts +58 -0
  98. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js +144 -0
  99. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js.map +1 -0
  100. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/official.d.ts +5 -0
  101. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/official.js +125 -0
  102. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/official.js.map +1 -0
  103. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/service.d.ts +11 -0
  104. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/service.js +55 -0
  105. package/node_modules/@fbincon/statusline-cli/dist/src/recovery/service.js.map +1 -0
  106. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.d.ts +15 -0
  107. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js +95 -0
  108. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js.map +1 -0
  109. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.d.ts +6 -0
  110. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.js +48 -0
  111. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.js.map +1 -0
  112. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.d.ts +2 -0
  113. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js +13 -0
  114. package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js.map +1 -0
  115. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/context.d.ts +11 -0
  116. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/context.js +11 -0
  117. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/context.js.map +1 -0
  118. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/git.d.ts +19 -0
  119. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/git.js +162 -0
  120. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/git.js.map +1 -0
  121. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/hook.d.ts +3 -0
  122. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/hook.js +19 -0
  123. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/hook.js.map +1 -0
  124. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/io.d.ts +37 -0
  125. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/io.js +75 -0
  126. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/io.js.map +1 -0
  127. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/json-data.d.ts +9 -0
  128. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/json-data.js +241 -0
  129. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/json-data.js.map +1 -0
  130. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/collect.d.ts +2 -0
  131. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/collect.js +14 -0
  132. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/collect.js.map +1 -0
  133. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/durations.d.ts +15 -0
  134. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/durations.js +69 -0
  135. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/durations.js.map +1 -0
  136. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.d.ts +16 -0
  137. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js +90 -0
  138. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js.map +1 -0
  139. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/store.d.ts +25 -0
  140. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/store.js +80 -0
  141. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/store.js.map +1 -0
  142. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/registry.d.ts +4 -0
  143. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/registry.js +40 -0
  144. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/registry.js.map +1 -0
  145. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/collect.d.ts +5 -0
  146. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/collect.js +59 -0
  147. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/collect.js.map +1 -0
  148. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/service.d.ts +17 -0
  149. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/service.js +69 -0
  150. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/service.js.map +1 -0
  151. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/store.d.ts +17 -0
  152. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/store.js +70 -0
  153. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/store.js.map +1 -0
  154. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/submissions.d.ts +13 -0
  155. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/submissions.js +75 -0
  156. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/submissions.js.map +1 -0
  157. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.d.ts +33 -0
  158. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.js +227 -0
  159. package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.js.map +1 -0
  160. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +20 -0
  161. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +144 -0
  162. package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -0
  163. package/node_modules/@fbincon/statusline-cli/package.json +17 -0
  164. package/node_modules/@fbincon/statusline-cli/resources/statusline-config/SKILL.md +80 -0
  165. package/node_modules/@fbincon/statusline-cli/resources/statusline-configure/SKILL.md +19 -0
  166. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +37 -0
  167. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/hooks.json +6 -0
  168. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +820 -0
  169. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +503 -0
  170. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/forms.ts +3 -0
  171. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +198 -0
  172. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/messages.ts +101 -0
  173. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +218 -0
  174. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/appearance.ts +29 -0
  175. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +254 -0
  176. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +167 -0
  177. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/guidance.ts +20 -0
  178. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/import-review.ts +55 -0
  179. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/instances.ts +30 -0
  180. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/navigation.ts +98 -0
  181. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/numeric.ts +42 -0
  182. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/search.ts +114 -0
  183. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +276 -0
  184. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-unicode.ts +92 -0
  185. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +6842 -0
  186. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/index.ts +40 -0
  187. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/messages.ts +33 -0
  188. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/presentation.ts +62 -0
  189. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/launch.ts +25 -0
  190. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/preferences.ts +61 -0
  191. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/preview-preferences.ts +8 -0
  192. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/session.ts +124 -0
  193. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/unicode.ts +121 -0
  194. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +47 -0
  195. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +159 -0
  196. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +84 -0
  197. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/surface.ts +89 -0
  198. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/catalog.ts +23 -0
  199. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/preview.ts +45 -0
  200. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/section.ts +49 -0
  201. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/shortcuts.ts +83 -0
  202. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/layout.ts +49 -0
  203. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/styled-text.ts +56 -0
  204. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/text.ts +23 -0
  205. package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/theme.ts +27 -0
  206. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +49 -0
  207. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/hooks.json +1 -0
  208. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/observe.ts +279 -0
  209. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/checklists.ts +45 -0
  210. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/costs.ts +23 -0
  211. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/generated-contracts.ts +18 -0
  212. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/identity.ts +14 -0
  213. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/launch.ts +25 -0
  214. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/queue.ts +68 -0
  215. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/streams.ts +28 -0
  216. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/timing.ts +11 -0
  217. package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +19 -0
  218. package/node_modules/@fbincon/statusline-core/dist/src/config/backend-preferences.d.ts +14 -0
  219. package/node_modules/@fbincon/statusline-core/dist/src/config/backend-preferences.js +72 -0
  220. package/node_modules/@fbincon/statusline-core/dist/src/config/backend-preferences.js.map +1 -0
  221. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.d.ts +86 -0
  222. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js +3462 -0
  223. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js.map +1 -0
  224. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog.d.ts +10 -0
  225. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog.js +17 -0
  226. package/node_modules/@fbincon/statusline-core/dist/src/config/catalog.js.map +1 -0
  227. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.d.ts +5 -0
  228. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +19 -0
  229. package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js.map +1 -0
  230. package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +13 -0
  231. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +232 -0
  232. package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -0
  233. package/node_modules/@fbincon/statusline-core/dist/src/config/draft.d.ts +4 -0
  234. package/node_modules/@fbincon/statusline-core/dist/src/config/draft.js +48 -0
  235. package/node_modules/@fbincon/statusline-core/dist/src/config/draft.js.map +1 -0
  236. package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.d.ts +8 -0
  237. package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js +104 -0
  238. package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js.map +1 -0
  239. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.d.ts +11 -0
  240. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +99 -0
  241. package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -0
  242. package/node_modules/@fbincon/statusline-core/dist/src/config/generated-constants.d.ts +36 -0
  243. package/node_modules/@fbincon/statusline-core/dist/src/config/generated-constants.js +5 -0
  244. package/node_modules/@fbincon/statusline-core/dist/src/config/generated-constants.js.map +1 -0
  245. package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.d.ts +4 -0
  246. package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js +80 -0
  247. package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js.map +1 -0
  248. package/node_modules/@fbincon/statusline-core/dist/src/config/instances.d.ts +29 -0
  249. package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js +159 -0
  250. package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js.map +1 -0
  251. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +10 -0
  252. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +34 -0
  253. package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -0
  254. package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.d.ts +6 -0
  255. package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js +23 -0
  256. package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js.map +1 -0
  257. package/node_modules/@fbincon/statusline-core/dist/src/config/validation.d.ts +15 -0
  258. package/node_modules/@fbincon/statusline-core/dist/src/config/validation.js +55 -0
  259. package/node_modules/@fbincon/statusline-core/dist/src/config/validation.js.map +1 -0
  260. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +33 -0
  261. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +5 -0
  262. package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -0
  263. package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.d.ts +18 -0
  264. package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.js +3 -0
  265. package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.js.map +1 -0
  266. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +663 -0
  267. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +23 -0
  268. package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -0
  269. package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.d.ts +5 -0
  270. package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js +27 -0
  271. package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js.map +1 -0
  272. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.d.ts +18 -0
  273. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +401 -0
  274. package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -0
  275. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +73 -0
  276. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +251 -0
  277. package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -0
  278. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.d.ts +26 -0
  279. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +146 -0
  280. package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -0
  281. package/node_modules/@fbincon/statusline-core/dist/src/editor/guidance.d.ts +3 -0
  282. package/node_modules/@fbincon/statusline-core/dist/src/editor/guidance.js +17 -0
  283. package/node_modules/@fbincon/statusline-core/dist/src/editor/guidance.js.map +1 -0
  284. package/node_modules/@fbincon/statusline-core/dist/src/editor/import-review.d.ts +19 -0
  285. package/node_modules/@fbincon/statusline-core/dist/src/editor/import-review.js +53 -0
  286. package/node_modules/@fbincon/statusline-core/dist/src/editor/import-review.js.map +1 -0
  287. package/node_modules/@fbincon/statusline-core/dist/src/editor/instances.d.ts +4 -0
  288. package/node_modules/@fbincon/statusline-core/dist/src/editor/instances.js +36 -0
  289. package/node_modules/@fbincon/statusline-core/dist/src/editor/instances.js.map +1 -0
  290. package/node_modules/@fbincon/statusline-core/dist/src/editor/navigation.d.ts +37 -0
  291. package/node_modules/@fbincon/statusline-core/dist/src/editor/navigation.js +73 -0
  292. package/node_modules/@fbincon/statusline-core/dist/src/editor/navigation.js.map +1 -0
  293. package/node_modules/@fbincon/statusline-core/dist/src/editor/numeric.d.ts +11 -0
  294. package/node_modules/@fbincon/statusline-core/dist/src/editor/numeric.js +27 -0
  295. package/node_modules/@fbincon/statusline-core/dist/src/editor/numeric.js.map +1 -0
  296. package/node_modules/@fbincon/statusline-core/dist/src/editor/search.d.ts +22 -0
  297. package/node_modules/@fbincon/statusline-core/dist/src/editor/search.js +122 -0
  298. package/node_modules/@fbincon/statusline-core/dist/src/editor/search.js.map +1 -0
  299. package/node_modules/@fbincon/statusline-core/dist/src/editor/text.d.ts +2 -0
  300. package/node_modules/@fbincon/statusline-core/dist/src/editor/text.js +30 -0
  301. package/node_modules/@fbincon/statusline-core/dist/src/editor/text.js.map +1 -0
  302. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +6841 -0
  303. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +6841 -0
  304. package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -0
  305. package/node_modules/@fbincon/statusline-core/dist/src/i18n/messages.d.ts +16 -0
  306. package/node_modules/@fbincon/statusline-core/dist/src/i18n/messages.js +38 -0
  307. package/node_modules/@fbincon/statusline-core/dist/src/i18n/messages.js.map +1 -0
  308. package/node_modules/@fbincon/statusline-core/dist/src/i18n/registry.d.ts +3 -0
  309. package/node_modules/@fbincon/statusline-core/dist/src/i18n/registry.js +4 -0
  310. package/node_modules/@fbincon/statusline-core/dist/src/i18n/registry.js.map +1 -0
  311. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.d.ts +222 -0
  312. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +224 -0
  313. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js.map +1 -0
  314. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.d.ts +222 -0
  315. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +224 -0
  316. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js.map +1 -0
  317. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.d.ts +222 -0
  318. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +224 -0
  319. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js.map +1 -0
  320. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.d.ts +222 -0
  321. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +224 -0
  322. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js.map +1 -0
  323. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-Hant.d.ts +222 -0
  324. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-Hant.js +224 -0
  325. package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-Hant.js.map +1 -0
  326. package/node_modules/@fbincon/statusline-core/dist/src/integration/binding.d.ts +9 -0
  327. package/node_modules/@fbincon/statusline-core/dist/src/integration/binding.js +27 -0
  328. package/node_modules/@fbincon/statusline-core/dist/src/integration/binding.js.map +1 -0
  329. package/node_modules/@fbincon/statusline-core/dist/src/json-equality.d.ts +2 -0
  330. package/node_modules/@fbincon/statusline-core/dist/src/json-equality.js +31 -0
  331. package/node_modules/@fbincon/statusline-core/dist/src/json-equality.js.map +1 -0
  332. package/node_modules/@fbincon/statusline-core/dist/src/json-read.d.ts +9 -0
  333. package/node_modules/@fbincon/statusline-core/dist/src/json-read.js +137 -0
  334. package/node_modules/@fbincon/statusline-core/dist/src/json-read.js.map +1 -0
  335. package/node_modules/@fbincon/statusline-core/dist/src/json-text.d.ts +9 -0
  336. package/node_modules/@fbincon/statusline-core/dist/src/json-text.js +56 -0
  337. package/node_modules/@fbincon/statusline-core/dist/src/json-text.js.map +1 -0
  338. package/node_modules/@fbincon/statusline-core/dist/src/json.d.ts +18 -0
  339. package/node_modules/@fbincon/statusline-core/dist/src/json.js +165 -0
  340. package/node_modules/@fbincon/statusline-core/dist/src/json.js.map +1 -0
  341. package/node_modules/@fbincon/statusline-core/dist/src/numbers.d.ts +4 -0
  342. package/node_modules/@fbincon/statusline-core/dist/src/numbers.js +47 -0
  343. package/node_modules/@fbincon/statusline-core/dist/src/numbers.js.map +1 -0
  344. package/node_modules/@fbincon/statusline-core/dist/src/ordered-record.d.ts +21 -0
  345. package/node_modules/@fbincon/statusline-core/dist/src/ordered-record.js +105 -0
  346. package/node_modules/@fbincon/statusline-core/dist/src/ordered-record.js.map +1 -0
  347. package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +7 -0
  348. package/node_modules/@fbincon/statusline-core/dist/src/release.js +14 -0
  349. package/node_modules/@fbincon/statusline-core/dist/src/release.js.map +1 -0
  350. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.d.ts +10 -0
  351. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +73 -0
  352. package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -0
  353. package/node_modules/@fbincon/statusline-core/dist/src/rendering/coercion.d.ts +2 -0
  354. package/node_modules/@fbincon/statusline-core/dist/src/rendering/coercion.js +50 -0
  355. package/node_modules/@fbincon/statusline-core/dist/src/rendering/coercion.js.map +1 -0
  356. package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.d.ts +3 -0
  357. package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.js +36 -0
  358. package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.js.map +1 -0
  359. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +10 -0
  360. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +49 -0
  361. package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -0
  362. package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.d.ts +36 -0
  363. package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.js +2 -0
  364. package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.js.map +1 -0
  365. package/node_modules/@fbincon/statusline-core/dist/src/rendering/formatters.d.ts +10 -0
  366. package/node_modules/@fbincon/statusline-core/dist/src/rendering/formatters.js +58 -0
  367. package/node_modules/@fbincon/statusline-core/dist/src/rendering/formatters.js.map +1 -0
  368. package/node_modules/@fbincon/statusline-core/dist/src/rendering/git.d.ts +7 -0
  369. package/node_modules/@fbincon/statusline-core/dist/src/rendering/git.js +34 -0
  370. package/node_modules/@fbincon/statusline-core/dist/src/rendering/git.js.map +1 -0
  371. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.d.ts +49 -0
  372. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +399 -0
  373. package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -0
  374. package/node_modules/@fbincon/statusline-core/dist/src/rendering/language.d.ts +13 -0
  375. package/node_modules/@fbincon/statusline-core/dist/src/rendering/language.js +36 -0
  376. package/node_modules/@fbincon/statusline-core/dist/src/rendering/language.js.map +1 -0
  377. package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.d.ts +19 -0
  378. package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js +176 -0
  379. package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js.map +1 -0
  380. package/node_modules/@fbincon/statusline-core/dist/src/rendering/live.d.ts +4 -0
  381. package/node_modules/@fbincon/statusline-core/dist/src/rendering/live.js +29 -0
  382. package/node_modules/@fbincon/statusline-core/dist/src/rendering/live.js.map +1 -0
  383. package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.d.ts +13 -0
  384. package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js +93 -0
  385. package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js.map +1 -0
  386. package/node_modules/@fbincon/statusline-core/dist/src/rendering/numeric-format.d.ts +3 -0
  387. package/node_modules/@fbincon/statusline-core/dist/src/rendering/numeric-format.js +46 -0
  388. package/node_modules/@fbincon/statusline-core/dist/src/rendering/numeric-format.js.map +1 -0
  389. package/node_modules/@fbincon/statusline-core/dist/src/rendering/palette.d.ts +23 -0
  390. package/node_modules/@fbincon/statusline-core/dist/src/rendering/palette.js +9 -0
  391. package/node_modules/@fbincon/statusline-core/dist/src/rendering/palette.js.map +1 -0
  392. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.d.ts +10 -0
  393. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +76 -0
  394. package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -0
  395. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.d.ts +14 -0
  396. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +98 -0
  397. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -0
  398. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.d.ts +67 -0
  399. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js +36 -0
  400. package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js.map +1 -0
  401. package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.d.ts +8 -0
  402. package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js +14 -0
  403. package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js.map +1 -0
  404. package/node_modules/@fbincon/statusline-core/dist/src/rendering/styles.d.ts +24 -0
  405. package/node_modules/@fbincon/statusline-core/dist/src/rendering/styles.js +116 -0
  406. package/node_modules/@fbincon/statusline-core/dist/src/rendering/styles.js.map +1 -0
  407. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.d.ts +13 -0
  408. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +305 -0
  409. package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js.map +1 -0
  410. package/node_modules/@fbincon/statusline-core/dist/src/rendering/timer.d.ts +8 -0
  411. package/node_modules/@fbincon/statusline-core/dist/src/rendering/timer.js +33 -0
  412. package/node_modules/@fbincon/statusline-core/dist/src/rendering/timer.js.map +1 -0
  413. package/node_modules/@fbincon/statusline-core/dist/src/rendering/visibility.d.ts +4 -0
  414. package/node_modules/@fbincon/statusline-core/dist/src/rendering/visibility.js +52 -0
  415. package/node_modules/@fbincon/statusline-core/dist/src/rendering/visibility.js.map +1 -0
  416. package/node_modules/@fbincon/statusline-core/dist/src/runtime/git.d.ts +9 -0
  417. package/node_modules/@fbincon/statusline-core/dist/src/runtime/git.js +115 -0
  418. package/node_modules/@fbincon/statusline-core/dist/src/runtime/git.js.map +1 -0
  419. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/bindings.d.ts +4 -0
  420. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/bindings.js +104 -0
  421. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/bindings.js.map +1 -0
  422. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.d.ts +27 -0
  423. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js +196 -0
  424. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js.map +1 -0
  425. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/ownership.d.ts +6 -0
  426. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/ownership.js +45 -0
  427. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/ownership.js.map +1 -0
  428. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/reducer.d.ts +5 -0
  429. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/reducer.js +228 -0
  430. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/reducer.js.map +1 -0
  431. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.d.ts +24 -0
  432. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.js +145 -0
  433. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.js.map +1 -0
  434. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.d.ts +6 -0
  435. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.js +70 -0
  436. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.js.map +1 -0
  437. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/state.d.ts +36 -0
  438. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/state.js +110 -0
  439. package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/state.js.map +1 -0
  440. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/agents.d.ts +8 -0
  441. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/agents.js +75 -0
  442. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/agents.js.map +1 -0
  443. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/hooks.d.ts +10 -0
  444. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/hooks.js +121 -0
  445. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/hooks.js.map +1 -0
  446. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/model.d.ts +43 -0
  447. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/model.js +198 -0
  448. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/model.js.map +1 -0
  449. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/native.d.ts +6 -0
  450. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/native.js +192 -0
  451. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/native.js.map +1 -0
  452. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/transitions.d.ts +16 -0
  453. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/transitions.js +245 -0
  454. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/transitions.js.map +1 -0
  455. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/view.d.ts +4 -0
  456. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/view.js +28 -0
  457. package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/view.js.map +1 -0
  458. package/node_modules/@fbincon/statusline-core/dist/src/runtime/transcript.d.ts +26 -0
  459. package/node_modules/@fbincon/statusline-core/dist/src/runtime/transcript.js +183 -0
  460. package/node_modules/@fbincon/statusline-core/dist/src/runtime/transcript.js.map +1 -0
  461. package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.d.ts +64 -0
  462. package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.js +263 -0
  463. package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.js.map +1 -0
  464. package/node_modules/@fbincon/statusline-core/dist/src/runtime/values.d.ts +18 -0
  465. package/node_modules/@fbincon/statusline-core/dist/src/runtime/values.js +103 -0
  466. package/node_modules/@fbincon/statusline-core/dist/src/runtime/values.js.map +1 -0
  467. package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.d.ts +7 -0
  468. package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.js +2 -0
  469. package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.js.map +1 -0
  470. package/node_modules/@fbincon/statusline-core/dist/src/terminal/spans.d.ts +6 -0
  471. package/node_modules/@fbincon/statusline-core/dist/src/terminal/spans.js +50 -0
  472. package/node_modules/@fbincon/statusline-core/dist/src/terminal/spans.js.map +1 -0
  473. package/node_modules/@fbincon/statusline-core/dist/src/timing/sample.d.ts +8 -0
  474. package/node_modules/@fbincon/statusline-core/dist/src/timing/sample.js +13 -0
  475. package/node_modules/@fbincon/statusline-core/dist/src/timing/sample.js.map +1 -0
  476. package/node_modules/@fbincon/statusline-core/dist/src/timing/timer.d.ts +22 -0
  477. package/node_modules/@fbincon/statusline-core/dist/src/timing/timer.js +75 -0
  478. package/node_modules/@fbincon/statusline-core/dist/src/timing/timer.js.map +1 -0
  479. package/node_modules/@fbincon/statusline-core/dist/src/unicode/generated-unicode.d.ts +12 -0
  480. package/node_modules/@fbincon/statusline-core/dist/src/unicode/generated-unicode.js +93 -0
  481. package/node_modules/@fbincon/statusline-core/dist/src/unicode/generated-unicode.js.map +1 -0
  482. package/node_modules/@fbincon/statusline-core/dist/src/unicode/index.d.ts +5 -0
  483. package/node_modules/@fbincon/statusline-core/dist/src/unicode/index.js +178 -0
  484. package/node_modules/@fbincon/statusline-core/dist/src/unicode/index.js.map +1 -0
  485. package/node_modules/@fbincon/statusline-core/package.json +8 -0
  486. package/node_modules/@fbincon/statusline-core/resources/i18n/languages.json +7 -0
  487. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +1367 -0
  488. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +1367 -0
  489. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +1367 -0
  490. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +1367 -0
  491. package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-Hant.json +1367 -0
  492. package/node_modules/@fbincon/statusline-platform/dist/src/architecture.d.ts +15 -0
  493. package/node_modules/@fbincon/statusline-platform/dist/src/architecture.js +22 -0
  494. package/node_modules/@fbincon/statusline-platform/dist/src/architecture.js.map +1 -0
  495. package/node_modules/@fbincon/statusline-platform/dist/src/clocks.d.ts +4 -0
  496. package/node_modules/@fbincon/statusline-platform/dist/src/clocks.js +102 -0
  497. package/node_modules/@fbincon/statusline-platform/dist/src/clocks.js.map +1 -0
  498. package/node_modules/@fbincon/statusline-platform/dist/src/command.d.ts +16 -0
  499. package/node_modules/@fbincon/statusline-platform/dist/src/command.js +18 -0
  500. package/node_modules/@fbincon/statusline-platform/dist/src/command.js.map +1 -0
  501. package/node_modules/@fbincon/statusline-platform/dist/src/commands.d.ts +12 -0
  502. package/node_modules/@fbincon/statusline-platform/dist/src/commands.js +160 -0
  503. package/node_modules/@fbincon/statusline-platform/dist/src/commands.js.map +1 -0
  504. package/node_modules/@fbincon/statusline-platform/dist/src/errors.d.ts +1 -0
  505. package/node_modules/@fbincon/statusline-platform/dist/src/errors.js +19 -0
  506. package/node_modules/@fbincon/statusline-platform/dist/src/errors.js.map +1 -0
  507. package/node_modules/@fbincon/statusline-platform/dist/src/files.d.ts +8 -0
  508. package/node_modules/@fbincon/statusline-platform/dist/src/files.js +164 -0
  509. package/node_modules/@fbincon/statusline-platform/dist/src/files.js.map +1 -0
  510. package/node_modules/@fbincon/statusline-platform/dist/src/hash.d.ts +2 -0
  511. package/node_modules/@fbincon/statusline-platform/dist/src/hash.js +5 -0
  512. package/node_modules/@fbincon/statusline-platform/dist/src/hash.js.map +1 -0
  513. package/node_modules/@fbincon/statusline-platform/dist/src/input.d.ts +2 -0
  514. package/node_modules/@fbincon/statusline-platform/dist/src/input.js +14 -0
  515. package/node_modules/@fbincon/statusline-platform/dist/src/input.js.map +1 -0
  516. package/node_modules/@fbincon/statusline-platform/dist/src/launch.d.ts +12 -0
  517. package/node_modules/@fbincon/statusline-platform/dist/src/launch.js +21 -0
  518. package/node_modules/@fbincon/statusline-platform/dist/src/launch.js.map +1 -0
  519. package/node_modules/@fbincon/statusline-platform/dist/src/line-cursor.d.ts +2 -0
  520. package/node_modules/@fbincon/statusline-platform/dist/src/line-cursor.js +31 -0
  521. package/node_modules/@fbincon/statusline-platform/dist/src/line-cursor.js.map +1 -0
  522. package/node_modules/@fbincon/statusline-platform/dist/src/native.d.ts +15 -0
  523. package/node_modules/@fbincon/statusline-platform/dist/src/native.js +36 -0
  524. package/node_modules/@fbincon/statusline-platform/dist/src/native.js.map +1 -0
  525. package/node_modules/@fbincon/statusline-platform/dist/src/plugin-host.d.ts +17 -0
  526. package/node_modules/@fbincon/statusline-platform/dist/src/plugin-host.js +44 -0
  527. package/node_modules/@fbincon/statusline-platform/dist/src/plugin-host.js.map +1 -0
  528. package/node_modules/@fbincon/statusline-platform/dist/src/presentation.d.ts +4 -0
  529. package/node_modules/@fbincon/statusline-platform/dist/src/presentation.js +48 -0
  530. package/node_modules/@fbincon/statusline-platform/dist/src/presentation.js.map +1 -0
  531. package/node_modules/@fbincon/statusline-platform/dist/src/processes.d.ts +2 -0
  532. package/node_modules/@fbincon/statusline-platform/dist/src/processes.js +67 -0
  533. package/node_modules/@fbincon/statusline-platform/dist/src/processes.js.map +1 -0
  534. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/bridge.d.ts +42 -0
  535. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/bridge.js +180 -0
  536. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/bridge.js.map +1 -0
  537. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.d.ts +11 -0
  538. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.js +81 -0
  539. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.js.map +1 -0
  540. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.d.ts +32 -0
  541. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.js +157 -0
  542. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.js.map +1 -0
  543. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/session.d.ts +18 -0
  544. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/session.js +150 -0
  545. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/session.js.map +1 -0
  546. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.d.ts +6 -0
  547. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.js +39 -0
  548. package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.js.map +1 -0
  549. package/node_modules/@fbincon/statusline-platform/dist/src/utf8.d.ts +5 -0
  550. package/node_modules/@fbincon/statusline-platform/dist/src/utf8.js +82 -0
  551. package/node_modules/@fbincon/statusline-platform/dist/src/utf8.js.map +1 -0
  552. package/node_modules/@fbincon/statusline-platform/package.json +8 -0
  553. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.d.ts +14 -0
  554. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +230 -0
  555. package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -0
  556. package/node_modules/@fbincon/statusline-tui/dist/src/layout.d.ts +30 -0
  557. package/node_modules/@fbincon/statusline-tui/dist/src/layout.js +34 -0
  558. package/node_modules/@fbincon/statusline-tui/dist/src/layout.js.map +1 -0
  559. package/node_modules/@fbincon/statusline-tui/dist/src/session.d.ts +28 -0
  560. package/node_modules/@fbincon/statusline-tui/dist/src/session.js +126 -0
  561. package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -0
  562. package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +52 -0
  563. package/node_modules/@fbincon/statusline-tui/dist/src/state.js +352 -0
  564. package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -0
  565. package/node_modules/@fbincon/statusline-tui/dist/src/theme.d.ts +7 -0
  566. package/node_modules/@fbincon/statusline-tui/dist/src/theme.js +5 -0
  567. package/node_modules/@fbincon/statusline-tui/dist/src/theme.js.map +1 -0
  568. package/node_modules/@fbincon/statusline-tui/package.json +16 -0
  569. package/node_modules/@koromix/koffi-darwin-arm64/README.md +6 -0
  570. package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
  571. package/node_modules/@koromix/koffi-darwin-arm64/index.js +1 -0
  572. package/node_modules/@koromix/koffi-darwin-arm64/package.json +24 -0
  573. package/node_modules/@koromix/koffi-darwin-x64/README.md +6 -0
  574. package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
  575. package/node_modules/@koromix/koffi-darwin-x64/index.js +1 -0
  576. package/node_modules/@koromix/koffi-darwin-x64/package.json +24 -0
  577. package/node_modules/@koromix/koffi-linux-x64/README.md +6 -0
  578. package/node_modules/@koromix/koffi-linux-x64/index.js +198 -0
  579. package/node_modules/@koromix/koffi-linux-x64/linux_x64/koffi.node +0 -0
  580. package/node_modules/@koromix/koffi-linux-x64/musl_x64/koffi.node +0 -0
  581. package/node_modules/@koromix/koffi-linux-x64/package.json +24 -0
  582. package/node_modules/@koromix/koffi-win32-x64/README.md +6 -0
  583. package/node_modules/@koromix/koffi-win32-x64/index.js +1 -0
  584. package/node_modules/@koromix/koffi-win32-x64/package.json +24 -0
  585. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.lib +0 -0
  586. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
  587. package/node_modules/koffi/LICENSE.txt +22 -0
  588. package/node_modules/koffi/README.md +46 -0
  589. package/node_modules/koffi/index.cjs +1 -0
  590. package/node_modules/koffi/index.d.ts +390 -0
  591. package/node_modules/koffi/index.js +2 -0
  592. package/node_modules/koffi/indirect.cjs +1 -0
  593. package/node_modules/koffi/indirect.js +2 -0
  594. package/node_modules/koffi/package.json +73 -0
  595. package/node_modules/koffi/src/koffi/index.cjs +327 -0
  596. package/node_modules/koffi/src/koffi/index.js +312 -0
  597. package/node_modules/koffi/src/koffi/indirect.cjs +326 -0
  598. package/node_modules/koffi/src/koffi/indirect.js +311 -0
  599. package/node_modules/koffi/src/koffi/src/static.cjs +170 -0
  600. package/node_modules/koffi/src/koffi/src/static.js +173 -0
  601. package/node_modules/lossless-json/LICENSE.md +9 -0
  602. package/node_modules/lossless-json/README.md +549 -0
  603. package/node_modules/lossless-json/lib/esm/LosslessNumber.js +92 -0
  604. package/node_modules/lossless-json/lib/esm/LosslessNumber.js.map +1 -0
  605. package/node_modules/lossless-json/lib/esm/config.js +9 -0
  606. package/node_modules/lossless-json/lib/esm/config.js.map +1 -0
  607. package/node_modules/lossless-json/lib/esm/index.js +9 -0
  608. package/node_modules/lossless-json/lib/esm/index.js.map +1 -0
  609. package/node_modules/lossless-json/lib/esm/numberParsers.js +9 -0
  610. package/node_modules/lossless-json/lib/esm/numberParsers.js.map +1 -0
  611. package/node_modules/lossless-json/lib/esm/package.json +3 -0
  612. package/node_modules/lossless-json/lib/esm/parse.js +346 -0
  613. package/node_modules/lossless-json/lib/esm/parse.js.map +1 -0
  614. package/node_modules/lossless-json/lib/esm/revive.js +57 -0
  615. package/node_modules/lossless-json/lib/esm/revive.js.map +1 -0
  616. package/node_modules/lossless-json/lib/esm/reviveDate.js +10 -0
  617. package/node_modules/lossless-json/lib/esm/reviveDate.js.map +1 -0
  618. package/node_modules/lossless-json/lib/esm/stringify.js +166 -0
  619. package/node_modules/lossless-json/lib/esm/stringify.js.map +1 -0
  620. package/node_modules/lossless-json/lib/esm/types.js +2 -0
  621. package/node_modules/lossless-json/lib/esm/types.js.map +1 -0
  622. package/node_modules/lossless-json/lib/esm/utils.js +236 -0
  623. package/node_modules/lossless-json/lib/esm/utils.js.map +1 -0
  624. package/node_modules/lossless-json/lib/types/LosslessNumber.d.ts +40 -0
  625. package/node_modules/lossless-json/lib/types/LosslessNumber.d.ts.map +1 -0
  626. package/node_modules/lossless-json/lib/types/config.d.ts +13 -0
  627. package/node_modules/lossless-json/lib/types/config.d.ts.map +1 -0
  628. package/node_modules/lossless-json/lib/types/index.d.ts +9 -0
  629. package/node_modules/lossless-json/lib/types/index.d.ts.map +1 -0
  630. package/node_modules/lossless-json/lib/types/numberParsers.d.ts +4 -0
  631. package/node_modules/lossless-json/lib/types/numberParsers.d.ts.map +1 -0
  632. package/node_modules/lossless-json/lib/types/parse.d.ts +33 -0
  633. package/node_modules/lossless-json/lib/types/parse.d.ts.map +1 -0
  634. package/node_modules/lossless-json/lib/types/revive.d.ts +13 -0
  635. package/node_modules/lossless-json/lib/types/revive.d.ts.map +1 -0
  636. package/node_modules/lossless-json/lib/types/reviveDate.d.ts +5 -0
  637. package/node_modules/lossless-json/lib/types/reviveDate.d.ts.map +1 -0
  638. package/node_modules/lossless-json/lib/types/stringify.d.ts +37 -0
  639. package/node_modules/lossless-json/lib/types/stringify.d.ts.map +1 -0
  640. package/node_modules/lossless-json/lib/types/types.d.ts +61 -0
  641. package/node_modules/lossless-json/lib/types/types.d.ts.map +1 -0
  642. package/node_modules/lossless-json/lib/types/utils.d.ts +79 -0
  643. package/node_modules/lossless-json/lib/types/utils.d.ts.map +1 -0
  644. package/node_modules/lossless-json/lib/umd/lossless-json.js +1 -0
  645. package/node_modules/lossless-json/lib/umd/lossless-json.js.map +1 -0
  646. package/node_modules/lossless-json/lib/umd/package.json +3 -0
  647. package/node_modules/lossless-json/package.json +89 -0
  648. package/package.json +57 -4
@@ -0,0 +1,241 @@
1
+ import { LosslessNumber, isLosslessNumber, pythonFloat } from '@fbincon/statusline-core/json';
2
+ import { readJson } from '@fbincon/statusline-core/json-read';
3
+ import { pythonJson } from '@fbincon/statusline-core/json-text';
4
+ import { nativeRecord, orderedDataRecord } from '@fbincon/statusline-core/ordered-record';
5
+ // Conservative lexical filters: matches inside strings only select the exact
6
+ // path unnecessarily. They never allow a lossy number or reordered key through.
7
+ const EXACT_NUMBER = /(?:^|[\s:,\[])(?:-?(?:[1-9]\d{15,}|(?:0|[1-9]\d*)[.eE])|-0)/u;
8
+ const ORDERED_KEY = /"(?:[0-9]|\\)/u;
9
+ function containerEnd(raw, start) {
10
+ let depth = 0, quoted = false;
11
+ for (let i = start; i < raw.length; i++) {
12
+ const code = raw.charCodeAt(i);
13
+ if (quoted && code === 92)
14
+ i++;
15
+ else if (code === 34)
16
+ quoted = !quoted;
17
+ else if (!quoted) {
18
+ if (code === 123 || code === 91)
19
+ depth++;
20
+ else if ((code === 125 || code === 93) && --depth === 0)
21
+ return i + 1;
22
+ }
23
+ }
24
+ return -1;
25
+ }
26
+ /** A single-pass data reader avoids number placeholders and a second tree walk.
27
+ * Ordinary objects stay native; only integer member names need an order proxy.
28
+ * Malformed/legacy input goes through the compatibility reader for exact errors.
29
+ */
30
+ export function readDataJson(raw) {
31
+ if (!EXACT_NUMBER.test(raw) && !ORDERED_KEY.test(raw)) {
32
+ try {
33
+ return JSON.parse(raw);
34
+ }
35
+ catch {
36
+ return readJson(raw);
37
+ }
38
+ }
39
+ let offset = 0;
40
+ const invalid = () => { throw new SyntaxError('Invalid data JSON'); };
41
+ const whitespace = () => { for (;;) {
42
+ const c = raw.charCodeAt(offset);
43
+ if (c !== 32 && c !== 9 && c !== 10 && c !== 13)
44
+ return;
45
+ offset++;
46
+ } };
47
+ const quoted = () => {
48
+ const start = offset++, end = raw.indexOf('"', offset);
49
+ if (end < 0)
50
+ return invalid();
51
+ const value = raw.slice(offset, end);
52
+ if (!value.includes('\\')) {
53
+ if (/[\x00-\x1f]/u.test(value))
54
+ return invalid();
55
+ offset = end + 1;
56
+ return value;
57
+ }
58
+ while (offset < raw.length) {
59
+ const code = raw.charCodeAt(offset++);
60
+ if (code === 34)
61
+ return JSON.parse(raw.slice(start, offset));
62
+ if (code === 92)
63
+ offset++;
64
+ }
65
+ return invalid();
66
+ };
67
+ const value = (largeDictionary = false) => {
68
+ whitespace();
69
+ const code = raw.charCodeAt(offset);
70
+ // A timestamp elsewhere in the cache must not force JS-level parsing of
71
+ // tens of thousands of ordinary counters. The same conservative guards
72
+ // and native grammar validation apply to this independently parsed span.
73
+ if (largeDictionary && raw.length - offset >= 4096 && (code === 123 || code === 91)) {
74
+ const end = containerEnd(raw, offset);
75
+ if (end > offset) {
76
+ const span = raw.slice(offset, end);
77
+ if (!EXACT_NUMBER.test(span) && !ORDERED_KEY.test(span)) {
78
+ const result = JSON.parse(span);
79
+ offset = end;
80
+ return result;
81
+ }
82
+ }
83
+ }
84
+ if (code === 34)
85
+ return quoted();
86
+ if (code === 123) {
87
+ offset++;
88
+ whitespace();
89
+ let result = {};
90
+ if (raw.charCodeAt(offset) === 125) {
91
+ offset++;
92
+ return result;
93
+ }
94
+ for (;;) {
95
+ if (raw.charCodeAt(offset) !== 34)
96
+ return invalid();
97
+ const key = quoted();
98
+ whitespace();
99
+ if (raw.charCodeAt(offset++) !== 58)
100
+ return invalid();
101
+ const item = value(key === 'ids');
102
+ // JS reorders array-index names; wrap BEFORE the first insertion.
103
+ const first = key.charCodeAt(0);
104
+ if (first >= 48 && first <= 57 && /^(?:0|[1-9][0-9]{0,9})$/u.test(key) && Number(key) < 4294967295)
105
+ result = orderedDataRecord(result);
106
+ if (key === '__proto__')
107
+ Object.defineProperty(result, key, { value: item, enumerable: true, configurable: true, writable: true });
108
+ else
109
+ result[key] = item;
110
+ whitespace();
111
+ const next = raw.charCodeAt(offset++);
112
+ if (next === 125)
113
+ return result;
114
+ if (next !== 44)
115
+ return invalid();
116
+ whitespace();
117
+ }
118
+ }
119
+ if (code === 91) {
120
+ offset++;
121
+ whitespace();
122
+ const result = [];
123
+ if (raw.charCodeAt(offset) === 93) {
124
+ offset++;
125
+ return result;
126
+ }
127
+ for (;;) {
128
+ result.push(value());
129
+ whitespace();
130
+ const next = raw.charCodeAt(offset++);
131
+ if (next === 93)
132
+ return result;
133
+ if (next !== 44)
134
+ return invalid();
135
+ }
136
+ }
137
+ if (code === 110 && raw.startsWith('null', offset)) {
138
+ offset += 4;
139
+ return null;
140
+ }
141
+ if (code === 116 && raw.startsWith('true', offset)) {
142
+ offset += 4;
143
+ return true;
144
+ }
145
+ if (code === 102 && raw.startsWith('false', offset)) {
146
+ offset += 5;
147
+ return false;
148
+ }
149
+ const start = offset;
150
+ let integer = 0;
151
+ if (code === 45)
152
+ offset++;
153
+ let digit = raw.charCodeAt(offset);
154
+ if (digit === 48)
155
+ offset++;
156
+ else {
157
+ if (!(digit >= 49 && digit <= 57))
158
+ return invalid();
159
+ do {
160
+ integer = integer * 10 + (digit - 48);
161
+ offset++;
162
+ digit = raw.charCodeAt(offset);
163
+ } while (digit >= 48 && digit <= 57);
164
+ }
165
+ let whole = true;
166
+ if (raw.charCodeAt(offset) === 46) {
167
+ whole = false;
168
+ offset++;
169
+ digit = raw.charCodeAt(offset);
170
+ if (!(digit >= 48 && digit <= 57))
171
+ return invalid();
172
+ do {
173
+ offset++;
174
+ digit = raw.charCodeAt(offset);
175
+ } while (digit >= 48 && digit <= 57);
176
+ }
177
+ if (raw.charCodeAt(offset) === 101 || raw.charCodeAt(offset) === 69) {
178
+ whole = false;
179
+ offset++;
180
+ if (raw.charCodeAt(offset) === 43 || raw.charCodeAt(offset) === 45)
181
+ offset++;
182
+ digit = raw.charCodeAt(offset);
183
+ if (!(digit >= 48 && digit <= 57))
184
+ return invalid();
185
+ do {
186
+ offset++;
187
+ digit = raw.charCodeAt(offset);
188
+ } while (digit >= 48 && digit <= 57);
189
+ }
190
+ if (whole && Number.isSafeInteger(integer))
191
+ return integer === 0 ? 0 : code === 45 ? -integer : integer;
192
+ const source = raw.slice(start, offset);
193
+ return whole ? BigInt(source) : new LosslessNumber(source);
194
+ };
195
+ try {
196
+ const result = value();
197
+ whitespace();
198
+ if (offset !== raw.length)
199
+ return invalid();
200
+ return result;
201
+ }
202
+ catch (error) {
203
+ if (error instanceof SyntaxError)
204
+ return readJson(raw);
205
+ throw error;
206
+ }
207
+ }
208
+ /** Python's default cache JSON layout, with native serialization for ordinary
209
+ * records. Ordered numeric keys and non-finite legacy values use the exact path.
210
+ */
211
+ export function dumpDataJson(value) {
212
+ try {
213
+ const raw = JSON.rawJSON;
214
+ const compact = JSON.stringify(value, (_key, item) => {
215
+ if (typeof item === 'bigint')
216
+ return item >= -9007199254740991n && item <= 9007199254740991n ? Number(item) : raw(String(item));
217
+ if (isLosslessNumber(item))
218
+ return raw(/^-?\d+$/u.test(item.value) ? String(BigInt(item.value)) : pythonFloat(Number(item.value)));
219
+ if (typeof item === 'number' && (!Number.isSafeInteger(item) || Object.is(item, -0)))
220
+ return raw(pythonFloat(item));
221
+ if (item && typeof item === 'object' && !Array.isArray(item)) {
222
+ const record = nativeRecord(item);
223
+ const prototype = record && Object.getPrototypeOf(record);
224
+ if (!record || prototype !== Object.prototype && prototype !== null)
225
+ throw new Error('Exact JSON path required');
226
+ return record;
227
+ }
228
+ if (item === undefined || typeof item === 'function' || typeof item === 'symbol')
229
+ throw new Error('Invalid JSON data');
230
+ return item;
231
+ });
232
+ if (compact === undefined)
233
+ throw new Error('Invalid JSON data');
234
+ return compact.replace(/"(?:\\[\s\S]|[^"\\])*"|[:,]/gu, token => token === ',' ? ', ' : token === ':' ? ': ' : token)
235
+ .replace(/[\u007f-\uffff]/g, character => '\\u' + character.charCodeAt(0).toString(16).padStart(4, '0'));
236
+ }
237
+ catch {
238
+ return pythonJson(value, { allowNan: true });
239
+ }
240
+ }
241
+ //# sourceMappingURL=json-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-data.js","sourceRoot":"","sources":["../../../src/runtime/json-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC1F,6EAA6E;AAC7E,gFAAgF;AAChF,MAAM,YAAY,GAAG,8DAA8D,CAAC;AACpF,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,SAAS,YAAY,CAAC,GAAW,EAAE,KAAa;IAC5C,IAAI,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC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CAAC,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;aAChH,OAAO,CAAC,kBAAkB,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IACjH,CAAC;IACD,MAAM,CAAC;QACH,OAAO,UAAU,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACjD,CAAC;AACL,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { LiveStore } from './store.js';
2
+ export declare function collectMetrics(store: LiveStore, session: unknown, prompt?: string | null, nowMs?: number): Record<string, import("@fbincon/statusline-core/runtime/live/requests").Point>;
@@ -0,0 +1,14 @@
1
+ import { resolveMetrics, unavailable } from '@fbincon/statusline-core/runtime/live/snapshot';
2
+ import { loadRuntime } from '../../config/backend-preferences.js';
3
+ export function collectMetrics(store, session, prompt = null, nowMs = store.context.nowMs()) {
4
+ if (typeof session !== 'string' || !session)
5
+ return unavailable('not_observed');
6
+ try {
7
+ const enabled = loadRuntime(store.context.configDir).live_metrics, state = enabled ? store.load(session) : null;
8
+ return resolveMetrics(state, state ? store.history(session) : null, prompt, nowMs, enabled);
9
+ }
10
+ catch {
11
+ return unavailable('source_unavailable');
12
+ }
13
+ }
14
+ //# sourceMappingURL=collect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collect.js","sourceRoot":"","sources":["../../../../src/runtime/live/collect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,UAAU,cAAc,CAAC,KAAgB,EAAE,OAAgB,EAAE,SAAwB,IAAI,EAAE,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE;IAC1H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,OAAO;QACvC,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC;IACvC,IAAI,CAAC;QACD,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,YAAY,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAChH,OAAO,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IACD,MAAM,CAAC;QACH,OAAO,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC7C,CAAC;AACL,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type Data } from '@fbincon/statusline-core/runtime/values';
2
+ import type { RuntimeContext } from '../context.js';
3
+ import { type RuntimeIO } from '../io.js';
4
+ import { LiveStore } from './store.js';
5
+ export declare class AgentDurations {
6
+ readonly context: RuntimeContext;
7
+ readonly io: RuntimeIO;
8
+ readonly live: LiveStore;
9
+ constructor(context: RuntimeContext, io?: RuntimeIO);
10
+ directory(): string;
11
+ path(session: string): string;
12
+ load(session: string): Record<string, Data>;
13
+ observe(data: unknown, nowMs?: unknown): void;
14
+ endedAt(session: string): Data;
15
+ }
@@ -0,0 +1,69 @@
1
+ import { join } from 'node:path';
2
+ import { sha256 } from '@fbincon/statusline-platform/hash';
3
+ import { pythonJson } from '@fbincon/statusline-core/json-text';
4
+ import { number, MAX_AGENTS, MAX_SESSIONS } from '@fbincon/statusline-core/runtime/live/model';
5
+ import { object, own, numeric, dictionary } from '@fbincon/statusline-core/runtime/values';
6
+ import { float } from '@fbincon/statusline-core/runtime/transcript';
7
+ import { readStored, runtimeIO } from '../io.js';
8
+ import { LiveStore } from './store.js';
9
+ export class AgentDurations {
10
+ context;
11
+ io;
12
+ live;
13
+ constructor(context, io = runtimeIO()) {
14
+ this.context = context;
15
+ this.io = io;
16
+ this.live = new LiveStore(context, io);
17
+ }
18
+ directory() { return join(this.context.runtimeRoot, 'agent-durations'); }
19
+ path(session) { return join(this.directory(), sha256(session) + '.json'); }
20
+ load(session) {
21
+ try {
22
+ const data = readStored(this.io, this.path(session), true);
23
+ if (object(data) && data.session_id === session && object(data.agents))
24
+ return data.agents;
25
+ }
26
+ catch { /* No trustworthy duration evidence. */ }
27
+ return dictionary();
28
+ }
29
+ observe(data, nowMs = float(this.context.nowMs())) {
30
+ if (!object(data) || !['SubagentStart', 'SubagentStop'].includes(data.hook_event_name))
31
+ return;
32
+ const session = data.session_id, agent = data.agent_id;
33
+ if (typeof session !== 'string' || typeof agent !== 'string' || !session || !agent)
34
+ return;
35
+ number(nowMs, 'agent observation time');
36
+ const target = this.path(session);
37
+ this.io.lock(target.slice(0, -5) + '.lock', () => {
38
+ const agents = this.load(session), record = own(agents, agent);
39
+ if (data.hook_event_name === 'SubagentStart') {
40
+ const owners = (this.live.tasks.load(session)?.turns ?? []).filter(row => row.agent_ids.includes(agent));
41
+ if (owners.length !== 1)
42
+ return;
43
+ if (record === undefined)
44
+ agents[agent] = { prompt_id: owners[0].prompt_id, started_at_ms: nowMs, ended_at_ms: null };
45
+ }
46
+ else if (record && record.ended_at_ms === null && numeric(nowMs) >= numeric(record.started_at_ms))
47
+ record.ended_at_ms = nowMs;
48
+ else
49
+ return;
50
+ while (Object.keys(agents).length > MAX_AGENTS)
51
+ delete agents[Object.keys(agents).reduce((best, key) => numeric(agents[key].started_at_ms) < numeric(agents[best].started_at_ms) ? key : best)];
52
+ this.io.write(target, Buffer.from(pythonJson({ session_id: session, agents }, { allowNan: true })));
53
+ });
54
+ const entries = this.io.entries(this.directory()).filter(entry => entry.name.endsWith('.json')).map(entry => ({ ...entry, stamp: this.io.stat(entry.path).mtimeNs })).sort((a, b) => a.stamp > b.stamp ? -1 : a.stamp < b.stamp ? 1 : 0);
55
+ for (const entry of entries.slice(MAX_SESSIONS))
56
+ this.io.lock(entry.path.slice(0, -5) + '.lock', () => this.io.remove(entry.path));
57
+ }
58
+ endedAt(session) {
59
+ const result = dictionary();
60
+ for (const agents of [this.live.load(session)?.agents ?? {}, this.load(session)])
61
+ for (const [key, row] of Object.entries(agents)) {
62
+ const value = object(row) ? numeric(row.ended_at_ms) : null;
63
+ if (value !== null && value >= 0)
64
+ result[key] = row.ended_at_ms;
65
+ }
66
+ return result;
67
+ }
68
+ }
69
+ //# sourceMappingURL=durations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"durations.js","sourceRoot":"","sources":["../../../../src/runtime/live/durations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAa,MAAM,yCAAyC,CAAC;AACtG,OAAO,EAAE,KAAK,EAAE,MAAM,6CAA6C,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAkB,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,MAAM,OAAO,cAAc;IAEK;IAAyC;IAD5D,IAAI,CAAY;IACzB,YAA4B,OAAuB,EAAkB,KAAgB,SAAS,EAAE;QAApE,YAAO,GAAP,OAAO,CAAgB;QAAkB,OAAE,GAAF,EAAE,CAAyB;QAAI,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,CAAC,OAAO,EAAE,E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AC1F,CAAC;IACD,OAAO,CAAC,OAAe;QACnB,MAAM,MAAM,GAAS,UAAU,EAAE,CAAC;QAClC,KAAK,MAAM,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC5E,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC9C,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC5D,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,IAAI,CAAC;oBAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;YACtC,CAAC;QACL,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -0,0 +1,16 @@
1
+ import { type Data } from '@fbincon/statusline-core/runtime/values';
2
+ import type { RuntimeContext } from '../context.js';
3
+ import { type RuntimeIO } from '../io.js';
4
+ import { LiveStore } from './store.js';
5
+ export declare class RuntimeProtocol {
6
+ readonly context: RuntimeContext;
7
+ readonly store: LiveStore;
8
+ constructor(context: RuntimeContext, io?: RuntimeIO);
9
+ activePoint(session: string | null, prompt?: string | null): Data;
10
+ dispatch(request: unknown): Data;
11
+ handle(input: string | Uint8Array | (() => string | Uint8Array)): Promise<{
12
+ response: Data;
13
+ status: number;
14
+ stdout: string;
15
+ }>;
16
+ }
@@ -0,0 +1,90 @@
1
+ import { VERSION } from '@fbincon/statusline-core/release';
2
+ import { ConfigError } from '@fbincon/statusline-core/config/validation';
3
+ import { readJson } from '@fbincon/statusline-core/json-read';
4
+ import { pythonJson } from '@fbincon/statusline-core/json-text';
5
+ import { int, object, truth } from '@fbincon/statusline-core/runtime/values';
6
+ import { exact, text, ObservationError, PROTOCOL_VERSION, MAX_BYTES, validateBatch } from '@fbincon/statusline-core/runtime/live/model';
7
+ import { fresh } from '@fbincon/statusline-core/runtime/live/state';
8
+ import { resolveMetrics } from '@fbincon/statusline-core/runtime/live/snapshot';
9
+ import { activePoint } from '@fbincon/statusline-core/runtime/tasks/view';
10
+ import { decodeUtf8Sig } from '@fbincon/statusline-platform/utf8';
11
+ import { loadRuntime } from '../../config/backend-preferences.js';
12
+ import { runtimeIO } from '../io.js';
13
+ import { LiveStore } from './store.js';
14
+ export class RuntimeProtocol {
15
+ context;
16
+ store;
17
+ constructor(context, io = runtimeIO()) {
18
+ this.context = context;
19
+ this.store = new LiveStore(context, io);
20
+ }
21
+ activePoint(session, prompt = null) {
22
+ if (!session)
23
+ return activePoint(null, true, false, this.context.sample);
24
+ let enabled;
25
+ try {
26
+ enabled = loadRuntime(this.context.configDir).native_timing;
27
+ }
28
+ catch {
29
+ return { ...activePoint(null, true, false, this.context.sample), reason: 'source_unavailable' };
30
+ }
31
+ return activePoint(this.store.tasks.state(session, prompt), enabled, fresh(this.store.load(session), this.context.nowMs()), this.context.sample);
32
+ }
33
+ dispatch(request) {
34
+ exact(request, ['protocol_version', 'operation', 'payload'], 'request');
35
+ const version = int(request.protocol_version);
36
+ if (version !== 1n && version !== BigInt(PROTOCOL_VERSION))
37
+ throw new ObservationError('unsupported runtime protocol; reinstall matching Mod/backend');
38
+ const modes = loadRuntime(this.context.configDir), enabled = modes.native_timing || modes.live_metrics, payload = request.payload;
39
+ if (request.operation === 'observe') {
40
+ exact(payload, ['observations'], 'payload');
41
+ const rows = validateBatch(payload.observations);
42
+ const counts = enabled ? this.store.observe(rows, { timing: modes.native_timing, completeTiming: version === BigInt(PROTOCOL_VERSION), advanced: modes.live_metrics }) : { accepted: 0, ignored: rows.length };
43
+ return { backend_version: VERSION, enabled, native_timing: modes.native_timing, live_metrics: modes.live_metrics, ...counts };
44
+ }
45
+ if (request.operation === 'read') {
46
+ exact(payload, ['session_id', 'prompt_id'], 'payload');
47
+ const session = text(payload.session_id, 'session_id'), prompt = text(payload.prompt_id, 'prompt_id', true);
48
+ const state = enabled ? this.store.load(session) : null, now = this.context.nowMs(), live = fresh(state, now);
49
+ const reason = !enabled ? 'runtime_disabled' : state === null ? 'not_observed' : truth(state.invalidated) ? state.invalidated : live ? null : 'stale';
50
+ const metrics = resolveMetrics(state, state ? this.store.history(session) : null, prompt, now, modes.live_metrics);
51
+ metrics['task-active-timer'] = this.activePoint(session, prompt);
52
+ return { native_timing: modes.native_timing, live_metrics: modes.live_metrics, backend_version: VERSION, session_id: session,
53
+ prompt_id: prompt || state?.current_prompt_id || null, enabled, fresh: live, reason, observed_at_ms: state?.heartbeat_at_ms ?? null, state, metrics };
54
+ }
55
+ throw new ObservationError('unsupported runtime operation');
56
+ }
57
+ async handle(input) {
58
+ const response = { protocol_version: PROTOCOL_VERSION };
59
+ let status = 0;
60
+ try {
61
+ const value = typeof input === 'function' ? input() : input;
62
+ const raw = typeof value === 'string' ? Buffer.from(value) : value;
63
+ if (raw.length > MAX_BYTES)
64
+ throw new ObservationError('runtime request is larger than 1 MiB');
65
+ const request = readJson(decodeUtf8Sig(raw), {
66
+ duplicate(key) { throw new ObservationError('duplicate JSON field: ' + key); },
67
+ constant(value) { throw new ObservationError('non-finite JSON constant: ' + value); }
68
+ });
69
+ if (object(request) && int(request.protocol_version) !== null)
70
+ response.protocol_version = request.protocol_version;
71
+ response.result = this.dispatch(request);
72
+ response.protocol_version = request.protocol_version;
73
+ }
74
+ catch (error) {
75
+ let message = error instanceof Error ? error.message : String(error), code = 'invalid_observation';
76
+ if (error instanceof ConfigError) {
77
+ const [{ renderMessage }, { localizedError }] = await Promise.all([import('@fbincon/statusline-core/i18n/messages'), import('../../errors.js')]);
78
+ message = renderMessage(localizedError(error));
79
+ }
80
+ else if (error instanceof Error && typeof error.code === 'string') {
81
+ code = 'source_unavailable';
82
+ message = 'Runtime state cannot be read or published';
83
+ }
84
+ response.error = { code, message };
85
+ status = 2;
86
+ }
87
+ return { response, status, stdout: pythonJson(response, { ensureAscii: false }) + '\n' };
88
+ }
89
+ }
90
+ //# sourceMappingURL=protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../../src/runtime/live/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAa,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACxI,OAAO,EAAE,KAAK,EAAE,MAAM,6CAA6C,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,EAAE,SAAS,EAAkB,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,MAAM,OAAO,eAAe;IAEI;IADnB,KAAK,CAAY;IAC1B,YAA4B,OAAuB,EAAE,KAAgB,SAAS,EAAE;QAApD,YAAO,GAAP,OAAO,CAAgB;QAAiC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAAC,CAAC;IAC9H,WAAW,CAAC,OAAsB,EAAE,SAAwB,IAAI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CAAC;gBACjJ,OAAO,GAAG,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;YACnD,CAAC;iBACI,IAAI,KAAK,YAAY,KAAK,IAAI,OAAQ,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC3F,IAAI,GAAG,oBAAoB,CAAC;gBAC5B,OAAO,GAAG,2CAA2C,CAAC;YAC1D,CAAC;YACD,QAAQ,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YACnC,MAAM,GAAG,CAAC,CAAC;QACf,CAAC;QACD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC;IAC7F,CAAC;CACJ"}
@@ -0,0 +1,25 @@
1
+ import { type LiveState } from '@fbincon/statusline-core/runtime/live/state';
2
+ import { type Observation } from '@fbincon/statusline-core/runtime/live/model';
3
+ import { type TaskStore as History } from '@fbincon/statusline-core/runtime/tasks/model';
4
+ import type { RuntimeContext } from '../context.js';
5
+ import { type RuntimeIO } from '../io.js';
6
+ import { TaskStore } from '../tasks/store.js';
7
+ export declare class LiveStore {
8
+ readonly context: RuntimeContext;
9
+ readonly io: RuntimeIO;
10
+ readonly tasks: TaskStore;
11
+ constructor(context: RuntimeContext, io?: RuntimeIO);
12
+ directory(): string;
13
+ path(session: string): string;
14
+ load(session: string): LiveState | null;
15
+ history(session: string): History | null;
16
+ observe(observations: readonly Observation[], { timing, completeTiming, advanced }?: {
17
+ timing?: boolean | undefined;
18
+ completeTiming?: boolean | undefined;
19
+ advanced?: boolean | undefined;
20
+ }): {
21
+ accepted: number;
22
+ ignored: number;
23
+ };
24
+ prune(): void;
25
+ }
@@ -0,0 +1,80 @@
1
+ import { join } from 'node:path';
2
+ import { sha256 } from '@fbincon/statusline-platform/hash';
3
+ import { pythonJson } from '@fbincon/statusline-core/json-text';
4
+ import { object } from '@fbincon/statusline-core/runtime/values';
5
+ import { empty, validateState } from '@fbincon/statusline-core/runtime/live/state';
6
+ import { applyObservation } from '@fbincon/statusline-core/runtime/live/reducer';
7
+ import { reconcileBindings } from '@fbincon/statusline-core/runtime/live/bindings';
8
+ import { MAX_SESSIONS, TIMING_KINDS } from '@fbincon/statusline-core/runtime/live/model';
9
+ import { storeFromState } from '@fbincon/statusline-core/runtime/tasks/model';
10
+ import { observeNative } from '@fbincon/statusline-core/runtime/tasks/native';
11
+ import { runtimeIO, readStored } from '../io.js';
12
+ import { TaskStore } from '../tasks/store.js';
13
+ export class LiveStore {
14
+ context;
15
+ io;
16
+ tasks;
17
+ constructor(context, io = runtimeIO()) {
18
+ this.context = context;
19
+ this.io = io;
20
+ this.tasks = new TaskStore(context, io);
21
+ }
22
+ directory() { return join(this.context.runtimeRoot, 'live'); }
23
+ path(session) { return join(this.directory(), sha256(session) + '.json'); }
24
+ load(session) {
25
+ try {
26
+ const path = this.path(session);
27
+ return this.io.isLink(path) ? null : validateState(readStored(this.io, path, true), session);
28
+ }
29
+ catch {
30
+ return null;
31
+ }
32
+ }
33
+ history(session) {
34
+ try {
35
+ const raw = readStored(this.io, this.tasks.path(session), true);
36
+ return object(raw) && raw.session_id === session ? storeFromState(raw, session) : null;
37
+ }
38
+ catch {
39
+ return null;
40
+ }
41
+ }
42
+ observe(observations, { timing = false, completeTiming = true, advanced = true } = {}) {
43
+ let accepted = 0, ignored = 0;
44
+ const grouped = new Map();
45
+ for (const item of observations) {
46
+ if (!grouped.has(item.session_id))
47
+ grouped.set(item.session_id, []);
48
+ grouped.get(item.session_id).push(item);
49
+ }
50
+ for (const [session, rows] of grouped) {
51
+ const target = this.path(session);
52
+ this.io.lock(target.slice(0, -5) + '.lock', () => {
53
+ const state = this.load(session) ?? empty(session);
54
+ for (const item of rows) {
55
+ if (applyObservation(state, item, !advanced && !TIMING_KINDS.has(item.kind)))
56
+ accepted++;
57
+ else
58
+ ignored++;
59
+ }
60
+ reconcileBindings(state, this.history(session));
61
+ // Always acquire live before task. Task writers never acquire a live lock.
62
+ if (timing)
63
+ this.tasks.mutate(session, history => observeNative(history, state, this.context.sample, completeTiming));
64
+ this.io.write(target, Buffer.from(pythonJson(state, { ensureAscii: false, compact: true })));
65
+ });
66
+ }
67
+ this.prune();
68
+ return { accepted, ignored };
69
+ }
70
+ prune() {
71
+ try {
72
+ const entries = this.io.entries(this.directory()).filter(entry => entry.file && !entry.link && entry.name.endsWith('.json'));
73
+ const ranked = entries.map(entry => ({ ...entry, stamp: this.io.stat(entry.path).mtimeNs })).sort((a, b) => a.stamp > b.stamp ? -1 : a.stamp < b.stamp ? 1 : 0);
74
+ for (const entry of ranked.slice(MAX_SESSIONS))
75
+ this.io.lock(entry.path.slice(0, -5) + '.lock', () => this.io.remove(entry.path));
76
+ }
77
+ catch { /* Cleanup cannot invalidate an already published observation. */ }
78
+ }
79
+ }
80
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/runtime/live/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAkB,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,6CAA6C,CAAC;AAC3G,OAAO,EAAE,cAAc,EAA6B,MAAM,8CAA8C,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAE9E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AG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAChK,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC;gBAC1C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1F,CAAC;QACD,MAAM,CAAC,CAAC,iEAAiE,CAAC,CAAC;IAC/E,CAAC;CACJ"}
@@ -0,0 +1,4 @@
1
+ import { type Data } from '@fbincon/statusline-core/runtime/values';
2
+ import type { RuntimeContext } from './context.js';
3
+ import { type RuntimeIO } from './io.js';
4
+ export declare function registryStatus(context: RuntimeContext, sessionId: unknown, io?: RuntimeIO): Data | null;