@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,21 @@
1
+ // The two questions a host's chrome asks of the rows, kept beside the view
2
+ // contract so every host answers them the same way. Assembling the rows from
3
+ // a host's own records is the host's business (each has its own sources);
4
+ // these read only the rows.
5
+ /** Agent-backed only: the status shortcuts navigate agents, not bare terminals. */
6
+ export function nextMonitorAgentForStatus(agents, status, currentSessionId) {
7
+ const matching = agents.filter((agent) => agent.agent && agent.status === status);
8
+ if (matching.length === 0)
9
+ return undefined;
10
+ const currentIndex = matching.findIndex((agent) => agent.session?.id === currentSessionId);
11
+ return matching[(currentIndex + 1) % matching.length];
12
+ }
13
+ export function monitorAgentCounts(agents) {
14
+ const counts = { idle: 0, working: 0, blocked: 0 };
15
+ for (const agent of agents) {
16
+ if (agent.agent)
17
+ counts[agent.status] += 1;
18
+ }
19
+ return counts;
20
+ }
21
+ //# sourceMappingURL=agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/monitor/agents.ts"],"names":[],"mappings":"AAGA,2EAA2E;AAC3E,6EAA6E;AAC7E,0EAA0E;AAC1E,4BAA4B;AAE5B,mFAAmF;AACnF,MAAM,UAAU,yBAAyB,CACvC,MAA+B,EAC/B,MAAyB,EACzB,gBAAoC;IAEpC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;IAClF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,YAAY,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,gBAAgB,CAAC,CAAC;IAC3F,OAAO,QAAQ,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAA+B;IAChE,MAAM,MAAM,GAAsC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtF,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,KAAK;YAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Keep small positive estimates visibly distinct from a known zero. */
2
+ export declare function formatUsd(value: number | undefined): string;
3
+ //# sourceMappingURL=cost-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cost-format.d.ts","sourceRoot":"","sources":["../../src/monitor/cost-format.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAO3D"}
@@ -0,0 +1,12 @@
1
+ /** Keep small positive estimates visibly distinct from a known zero. */
2
+ export function formatUsd(value) {
3
+ if (value === undefined)
4
+ return '—';
5
+ if (value > 0 && value < 0.001)
6
+ return '<$0.001';
7
+ return `$${value.toLocaleString('en-US', {
8
+ minimumFractionDigits: value > 0 && value < 0.01 ? 3 : 2,
9
+ maximumFractionDigits: value > 0 && value < 0.01 ? 3 : 2,
10
+ })}`;
11
+ }
12
+ //# sourceMappingURL=cost-format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cost-format.js","sourceRoot":"","sources":["../../src/monitor/cost-format.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,UAAU,SAAS,CAAC,KAAyB;IACjD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,GAAG,CAAC;IACpC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,KAAK;QAAE,OAAO,SAAS,CAAC;IACjD,OAAO,IAAI,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE;QACvC,qBAAqB,EAAE,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,qBAAqB,EAAE,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACzD,CAAC,EAAE,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Return only the final path component used by circles and pane badges. */
2
+ export declare function folderName(path: string | null | undefined, fallback: string): string;
3
+ //# sourceMappingURL=folder-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-name.d.ts","sourceRoot":"","sources":["../../src/monitor/folder-name.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGpF"}
@@ -0,0 +1,6 @@
1
+ /** Return only the final path component used by circles and pane badges. */
2
+ export function folderName(path, fallback) {
3
+ const normalized = path?.trim().replace(/[\\/]+$/, '') ?? '';
4
+ return normalized.split(/[\\/]/).pop() || fallback;
5
+ }
6
+ //# sourceMappingURL=folder-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-name.js","sourceRoot":"","sources":["../../src/monitor/folder-name.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,UAAU,UAAU,CAAC,IAA+B,EAAE,QAAgB;IAC1E,MAAM,UAAU,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IAC7D,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,QAAQ,CAAC;AACrD,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { type RefObject } from 'react';
2
+ import type { AgentVisualStatus } from './agent-status.js';
3
+ import type { ProjectTint } from '../colour/project-tint.js';
4
+ export interface MonitorPalette {
5
+ /** §02: the theme's lightness and chroma for every project tint (`--tint-l`, `--tint-c`). */
6
+ tint: ProjectTint;
7
+ /** The ramp a session with no project wears: a colour that is not a colour. */
8
+ neutral: string;
9
+ /** §2.5 + §2.4, as CSS colors. */
10
+ status: Readonly<Record<AgentVisualStatus, string>>;
11
+ /** The same three, as `"r, g, b"` for canvas `rgba()` composition. */
12
+ statusRgb: Readonly<Record<AgentVisualStatus, string>>;
13
+ /** The control-room stage's own ground, for a canvas that must clear itself. */
14
+ stage: string;
15
+ /** §2.4's ramp on a dark surface: primary, secondary, tertiary. */
16
+ text: {
17
+ primary: string;
18
+ secondary: string;
19
+ tertiary: string;
20
+ };
21
+ /** The swarm's bodies, resolved from the theme-scoped Godview instrument
22
+ * palette (§2.7). The swarm paints into a WebGPU canvas, which can inherit
23
+ * no custom property at all. */
24
+ swarm: SwarmPalette;
25
+ /** Canvas-only colors from the Chopsticks rain view. DOM views consume the
26
+ * scoped Godview CSS palette directly; canvas needs these resolved values. */
27
+ rain: {
28
+ stage: string;
29
+ activeHead: string;
30
+ hoverTailRgb: string;
31
+ status: Readonly<Record<AgentVisualStatus, {
32
+ head: string;
33
+ tailRgb: string;
34
+ speed?: number;
35
+ }>>;
36
+ /** The words of the rain's tooltip by status, and a focused control's ring (M46): its DOM's colours, passed
37
+ * like the canvas's so the view reads no host variable. */
38
+ ink: Readonly<Record<AgentVisualStatus, string>>;
39
+ focus: string;
40
+ };
41
+ /** What the timeline's canvases need beyond the swarm's colours, resolved
42
+ * from the same theme-scoped instrument palette (§2.7): the stage's own ground
43
+ * (its labels are haloed in it), the secondary ink, and the hairline. */
44
+ timeline: TimelinePalette;
45
+ }
46
+ export interface TimelinePalette {
47
+ ground: string;
48
+ muted: string;
49
+ border: string;
50
+ }
51
+ export interface SwarmPalette {
52
+ /** Every agent body's surface. One value, because no state inverts the theme
53
+ * (2026-09-18): the swarm reads the instrument's resting body colour and lets
54
+ * marks, light and size say what a body is doing. */
55
+ surface: string;
56
+ /** The one ink. Importance is its WEIGHT, never a different grey — see
57
+ * `weight.ts` for the ladder. */
58
+ ink: string;
59
+ /** The field's faint 24px grid. */
60
+ gridLine: string;
61
+ /** §2.5's orange: a body that waits on the user. */
62
+ orange: string;
63
+ /** The branch dot's green. */
64
+ green: string;
65
+ /** §2.5's select blue: a reply that arrived unseen. */
66
+ blue: string;
67
+ }
68
+ /** `#rrggbb` (or `#rgb`) as the `"r, g, b"` channels a canvas `rgba()` wants. */
69
+ export declare function hexToRgb255(hex: string): string;
70
+ /**
71
+ * Sample the live tokens.
72
+ *
73
+ * Fallbacks are BLACK-ish rather than plausible colors on purpose: an absent
74
+ * token means the stylesheet is not in the document, and a monitor that quietly
75
+ * paints a hardcoded green in that case would be hiding the fault it should be
76
+ * showing. The tint falls back to no lightness for the same reason: every
77
+ * project black, obviously wrong, cheap to notice.
78
+ */
79
+ export declare function readMonitorPalette(root?: Element | null): MonitorPalette;
80
+ /**
81
+ * The palette, live.
82
+ *
83
+ * Re-sampled on a `data-theme` change, which is how this window stamps a theme.
84
+ * The project tint has a lightness per theme, so every bubble's colour moves
85
+ * with the switch; §2.5's states are theme-invariant today, and the observer
86
+ * is what lets them gain a dark variant without anyone remembering it exists.
87
+ *
88
+ * A page with more than one Godview root (a catalog showing the bodies in
89
+ * their own theme beside the stage in another) passes the ref of the root
90
+ * its view sits in: the theme-scoped tokens are then read from, and watched
91
+ * on, that root rather than the document's first.
92
+ */
93
+ export declare function useMonitorPalette(root?: RefObject<Element | null>): MonitorPalette;
94
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/monitor/palette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAsB7D,MAAM,WAAW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AAM,CAAC;IACZ,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;CACd;AA+CD,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,cAAc,CAqDxE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,cAAc,CA2BlF"}
@@ -0,0 +1,157 @@
1
+ import { useEffect, useState } from 'react';
2
+ /** DESIGN.md §2.4 — text is surface color + opacity, never a fixed gray. The
3
+ * canvas views commit to dark in both themes, so the surface color here is
4
+ * white and these are the ramp, not invented values. */
5
+ const TEXT_PRIMARY = 'rgba(255,255,255,1)';
6
+ const TEXT_SECONDARY = 'rgba(255,255,255,0.7)';
7
+ const TEXT_TERTIARY = 'rgba(255,255,255,0.4)';
8
+ function readToken(name, fallback) {
9
+ if (typeof document === 'undefined')
10
+ return fallback;
11
+ const value = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
12
+ return value === '' ? fallback : value;
13
+ }
14
+ /** The Godview root carries the theme class, so the §2.7 aliases (`--idle-bg`
15
+ * and friends) resolve only there: the root a reader names, else the
16
+ * document's first. Without a mounted root the document root is read, which
17
+ * yields the fallbacks and therefore a visibly wrong swarm. */
18
+ function scopedRoot(root) {
19
+ return root ?? document.querySelector('.vf-godview') ?? document.documentElement;
20
+ }
21
+ function readScopedToken(name, fallback, root) {
22
+ if (typeof document === 'undefined')
23
+ return fallback;
24
+ const value = getComputedStyle(scopedRoot(root)).getPropertyValue(name).trim();
25
+ return value === '' ? fallback : value;
26
+ }
27
+ function readScopedNumber(name, fallback, root) {
28
+ const value = Number.parseFloat(readScopedToken(name, '', root));
29
+ return Number.isFinite(value) ? value : fallback;
30
+ }
31
+ function readSwarmPalette(root) {
32
+ return {
33
+ // The instrument's resting body colour, which every body now wears; the
34
+ // inverted working and blocked fills are no longer read.
35
+ surface: readScopedToken('--idle-bg', '#000000', root),
36
+ ink: readScopedToken('--text-main', '#000000', root),
37
+ gridLine: readScopedToken('--grid-line', 'rgba(0, 0, 0, 0)', root),
38
+ orange: readToken('--vf-orange', '#000000'),
39
+ green: readToken('--vf-godview-rain-green', '#000000'),
40
+ blue: readToken('--vf-select', '#000000'),
41
+ };
42
+ }
43
+ /** `#rrggbb` (or `#rgb`) as the `"r, g, b"` channels a canvas `rgba()` wants. */
44
+ export function hexToRgb255(hex) {
45
+ const raw = hex.trim().replace(/^#/, '');
46
+ const expanded = raw.length === 3 ? raw.replace(/./g, (char) => char + char) : raw;
47
+ const value = Number.parseInt(expanded.slice(0, 6), 16);
48
+ if (!Number.isFinite(value) || expanded.length < 6)
49
+ return '0, 0, 0';
50
+ return `${(value >> 16) & 255}, ${(value >> 8) & 255}, ${value & 255}`;
51
+ }
52
+ /**
53
+ * Sample the live tokens.
54
+ *
55
+ * Fallbacks are BLACK-ish rather than plausible colors on purpose: an absent
56
+ * token means the stylesheet is not in the document, and a monitor that quietly
57
+ * paints a hardcoded green in that case would be hiding the fault it should be
58
+ * showing. The tint falls back to no lightness for the same reason: every
59
+ * project black, obviously wrong, cheap to notice.
60
+ */
61
+ export function readMonitorPalette(root) {
62
+ const stage = readToken('--vf-card-deep', '#000000');
63
+ const status = {
64
+ working: readToken('--vf-green', '#000000'),
65
+ blocked: readToken('--vf-orange', '#000000'),
66
+ idle: TEXT_TERTIARY,
67
+ };
68
+ return {
69
+ tint: { l: readScopedNumber('--tint-l', 0, root), c: readScopedNumber('--tint-c', 0, root) },
70
+ neutral: readScopedToken('--text-faint', '#000000', root),
71
+ status,
72
+ statusRgb: {
73
+ working: hexToRgb255(status.working),
74
+ blocked: hexToRgb255(status.blocked),
75
+ // The ramp is already an rgba; its channels are white by construction.
76
+ idle: '255, 255, 255',
77
+ },
78
+ stage,
79
+ text: { primary: TEXT_PRIMARY, secondary: TEXT_SECONDARY, tertiary: TEXT_TERTIARY },
80
+ swarm: readSwarmPalette(root),
81
+ timeline: {
82
+ ground: readScopedToken('--monitor-bg', '#000000', root),
83
+ muted: readScopedToken('--text-muted', '#000000', root),
84
+ border: readScopedToken('--panel-border', '#000000', root),
85
+ },
86
+ rain: {
87
+ stage: readToken('--vf-card-deep', '#000000'),
88
+ activeHead: readToken('--vf-godview-rain-working-head', '#ffffff'),
89
+ hoverTailRgb: hexToRgb255(readToken('--vf-godview-rain-hover-tail', '#000000')),
90
+ status: {
91
+ working: {
92
+ head: readToken('--vf-godview-rain-working-head', '#ffffff'),
93
+ tailRgb: hexToRgb255(readToken('--vf-godview-rain-working-tail', '#000000')),
94
+ },
95
+ blocked: {
96
+ head: readToken('--vf-godview-rain-waiting-head', '#ffffff'),
97
+ tailRgb: hexToRgb255(readToken('--vf-godview-rain-waiting-tail', '#000000')),
98
+ speed: 0.02,
99
+ },
100
+ idle: {
101
+ head: readToken('--vf-godview-rain-idle-head', '#ffffff'),
102
+ tailRgb: hexToRgb255(readToken('--vf-godview-rain-idle-tail', '#000000')),
103
+ speed: 0.1,
104
+ },
105
+ },
106
+ ink: {
107
+ working: readToken('--vf-godview-rain-green', '#000000'),
108
+ blocked: readToken('--vf-godview-rain-waiting', '#000000'),
109
+ idle: readToken('--vf-godview-rain-idle', '#000000'),
110
+ },
111
+ focus: readToken('--vf-godview-rain-green-focus', '#000000'),
112
+ },
113
+ };
114
+ }
115
+ /**
116
+ * The palette, live.
117
+ *
118
+ * Re-sampled on a `data-theme` change, which is how this window stamps a theme.
119
+ * The project tint has a lightness per theme, so every bubble's colour moves
120
+ * with the switch; §2.5's states are theme-invariant today, and the observer
121
+ * is what lets them gain a dark variant without anyone remembering it exists.
122
+ *
123
+ * A page with more than one Godview root (a catalog showing the bodies in
124
+ * their own theme beside the stage in another) passes the ref of the root
125
+ * its view sits in: the theme-scoped tokens are then read from, and watched
126
+ * on, that root rather than the document's first.
127
+ */
128
+ export function useMonitorPalette(root) {
129
+ const [palette, setPalette] = useState(() => readMonitorPalette(root?.current));
130
+ useEffect(() => {
131
+ if (typeof MutationObserver === 'undefined')
132
+ return;
133
+ const scoped = root?.current ?? null;
134
+ // Diffed before it is published: the document root's class is watched, so
135
+ // any host class toggle on <html> would otherwise re-render every palette
136
+ // consumer and make the swarm re-resolve its theme and drop its colour cache.
137
+ const read = () => setPalette((current) => {
138
+ const next = readMonitorPalette(scoped);
139
+ return JSON.stringify(next) === JSON.stringify(current) ? current : next;
140
+ });
141
+ const observer = new MutationObserver(read);
142
+ observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme', 'class'] });
143
+ // The swarm's tokens are theme-scoped on the Godview root, whose class is
144
+ // what actually changes; watch it too so the swarm never reads a stale theme.
145
+ const watched = scoped ?? document.querySelector('.vf-godview');
146
+ if (watched)
147
+ observer.observe(watched, { attributes: true, attributeFilter: ['class'] });
148
+ // The first read happened during the initial state, which for the very first
149
+ // mount can precede the stylesheet (and precedes the ref). Re-read once on
150
+ // commit so a monitor that opened mid-load does not keep the fallbacks it
151
+ // was born with.
152
+ read();
153
+ return () => observer.disconnect();
154
+ }, [root]);
155
+ return palette;
156
+ }
157
+ //# sourceMappingURL=palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.js","sourceRoot":"","sources":["../../src/monitor/palette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAmF5D;;wDAEwD;AACxD,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAC3C,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAC/C,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,SAAS,SAAS,CAAC,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YACxC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3E,CAAC,CAAC,CAAC;QACL,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5C,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QAC3G,0EAA0E;QAC1E,8EAA8E;QAC9E,MAAM,OAAO,GAAG,MAAM,IAAI,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QAChE,IAAI,OAAO;YAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACzF,6EAA6E;QAC7E,2EAA2E;QAC3E,0EAA0E;QAC1E,iBAAiB;QACjB,IAAI,EAAE,CAAC;QACP,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IACX,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The tunable numbers a monitor view exposes to the tweak panel.
3
+ *
4
+ * Views declare their controls and read them back through their own typed
5
+ * normalizer; the shell owns defaults, clamping, and persistence. That split is
6
+ * what lets a view be added without touching the panel, and what keeps a key
7
+ * left behind by a deleted control from surviving into a later run.
8
+ */
9
+ export interface MonitorParameterDefinition {
10
+ key: string;
11
+ label: string;
12
+ min: number;
13
+ max: number;
14
+ step: number;
15
+ defaultValue: number;
16
+ }
17
+ export interface MonitorParameterGroup {
18
+ title: string;
19
+ controls: readonly MonitorParameterDefinition[];
20
+ }
21
+ /** A flat numeric bag; each view narrows it at its own boundary. */
22
+ export type MonitorParameters = Readonly<Record<string, number>>;
23
+ export declare function monitorParameterDefaults(groups: readonly MonitorParameterGroup[]): MonitorParameters;
24
+ /** Known keys clamped to their control's range; everything else is dropped. */
25
+ export declare function normalizeMonitorParameters(groups: readonly MonitorParameterGroup[], value: unknown): MonitorParameters;
26
+ /**
27
+ * `legacyStorageKey` is where every tunable lived before views owned their own
28
+ * controls. Reading it as a fallback means an existing installation keeps the
29
+ * look it was tuned to; normalization drops the keys that moved elsewhere.
30
+ */
31
+ export declare function loadMonitorParameters(storageKey: string, groups: readonly MonitorParameterGroup[], legacyStorageKey?: string): MonitorParameters;
32
+ export declare function saveMonitorParameters(storageKey: string, parameters: MonitorParameters): void;
33
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/monitor/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,0BAA0B,EAAE,CAAC;CACjD;AAED,oEAAoE;AACpE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEjE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,qBAAqB,EAAE,GAAG,iBAAiB,CAMpG;AAED,+EAA+E;AAC/E,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,qBAAqB,EAAE,EACxC,KAAK,EAAE,OAAO,GACb,iBAAiB,CAanB;AAYD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,SAAS,qBAAqB,EAAE,EACxC,gBAAgB,CAAC,EAAE,MAAM,GACxB,iBAAiB,CAInB;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAM7F"}
@@ -0,0 +1,53 @@
1
+ export function monitorParameterDefaults(groups) {
2
+ const defaults = {};
3
+ for (const group of groups) {
4
+ for (const control of group.controls)
5
+ defaults[control.key] = control.defaultValue;
6
+ }
7
+ return defaults;
8
+ }
9
+ /** Known keys clamped to their control's range; everything else is dropped. */
10
+ export function normalizeMonitorParameters(groups, value) {
11
+ const source = value && typeof value === 'object' ? value : {};
12
+ const normalized = {};
13
+ for (const group of groups) {
14
+ for (const control of group.controls) {
15
+ const candidate = source[control.key];
16
+ normalized[control.key] =
17
+ typeof candidate === 'number' && Number.isFinite(candidate)
18
+ ? Math.max(control.min, Math.min(control.max, candidate))
19
+ : control.defaultValue;
20
+ }
21
+ }
22
+ return normalized;
23
+ }
24
+ function readStoredJson(key) {
25
+ try {
26
+ const raw = localStorage.getItem(key);
27
+ return raw === null ? undefined : JSON.parse(raw);
28
+ }
29
+ catch {
30
+ // A disabled storage partition, or a value this build cannot parse.
31
+ return undefined;
32
+ }
33
+ }
34
+ /**
35
+ * `legacyStorageKey` is where every tunable lived before views owned their own
36
+ * controls. Reading it as a fallback means an existing installation keeps the
37
+ * look it was tuned to; normalization drops the keys that moved elsewhere.
38
+ */
39
+ export function loadMonitorParameters(storageKey, groups, legacyStorageKey) {
40
+ const stored = readStoredJson(storageKey);
41
+ if (stored !== undefined)
42
+ return normalizeMonitorParameters(groups, stored);
43
+ return normalizeMonitorParameters(groups, legacyStorageKey ? readStoredJson(legacyStorageKey) : undefined);
44
+ }
45
+ export function saveMonitorParameters(storageKey, parameters) {
46
+ try {
47
+ localStorage.setItem(storageKey, JSON.stringify(parameters));
48
+ }
49
+ catch {
50
+ // Keep the live controls usable when persistence is unavailable.
51
+ }
52
+ }
53
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/monitor/parameters.ts"],"names":[],"mappings":"AAyBA,MAAM,UAAU,wBAAwB,CAAC,MAAwC;IAC/E,MAAM,QAAQ,GAA2B,EAAE,CAAC;IAC5C,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ;YAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IACrF,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,0BAA0B,CACxC,MAAwC,EACxC,KAAc;IAEd,MAAM,MAAM,GAAG,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAE,KAAiC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5F,MAAM,UAAU,GAA2B,EAAE,CAAC;IAC9C,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACrC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACtC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;gBACrB,OAAO,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;oBACzD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;oBACzD,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;QAC7B,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IACjC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACtC,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IAAC,MAAM,CAAC;QACP,oEAAoE;QACpE,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CACnC,UAAkB,EAClB,MAAwC,EACxC,gBAAyB;IAEzB,MAAM,MAAM,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;IAC1C,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,0BAA0B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5E,OAAO,0BAA0B,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7G,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,UAAkB,EAAE,UAA6B;IACrF,IAAI,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAC/D,CAAC;IAAC,MAAM,CAAC;QACP,iEAAiE;IACnE,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { MonitorAgent } from './types.js';
2
+ /** A receded body's weight while the shown ones are on the stage. */
3
+ export declare const RECEDED_OPACITY = 0.22;
4
+ /** Every body receded: the host has a sentence to say over the stage, so the rest step further back. */
5
+ export declare const RECEDED_EMPTY_OPACITY = 0.07;
6
+ /** How long a body takes to recede, or to come back. */
7
+ export declare const RECEDE_MS = 240;
8
+ /** Every row is receded: nothing the host chose is on the stage. */
9
+ export declare function everyReceded(agents: Iterable<MonitorAgent>): boolean;
10
+ /** The weight a row is drawn at once it has settled: 1 when it is shown. */
11
+ export declare function recedeTarget(receded: boolean, every: boolean): number;
12
+ /** One frame's step toward the target: linear, the whole way back from 22 % in `RECEDE_MS`. */
13
+ export declare function approachRecede(current: number, target: number, deltaMs: number): number;
14
+ //# sourceMappingURL=recede.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recede.d.ts","sourceRoot":"","sources":["../../src/monitor/recede.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAQ/C,qEAAqE;AACrE,eAAO,MAAM,eAAe,OAAO,CAAC;AACpC,wGAAwG;AACxG,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,wDAAwD;AACxD,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,OAAO,CAOpE;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAGrE;AAED,+FAA+F;AAC/F,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAIvF"}
@@ -0,0 +1,35 @@
1
+ // RECEDING (the VibeField agents-settings record's T3, Godview's profile tabs):
2
+ // a host that shows one group of sessions keeps every other one on the stage —
3
+ // where it was, in the physics, in the list — drawn faint. These are the numbers
4
+ // every view recedes by, and the one step the canvas views animate with; the
5
+ // list's stylesheet repeats them.
6
+ /** A receded body's weight while the shown ones are on the stage. */
7
+ export const RECEDED_OPACITY = 0.22;
8
+ /** Every body receded: the host has a sentence to say over the stage, so the rest step further back. */
9
+ export const RECEDED_EMPTY_OPACITY = 0.07;
10
+ /** How long a body takes to recede, or to come back. */
11
+ export const RECEDE_MS = 240;
12
+ /** Every row is receded: nothing the host chose is on the stage. */
13
+ export function everyReceded(agents) {
14
+ let any = false;
15
+ for (const agent of agents) {
16
+ if (agent.receded !== true)
17
+ return false;
18
+ any = true;
19
+ }
20
+ return any;
21
+ }
22
+ /** The weight a row is drawn at once it has settled: 1 when it is shown. */
23
+ export function recedeTarget(receded, every) {
24
+ if (!receded)
25
+ return 1;
26
+ return every ? RECEDED_EMPTY_OPACITY : RECEDED_OPACITY;
27
+ }
28
+ /** One frame's step toward the target: linear, the whole way back from 22 % in `RECEDE_MS`. */
29
+ export function approachRecede(current, target, deltaMs) {
30
+ const rate = ((1 - RECEDED_OPACITY) * Math.max(0, deltaMs)) / RECEDE_MS;
31
+ if (Math.abs(target - current) <= rate)
32
+ return target;
33
+ return current + Math.sign(target - current) * rate;
34
+ }
35
+ //# sourceMappingURL=recede.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recede.js","sourceRoot":"","sources":["../../src/monitor/recede.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,+EAA+E;AAC/E,iFAAiF;AACjF,6EAA6E;AAC7E,kCAAkC;AAElC,qEAAqE;AACrE,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,wGAAwG;AACxG,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,wDAAwD;AACxD,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC;AAE7B,oEAAoE;AACpE,MAAM,UAAU,YAAY,CAAC,MAA8B;IACzD,IAAI,GAAG,GAAG,KAAK,CAAC;IAChB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;QACzC,GAAG,GAAG,IAAI,CAAC;IACb,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,KAAc;IAC3D,IAAI,CAAC,OAAO;QAAE,OAAO,CAAC,CAAC;IACvB,OAAO,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,eAAe,CAAC;AACzD,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,MAAc,EAAE,OAAe;IAC7E,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IACxE,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,IAAI,IAAI;QAAE,OAAO,MAAM,CAAC;IACtD,OAAO,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC;AACtD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { MonitorView } from '@vibefield/puppeteer-view-sdk';
2
+ import type { MonitorViewEntry } from './types.js';
3
+ /** A view's registry face, read from its manifest. */
4
+ export declare function monitorViewEntry(view: MonitorView): MonitorViewEntry;
5
+ /**
6
+ * Every way of looking at the running agents. A new view is one directory under
7
+ * `views/` and one entry here — the same shape `createBuiltinProviders` gives
8
+ * agent providers in packages/runtime. Every one is an SDK view (MV-4, MV-5, MV-6, MV-7).
9
+ */
10
+ export declare const MONITOR_VIEWS: readonly MonitorViewEntry[];
11
+ export declare const DEFAULT_MONITOR_VIEW_ID: string;
12
+ /** Falls back to the default, so a stored id from a removed view cannot strand the window. */
13
+ export declare function monitorViewFor(id: string | null | undefined): MonitorViewEntry;
14
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/monitor/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAMjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,sDAAsD;AACtD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,GAAG,gBAAgB,CAWpE;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,gBAAgB,EAMpD,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAA+B,CAAC;AAEpE,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,gBAAgB,CAE9E"}
@@ -0,0 +1,36 @@
1
+ import { listMonitorView } from '../views/list/index.js';
2
+ import { rainMonitorView } from '../views/rain/index.js';
3
+ import { spendMonitorView } from '../views/spend/index.js';
4
+ import { swarmMonitorView } from '../views/swarm/index.js';
5
+ import { timelineMonitorView } from '../views/timeline/index.js';
6
+ /** A view's registry face, read from its manifest. */
7
+ export function monitorViewEntry(view) {
8
+ const { id, label, mark, keys, parameters, parametersRevision } = view.manifest;
9
+ return {
10
+ id,
11
+ label,
12
+ mark,
13
+ ...(keys === undefined ? {} : { keys }),
14
+ parameterGroups: parameters,
15
+ ...(parametersRevision === undefined ? {} : { parametersRevision }),
16
+ view,
17
+ };
18
+ }
19
+ /**
20
+ * Every way of looking at the running agents. A new view is one directory under
21
+ * `views/` and one entry here — the same shape `createBuiltinProviders` gives
22
+ * agent providers in packages/runtime. Every one is an SDK view (MV-4, MV-5, MV-6, MV-7).
23
+ */
24
+ export const MONITOR_VIEWS = [
25
+ monitorViewEntry(swarmMonitorView),
26
+ monitorViewEntry(listMonitorView),
27
+ monitorViewEntry(rainMonitorView),
28
+ monitorViewEntry(timelineMonitorView),
29
+ monitorViewEntry(spendMonitorView),
30
+ ];
31
+ export const DEFAULT_MONITOR_VIEW_ID = swarmMonitorView.manifest.id;
32
+ /** Falls back to the default, so a stored id from a removed view cannot strand the window. */
33
+ export function monitorViewFor(id) {
34
+ return MONITOR_VIEWS.find((view) => view.id === id) ?? MONITOR_VIEWS[0];
35
+ }
36
+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1D,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,aAAa,CAAC,CAAC,CAAE,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { MonitorRemoteFacet } from './types.js';
2
+ /**
3
+ * How a row may say who can type on a peer's session (ported from VibeField's
4
+ * `monitor/remote-write.ts` — its GT-D7 / GT-D17 rulings and its review's 2b).
5
+ *
6
+ * What a mesh advertises is one boolean PER HOST, and the per-viewer answer
7
+ * is decided at ATTACH, against the capability the viewer presents. So the
8
+ * only honest pre-attach sentence is a sentence about the host — and it is
9
+ * said in BOTH directions on purpose: marking only a refusing host made
10
+ * silence mean "you can type", which is the claim a row cannot make. The
11
+ * per-viewer truth arrives one click later, from the attach itself.
12
+ */
13
+ export declare function remoteWriteLabel(remote: Pick<MonitorRemoteFacet, 'hostWritable'>): string;
14
+ /** The same fact at length, for a hover that has room for it. */
15
+ export declare function remoteWriteTitle(remote: Pick<MonitorRemoteFacet, 'hostWritable'>): string;
16
+ //# sourceMappingURL=remote-write.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-write.d.ts","sourceRoot":"","sources":["../../src/monitor/remote-write.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,cAAc,CAAC,GAAG,MAAM,CAEzF;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,cAAc,CAAC,GAAG,MAAM,CAIzF"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * How a row may say who can type on a peer's session (ported from VibeField's
3
+ * `monitor/remote-write.ts` — its GT-D7 / GT-D17 rulings and its review's 2b).
4
+ *
5
+ * What a mesh advertises is one boolean PER HOST, and the per-viewer answer
6
+ * is decided at ATTACH, against the capability the viewer presents. So the
7
+ * only honest pre-attach sentence is a sentence about the host — and it is
8
+ * said in BOTH directions on purpose: marking only a refusing host made
9
+ * silence mean "you can type", which is the claim a row cannot make. The
10
+ * per-viewer truth arrives one click later, from the attach itself.
11
+ */
12
+ export function remoteWriteLabel(remote) {
13
+ return remote.hostWritable ? 'writable host' : 'read-only host';
14
+ }
15
+ /** The same fact at length, for a hover that has room for it. */
16
+ export function remoteWriteTitle(remote) {
17
+ return remote.hostWritable
18
+ ? 'this host allows writes — whether yours arrive is decided when you attach'
19
+ : 'this host shares read-only — no viewer may type here';
20
+ }
21
+ //# sourceMappingURL=remote-write.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-write.js","sourceRoot":"","sources":["../../src/monitor/remote-write.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAgD;IAC/E,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC;AAClE,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,gBAAgB,CAAC,MAAgD;IAC/E,OAAO,MAAM,CAAC,YAAY;QACxB,CAAC,CAAC,2EAA2E;QAC7E,CAAC,CAAC,sDAAsD,CAAC;AAC7D,CAAC"}