@vibefield/puppeteer-views 0.0.0-stage → 0.2.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 (522) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bar/InstrumentBar.d.ts +81 -0
  3. package/dist/bar/InstrumentBar.d.ts.map +1 -0
  4. package/dist/bar/InstrumentBar.js +86 -0
  5. package/dist/bar/InstrumentBar.js.map +1 -0
  6. package/dist/bar/ProfileTabs.d.ts +24 -0
  7. package/dist/bar/ProfileTabs.d.ts.map +1 -0
  8. package/dist/bar/ProfileTabs.js +141 -0
  9. package/dist/bar/ProfileTabs.js.map +1 -0
  10. package/dist/chrome/ChromeBoundary.d.ts +60 -0
  11. package/dist/chrome/ChromeBoundary.d.ts.map +1 -0
  12. package/dist/chrome/ChromeBoundary.js +70 -0
  13. package/dist/chrome/ChromeBoundary.js.map +1 -0
  14. package/dist/chrome/stage.d.ts +8 -0
  15. package/dist/chrome/stage.d.ts.map +1 -0
  16. package/dist/chrome/stage.js +8 -0
  17. package/dist/chrome/stage.js.map +1 -0
  18. package/dist/colour/pane-colours.d.ts +21 -0
  19. package/dist/colour/pane-colours.d.ts.map +1 -0
  20. package/dist/colour/pane-colours.js +25 -0
  21. package/dist/colour/pane-colours.js.map +1 -0
  22. package/dist/colour/project-tint.d.ts +23 -0
  23. package/dist/colour/project-tint.d.ts.map +1 -0
  24. package/dist/colour/project-tint.js +100 -0
  25. package/dist/colour/project-tint.js.map +1 -0
  26. package/dist/deck/DeckFrames.d.ts +71 -0
  27. package/dist/deck/DeckFrames.d.ts.map +1 -0
  28. package/dist/deck/DeckFrames.js +50 -0
  29. package/dist/deck/DeckFrames.js.map +1 -0
  30. package/dist/deck/PaneFrame.d.ts +80 -0
  31. package/dist/deck/PaneFrame.d.ts.map +1 -0
  32. package/dist/deck/PaneFrame.js +118 -0
  33. package/dist/deck/PaneFrame.js.map +1 -0
  34. package/dist/deck/completed-agent-panes.d.ts +24 -0
  35. package/dist/deck/completed-agent-panes.d.ts.map +1 -0
  36. package/dist/deck/completed-agent-panes.js +72 -0
  37. package/dist/deck/completed-agent-panes.js.map +1 -0
  38. package/dist/deck/deck-zoom.d.ts +40 -0
  39. package/dist/deck/deck-zoom.d.ts.map +1 -0
  40. package/dist/deck/deck-zoom.js +200 -0
  41. package/dist/deck/deck-zoom.js.map +1 -0
  42. package/dist/deck/index.d.ts +8 -0
  43. package/dist/deck/index.d.ts.map +1 -0
  44. package/dist/deck/index.js +13 -0
  45. package/dist/deck/index.js.map +1 -0
  46. package/dist/deck/pane-elements.d.ts +24 -0
  47. package/dist/deck/pane-elements.d.ts.map +1 -0
  48. package/dist/deck/pane-elements.js +73 -0
  49. package/dist/deck/pane-elements.js.map +1 -0
  50. package/dist/deck/pane-frame.d.ts +88 -0
  51. package/dist/deck/pane-frame.d.ts.map +1 -0
  52. package/dist/deck/pane-frame.js +51 -0
  53. package/dist/deck/pane-frame.js.map +1 -0
  54. package/dist/deck/unused-pane-sessions.d.ts +24 -0
  55. package/dist/deck/unused-pane-sessions.d.ts.map +1 -0
  56. package/dist/deck/unused-pane-sessions.js +75 -0
  57. package/dist/deck/unused-pane-sessions.js.map +1 -0
  58. package/dist/deck/use-deck-zoom.d.ts +10 -0
  59. package/dist/deck/use-deck-zoom.d.ts.map +1 -0
  60. package/dist/deck/use-deck-zoom.js +31 -0
  61. package/dist/deck/use-deck-zoom.js.map +1 -0
  62. package/dist/find/FindSheet.d.ts +23 -0
  63. package/dist/find/FindSheet.d.ts.map +1 -0
  64. package/dist/find/FindSheet.js +197 -0
  65. package/dist/find/FindSheet.js.map +1 -0
  66. package/dist/find/find-agent.d.ts +35 -0
  67. package/dist/find/find-agent.d.ts.map +1 -0
  68. package/dist/find/find-agent.js +2 -0
  69. package/dist/find/find-agent.js.map +1 -0
  70. package/dist/find/find-model.d.ts +93 -0
  71. package/dist/find/find-model.d.ts.map +1 -0
  72. package/dist/find/find-model.js +372 -0
  73. package/dist/find/find-model.js.map +1 -0
  74. package/dist/find/history-port.d.ts +78 -0
  75. package/dist/find/history-port.d.ts.map +1 -0
  76. package/dist/find/history-port.js +9 -0
  77. package/dist/find/history-port.js.map +1 -0
  78. package/dist/icons/ServiceMark.d.ts +32 -0
  79. package/dist/icons/ServiceMark.d.ts.map +1 -0
  80. package/dist/icons/ServiceMark.js +57 -0
  81. package/dist/icons/ServiceMark.js.map +1 -0
  82. package/dist/icons/profile-glyph-suggest.d.ts +8 -0
  83. package/dist/icons/profile-glyph-suggest.d.ts.map +1 -0
  84. package/dist/icons/profile-glyph-suggest.js +42 -0
  85. package/dist/icons/profile-glyph-suggest.js.map +1 -0
  86. package/dist/icons/service-marks.d.ts +5 -0
  87. package/dist/icons/service-marks.d.ts.map +1 -0
  88. package/dist/icons/service-marks.js +81 -0
  89. package/dist/icons/service-marks.js.map +1 -0
  90. package/dist/index.d.ts +60 -0
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +86 -0
  93. package/dist/index.js.map +1 -0
  94. package/dist/lab/lab-clock.d.ts +11 -0
  95. package/dist/lab/lab-clock.d.ts.map +1 -0
  96. package/dist/lab/lab-clock.js +48 -0
  97. package/dist/lab/lab-clock.js.map +1 -0
  98. package/dist/lab/lab-model.d.ts +10 -0
  99. package/dist/lab/lab-model.d.ts.map +1 -0
  100. package/dist/lab/lab-model.js +146 -0
  101. package/dist/lab/lab-model.js.map +1 -0
  102. package/dist/lab/lab-stage.d.ts +72 -0
  103. package/dist/lab/lab-stage.d.ts.map +1 -0
  104. package/dist/lab/lab-stage.js +201 -0
  105. package/dist/lab/lab-stage.js.map +1 -0
  106. package/dist/lab/lab-world.d.ts +33 -0
  107. package/dist/lab/lab-world.d.ts.map +1 -0
  108. package/dist/lab/lab-world.js +394 -0
  109. package/dist/lab/lab-world.js.map +1 -0
  110. package/dist/lab/view-lab.css +98 -0
  111. package/dist/launcher/DeckLaunchers.d.ts +92 -0
  112. package/dist/launcher/DeckLaunchers.d.ts.map +1 -0
  113. package/dist/launcher/DeckLaunchers.js +377 -0
  114. package/dist/launcher/DeckLaunchers.js.map +1 -0
  115. package/dist/launcher/PaneLaunch.d.ts +50 -0
  116. package/dist/launcher/PaneLaunch.d.ts.map +1 -0
  117. package/dist/launcher/PaneLaunch.js +318 -0
  118. package/dist/launcher/PaneLaunch.js.map +1 -0
  119. package/dist/launcher/PaneLaunchChrome.d.ts +49 -0
  120. package/dist/launcher/PaneLaunchChrome.d.ts.map +1 -0
  121. package/dist/launcher/PaneLaunchChrome.js +32 -0
  122. package/dist/launcher/PaneLaunchChrome.js.map +1 -0
  123. package/dist/launcher/PaneLauncher.d.ts +97 -0
  124. package/dist/launcher/PaneLauncher.d.ts.map +1 -0
  125. package/dist/launcher/PaneLauncher.js +349 -0
  126. package/dist/launcher/PaneLauncher.js.map +1 -0
  127. package/dist/launcher/PaneLauncherChrome.d.ts +97 -0
  128. package/dist/launcher/PaneLauncherChrome.d.ts.map +1 -0
  129. package/dist/launcher/PaneLauncherChrome.js +131 -0
  130. package/dist/launcher/PaneLauncherChrome.js.map +1 -0
  131. package/dist/launcher/index.d.ts +9 -0
  132. package/dist/launcher/index.d.ts.map +1 -0
  133. package/dist/launcher/index.js +16 -0
  134. package/dist/launcher/index.js.map +1 -0
  135. package/dist/launcher/launch-model.d.ts +162 -0
  136. package/dist/launcher/launch-model.d.ts.map +1 -0
  137. package/dist/launcher/launch-model.js +169 -0
  138. package/dist/launcher/launch-model.js.map +1 -0
  139. package/dist/launcher/launcher-model.d.ts +268 -0
  140. package/dist/launcher/launcher-model.d.ts.map +1 -0
  141. package/dist/launcher/launcher-model.js +443 -0
  142. package/dist/launcher/launcher-model.js.map +1 -0
  143. package/dist/launcher/launcher-port.d.ts +115 -0
  144. package/dist/launcher/launcher-port.d.ts.map +1 -0
  145. package/dist/launcher/launcher-port.js +12 -0
  146. package/dist/launcher/launcher-port.js.map +1 -0
  147. package/dist/monitor/agent-status.d.ts +13 -0
  148. package/dist/monitor/agent-status.d.ts.map +1 -0
  149. package/dist/monitor/agent-status.js +5 -0
  150. package/dist/monitor/agent-status.js.map +1 -0
  151. package/dist/monitor/agents.d.ts +6 -0
  152. package/dist/monitor/agents.d.ts.map +1 -0
  153. package/dist/monitor/agents.js +21 -0
  154. package/dist/monitor/agents.js.map +1 -0
  155. package/dist/monitor/cost-format.d.ts +3 -0
  156. package/dist/monitor/cost-format.d.ts.map +1 -0
  157. package/dist/monitor/cost-format.js +12 -0
  158. package/dist/monitor/cost-format.js.map +1 -0
  159. package/dist/monitor/folder-name.d.ts +3 -0
  160. package/dist/monitor/folder-name.d.ts.map +1 -0
  161. package/dist/monitor/folder-name.js +6 -0
  162. package/dist/monitor/folder-name.js.map +1 -0
  163. package/dist/monitor/palette.d.ts +94 -0
  164. package/dist/monitor/palette.d.ts.map +1 -0
  165. package/dist/monitor/palette.js +157 -0
  166. package/dist/monitor/palette.js.map +1 -0
  167. package/dist/monitor/parameters.d.ts +33 -0
  168. package/dist/monitor/parameters.d.ts.map +1 -0
  169. package/dist/monitor/parameters.js +53 -0
  170. package/dist/monitor/parameters.js.map +1 -0
  171. package/dist/monitor/recede.d.ts +14 -0
  172. package/dist/monitor/recede.d.ts.map +1 -0
  173. package/dist/monitor/recede.js +35 -0
  174. package/dist/monitor/recede.js.map +1 -0
  175. package/dist/monitor/registry.d.ts +14 -0
  176. package/dist/monitor/registry.d.ts.map +1 -0
  177. package/dist/monitor/registry.js +36 -0
  178. package/dist/monitor/registry.js.map +1 -0
  179. package/dist/monitor/remote-write.d.ts +16 -0
  180. package/dist/monitor/remote-write.d.ts.map +1 -0
  181. package/dist/monitor/remote-write.js +21 -0
  182. package/dist/monitor/remote-write.js.map +1 -0
  183. package/dist/monitor/types.d.ts +205 -0
  184. package/dist/monitor/types.d.ts.map +1 -0
  185. package/dist/monitor/types.js +2 -0
  186. package/dist/monitor/types.js.map +1 -0
  187. package/dist/styles/bar.css +396 -0
  188. package/dist/styles/deck-frame.css +439 -0
  189. package/dist/styles/deck-zoom.css +70 -0
  190. package/dist/styles/find-sheet.css +270 -0
  191. package/dist/styles/pane-launcher.css +955 -0
  192. package/dist/styles/usage.css +368 -0
  193. package/dist/styles/views.css +12 -0
  194. package/dist/usage/UsageColumn.d.ts +8 -0
  195. package/dist/usage/UsageColumn.d.ts.map +1 -0
  196. package/dist/usage/UsageColumn.js +133 -0
  197. package/dist/usage/UsageColumn.js.map +1 -0
  198. package/dist/usage/account-usage-port.d.ts +12 -0
  199. package/dist/usage/account-usage-port.d.ts.map +1 -0
  200. package/dist/usage/account-usage-port.js +2 -0
  201. package/dist/usage/account-usage-port.js.map +1 -0
  202. package/dist/usage/account-usage.d.ts +86 -0
  203. package/dist/usage/account-usage.d.ts.map +1 -0
  204. package/dist/usage/account-usage.js +262 -0
  205. package/dist/usage/account-usage.js.map +1 -0
  206. package/dist/views/list/AgentList.d.ts +4 -0
  207. package/dist/views/list/AgentList.d.ts.map +1 -0
  208. package/dist/views/list/AgentList.js +101 -0
  209. package/dist/views/list/AgentList.js.map +1 -0
  210. package/dist/views/list/ListSpawnMenu.d.ts +20 -0
  211. package/dist/views/list/ListSpawnMenu.d.ts.map +1 -0
  212. package/dist/views/list/ListSpawnMenu.js +143 -0
  213. package/dist/views/list/ListSpawnMenu.js.map +1 -0
  214. package/dist/views/list/index.d.ts +8 -0
  215. package/dist/views/list/index.d.ts.map +1 -0
  216. package/dist/views/list/index.js +43 -0
  217. package/dist/views/list/index.js.map +1 -0
  218. package/dist/views/list/lab/main.d.ts +2 -0
  219. package/dist/views/list/lab/main.d.ts.map +1 -0
  220. package/dist/views/list/lab/main.js +25 -0
  221. package/dist/views/list/lab/main.js.map +1 -0
  222. package/dist/views/list/list-parameters.d.ts +9 -0
  223. package/dist/views/list/list-parameters.d.ts.map +1 -0
  224. package/dist/views/list/list-parameters.js +27 -0
  225. package/dist/views/list/list-parameters.js.map +1 -0
  226. package/dist/views/list/list.css +387 -0
  227. package/dist/views/rain/RainView.d.ts +4 -0
  228. package/dist/views/rain/RainView.d.ts.map +1 -0
  229. package/dist/views/rain/RainView.js +282 -0
  230. package/dist/views/rain/RainView.js.map +1 -0
  231. package/dist/views/rain/index.d.ts +8 -0
  232. package/dist/views/rain/index.d.ts.map +1 -0
  233. package/dist/views/rain/index.js +53 -0
  234. package/dist/views/rain/index.js.map +1 -0
  235. package/dist/views/rain/lab/main.d.ts +2 -0
  236. package/dist/views/rain/lab/main.d.ts.map +1 -0
  237. package/dist/views/rain/lab/main.js +26 -0
  238. package/dist/views/rain/lab/main.js.map +1 -0
  239. package/dist/views/rain/rain-parameters.d.ts +15 -0
  240. package/dist/views/rain/rain-parameters.d.ts.map +1 -0
  241. package/dist/views/rain/rain-parameters.js +52 -0
  242. package/dist/views/rain/rain-parameters.js.map +1 -0
  243. package/dist/views/rain/rain-streams.d.ts +44 -0
  244. package/dist/views/rain/rain-streams.d.ts.map +1 -0
  245. package/dist/views/rain/rain-streams.js +101 -0
  246. package/dist/views/rain/rain-streams.js.map +1 -0
  247. package/dist/views/rain/rain.css +200 -0
  248. package/dist/views/spend/SpendView.d.ts +30 -0
  249. package/dist/views/spend/SpendView.d.ts.map +1 -0
  250. package/dist/views/spend/SpendView.js +645 -0
  251. package/dist/views/spend/SpendView.js.map +1 -0
  252. package/dist/views/spend/index.d.ts +8 -0
  253. package/dist/views/spend/index.d.ts.map +1 -0
  254. package/dist/views/spend/index.js +54 -0
  255. package/dist/views/spend/index.js.map +1 -0
  256. package/dist/views/spend/lab/main.d.ts +2 -0
  257. package/dist/views/spend/lab/main.d.ts.map +1 -0
  258. package/dist/views/spend/lab/main.js +237 -0
  259. package/dist/views/spend/lab/main.js.map +1 -0
  260. package/dist/views/spend/lab/spend-fixtures.d.ts +72 -0
  261. package/dist/views/spend/lab/spend-fixtures.d.ts.map +1 -0
  262. package/dist/views/spend/lab/spend-fixtures.js +412 -0
  263. package/dist/views/spend/lab/spend-fixtures.js.map +1 -0
  264. package/dist/views/spend/spend-ink.d.ts +18 -0
  265. package/dist/views/spend/spend-ink.d.ts.map +1 -0
  266. package/dist/views/spend/spend-ink.js +50 -0
  267. package/dist/views/spend/spend-ink.js.map +1 -0
  268. package/dist/views/spend/spend-list.d.ts +48 -0
  269. package/dist/views/spend/spend-list.d.ts.map +1 -0
  270. package/dist/views/spend/spend-list.js +93 -0
  271. package/dist/views/spend/spend-list.js.map +1 -0
  272. package/dist/views/spend/spend-paint.d.ts +88 -0
  273. package/dist/views/spend/spend-paint.d.ts.map +1 -0
  274. package/dist/views/spend/spend-paint.js +225 -0
  275. package/dist/views/spend/spend-paint.js.map +1 -0
  276. package/dist/views/spend/spend-parameters.d.ts +11 -0
  277. package/dist/views/spend/spend-parameters.d.ts.map +1 -0
  278. package/dist/views/spend/spend-parameters.js +27 -0
  279. package/dist/views/spend/spend-parameters.js.map +1 -0
  280. package/dist/views/spend/spend-scale.d.ts +43 -0
  281. package/dist/views/spend/spend-scale.d.ts.map +1 -0
  282. package/dist/views/spend/spend-scale.js +71 -0
  283. package/dist/views/spend/spend-scale.js.map +1 -0
  284. package/dist/views/spend/spend-series.d.ts +91 -0
  285. package/dist/views/spend/spend-series.d.ts.map +1 -0
  286. package/dist/views/spend/spend-series.js +212 -0
  287. package/dist/views/spend/spend-series.js.map +1 -0
  288. package/dist/views/spend/spend-words.d.ts +82 -0
  289. package/dist/views/spend/spend-words.d.ts.map +1 -0
  290. package/dist/views/spend/spend-words.js +164 -0
  291. package/dist/views/spend/spend-words.js.map +1 -0
  292. package/dist/views/spend/spend.css +585 -0
  293. package/dist/views/swarm/AgentSwarm.d.ts +4 -0
  294. package/dist/views/swarm/AgentSwarm.d.ts.map +1 -0
  295. package/dist/views/swarm/AgentSwarm.js +969 -0
  296. package/dist/views/swarm/AgentSwarm.js.map +1 -0
  297. package/dist/views/swarm/bloom/SpawnBloom.d.ts +26 -0
  298. package/dist/views/swarm/bloom/SpawnBloom.d.ts.map +1 -0
  299. package/dist/views/swarm/bloom/SpawnBloom.js +332 -0
  300. package/dist/views/swarm/bloom/SpawnBloom.js.map +1 -0
  301. package/dist/views/swarm/bloom/birth.d.ts +70 -0
  302. package/dist/views/swarm/bloom/birth.d.ts.map +1 -0
  303. package/dist/views/swarm/bloom/birth.js +89 -0
  304. package/dist/views/swarm/bloom/birth.js.map +1 -0
  305. package/dist/views/swarm/bloom/canvas-measure.d.ts +11 -0
  306. package/dist/views/swarm/bloom/canvas-measure.d.ts.map +1 -0
  307. package/dist/views/swarm/bloom/canvas-measure.js +37 -0
  308. package/dist/views/swarm/bloom/canvas-measure.js.map +1 -0
  309. package/dist/views/swarm/bloom/constants.d.ts +93 -0
  310. package/dist/views/swarm/bloom/constants.d.ts.map +1 -0
  311. package/dist/views/swarm/bloom/constants.js +94 -0
  312. package/dist/views/swarm/bloom/constants.js.map +1 -0
  313. package/dist/views/swarm/bloom/field-frame.d.ts +69 -0
  314. package/dist/views/swarm/bloom/field-frame.d.ts.map +1 -0
  315. package/dist/views/swarm/bloom/field-frame.js +104 -0
  316. package/dist/views/swarm/bloom/field-frame.js.map +1 -0
  317. package/dist/views/swarm/bloom/geometry.d.ts +187 -0
  318. package/dist/views/swarm/bloom/geometry.d.ts.map +1 -0
  319. package/dist/views/swarm/bloom/geometry.js +379 -0
  320. package/dist/views/swarm/bloom/geometry.js.map +1 -0
  321. package/dist/views/swarm/bloom/index.d.ts +8 -0
  322. package/dist/views/swarm/bloom/index.d.ts.map +1 -0
  323. package/dist/views/swarm/bloom/index.js +13 -0
  324. package/dist/views/swarm/bloom/index.js.map +1 -0
  325. package/dist/views/swarm/bloom/menu.d.ts +5 -0
  326. package/dist/views/swarm/bloom/menu.d.ts.map +1 -0
  327. package/dist/views/swarm/bloom/menu.js +14 -0
  328. package/dist/views/swarm/bloom/menu.js.map +1 -0
  329. package/dist/views/swarm/bloom/model.d.ts +255 -0
  330. package/dist/views/swarm/bloom/model.d.ts.map +1 -0
  331. package/dist/views/swarm/bloom/model.js +678 -0
  332. package/dist/views/swarm/bloom/model.js.map +1 -0
  333. package/dist/views/swarm/bloom/scenarios.d.ts +7 -0
  334. package/dist/views/swarm/bloom/scenarios.d.ts.map +1 -0
  335. package/dist/views/swarm/bloom/scenarios.js +57 -0
  336. package/dist/views/swarm/bloom/scenarios.js.map +1 -0
  337. package/dist/views/swarm/bloom/spawn-bloom.css +407 -0
  338. package/dist/views/swarm/bloom/targeting.d.ts +60 -0
  339. package/dist/views/swarm/bloom/targeting.d.ts.map +1 -0
  340. package/dist/views/swarm/bloom/targeting.js +74 -0
  341. package/dist/views/swarm/bloom/targeting.js.map +1 -0
  342. package/dist/views/swarm/bloom/use-spawn-bloom.d.ts +100 -0
  343. package/dist/views/swarm/bloom/use-spawn-bloom.d.ts.map +1 -0
  344. package/dist/views/swarm/bloom/use-spawn-bloom.js +333 -0
  345. package/dist/views/swarm/bloom/use-spawn-bloom.js.map +1 -0
  346. package/dist/views/swarm/bloom/words.d.ts +73 -0
  347. package/dist/views/swarm/bloom/words.d.ts.map +1 -0
  348. package/dist/views/swarm/bloom/words.js +195 -0
  349. package/dist/views/swarm/bloom/words.js.map +1 -0
  350. package/dist/views/swarm/body-id.d.ts +13 -0
  351. package/dist/views/swarm/body-id.d.ts.map +1 -0
  352. package/dist/views/swarm/body-id.js +12 -0
  353. package/dist/views/swarm/body-id.js.map +1 -0
  354. package/dist/views/swarm/bubble-model.d.ts +128 -0
  355. package/dist/views/swarm/bubble-model.d.ts.map +1 -0
  356. package/dist/views/swarm/bubble-model.js +421 -0
  357. package/dist/views/swarm/bubble-model.js.map +1 -0
  358. package/dist/views/swarm/gpu/frame-layout.d.ts +52 -0
  359. package/dist/views/swarm/gpu/frame-layout.d.ts.map +1 -0
  360. package/dist/views/swarm/gpu/frame-layout.js +122 -0
  361. package/dist/views/swarm/gpu/frame-layout.js.map +1 -0
  362. package/dist/views/swarm/gpu/glyph-atlas.d.ts +63 -0
  363. package/dist/views/swarm/gpu/glyph-atlas.d.ts.map +1 -0
  364. package/dist/views/swarm/gpu/glyph-atlas.js +207 -0
  365. package/dist/views/swarm/gpu/glyph-atlas.js.map +1 -0
  366. package/dist/views/swarm/gpu/profile-icons.d.ts +4 -0
  367. package/dist/views/swarm/gpu/profile-icons.d.ts.map +1 -0
  368. package/dist/views/swarm/gpu/profile-icons.js +18 -0
  369. package/dist/views/swarm/gpu/profile-icons.js.map +1 -0
  370. package/dist/views/swarm/gpu/shaders/body.wgsl.d.ts +3 -0
  371. package/dist/views/swarm/gpu/shaders/body.wgsl.d.ts.map +1 -0
  372. package/dist/views/swarm/gpu/shaders/body.wgsl.js +162 -0
  373. package/dist/views/swarm/gpu/shaders/body.wgsl.js.map +1 -0
  374. package/dist/views/swarm/gpu/shaders/common.wgsl.d.ts +3 -0
  375. package/dist/views/swarm/gpu/shaders/common.wgsl.d.ts.map +1 -0
  376. package/dist/views/swarm/gpu/shaders/common.wgsl.js +171 -0
  377. package/dist/views/swarm/gpu/shaders/common.wgsl.js.map +1 -0
  378. package/dist/views/swarm/gpu/shaders/erase.wgsl.d.ts +3 -0
  379. package/dist/views/swarm/gpu/shaders/erase.wgsl.d.ts.map +1 -0
  380. package/dist/views/swarm/gpu/shaders/erase.wgsl.js +61 -0
  381. package/dist/views/swarm/gpu/shaders/erase.wgsl.js.map +1 -0
  382. package/dist/views/swarm/gpu/shaders/field.wgsl.d.ts +3 -0
  383. package/dist/views/swarm/gpu/shaders/field.wgsl.d.ts.map +1 -0
  384. package/dist/views/swarm/gpu/shaders/field.wgsl.js +47 -0
  385. package/dist/views/swarm/gpu/shaders/field.wgsl.js.map +1 -0
  386. package/dist/views/swarm/gpu/shaders/glow.wgsl.d.ts +3 -0
  387. package/dist/views/swarm/gpu/shaders/glow.wgsl.d.ts.map +1 -0
  388. package/dist/views/swarm/gpu/shaders/glow.wgsl.js +39 -0
  389. package/dist/views/swarm/gpu/shaders/glow.wgsl.js.map +1 -0
  390. package/dist/views/swarm/gpu/shaders/hub.wgsl.d.ts +3 -0
  391. package/dist/views/swarm/gpu/shaders/hub.wgsl.d.ts.map +1 -0
  392. package/dist/views/swarm/gpu/shaders/hub.wgsl.js +48 -0
  393. package/dist/views/swarm/gpu/shaders/hub.wgsl.js.map +1 -0
  394. package/dist/views/swarm/gpu/shaders/shadow.wgsl.d.ts +3 -0
  395. package/dist/views/swarm/gpu/shaders/shadow.wgsl.d.ts.map +1 -0
  396. package/dist/views/swarm/gpu/shaders/shadow.wgsl.js +37 -0
  397. package/dist/views/swarm/gpu/shaders/shadow.wgsl.js.map +1 -0
  398. package/dist/views/swarm/gpu/shaders/text.wgsl.d.ts +3 -0
  399. package/dist/views/swarm/gpu/shaders/text.wgsl.d.ts.map +1 -0
  400. package/dist/views/swarm/gpu/shaders/text.wgsl.js +51 -0
  401. package/dist/views/swarm/gpu/shaders/text.wgsl.js.map +1 -0
  402. package/dist/views/swarm/gpu/swarm-renderer.d.ts +155 -0
  403. package/dist/views/swarm/gpu/swarm-renderer.d.ts.map +1 -0
  404. package/dist/views/swarm/gpu/swarm-renderer.js +696 -0
  405. package/dist/views/swarm/gpu/swarm-renderer.js.map +1 -0
  406. package/dist/views/swarm/index.d.ts +9 -0
  407. package/dist/views/swarm/index.d.ts.map +1 -0
  408. package/dist/views/swarm/index.js +40 -0
  409. package/dist/views/swarm/index.js.map +1 -0
  410. package/dist/views/swarm/lab/fixtures.d.ts +148 -0
  411. package/dist/views/swarm/lab/fixtures.d.ts.map +1 -0
  412. package/dist/views/swarm/lab/fixtures.js +821 -0
  413. package/dist/views/swarm/lab/fixtures.js.map +1 -0
  414. package/dist/views/swarm/lab/lab.css +315 -0
  415. package/dist/views/swarm/lab/main.d.ts +2 -0
  416. package/dist/views/swarm/lab/main.d.ts.map +1 -0
  417. package/dist/views/swarm/lab/main.js +474 -0
  418. package/dist/views/swarm/lab/main.js.map +1 -0
  419. package/dist/views/swarm/physics/driver.d.ts +23 -0
  420. package/dist/views/swarm/physics/driver.d.ts.map +1 -0
  421. package/dist/views/swarm/physics/driver.js +68 -0
  422. package/dist/views/swarm/physics/driver.js.map +1 -0
  423. package/dist/views/swarm/physics/frame.d.ts +28 -0
  424. package/dist/views/swarm/physics/frame.d.ts.map +1 -0
  425. package/dist/views/swarm/physics/frame.js +47 -0
  426. package/dist/views/swarm/physics/frame.js.map +1 -0
  427. package/dist/views/swarm/physics/host.d.ts +28 -0
  428. package/dist/views/swarm/physics/host.d.ts.map +1 -0
  429. package/dist/views/swarm/physics/host.js +168 -0
  430. package/dist/views/swarm/physics/host.js.map +1 -0
  431. package/dist/views/swarm/physics/index.d.ts +6 -0
  432. package/dist/views/swarm/physics/index.d.ts.map +1 -0
  433. package/dist/views/swarm/physics/index.js +14 -0
  434. package/dist/views/swarm/physics/index.js.map +1 -0
  435. package/dist/views/swarm/physics/inline-driver.d.ts +27 -0
  436. package/dist/views/swarm/physics/inline-driver.d.ts.map +1 -0
  437. package/dist/views/swarm/physics/inline-driver.js +37 -0
  438. package/dist/views/swarm/physics/inline-driver.js.map +1 -0
  439. package/dist/views/swarm/physics/protocol.d.ts +125 -0
  440. package/dist/views/swarm/physics/protocol.d.ts.map +1 -0
  441. package/dist/views/swarm/physics/protocol.js +4 -0
  442. package/dist/views/swarm/physics/protocol.js.map +1 -0
  443. package/dist/views/swarm/physics/spawn-clamp.d.ts +11 -0
  444. package/dist/views/swarm/physics/spawn-clamp.d.ts.map +1 -0
  445. package/dist/views/swarm/physics/spawn-clamp.js +15 -0
  446. package/dist/views/swarm/physics/spawn-clamp.js.map +1 -0
  447. package/dist/views/swarm/physics/swarm-physics.worker.d.ts +2 -0
  448. package/dist/views/swarm/physics/swarm-physics.worker.d.ts.map +1 -0
  449. package/dist/views/swarm/physics/swarm-physics.worker.js +66 -0
  450. package/dist/views/swarm/physics/swarm-physics.worker.js.map +1 -0
  451. package/dist/views/swarm/physics/world.d.ts +174 -0
  452. package/dist/views/swarm/physics/world.d.ts.map +1 -0
  453. package/dist/views/swarm/physics/world.js +454 -0
  454. package/dist/views/swarm/physics/world.js.map +1 -0
  455. package/dist/views/swarm/swarm-parameters.d.ts +50 -0
  456. package/dist/views/swarm/swarm-parameters.d.ts.map +1 -0
  457. package/dist/views/swarm/swarm-parameters.js +103 -0
  458. package/dist/views/swarm/swarm-parameters.js.map +1 -0
  459. package/dist/views/swarm/swarm-theme.d.ts +5 -0
  460. package/dist/views/swarm/swarm-theme.d.ts.map +1 -0
  461. package/dist/views/swarm/swarm-theme.js +63 -0
  462. package/dist/views/swarm/swarm-theme.js.map +1 -0
  463. package/dist/views/swarm/swarm.css +136 -0
  464. package/dist/views/swarm/text-layout.d.ts +72 -0
  465. package/dist/views/swarm/text-layout.d.ts.map +1 -0
  466. package/dist/views/swarm/text-layout.js +76 -0
  467. package/dist/views/swarm/text-layout.js.map +1 -0
  468. package/dist/views/swarm/weight.d.ts +44 -0
  469. package/dist/views/swarm/weight.d.ts.map +1 -0
  470. package/dist/views/swarm/weight.js +57 -0
  471. package/dist/views/swarm/weight.js.map +1 -0
  472. package/dist/views/timeline/TimelineView.d.ts +9 -0
  473. package/dist/views/timeline/TimelineView.d.ts.map +1 -0
  474. package/dist/views/timeline/TimelineView.js +889 -0
  475. package/dist/views/timeline/TimelineView.js.map +1 -0
  476. package/dist/views/timeline/index.d.ts +11 -0
  477. package/dist/views/timeline/index.d.ts.map +1 -0
  478. package/dist/views/timeline/index.js +63 -0
  479. package/dist/views/timeline/index.js.map +1 -0
  480. package/dist/views/timeline/lab/main.d.ts +2 -0
  481. package/dist/views/timeline/lab/main.d.ts.map +1 -0
  482. package/dist/views/timeline/lab/main.js +114 -0
  483. package/dist/views/timeline/lab/main.js.map +1 -0
  484. package/dist/views/timeline/lab/timeline-fixtures.d.ts +31 -0
  485. package/dist/views/timeline/lab/timeline-fixtures.d.ts.map +1 -0
  486. package/dist/views/timeline/lab/timeline-fixtures.js +337 -0
  487. package/dist/views/timeline/lab/timeline-fixtures.js.map +1 -0
  488. package/dist/views/timeline/pulse-map.d.ts +63 -0
  489. package/dist/views/timeline/pulse-map.d.ts.map +1 -0
  490. package/dist/views/timeline/pulse-map.js +162 -0
  491. package/dist/views/timeline/pulse-map.js.map +1 -0
  492. package/dist/views/timeline/timeline-inks.d.ts +28 -0
  493. package/dist/views/timeline/timeline-inks.d.ts.map +1 -0
  494. package/dist/views/timeline/timeline-inks.js +35 -0
  495. package/dist/views/timeline/timeline-inks.js.map +1 -0
  496. package/dist/views/timeline/timeline-lanes.d.ts +139 -0
  497. package/dist/views/timeline/timeline-lanes.d.ts.map +1 -0
  498. package/dist/views/timeline/timeline-lanes.js +240 -0
  499. package/dist/views/timeline/timeline-lanes.js.map +1 -0
  500. package/dist/views/timeline/timeline-paint.d.ts +39 -0
  501. package/dist/views/timeline/timeline-paint.d.ts.map +1 -0
  502. package/dist/views/timeline/timeline-paint.js +242 -0
  503. package/dist/views/timeline/timeline-paint.js.map +1 -0
  504. package/dist/views/timeline/timeline-parameters.d.ts +11 -0
  505. package/dist/views/timeline/timeline-parameters.d.ts.map +1 -0
  506. package/dist/views/timeline/timeline-parameters.js +27 -0
  507. package/dist/views/timeline/timeline-parameters.js.map +1 -0
  508. package/dist/views/timeline/timeline-scale.d.ts +73 -0
  509. package/dist/views/timeline/timeline-scale.d.ts.map +1 -0
  510. package/dist/views/timeline/timeline-scale.js +152 -0
  511. package/dist/views/timeline/timeline-scale.js.map +1 -0
  512. package/dist/views/timeline/timeline-words.d.ts +46 -0
  513. package/dist/views/timeline/timeline-words.d.ts.map +1 -0
  514. package/dist/views/timeline/timeline-words.js +132 -0
  515. package/dist/views/timeline/timeline-words.js.map +1 -0
  516. package/dist/views/timeline/timeline.css +875 -0
  517. package/dist/views/timeline/wake-geometry.d.ts +88 -0
  518. package/dist/views/timeline/wake-geometry.d.ts.map +1 -0
  519. package/dist/views/timeline/wake-geometry.js +243 -0
  520. package/dist/views/timeline/wake-geometry.js.map +1 -0
  521. package/package.json +78 -3
  522. package/README.md +0 -3
@@ -0,0 +1,645 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, } from 'react';
3
+ import { createMotionLoop, formatClock, keyLegend, sizeCanvas, } from '@vibefield/puppeteer-view-sdk/toolkit';
4
+ import { liftedFill, siblingIndex, siblingTone } from './spend-ink.js';
5
+ import { fitList, listOrder, moreWords } from './spend-list.js';
6
+ import { css, paintSpend, resolveSpendInks, sceneMoves, } from './spend-paint.js';
7
+ import { easeTop, heldIn, momentIn, moneyScale, moneyTicks, SPEND_WINDOW_MS, spendWindow, timeTicks, } from './spend-scale.js';
8
+ import { normalizeSpendParameters } from './spend-parameters.js';
9
+ import { rateAt, spendAt, spendMeters, spentAt, spentPoints, valueAt } from './spend-series.js';
10
+ import { axisMoney, est, fitWords, money, NOT_RECORDED, perHour, printedBurn, spendNames, spendStateAt, stateWords, waits, } from './spend-words.js';
11
+ // The spend view — "Where the Money Went" (SV, design B · Watchlist with its
12
+ // round-2 refinements, `draft/godview-spend/` §B′). Runtime only (James,
13
+ // 2026-10-03): the chart is the last ten minutes Core holds, always ending at
14
+ // now, and each priced agent's line is what it spent in them, in its project's
15
+ // colour — from $0 where the window begins for it, its head at what it has
16
+ // spent since. A watchlist beside the chart names every line in words, most
17
+ // spent first, each with its run's TOTAL, so the two figures never read as one.
18
+ // The view draws only what the live rows say now: it keeps nothing across
19
+ // models but its own UI state, and persists nothing.
20
+ //
21
+ // An SDK view (MV-7): it reads its input alone — the model's rows and the
22
+ // backend's `MonitorCost` on each (`spend-series.ts`), the theme, the stage, its
23
+ // parameters — and calls `commands.select`.
24
+ //
25
+ // Pointing at the chart reads a moment: the list, the hero and the header all
26
+ // say what was spent by then, rows not yet started fade and say when they
27
+ // start, and the chart past the moment fades (SV-D15…D17). A click on empty
28
+ // chart sets the moment (SV-D18); waiting rows the scroll leaves out dock at
29
+ // the list's foot (SV-D19).
30
+ //
31
+ // React lays out the DOM (the hero, the axes, the rows) from the view's state;
32
+ // the canvas is painted after each render, and the toolkit's loop repaints it
33
+ // only while a waiting head's wave moves. Still (animations off, or motion
34
+ // reduced) no frame loop runs (MV-W4): nothing waves, eases or glides.
35
+ /** A line within this many px of the pointer is the one pointed at; further, the click sets the moment. */
36
+ const REACH_PX = 16;
37
+ /** Under this height the rows go to one line of 30 px (the terminals are up). */
38
+ const COMPACT_BELOW = 418;
39
+ const GREY = [0.5, 0.5, 0.5, 1];
40
+ export function geometryFor(width, height) {
41
+ const compact = height < COMPACT_BELOW;
42
+ const narrow = width < 640;
43
+ const margin = width < 640 ? 12 : 24;
44
+ const listW = width >= 960 ? 316 : Math.round(Math.min(316, Math.max(168, width * 0.34)));
45
+ const lx0 = width - margin - listW;
46
+ const x1 = Math.max(margin + 40, lx0 - (width < 640 ? 44 : 52));
47
+ const y0 = compact ? 48 : 80;
48
+ const y1 = Math.max(y0 + 40, height - 26);
49
+ return {
50
+ width,
51
+ height,
52
+ compact,
53
+ narrow,
54
+ x0: margin,
55
+ x1,
56
+ y0,
57
+ y1,
58
+ lx0,
59
+ listW,
60
+ ly0: 12,
61
+ ly1: height - 4,
62
+ rowH: compact ? 30 : 54,
63
+ axisY: y1 + 6,
64
+ };
65
+ }
66
+ /** The view's own box: the stage past the chrome it clears on the left and above (MV-D19, M58). */
67
+ const stageBox = (stage) => ({
68
+ width: Math.max(0, stage.width - stage.insets.left),
69
+ height: Math.max(0, stage.height - stage.insets.top),
70
+ });
71
+ const setProperty = (element, key, value) => {
72
+ if (element && element.style.getPropertyValue(key) !== value)
73
+ element.style.setProperty(key, value);
74
+ };
75
+ /** Where nothing can measure: an average glyph. */
76
+ const averageGlyph = (text) => text.length * 6.4;
77
+ /** A 2D canvas's advance widths, the canvas made detached from the root's own document (MV-W2); none where none draws. */
78
+ function canvasMeasure(within) {
79
+ let context = null;
80
+ try {
81
+ context = within.ownerDocument.createElement('canvas').getContext('2d');
82
+ }
83
+ catch {
84
+ // no document, or none that draws
85
+ }
86
+ if (!context)
87
+ return undefined;
88
+ const ctx = context;
89
+ return (text, font) => {
90
+ ctx.font = font;
91
+ return ctx.measureText(text).width;
92
+ };
93
+ }
94
+ // The glyphs (DESIGN §13 Instrument construction: 24 box, one 2-unit stroke, round caps).
95
+ const GLYPH_PATHS = {
96
+ question: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M9 9.5a3 3 0 1 1 4.2 2.7c-.8.4-1.2 1-1.2 1.8v.5" }), _jsx("circle", { className: "is-dot", cx: "12", cy: "17.75", r: "1.35" })] })),
97
+ failure: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M12 5v9" }), _jsx("circle", { className: "is-dot", cx: "12", cy: "18", r: "1.35" })] })),
98
+ permission: _jsx("path", { d: "M8 4.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7ZM10.5 10.5 19 19M15.5 15.5l2-2M13 13l2-2" }),
99
+ reply: _jsx("path", { d: "M20 14a2 2 0 0 1-2 2H9l-4.5 3.5V6a2 2 0 0 1 2-2h11.5a2 2 0 0 1 2 2Z" }),
100
+ };
101
+ function Glyph({ glyph }) {
102
+ return (_jsx("svg", { className: "vf-monitor-spend-glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: GLYPH_PATHS[glyph] }));
103
+ }
104
+ /** Another desktop's agent: a desktop's line mark, its name in the title (the facet carries no OS to draw). */
105
+ function PeerMark({ name }) {
106
+ return (_jsxs("svg", { className: "vf-monitor-spend-peer", viewBox: "0 0 24 24", role: "img", "aria-label": `on ${name}`, children: [_jsx("title", { children: `On ${name}` }), _jsx("path", { d: "M4.5 5h15a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 15.5v-9A1.5 1.5 0 0 1 4.5 5ZM9 20.5h6M12 17v3.5" })] }));
107
+ }
108
+ /**
109
+ * The key that lets go of a set moment. The manifest declares it, the view's root hears it, and the Now pill, which
110
+ * does the same, prints its legend under the mark from the toolkit's one table (M177 ruling 4, M181).
111
+ */
112
+ export const NOW_KEY = 'End';
113
+ function NowMark() {
114
+ return (_jsx("svg", { className: "vf-monitor-spend-now-mark", viewBox: "0 0 24 24", "aria-hidden": "true", children: _jsx("path", { d: "M4 12h10.5M11 8.5l3.5 3.5-3.5 3.5M19.5 4.5v15" }) }));
115
+ }
116
+ export function SpendView({ input, commands }) {
117
+ const { model, parameters, theme, stage } = input;
118
+ const settings = useMemo(() => normalizeSpendParameters(parameters), [parameters]);
119
+ // The host's animations switch and the person's reduced-motion preference: either one stills the view.
120
+ const motion = theme.animations && !theme.reducedMotion;
121
+ const rootRef = useRef(null);
122
+ const canvasRef = useRef(null);
123
+ /** The root's own size once laid out; until then (and wherever nothing lays out) the stage's. */
124
+ const [measured, setMeasured] = useState(null);
125
+ const size = measured ?? stageBox(stage);
126
+ const [nowMs, setNowMs] = useState(() => Date.now());
127
+ const [pointer, setPointer] = useState(null);
128
+ /** The moment a click set (SV-D18); it stays while the pointer crosses to the list, until the window passes it. */
129
+ const [held, setHeld] = useState(null);
130
+ const [hover, setHover] = useState(null);
131
+ const [focus, setFocus] = useState(null);
132
+ /** The order the list showed when the pointer came onto it: rows never move under the pointer (SV-D12). */
133
+ const [listHeld, setListHeld] = useState(null);
134
+ const [listOffset, setListOffset] = useState(0);
135
+ const [yShown, setYShown] = useState(null);
136
+ const [inks, setInks] = useState(null);
137
+ /** The family the canvas measures words in: the root's own (the skin's sans, M178) once it is laid out. */
138
+ const [font, setFont] = useState('sans-serif');
139
+ const [measure, setMeasure] = useState(() => averageGlyph);
140
+ const motionRef = useRef(motion);
141
+ motionRef.current = motion;
142
+ const sceneRef = useRef(null);
143
+ // ───────────────────────────── the world now
144
+ // Once per published model: a row the model kept keeps its meter (MV-D21, M64); only the head moves with the clock.
145
+ const meters = useMemo(() => spendMeters(model.agents), [model.agents]);
146
+ const set = useMemo(() => spendAt(meters, nowMs), [meters, nowMs]);
147
+ const dark = inks?.dark ?? false;
148
+ const colours = useMemo(() => {
149
+ const sib = siblingIndex(meters.lines.map((line) => ({ id: line.id, project: line.agent.project.name, bornMs: line.bornMs })));
150
+ const out = new Map();
151
+ for (const line of meters.lines) {
152
+ const base = inks?.project(line.agent.colour) ?? GREY;
153
+ const n = sib.get(line.id) ?? 0;
154
+ out.set(line.id, { ink: siblingTone(base, n, dark), fill: liftedFill(base, n) });
155
+ }
156
+ return out;
157
+ }, [meters, inks, dark]);
158
+ const names = useMemo(() => spendNames([...meters.lines.map((line) => line.agent), ...meters.unpriced.map((row) => row.agent)]), [meters]);
159
+ const g = geometryFor(size.width, size.height);
160
+ const span = spendWindow(nowMs);
161
+ const { ta, tb } = span;
162
+ const pinned = heldIn(held, span);
163
+ const crossT = pinned ?? pointer?.t ?? null;
164
+ const tCross = crossT === null ? null : momentIn(crossT, span);
165
+ const tView = tCross ?? tb;
166
+ const xOf = (t) => g.x0 + ((t - ta) / (tb - ta)) * (g.x1 - g.x0);
167
+ const lines = set.lines;
168
+ const unpriced = set.unpriced;
169
+ // The order: most spent first, still while the pointer is on the list, now's order while scrubbing.
170
+ const order = listOrder(lines.map((line) => ({ id: line.id, value: line.total, bornMs: line.bornMs })), { held: listHeld });
171
+ const byId = new Map(lines.map((line) => [line.id, line]));
172
+ // The scale: from $0 to a round number above the most spent in the window, eased so a new high never jumps.
173
+ const target = moneyScale(Math.max(0, ...lines.map((line) => spentAt(line, ta, tb) ?? 0)), g.compact);
174
+ const yMax = yShown ?? target.max;
175
+ const yOf = (value) => g.y1 - (value / Math.max(1e-9, yMax)) * (g.y1 - g.y0);
176
+ // ───────────────────────────── each row at the moment
177
+ const rowOf = (line) => {
178
+ const state = spendStateAt(line, tView, nowMs);
179
+ const before = state.key === 'before';
180
+ const value = before ? undefined : valueAt(line, tView);
181
+ // Started, and still no figure: a row with a total alone, at any moment but now.
182
+ const unrecorded = !before && value === undefined;
183
+ const rate = value === undefined ? undefined : rateAt(line, tView);
184
+ const colour = colours.get(line.id);
185
+ return {
186
+ id: line.id,
187
+ line,
188
+ agent: line.agent,
189
+ name: names.get(line.id),
190
+ colour: colour ? css(colour.ink) : 'currentColor',
191
+ state,
192
+ value,
193
+ partial: line.partial,
194
+ status: unrecorded ? NOT_RECORDED : stateWords(state, tView, rate),
195
+ burn: unrecorded ? undefined : printedBurn(state, rate),
196
+ unrecorded,
197
+ priced: true,
198
+ };
199
+ };
200
+ const rows = order.map((id) => rowOf(byId.get(id)));
201
+ const unpricedRows = unpriced.map((row) => {
202
+ const state = spendStateAt(row, tView, nowMs);
203
+ return {
204
+ id: row.id,
205
+ agent: row.agent,
206
+ name: names.get(row.id),
207
+ colour: 'currentColor',
208
+ state,
209
+ value: undefined,
210
+ partial: false,
211
+ status: state.key === 'working' ? { text: 'working', tone: 'live' } : stateWords(state, tView, undefined),
212
+ burn: undefined,
213
+ unrecorded: false,
214
+ priced: false,
215
+ };
216
+ });
217
+ // The hero: what the field had spent by the moment (at now, every run's total), a plus when some went unpriced
218
+ // or nobody recorded it, and the burn — exactly the sum of the rates the rows print (review must-fix 2).
219
+ let spent = 0;
220
+ let partial = false;
221
+ let perMinute = 0;
222
+ for (const row of rows) {
223
+ if (row.state.key === 'before')
224
+ continue;
225
+ if (row.value === undefined)
226
+ partial = true;
227
+ else {
228
+ spent += row.value;
229
+ if (row.partial && row.value > 0)
230
+ partial = true;
231
+ }
232
+ perMinute += row.burn ?? 0;
233
+ }
234
+ const missing = unpriced.filter((row) => row.bornMs <= tView);
235
+ const leftOut = missing.length === 1
236
+ ? ` · not counting ${names.get(missing[0].id).one}`
237
+ : missing.length > 1
238
+ ? ` · not counting ${missing.length} agents with no price`
239
+ : '';
240
+ const heroRate = tCross !== null ? `by ${formatClock(tCross)} · ${perHour(perMinute)} then` : `${perHour(perMinute)} now`;
241
+ const heroWhat = `since each agent started, at API prices${leftOut}`;
242
+ // The header: how many had started by the moment, and what the money column means.
243
+ const all = rows.length + unpricedRows.length;
244
+ const started = [...rows, ...unpricedRows].filter((row) => row.state.key !== 'before').length;
245
+ // The compact form's slim header says only what it must: who had started while some had not, and "Total".
246
+ const headA = started < all ? `${started} of ${all} started` : g.compact ? '' : 'By spend';
247
+ // The list's money is each run's total, the chart's what it spent in the window: the header says which.
248
+ const headB = tCross !== null ? `Total by ${formatClock(tCross)}` : 'Total';
249
+ // The list: its header (26 px, or one slim 14 px line in the compact form, taken out of the rows' room), whole
250
+ // rows, a "more" row, waiting rows docked at the foot.
251
+ const listTop = g.ly0 + (g.compact ? 14 : 26);
252
+ const room = g.ly1 - listTop - unpricedRows.length * g.rowH - (unpricedRows.length ? 6 : 0);
253
+ const cap = Math.max(1, Math.floor(room / g.rowH));
254
+ const waiting = new Map(rows.filter((row) => waits(row.state)).map((row) => [row.id, row.state.sinceMs]));
255
+ const fit = fitList(order, cap, listOffset, waiting);
256
+ const dockIndex = new Map(fit.docked.map((id, index) => [id, index]));
257
+ const shownRows = fit.more ? cap : rows.length;
258
+ // ───────────────────────────── the canvas's scene
259
+ const hot = hover;
260
+ const sceneLines = lines.map((line) => ({
261
+ id: line.id,
262
+ colour: colours.get(line.id)?.ink ?? GREY,
263
+ points: spentPoints(line, ta, tb).map((point) => [xOf(point.t), yOf(point.v)]),
264
+ }));
265
+ // Every head is at now, on what its run spent in the window; a row with a total alone has neither line nor head.
266
+ const heads = lines.flatMap((line) => {
267
+ const spent = spentAt(line, ta, tb);
268
+ if (spent === undefined)
269
+ return [];
270
+ const colour = colours.get(line.id)?.ink ?? GREY;
271
+ return [{ id: line.id, x: xOf(tb), y: yOf(spent), colour, key: spendStateAt(line, tb, nowMs).key }];
272
+ });
273
+ const hotLine = hot === null ? undefined : byId.get(hot);
274
+ const startsLater = hotLine !== undefined && tCross !== null && tCross < hotLine.bornMs;
275
+ const scene = {
276
+ width: g.width,
277
+ height: g.height,
278
+ ratio: 1,
279
+ x0: g.x0,
280
+ x1: g.x1,
281
+ y0: g.y0,
282
+ y1: g.y1,
283
+ weight: settings.weight,
284
+ wash: settings.wash,
285
+ grid: moneyTicks(yMax, target.step).map(yOf),
286
+ nowX: xOf(tb),
287
+ lines: sceneLines,
288
+ hot,
289
+ fadeX: tCross === null ? null : xOf(tCross),
290
+ heads,
291
+ // A moment fades the heads, and a faded head has no wave: the loop rests while one is read.
292
+ waves: tCross === null,
293
+ ...(tCross !== null
294
+ ? {
295
+ cross: {
296
+ x: xOf(tCross),
297
+ held: pinned !== null,
298
+ dots: lines.flatMap((line) => {
299
+ const spent = tCross < line.bornMs ? undefined : spentAt(line, ta, tCross);
300
+ if (spent === undefined)
301
+ return [];
302
+ return [{ x: xOf(tCross), y: yOf(spent), colour: colours.get(line.id).ink, id: line.id }];
303
+ }),
304
+ },
305
+ }
306
+ : {}),
307
+ ...(pinned !== null && pointer ? { ghostX: xOf(momentIn(pointer.t, span)) } : {}),
308
+ ...(startsLater
309
+ ? {
310
+ start: {
311
+ x: xOf(Math.max(hotLine.bornMs, ta)),
312
+ y: yOf(0),
313
+ colour: colours.get(hotLine.id).ink,
314
+ },
315
+ }
316
+ : {}),
317
+ time: 0,
318
+ };
319
+ sceneRef.current = scene;
320
+ // The tag at the pointed line's head — what it spent in the window by then — the only label on the chart; a row
321
+ // not yet started shows its start instead.
322
+ let tag = null;
323
+ if (hotLine) {
324
+ const fill = colours.get(hotLine.id).fill;
325
+ if (startsLater) {
326
+ tag = {
327
+ text: `starts ${formatClock(hotLine.bornMs)}`,
328
+ fill,
329
+ style: { transform: `translate(${xOf(Math.max(hotLine.bornMs, ta)) + 8}px, ${yOf(0) - 30}px)` },
330
+ };
331
+ }
332
+ else {
333
+ const t = tCross ?? tb;
334
+ const spent = t < hotLine.bornMs ? undefined : spentAt(hotLine, ta, t);
335
+ if (spent !== undefined)
336
+ tag = {
337
+ text: est(spent, hotLine.partial),
338
+ fill,
339
+ style: { transform: `translate(calc(${xOf(t) - 10}px - 100%), ${yOf(spent) - 11}px)` },
340
+ };
341
+ }
342
+ }
343
+ // ───────────────────────────── effects: size, inks, the loop
344
+ useLayoutEffect(() => {
345
+ const root = rootRef.current;
346
+ if (!root)
347
+ return;
348
+ const measureRoot = () => {
349
+ const width = root.clientWidth;
350
+ const height = root.clientHeight;
351
+ // A root nothing lays out (a hidden stage, a test's DOM) keeps drawing at the stage's size.
352
+ setMeasured((current) => width <= 0 || height <= 0
353
+ ? null
354
+ : current?.width === width && current.height === height
355
+ ? current
356
+ : { width, height });
357
+ };
358
+ measureRoot();
359
+ const observer = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(measureRoot);
360
+ observer?.observe(root);
361
+ return () => observer?.disconnect();
362
+ }, []);
363
+ // The palette, resolved once per theme into the numbers the canvas wants; the state inks also reach the DOM as
364
+ // the view's own properties, so the CSS reads no host token (L18).
365
+ useLayoutEffect(() => {
366
+ const root = rootRef.current;
367
+ if (!root)
368
+ return;
369
+ const resolved = resolveSpendInks(theme.tokens, root);
370
+ setInks(resolved);
371
+ setFont((current) => getComputedStyle(root).fontFamily || current);
372
+ setMeasure(() => canvasMeasure(root) ?? averageGlyph);
373
+ root.dataset.ground = resolved.dark ? 'dark' : 'light';
374
+ setProperty(root, '--mv-spend-orange', css(resolved.orange));
375
+ setProperty(root, '--mv-spend-blue', css(resolved.blue));
376
+ setProperty(root, '--mv-spend-orange-ink', css(resolved.orangeInk));
377
+ setProperty(root, '--mv-spend-blue-ink', css(resolved.blueInk));
378
+ setProperty(root, '--mv-spend-green-ink', css(resolved.greenInk));
379
+ }, [theme.tokens]);
380
+ const paint = useCallback((time) => {
381
+ const canvas = canvasRef.current;
382
+ const current = sceneRef.current;
383
+ if (!canvas || !current || !inks || current.width <= 0)
384
+ return;
385
+ const { ratio } = sizeCanvas(canvas, current.width, current.height, { maxRatio: 2 });
386
+ const ctx = canvas.getContext('2d');
387
+ if (!ctx)
388
+ return;
389
+ paintSpend(ctx, { ...current, ratio, time, waves: current.waves && motionRef.current }, inks);
390
+ }, [inks]);
391
+ // Every render repaints the canvas from its scene.
392
+ useLayoutEffect(() => {
393
+ paint(typeof performance === 'undefined' ? 0 : performance.now());
394
+ });
395
+ // The top eases toward its target, a frame at a time; still, it lands at once.
396
+ useEffect(() => {
397
+ if (yShown === target.max)
398
+ return;
399
+ if (yShown === null || !motion) {
400
+ setYShown(target.max);
401
+ return;
402
+ }
403
+ const frame = requestAnimationFrame(() => setYShown((shownTop) => easeTop(shownTop, target.max)));
404
+ return () => cancelAnimationFrame(frame);
405
+ }, [yShown, target.max, motion]);
406
+ // The clock: now moves about a pixel at a time; the wave repaints the canvas alone.
407
+ const msPerPx = SPEND_WINDOW_MS / Math.max(1, g.x1 - g.x0);
408
+ useEffect(() => {
409
+ const every = Math.min(1000, Math.max(250, msPerPx));
410
+ const id = setInterval(() => setNowMs(Date.now()), every);
411
+ return () => clearInterval(id);
412
+ }, [msPerPx]);
413
+ // A set moment the window has slid past lets go.
414
+ useEffect(() => {
415
+ if (held !== null && pinned === null)
416
+ setHeld(null);
417
+ }, [held, pinned]);
418
+ // The wave's loop: the toolkit's, which asks for no frame at all while animations are off or motion is reduced.
419
+ const paintRef = useRef(paint);
420
+ paintRef.current = paint;
421
+ const loopRef = useRef(null);
422
+ useEffect(() => {
423
+ let last = 0;
424
+ const loop = createMotionLoop((time) => {
425
+ const current = sceneRef.current;
426
+ if (!current || !sceneMoves(current) || time - last < 33)
427
+ return;
428
+ last = time;
429
+ paintRef.current(time);
430
+ }, { animations: theme.animations, reducedMotion: theme.reducedMotion });
431
+ loopRef.current = loop;
432
+ return () => {
433
+ loop.dispose();
434
+ loopRef.current = null;
435
+ };
436
+ // the loop lives as long as the view; the switches reach it below
437
+ // eslint-disable-next-line react-hooks/exhaustive-deps
438
+ }, []);
439
+ useEffect(() => {
440
+ loopRef.current?.update({ animations: theme.animations, reducedMotion: theme.reducedMotion });
441
+ }, [theme.animations, theme.reducedMotion]);
442
+ // ───────────────────────────── acts
443
+ const select = (id) => {
444
+ const row = rows.find((candidate) => candidate.id === id) ?? unpricedRows.find((candidate) => candidate.id === id);
445
+ if (row)
446
+ commands.select(row.id);
447
+ };
448
+ const release = () => setHeld(null);
449
+ const local = (event) => {
450
+ const rect = rootRef.current?.getBoundingClientRect();
451
+ return rect ? { x: event.clientX - rect.left, y: event.clientY - rect.top } : { x: 0, y: 0 };
452
+ };
453
+ const tAt = (x) => momentIn(ta + ((x - g.x0) / (g.x1 - g.x0)) * (tb - ta), span);
454
+ const nearest = (t, y) => {
455
+ let best = null;
456
+ let distance = REACH_PX;
457
+ for (const line of lines) {
458
+ const spent = t < line.bornMs ? undefined : spentAt(line, ta, t);
459
+ if (spent === undefined)
460
+ continue;
461
+ const d = Math.abs(yOf(spent) - y);
462
+ if (d < distance) {
463
+ distance = d;
464
+ best = line.id;
465
+ }
466
+ }
467
+ return best;
468
+ };
469
+ const point = (x, y) => {
470
+ const inPlot = x >= g.x0 - 2 && x <= g.x1 + 2 && y >= g.y0 - 12 && y <= g.y1 + 6;
471
+ if (!inPlot) {
472
+ setPointer(null);
473
+ setHover(focus);
474
+ return;
475
+ }
476
+ const t = tAt(x);
477
+ const near = nearest(t, y);
478
+ setPointer({ t, near });
479
+ setHover(near ?? focus);
480
+ };
481
+ const press = useRef(null);
482
+ const onHitDown = (event) => {
483
+ if (event.button === 0)
484
+ press.current = { x: event.clientX, y: event.clientY };
485
+ };
486
+ const onHitMove = (event) => {
487
+ const { x, y } = local(event);
488
+ point(x, y);
489
+ };
490
+ const onHitUp = (event) => {
491
+ const from = press.current;
492
+ press.current = null;
493
+ // A press that travelled is no click: nothing pans the window, and a stray drag sets nothing.
494
+ if (!from || Math.abs(event.clientX - from.x) > 4 || Math.abs(event.clientY - from.y) > 4)
495
+ return;
496
+ const { x, y } = local(event);
497
+ const t = tAt(x);
498
+ const near = nearest(t, y);
499
+ // A line within reach opens; empty chart sets the moment there, and a click on the moment lets it go.
500
+ if (near)
501
+ select(near);
502
+ else if (pinned !== null && Math.abs(xOf(t) - xOf(pinned)) < 8)
503
+ release();
504
+ else
505
+ setHeld(t);
506
+ };
507
+ const onHitLeave = () => {
508
+ press.current = null;
509
+ setPointer(null);
510
+ setHover(focus);
511
+ };
512
+ const listRef = useRef(null);
513
+ const listWheelRef = useRef(() => undefined);
514
+ listWheelRef.current = (event) => {
515
+ if (!fit.more)
516
+ return;
517
+ event.preventDefault();
518
+ setListOffset(Math.min(fit.maxOffset, Math.max(0, fit.offset + Math.sign(event.deltaY))));
519
+ };
520
+ useEffect(() => {
521
+ const list = listRef.current;
522
+ const onList = (event) => listWheelRef.current(event);
523
+ list?.addEventListener('wheel', onList, { passive: false });
524
+ return () => list?.removeEventListener('wheel', onList);
525
+ }, []);
526
+ const keyOrder = [...order, ...unpricedRows.map((row) => row.id)];
527
+ const onKey = (event) => {
528
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
529
+ if (!keyOrder.length)
530
+ return;
531
+ event.preventDefault();
532
+ const index = focus === null ? -1 : keyOrder.indexOf(focus);
533
+ const next = event.key === 'ArrowDown'
534
+ ? index < 0
535
+ ? 0
536
+ : Math.min(keyOrder.length - 1, index + 1)
537
+ : index < 0
538
+ ? 0
539
+ : Math.max(0, index - 1);
540
+ const id = keyOrder[next] ?? null;
541
+ setFocus(id);
542
+ setHover(id);
543
+ // The focused row scrolls into the list's sequence.
544
+ const at = id === null ? -1 : order.indexOf(id);
545
+ if (at >= 0 && (at < fit.offset || at >= fit.offset + fit.fits))
546
+ setListOffset(at < fit.offset ? at : at - fit.fits + 1);
547
+ }
548
+ else if (event.key === 'Enter' && focus !== null) {
549
+ event.preventDefault();
550
+ select(focus);
551
+ }
552
+ else if (event.key === NOW_KEY) {
553
+ event.preventDefault();
554
+ release();
555
+ }
556
+ };
557
+ // ───────────────────────────── the DOM
558
+ const yTicks = moneyTicks(yMax, target.step);
559
+ const chips = [xOf(tb), ...(tCross !== null ? [xOf(tCross)] : [])];
560
+ const ticks = timeTicks(ta, tb, g.x0, g.x1, chips);
561
+ const l2w = g.listW - 35;
562
+ const rowFont = `400 12px ${font}`;
563
+ const rowElement = (row, index, foot) => {
564
+ const one = g.compact;
565
+ const docked = dockIndex.get(row.id);
566
+ const inSequence = !foot && index >= fit.offset && index < fit.offset + fit.fits;
567
+ const hidden = !foot && !inSequence && docked === undefined;
568
+ const slot = foot ? shownRows + index : docked !== undefined ? fit.fits + 1 + docked : index - fit.offset;
569
+ const top = listTop + slot * g.rowH + (foot ? 6 : 0);
570
+ const before = row.state.key === 'before';
571
+ const hollow = row.state.key === 'idle';
572
+ // Its state's glyph, unless nobody recorded it then (the one-line form keeps only the muted dash).
573
+ const glyph = row.unrecorded ? undefined : row.state.glyph;
574
+ const figure = before
575
+ ? one
576
+ ? row.status.text
577
+ : '—'
578
+ : row.priced && !row.unrecorded
579
+ ? est(row.value, row.partial)
580
+ : '—';
581
+ const stateWidth = measure(row.status.text, `600 12px ${font}`) + (glyph ? 15 : 0);
582
+ const task = row.priced
583
+ ? fitWords(row.name.task || row.name.model, l2w - stateWidth - 12, (text) => measure(text, rowFont))
584
+ : '';
585
+ const mounted = row.agent.attachment !== undefined;
586
+ const what = row.name.task || row.name.model;
587
+ const provider = row.agent.provider?.label ?? 'its provider';
588
+ const label = before
589
+ ? `${row.name.one}, ${what}, had not started then; ${row.status.text}.`
590
+ : row.unrecorded
591
+ ? `${row.name.one}, ${what}: what it had spent then was not recorded (its row carries only its total). Open in your pane.`
592
+ : row.priced
593
+ ? `${row.name.one}, ${what}, ${est(row.value, row.partial)}${row.status.text ? `, ${row.status.text}` : ''}${mounted ? ', in a pane' : ''}. Open in your pane.`
594
+ : `${row.name.one}: ${provider} reports no cost, so it isn't drawn${row.status.text ? `; ${row.status.text}` : ''}. Open in your pane.`;
595
+ const title = row.priced
596
+ ? `${row.name.one} · ${row.name.model}${row.name.task ? ` · ${row.name.task}` : ''}`
597
+ : `${row.name.one} · ${provider} reports no cost, so it isn't drawn${row.name.task ? ` · ${row.name.task}` : ''}`;
598
+ const classes = [
599
+ 'vf-monitor-spend-row',
600
+ one ? 'is-one' : '',
601
+ row.priced ? '' : 'is-none',
602
+ row.unrecorded ? 'is-unrecorded' : '',
603
+ hover === row.id ? 'is-hot' : '',
604
+ hover !== null && hover !== row.id ? 'is-dim' : '',
605
+ focus === row.id ? 'is-focus' : '',
606
+ before ? 'is-before' : '',
607
+ docked !== undefined ? 'is-docked' : '',
608
+ docked === 0 ? 'is-dock-first' : '',
609
+ mounted ? 'is-mounted' : '',
610
+ row.agent.active ? 'is-active' : '',
611
+ ]
612
+ .filter(Boolean)
613
+ .join(' ');
614
+ return (_jsxs("button", { type: "button", className: classes, "data-id": row.id, "data-state": row.state.key, "data-dir": docked === undefined ? undefined : index < fit.offset ? 'up' : 'down', hidden: hidden, tabIndex: -1, title: title, "aria-label": label, style: {
615
+ transform: `translate(${g.lx0}px, ${top}px)`,
616
+ width: g.listW,
617
+ height: g.rowH - 2,
618
+ '--mv-spend-key': row.colour,
619
+ }, onPointerEnter: () => setHover(row.id), onClick: () => select(row.id), children: [_jsxs("span", { className: "vf-monitor-spend-r1", children: [_jsx("i", { className: `vf-monitor-spend-key${hollow ? ' is-hollow' : ''}`, "aria-hidden": "true" }), _jsx("b", { className: "vf-monitor-spend-name", children: one ? row.name.one : row.name.name }), row.agent.device.self ? null : _jsx(PeerMark, { name: row.agent.device.name }), _jsx("span", { className: "vf-monitor-spend-pane", "aria-hidden": "true" }), one && glyph ? (_jsx("span", { className: "vf-monitor-spend-stg", "data-tone": row.status.tone, children: _jsx(Glyph, { glyph: glyph }) })) : null, _jsx("span", { className: "vf-monitor-spend-v", children: figure })] }), one ? null : (_jsxs("span", { className: "vf-monitor-spend-r2", children: [_jsx("span", { className: "vf-monitor-spend-task", children: row.priced ? task : `${row.agent.provider?.label ?? 'agent'} · no price` }), _jsxs("span", { className: "vf-monitor-spend-state", "data-tone": row.status.tone, children: [glyph ? _jsx(Glyph, { glyph: glyph }) : null, row.status.text] })] }))] }, row.id));
620
+ };
621
+ const empty = rows.length === 0 && unpricedRows.length === 0;
622
+ // The view's own properties (L18): its geometry from the stage (the chrome it clears on the left and, M58, above),
623
+ // the list's width, and the two palette colours its sheet draws with, the focus ring's and the dark ground's.
624
+ const rootStyle = {
625
+ '--mv-spend-inset-left': `${stage.insets.left}px`,
626
+ '--mv-spend-inset-top': `${stage.insets.top}px`,
627
+ '--mv-spend-list': `${g.listW}px`,
628
+ '--mv-spend-select': theme.tokens.swarm.blue,
629
+ '--mv-spend-deep': theme.tokens.stage,
630
+ };
631
+ return (_jsxs("div", { ref: rootRef, className: `vf-monitor-spend${g.compact ? ' is-compact' : ''}`, style: rootStyle, "data-motion": motion ? 'on' : 'off', tabIndex: 0, role: "group", "aria-label": "Spend: what each agent spent in the last ten minutes, a line each from $0, and each run's total in the list. Up and down move between agents, Return opens one, End lets go of a set moment.", onKeyDown: onKey, children: [_jsx("canvas", { ref: canvasRef, className: "vf-monitor-spend-canvas", "aria-hidden": "true" }), _jsx("div", { className: "vf-monitor-spend-hit", style: { left: g.x0 - 6, top: g.y0 - 14, width: g.x1 - g.x0 + 14, height: g.y1 - g.y0 + 22 }, onPointerDown: onHitDown, onPointerMove: onHitMove, onPointerUp: onHitUp, onPointerCancel: () => {
632
+ press.current = null;
633
+ }, onPointerLeave: onHitLeave }), _jsx("div", { className: "vf-monitor-spend-colcap", style: { left: g.x0, top: g.y0 + 8 }, "aria-hidden": "true", children: "Spent in the last 10 minutes" }), _jsx("div", { className: "vf-monitor-spend-y", "aria-hidden": "true", children: yTicks.map((value) => (_jsx("span", { style: { left: g.x1 + 12, top: yOf(value) - 7 }, children: axisMoney(value, target.step) }, value))) }), _jsxs("div", { className: "vf-monitor-spend-x", "aria-hidden": "true", children: [ticks.map((tick) => (_jsx("span", { style: { left: tick.x, top: g.axisY }, children: formatClock(tick.t) }, tick.t))), _jsx("span", { className: "vf-monitor-spend-chip", style: { left: xOf(tb), top: g.axisY - 2 }, children: formatClock(tb) }), tCross !== null ? (_jsx("span", { className: `vf-monitor-spend-chip is-moment${pinned !== null ? ' is-held' : ''}`, style: { left: xOf(tCross), top: g.axisY - 2 }, children: formatClock(tCross) })) : null] }), _jsxs("div", { className: `vf-monitor-spend-hero${g.compact || g.narrow ? ' is-compact' : ''}${g.narrow ? ' is-narrow' : ''}`, style: { left: g.x0 }, children: [_jsx("span", { className: "vf-monitor-spend-big", children: `~${money(spent)}${partial ? '+' : ''}` }), _jsxs("span", { className: "vf-monitor-spend-cap", children: [_jsx("b", { children: heroRate }), _jsx("i", { children: heroWhat })] })] }), pinned !== null ? (
634
+ // Now, with the key it answers to printed under its glyph (M177 ruling 4: the button is the key), its legend
635
+ // from the toolkit's one table, as the timeline and the bar print it (M181).
636
+ _jsxs("button", { type: "button", className: "vf-monitor-spend-back", style: { right: g.width - g.x1 + 4, top: g.y0 + 2 }, title: `Back to now (${NOW_KEY})`, "aria-label": "Back to now", "aria-keyshortcuts": NOW_KEY, onClick: release, children: [_jsxs("span", { className: "vf-monitor-spend-now-key", "aria-hidden": "true", children: [_jsx(NowMark, {}), _jsx("b", { className: "vf-monitor-spend-legend", children: keyLegend(NOW_KEY) })] }), _jsx("span", { children: "Now" })] })) : null, tag ? (_jsx("div", { className: "vf-monitor-spend-tag", style: { ...tag.style, background: tag.fill }, "aria-hidden": "true", children: tag.text })) : null, _jsxs("div", { ref: listRef, className: "vf-monitor-spend-list", onPointerEnter: () => setListHeld(order), onPointerLeave: () => {
637
+ setListHeld(null);
638
+ setHover(focus);
639
+ }, children: [_jsxs("div", { className: `vf-monitor-spend-head${g.compact ? ' is-slim' : ''}`, style: { transform: `translate(${g.lx0}px, ${g.ly0}px)`, width: g.listW }, children: [_jsx("span", { children: headA }), _jsx("span", { children: headB })] }), rows.map((row, index) => rowElement(row, index, false)), fit.more ? (_jsx("div", { className: "vf-monitor-spend-row is-one is-rest", style: {
640
+ transform: `translate(${g.lx0}px, ${listTop + fit.fits * g.rowH}px)`,
641
+ width: g.listW,
642
+ height: g.rowH - 2,
643
+ }, children: _jsxs("span", { className: "vf-monitor-spend-r1", children: [_jsx("b", { className: "vf-monitor-spend-name", children: moreWords(fit) }), _jsx("span", { className: "vf-monitor-spend-v", "data-tone": fit.waitingUnshown > 0 ? 'attention' : undefined, children: fit.waitingUnshown > 0 ? `${fit.waitingUnshown} more waiting` : '' })] }) })) : null, unpricedRows.map((row, index) => rowElement(row, index, true))] }), empty ? (_jsxs("div", { className: "vf-monitor-spend-empty", children: [_jsx("span", { children: "NO ACTIVE AGENTS" }), _jsx("small", { children: "Launch an agent from a terminal pane." })] })) : null] }));
644
+ }
645
+ //# sourceMappingURL=SpendView.js.map