@nimblesite/lsp-profiler-ui 0.0.0-stage → 0.0.1

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 (352) hide show
  1. package/LICENSE +21 -0
  2. package/out/src/bind-host.d.ts +3 -0
  3. package/out/src/bind-host.js +52 -0
  4. package/out/src/bind-host.js.map +1 -0
  5. package/out/src/context-keys.d.ts +4 -0
  6. package/out/src/context-keys.js +54 -0
  7. package/out/src/context-keys.js.map +1 -0
  8. package/out/src/dap-evaluate.d.ts +84 -0
  9. package/out/src/dap-evaluate.js +442 -0
  10. package/out/src/dap-evaluate.js.map +1 -0
  11. package/out/src/dap-output.d.ts +50 -0
  12. package/out/src/dap-output.js +177 -0
  13. package/out/src/dap-output.js.map +1 -0
  14. package/out/src/debug/adapter-resolution.d.ts +56 -0
  15. package/out/src/debug/adapter-resolution.js +112 -0
  16. package/out/src/debug/adapter-resolution.js.map +1 -0
  17. package/out/src/debug/dap-messages.d.ts +18 -0
  18. package/out/src/debug/dap-messages.js +71 -0
  19. package/out/src/debug/dap-messages.js.map +1 -0
  20. package/out/src/debug/index.d.ts +7 -0
  21. package/out/src/debug/index.js +27 -0
  22. package/out/src/debug/index.js.map +1 -0
  23. package/out/src/debug/launch-config.d.ts +42 -0
  24. package/out/src/debug/launch-config.js +73 -0
  25. package/out/src/debug/launch-config.js.map +1 -0
  26. package/out/src/debug/launch-lifecycle.d.ts +29 -0
  27. package/out/src/debug/launch-lifecycle.js +40 -0
  28. package/out/src/debug/launch-lifecycle.js.map +1 -0
  29. package/out/src/debug/poll.d.ts +25 -0
  30. package/out/src/debug/poll.js +70 -0
  31. package/out/src/debug/poll.js.map +1 -0
  32. package/out/src/debug/profiling.d.ts +34 -0
  33. package/out/src/debug/profiling.js +81 -0
  34. package/out/src/debug/profiling.js.map +1 -0
  35. package/out/src/debug/testing/assertions.d.ts +27 -0
  36. package/out/src/debug/testing/assertions.js +111 -0
  37. package/out/src/debug/testing/assertions.js.map +1 -0
  38. package/out/src/debug/testing/dap-client.d.ts +86 -0
  39. package/out/src/debug/testing/dap-client.js +204 -0
  40. package/out/src/debug/testing/dap-client.js.map +1 -0
  41. package/out/src/debug/testing/index.d.ts +7 -0
  42. package/out/src/debug/testing/index.js +31 -0
  43. package/out/src/debug/testing/index.js.map +1 -0
  44. package/out/src/debug/testing/vscode-harness.d.ts +44 -0
  45. package/out/src/debug/testing/vscode-harness.js +81 -0
  46. package/out/src/debug/testing/vscode-harness.js.map +1 -0
  47. package/out/src/debug/ui-stubs.d.ts +26 -0
  48. package/out/src/debug/ui-stubs.js +88 -0
  49. package/out/src/debug/ui-stubs.js.map +1 -0
  50. package/out/src/debug-link-setup.d.ts +4 -0
  51. package/out/src/debug-link-setup.js +19 -0
  52. package/out/src/debug-link-setup.js.map +1 -0
  53. package/out/src/debug-link-view.d.ts +4 -0
  54. package/out/src/debug-link-view.js +49 -0
  55. package/out/src/debug-link-view.js.map +1 -0
  56. package/out/src/debug-link.d.ts +6 -0
  57. package/out/src/debug-link.js +95 -0
  58. package/out/src/debug-link.js.map +1 -0
  59. package/out/src/debug-selection.d.ts +14 -0
  60. package/out/src/debug-selection.js +33 -0
  61. package/out/src/debug-selection.js.map +1 -0
  62. package/out/src/debuggee-pause.d.ts +11 -0
  63. package/out/src/debuggee-pause.js +109 -0
  64. package/out/src/debuggee-pause.js.map +1 -0
  65. package/out/src/editor-path-key.d.ts +52 -0
  66. package/out/src/editor-path-key.js +105 -0
  67. package/out/src/editor-path-key.js.map +1 -0
  68. package/out/src/failure.d.ts +5 -0
  69. package/out/src/failure.js +53 -0
  70. package/out/src/failure.js.map +1 -0
  71. package/out/src/file-log-sink.d.ts +20 -0
  72. package/out/src/file-log-sink.js +74 -0
  73. package/out/src/file-log-sink.js.map +1 -0
  74. package/out/src/flame-html.d.ts +8 -0
  75. package/out/src/flame-html.js +104 -0
  76. package/out/src/flame-html.js.map +1 -0
  77. package/out/src/flame-model.d.ts +93 -0
  78. package/out/src/flame-model.js +242 -0
  79. package/out/src/flame-model.js.map +1 -0
  80. package/out/src/flame-script-helpers.d.ts +26 -0
  81. package/out/src/flame-script-helpers.js +71 -0
  82. package/out/src/flame-script-helpers.js.map +1 -0
  83. package/out/src/flame-script.d.ts +1 -0
  84. package/out/src/flame-script.js +332 -0
  85. package/out/src/flame-script.js.map +1 -0
  86. package/out/src/flame-time-order.d.ts +14 -0
  87. package/out/src/flame-time-order.js +112 -0
  88. package/out/src/flame-time-order.js.map +1 -0
  89. package/out/src/flamegraph-artifact.d.ts +9 -0
  90. package/out/src/flamegraph-artifact.js +45 -0
  91. package/out/src/flamegraph-artifact.js.map +1 -0
  92. package/out/src/host.d.ts +31 -0
  93. package/out/src/host.js +6 -0
  94. package/out/src/host.js.map +1 -0
  95. package/out/src/ids.d.ts +27 -0
  96. package/out/src/ids.js +63 -0
  97. package/out/src/ids.js.map +1 -0
  98. package/out/src/index.d.ts +42 -0
  99. package/out/src/index.js +98 -0
  100. package/out/src/index.js.map +1 -0
  101. package/out/src/logger.d.ts +50 -0
  102. package/out/src/logger.js +86 -0
  103. package/out/src/logger.js.map +1 -0
  104. package/out/src/memory-autopilot.d.ts +64 -0
  105. package/out/src/memory-autopilot.js +306 -0
  106. package/out/src/memory-autopilot.js.map +1 -0
  107. package/out/src/memory-capture-ids.d.ts +17 -0
  108. package/out/src/memory-capture-ids.js +45 -0
  109. package/out/src/memory-capture-ids.js.map +1 -0
  110. package/out/src/memory-capture-ingest.d.ts +15 -0
  111. package/out/src/memory-capture-ingest.js +84 -0
  112. package/out/src/memory-capture-ingest.js.map +1 -0
  113. package/out/src/memory-capture-legs.d.ts +4 -0
  114. package/out/src/memory-capture-legs.js +55 -0
  115. package/out/src/memory-capture-legs.js.map +1 -0
  116. package/out/src/memory-capture-present.d.ts +32 -0
  117. package/out/src/memory-capture-present.js +71 -0
  118. package/out/src/memory-capture-present.js.map +1 -0
  119. package/out/src/memory-capture-roundtrip.d.ts +17 -0
  120. package/out/src/memory-capture-roundtrip.js +75 -0
  121. package/out/src/memory-capture-roundtrip.js.map +1 -0
  122. package/out/src/memory-capture-state.d.ts +23 -0
  123. package/out/src/memory-capture-state.js +89 -0
  124. package/out/src/memory-capture-state.js.map +1 -0
  125. package/out/src/memory-capture-types.d.ts +28 -0
  126. package/out/src/memory-capture-types.js +70 -0
  127. package/out/src/memory-capture-types.js.map +1 -0
  128. package/out/src/memory-capture.d.ts +24 -0
  129. package/out/src/memory-capture.js +51 -0
  130. package/out/src/memory-capture.js.map +1 -0
  131. package/out/src/memory-dashboard-html.d.ts +3 -0
  132. package/out/src/memory-dashboard-html.js +327 -0
  133. package/out/src/memory-dashboard-html.js.map +1 -0
  134. package/out/src/memory-dashboard-mapping.d.ts +34 -0
  135. package/out/src/memory-dashboard-mapping.js +135 -0
  136. package/out/src/memory-dashboard-mapping.js.map +1 -0
  137. package/out/src/memory-dashboard.d.ts +82 -0
  138. package/out/src/memory-dashboard.js +142 -0
  139. package/out/src/memory-dashboard.js.map +1 -0
  140. package/out/src/memory-decorations.d.ts +61 -0
  141. package/out/src/memory-decorations.js +247 -0
  142. package/out/src/memory-decorations.js.map +1 -0
  143. package/out/src/memory-finalize.d.ts +25 -0
  144. package/out/src/memory-finalize.js +207 -0
  145. package/out/src/memory-finalize.js.map +1 -0
  146. package/out/src/memory-guidance.d.ts +14 -0
  147. package/out/src/memory-guidance.js +36 -0
  148. package/out/src/memory-guidance.js.map +1 -0
  149. package/out/src/memory-inspect-commands.d.ts +20 -0
  150. package/out/src/memory-inspect-commands.js +114 -0
  151. package/out/src/memory-inspect-commands.js.map +1 -0
  152. package/out/src/memory-launch-direct.d.ts +12 -0
  153. package/out/src/memory-launch-direct.js +74 -0
  154. package/out/src/memory-launch-direct.js.map +1 -0
  155. package/out/src/memory-launch.d.ts +4 -0
  156. package/out/src/memory-launch.js +92 -0
  157. package/out/src/memory-launch.js.map +1 -0
  158. package/out/src/memory-leak-offer.d.ts +18 -0
  159. package/out/src/memory-leak-offer.js +51 -0
  160. package/out/src/memory-leak-offer.js.map +1 -0
  161. package/out/src/memory-profiler.d.ts +27 -0
  162. package/out/src/memory-profiler.js +71 -0
  163. package/out/src/memory-profiler.js.map +1 -0
  164. package/out/src/memory-ref-graph.d.ts +62 -0
  165. package/out/src/memory-ref-graph.js +248 -0
  166. package/out/src/memory-ref-graph.js.map +1 -0
  167. package/out/src/memory-ref-picker.d.ts +21 -0
  168. package/out/src/memory-ref-picker.js +103 -0
  169. package/out/src/memory-ref-picker.js.map +1 -0
  170. package/out/src/memory-registration.d.ts +4 -0
  171. package/out/src/memory-registration.js +63 -0
  172. package/out/src/memory-registration.js.map +1 -0
  173. package/out/src/memory-start-core.d.ts +8 -0
  174. package/out/src/memory-start-core.js +165 -0
  175. package/out/src/memory-start-core.js.map +1 -0
  176. package/out/src/memory-start-stop-commands.d.ts +10 -0
  177. package/out/src/memory-start-stop-commands.js +75 -0
  178. package/out/src/memory-start-stop-commands.js.map +1 -0
  179. package/out/src/memory-start.d.ts +6 -0
  180. package/out/src/memory-start.js +13 -0
  181. package/out/src/memory-start.js.map +1 -0
  182. package/out/src/memory-status.d.ts +24 -0
  183. package/out/src/memory-status.js +135 -0
  184. package/out/src/memory-status.js.map +1 -0
  185. package/out/src/palette-vscode.d.ts +2 -0
  186. package/out/src/palette-vscode.js +50 -0
  187. package/out/src/palette-vscode.js.map +1 -0
  188. package/out/src/palette.d.ts +70 -0
  189. package/out/src/palette.js +150 -0
  190. package/out/src/palette.js.map +1 -0
  191. package/out/src/process-bind-panel.d.ts +11 -0
  192. package/out/src/process-bind-panel.js +65 -0
  193. package/out/src/process-bind-panel.js.map +1 -0
  194. package/out/src/process-commands.d.ts +5 -0
  195. package/out/src/process-commands.js +112 -0
  196. package/out/src/process-commands.js.map +1 -0
  197. package/out/src/process-context-keys.d.ts +11 -0
  198. package/out/src/process-context-keys.js +48 -0
  199. package/out/src/process-context-keys.js.map +1 -0
  200. package/out/src/process-decoration.d.ts +18 -0
  201. package/out/src/process-decoration.js +76 -0
  202. package/out/src/process-decoration.js.map +1 -0
  203. package/out/src/process-explorer-rows.d.ts +59 -0
  204. package/out/src/process-explorer-rows.js +47 -0
  205. package/out/src/process-explorer-rows.js.map +1 -0
  206. package/out/src/process-explorer.d.ts +66 -0
  207. package/out/src/process-explorer.js +241 -0
  208. package/out/src/process-explorer.js.map +1 -0
  209. package/out/src/process-group-item.d.ts +8 -0
  210. package/out/src/process-group-item.js +55 -0
  211. package/out/src/process-group-item.js.map +1 -0
  212. package/out/src/process-launch-item.d.ts +12 -0
  213. package/out/src/process-launch-item.js +57 -0
  214. package/out/src/process-launch-item.js.map +1 -0
  215. package/out/src/process-launch.d.ts +47 -0
  216. package/out/src/process-launch.js +205 -0
  217. package/out/src/process-launch.js.map +1 -0
  218. package/out/src/process-message-item.d.ts +10 -0
  219. package/out/src/process-message-item.js +53 -0
  220. package/out/src/process-message-item.js.map +1 -0
  221. package/out/src/process-poll.d.ts +26 -0
  222. package/out/src/process-poll.js +125 -0
  223. package/out/src/process-poll.js.map +1 -0
  224. package/out/src/process-reactivity.d.ts +55 -0
  225. package/out/src/process-reactivity.js +188 -0
  226. package/out/src/process-reactivity.js.map +1 -0
  227. package/out/src/process-registration.d.ts +11 -0
  228. package/out/src/process-registration.js +55 -0
  229. package/out/src/process-registration.js.map +1 -0
  230. package/out/src/process-tree-item.d.ts +18 -0
  231. package/out/src/process-tree-item.js +219 -0
  232. package/out/src/process-tree-item.js.map +1 -0
  233. package/out/src/processes-state.d.ts +75 -0
  234. package/out/src/processes-state.js +76 -0
  235. package/out/src/processes-state.js.map +1 -0
  236. package/out/src/profile-on-launch.d.ts +4 -0
  237. package/out/src/profile-on-launch.js +16 -0
  238. package/out/src/profile-on-launch.js.map +1 -0
  239. package/out/src/profile-server.d.ts +24 -0
  240. package/out/src/profile-server.js +170 -0
  241. package/out/src/profile-server.js.map +1 -0
  242. package/out/src/profiler-attach.d.ts +19 -0
  243. package/out/src/profiler-attach.js +129 -0
  244. package/out/src/profiler-attach.js.map +1 -0
  245. package/out/src/profiler-commands.d.ts +8 -0
  246. package/out/src/profiler-commands.js +110 -0
  247. package/out/src/profiler-commands.js.map +1 -0
  248. package/out/src/profiler-decorations.d.ts +74 -0
  249. package/out/src/profiler-decorations.js +237 -0
  250. package/out/src/profiler-decorations.js.map +1 -0
  251. package/out/src/profiler-dispose.d.ts +6 -0
  252. package/out/src/profiler-dispose.js +20 -0
  253. package/out/src/profiler-dispose.js.map +1 -0
  254. package/out/src/profiler-flamegraph-html.d.ts +61 -0
  255. package/out/src/profiler-flamegraph-html.js +366 -0
  256. package/out/src/profiler-flamegraph-html.js.map +1 -0
  257. package/out/src/profiler-format.d.ts +10 -0
  258. package/out/src/profiler-format.js +28 -0
  259. package/out/src/profiler-format.js.map +1 -0
  260. package/out/src/profiler-launch-cooperative.d.ts +16 -0
  261. package/out/src/profiler-launch-cooperative.js +167 -0
  262. package/out/src/profiler-launch-cooperative.js.map +1 -0
  263. package/out/src/profiler-launch.d.ts +29 -0
  264. package/out/src/profiler-launch.js +123 -0
  265. package/out/src/profiler-launch.js.map +1 -0
  266. package/out/src/profiler-results.d.ts +22 -0
  267. package/out/src/profiler-results.js +104 -0
  268. package/out/src/profiler-results.js.map +1 -0
  269. package/out/src/profiler-session-core.d.ts +42 -0
  270. package/out/src/profiler-session-core.js +116 -0
  271. package/out/src/profiler-session-core.js.map +1 -0
  272. package/out/src/profiler-state.d.ts +87 -0
  273. package/out/src/profiler-state.js +83 -0
  274. package/out/src/profiler-state.js.map +1 -0
  275. package/out/src/profiler-status.d.ts +38 -0
  276. package/out/src/profiler-status.js +163 -0
  277. package/out/src/profiler-status.js.map +1 -0
  278. package/out/src/profiler-styles.d.ts +21 -0
  279. package/out/src/profiler-styles.js +160 -0
  280. package/out/src/profiler-styles.js.map +1 -0
  281. package/out/src/profiler-webview.d.ts +95 -0
  282. package/out/src/profiler-webview.js +243 -0
  283. package/out/src/profiler-webview.js.map +1 -0
  284. package/out/src/profiler.d.ts +23 -0
  285. package/out/src/profiler.js +113 -0
  286. package/out/src/profiler.js.map +1 -0
  287. package/out/src/progress-ops.d.ts +24 -0
  288. package/out/src/progress-ops.js +135 -0
  289. package/out/src/progress-ops.js.map +1 -0
  290. package/out/src/reactive-refresh.d.ts +24 -0
  291. package/out/src/reactive-refresh.js +33 -0
  292. package/out/src/reactive-refresh.js.map +1 -0
  293. package/out/src/sample-summary.d.ts +39 -0
  294. package/out/src/sample-summary.js +32 -0
  295. package/out/src/sample-summary.js.map +1 -0
  296. package/out/src/sampled-view.d.ts +15 -0
  297. package/out/src/sampled-view.js +56 -0
  298. package/out/src/sampled-view.js.map +1 -0
  299. package/out/src/server-command.d.ts +4 -0
  300. package/out/src/server-command.js +14 -0
  301. package/out/src/server-command.js.map +1 -0
  302. package/out/src/settings.d.ts +1 -0
  303. package/out/src/settings.js +22 -0
  304. package/out/src/settings.js.map +1 -0
  305. package/out/src/store.d.ts +34 -0
  306. package/out/src/store.js +64 -0
  307. package/out/src/store.js.map +1 -0
  308. package/out/src/testing/cpu-capture-assertions.d.ts +8 -0
  309. package/out/src/testing/cpu-capture-assertions.js +71 -0
  310. package/out/src/testing/cpu-capture-assertions.js.map +1 -0
  311. package/out/src/testing/cpu-capture-contract.d.ts +8 -0
  312. package/out/src/testing/cpu-capture-contract.js +123 -0
  313. package/out/src/testing/cpu-capture-contract.js.map +1 -0
  314. package/out/src/testing/webview-contract-helpers.d.ts +24 -0
  315. package/out/src/testing/webview-contract-helpers.js +125 -0
  316. package/out/src/testing/webview-contract-helpers.js.map +1 -0
  317. package/out/src/testing/webview-contract-leak.d.ts +2 -0
  318. package/out/src/testing/webview-contract-leak.js +80 -0
  319. package/out/src/testing/webview-contract-leak.js.map +1 -0
  320. package/out/src/testing/webview-contract-memory.d.ts +5 -0
  321. package/out/src/testing/webview-contract-memory.js +221 -0
  322. package/out/src/testing/webview-contract-memory.js.map +1 -0
  323. package/out/src/testing/webview-contract-palette.d.ts +6 -0
  324. package/out/src/testing/webview-contract-palette.js +121 -0
  325. package/out/src/testing/webview-contract-palette.js.map +1 -0
  326. package/out/src/testing/webview-contract-panel.d.ts +7 -0
  327. package/out/src/testing/webview-contract-panel.js +100 -0
  328. package/out/src/testing/webview-contract-panel.js.map +1 -0
  329. package/out/src/testing/webview-contract-results.d.ts +6 -0
  330. package/out/src/testing/webview-contract-results.js +136 -0
  331. package/out/src/testing/webview-contract-results.js.map +1 -0
  332. package/out/src/testing/webview-contract.d.ts +18 -0
  333. package/out/src/testing/webview-contract.js +23 -0
  334. package/out/src/testing/webview-contract.js.map +1 -0
  335. package/out/src/timeouts.d.ts +21 -0
  336. package/out/src/timeouts.js +30 -0
  337. package/out/src/timeouts.js.map +1 -0
  338. package/out/src/trace-actions.d.ts +33 -0
  339. package/out/src/trace-actions.js +135 -0
  340. package/out/src/trace-actions.js.map +1 -0
  341. package/out/src/unknown-shape.d.ts +58 -0
  342. package/out/src/unknown-shape.js +110 -0
  343. package/out/src/unknown-shape.js.map +1 -0
  344. package/out/src/wire-adapters.d.ts +18 -0
  345. package/out/src/wire-adapters.js +160 -0
  346. package/out/src/wire-adapters.js.map +1 -0
  347. package/out/src/wire-generated.d.ts +760 -0
  348. package/out/src/wire-generated.js +38 -0
  349. package/out/src/wire-generated.js.map +1 -0
  350. package/package.json +53 -4
  351. package/scripts/contributions.mjs +187 -0
  352. package/README.md +0 -3
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ // Implements [PROF-UI-HOST]. See docs/specs/LSP-PROFILER-SPEC.md
3
+ /**
4
+ * Runtime narrowing for values the extension does not own.
5
+ *
6
+ * DAP messages, LSP `experimental` capabilities, webview posts and
7
+ * `JSON.parse` results all arrive as `unknown`. Writing `payload as { id?:
8
+ * number }` at each read site *asserts* a shape the compiler then trusts
9
+ * forever — one protocol change and every downstream read is silently wrong
10
+ * with no error anywhere. These accessors check the shape at the moment of
11
+ * reading and return `undefined` when it does not hold, so a protocol drift
12
+ * surfaces as a missing value rather than as a lie the type system repeats.
13
+ *
14
+ * Read one field at a time. There is deliberately no `as SomeInterface`
15
+ * shortcut here — that is the very construct this module exists to replace.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.isRecord = isRecord;
19
+ exports.asRecord = asRecord;
20
+ exports.rawField = rawField;
21
+ exports.stringField = stringField;
22
+ exports.numberField = numberField;
23
+ exports.booleanField = booleanField;
24
+ exports.recordField = recordField;
25
+ exports.arrayField = arrayField;
26
+ exports.recordArrayField = recordArrayField;
27
+ exports.numberArrayField = numberArrayField;
28
+ exports.stringArrayField = stringArrayField;
29
+ exports.nested = nested;
30
+ /** Whether `value` is a non-null, non-array object with string keys. */
31
+ function isRecord(value) {
32
+ return typeof value === "object" && value !== null && !Array.isArray(value);
33
+ }
34
+ /**
35
+ * `value` as a keyed record, or an empty one when it is not an object.
36
+ *
37
+ * The empty fallback keeps callers free of null checks: every field read on it
38
+ * yields `undefined`, which is what an absent payload means anyway.
39
+ */
40
+ function asRecord(value) {
41
+ return isRecord(value) ? value : {};
42
+ }
43
+ /**
44
+ * The raw `key` field of `value`, still `unknown`.
45
+ *
46
+ * For fields handed straight to another `unknown`-taking function, where
47
+ * narrowing here would only be undone at the other end.
48
+ */
49
+ function rawField(value, key) {
50
+ return asRecord(value)[key];
51
+ }
52
+ /** The `key` field of `value` when it is a string, else `undefined`. */
53
+ function stringField(value, key) {
54
+ const field = asRecord(value)[key];
55
+ return typeof field === "string" ? field : undefined;
56
+ }
57
+ /** The `key` field of `value` when it is a finite number, else `undefined`. */
58
+ function numberField(value, key) {
59
+ const field = asRecord(value)[key];
60
+ return typeof field === "number" && Number.isFinite(field) ? field : undefined;
61
+ }
62
+ /** The `key` field of `value` when it is a boolean, else `undefined`. */
63
+ function booleanField(value, key) {
64
+ const field = asRecord(value)[key];
65
+ return typeof field === "boolean" ? field : undefined;
66
+ }
67
+ /** The `key` field of `value` when it is itself a record, else `undefined`. */
68
+ function recordField(value, key) {
69
+ const field = asRecord(value)[key];
70
+ return isRecord(field) ? field : undefined;
71
+ }
72
+ /** The `key` field of `value` as an array of unknowns; `[]` when absent. */
73
+ function arrayField(value, key) {
74
+ const field = asRecord(value)[key];
75
+ return Array.isArray(field) ? field : [];
76
+ }
77
+ /**
78
+ * The `key` field of `value` as an array of records.
79
+ *
80
+ * Non-object elements are dropped rather than passed on as holes, so callers
81
+ * can read fields off every element without re-checking.
82
+ */
83
+ function recordArrayField(value, key) {
84
+ return arrayField(value, key).filter((item) => isRecord(item));
85
+ }
86
+ /** The `key` field of `value` as an array of finite numbers; `[]` when absent. */
87
+ function numberArrayField(value, key) {
88
+ return arrayField(value, key).filter((item) => typeof item === "number" && Number.isFinite(item));
89
+ }
90
+ /** The `key` field of `value` as an array of strings; `[]` when absent. */
91
+ function stringArrayField(value, key) {
92
+ return arrayField(value, key).filter((item) => typeof item === "string");
93
+ }
94
+ /**
95
+ * Walk a chain of record keys, stopping at the first link that is not a record.
96
+ *
97
+ * `nested(message, "body", "source")` replaces `(message as { body?: { source?:
98
+ * X } }).body?.source` without asserting either level.
99
+ */
100
+ function nested(value, ...keys) {
101
+ let current = asRecord(value);
102
+ for (const key of keys) {
103
+ if (current === undefined) {
104
+ return undefined;
105
+ }
106
+ current = recordField(current, key);
107
+ }
108
+ return current;
109
+ }
110
+ //# sourceMappingURL=unknown-shape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-shape.js","sourceRoot":"","sources":["../../src/unknown-shape.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE;;;;;;;;;;;;;GAaG;;;;;;;;;;;;;;AAEH,wEAAwE;AACxE,kBAAyB,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;GAKG;AACH,kBAAyB,KAAc;IACrC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CA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CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3C,CAAC;AAED;;;;;GAKG;AACH,0BACE,KAAc,EACd,GAAW;IAEX,OAAO,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,kFAAkF;AAClF,0BAAiC,KAAc,EAAE,GAAW;IAC1D,OAAO,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,CAClC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,2EAA2E;AAC3E,0BAAiC,KAAc,EAAE,GAAW;IAC1D,OAAO,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,CAClC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CACnD,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,gBACE,KAAc,EACd,GAAG,IAAc;IAEjB,IAAI,OAAO,GAAwC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAAC,OAAO,SAAS,CAAC;QAAC,CAAC;QAChD,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ProfileResult } from "./profiler-decorations";
2
+ import type { ProcessInfo } from "./process-explorer-rows";
3
+ import type { MemoryIngestResult } from "./memory-dashboard-mapping";
4
+ import type { MemoryResult, ProfileReport, RefGraph, StartProfileResult, ProcessInfo as WireProcess } from "./wire-generated";
5
+ /** A started CPU session as the screens track it. */
6
+ export interface StartedSession {
7
+ readonly sessionId: string;
8
+ readonly pid: number;
9
+ readonly runtimeVersion: string;
10
+ readonly runtime: string;
11
+ }
12
+ export declare function toStartedSession(result: StartProfileResult): StartedSession;
13
+ export declare function toProfileResult(report: ProfileReport): ProfileResult;
14
+ export declare function toUiProcess(process: WireProcess): ProcessInfo;
15
+ /** The retention graph as the webview draws it: numeric node IDs, `repr` labels. */
16
+ export declare function toRefGraph(graph: RefGraph): Record<string, unknown>;
17
+ /** A completed memory step as the dashboard, decorations and autopilot consume it. */
18
+ export declare function toMemoryIngestResult(result: MemoryResult): MemoryIngestResult;
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ // Implements [PROF-UI-HOST] wire adaptation. The library renders from its own
3
+ // view models; this is the single place that reads the protocol's wire types
4
+ // ([PROF-WIRE]) so every screen stays ignorant of field spelling, and a wire
5
+ // change touches one file.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.toStartedSession = toStartedSession;
8
+ exports.toProfileResult = toProfileResult;
9
+ exports.toUiProcess = toUiProcess;
10
+ exports.toRefGraph = toRefGraph;
11
+ exports.toMemoryIngestResult = toMemoryIngestResult;
12
+ function toStartedSession(result) {
13
+ return {
14
+ sessionId: result.session_id,
15
+ pid: result.pid,
16
+ runtimeVersion: result.runtime_version,
17
+ runtime: result.runtime,
18
+ };
19
+ }
20
+ function toProfileResult(report) {
21
+ const { artifacts } = report;
22
+ return {
23
+ sessionId: report.session_id,
24
+ duration: report.duration_secs,
25
+ totalSamples: report.total_samples,
26
+ outputFile: artifacts.speedscope_path ?? "",
27
+ ...(artifacts.cpuprofile_path === undefined ? {} : { cpuProfilePath: artifacts.cpuprofile_path }),
28
+ ...(artifacts.flamegraph_path === undefined ? {} : { flamegraphPath: artifacts.flamegraph_path }),
29
+ ...(artifacts.export_error === undefined ? {} : { exportError: artifacts.export_error }),
30
+ hotFunctions: report.hot_functions.map((fn) => ({
31
+ name: fn.name, ...located(fn), samples: fn.samples, percentage: fn.percentage, selfPercentage: fn.self_percentage,
32
+ })),
33
+ hotLines: report.hot_lines.map((line) => ({ file: line.file, line: line.line, samples: line.samples, percentage: line.percentage })),
34
+ };
35
+ }
36
+ function toUiProcess(process) {
37
+ return {
38
+ pid: process.pid, ppid: process.ppid ?? 0,
39
+ name: process.name, runtime: process.runtime,
40
+ interpreterPath: process.executable ?? null,
41
+ script: process.entry ?? null,
42
+ runtimeVersion: process.runtime_version ?? null,
43
+ cpuPercent: process.cpu_percent, memoryBytes: process.memory_bytes,
44
+ runtimeSecs: process.runtime_secs,
45
+ user: process.user ?? null,
46
+ requiresElevation: process.requires_elevation,
47
+ inWorkspace: process.in_workspace,
48
+ launcher: process.launcher ?? null,
49
+ debuggable: process.attachable,
50
+ undebuggableReason: process.unattachable_reason ?? null,
51
+ };
52
+ }
53
+ /** [PROF-WIRE]: a source location is both fields or neither, never `""` and line 0. */
54
+ function located(entry) {
55
+ const { file, line } = entry;
56
+ return file !== null && file !== undefined && line !== null && line !== undefined ? { file, line } : {};
57
+ }
58
+ function allocation(site) {
59
+ return { ...located(site), size: site.size_bytes, count: site.count, typeName: site.type_name ?? "" };
60
+ }
61
+ function snapshotFields(snapshot, timeline, heapProfilePath) {
62
+ return {
63
+ snapshotId: snapshot.snapshot_id,
64
+ currentMemory: snapshot.current_bytes,
65
+ peakMemory: snapshot.peak_bytes,
66
+ gcObjects: snapshot.object_count,
67
+ gcCounts: snapshot.gc_generations,
68
+ generationSizes: snapshot.generation_sizes?.map((region) => ({ name: region.name, size: region.size_bytes })) ?? [],
69
+ topAllocations: snapshot.sites.map(allocation),
70
+ timeline: timeline.map((point) => ({
71
+ timestamp: point.elapsed_secs,
72
+ currentMemory: point.current_bytes,
73
+ peakMemory: point.peak_bytes,
74
+ gcObjects: point.object_count,
75
+ })),
76
+ heapProfilePath: heapProfilePath ?? "",
77
+ };
78
+ }
79
+ function leak(entry) {
80
+ return {
81
+ file: entry.file ?? "",
82
+ line: entry.line ?? 0,
83
+ typeName: entry.type_name ?? "",
84
+ sizeGrowth: entry.size_growth,
85
+ countGrowth: entry.count_growth,
86
+ currentSize: entry.current_size,
87
+ currentCount: entry.current_count,
88
+ confidence: entry.confidence.kind.toUpperCase(),
89
+ reason: entry.reason,
90
+ };
91
+ }
92
+ function diffFields(diff, leaks) {
93
+ return {
94
+ totalGrowth: diff.total_growth,
95
+ totalFreed: diff.total_freed,
96
+ netGrowth: diff.net_growth,
97
+ grownAllocations: diff.grown.map((site) => ({ ...allocation(site), sizeDiff: site.size_diff, countDiff: site.count_diff })),
98
+ suspectedLeaks: leaks.map((entry) => leak(entry)),
99
+ };
100
+ }
101
+ /** The retention graph as the webview draws it: numeric node IDs, `repr` labels. */
102
+ function toRefGraph(graph) {
103
+ const ids = new Map(graph.nodes.map((node, index) => [node.id, index]));
104
+ return {
105
+ nodes: graph.nodes.map((node, index) => ({
106
+ id: index,
107
+ type: node.type_name,
108
+ size: node.size_bytes,
109
+ repr: node.label,
110
+ depth: node.depth,
111
+ isTarget: node.is_target,
112
+ isRoot: node.is_root,
113
+ rootKind: node.root_kind,
114
+ })),
115
+ edges: graph.edges.map((edge) => ({ from: ids.get(edge.from) ?? -1, to: ids.get(edge.to) ?? -1, label: edge.label ?? "" })),
116
+ cycles: graph.cycles.map((cycle) => cycle.map((id) => ids.get(id) ?? -1)),
117
+ truncated: graph.truncated,
118
+ };
119
+ }
120
+ function outcomeFields(outcome) {
121
+ if (outcome.kind === "Ack") {
122
+ return { kind: "ack" };
123
+ }
124
+ if (outcome.kind === "Snapshot" || outcome.kind === "Diff" || outcome.kind === "Gc") {
125
+ return memoryStepOutcomeFields(outcome);
126
+ }
127
+ return retentionOutcomeFields(outcome);
128
+ }
129
+ /** The ingest shape for a snapshot, diff, or gc outcome. */
130
+ function memoryStepOutcomeFields(outcome) {
131
+ if (outcome.kind === "Snapshot") {
132
+ return { kind: "snapshot", ...snapshotFields(outcome.snapshot, outcome.timeline, outcome.heapprofile_path), trendingUpward: outcome.trending_upward };
133
+ }
134
+ if (outcome.kind === "Diff") {
135
+ return { kind: "diff", ...diffFields(outcome.diff, outcome.leaks) };
136
+ }
137
+ return { kind: "gc", collected: outcome.gc.collected, uncollectable: outcome.gc.uncollectable_count, freedBytes: outcome.gc.freed_bytes };
138
+ }
139
+ /** The ingest shape for a reference-graph or live-objects outcome. */
140
+ function retentionOutcomeFields(outcome) {
141
+ if (outcome.kind === "Refs") {
142
+ return { kind: "refs", graph: toRefGraph(outcome.graph) };
143
+ }
144
+ return { kind: "objects", ...objectsFields(outcome.objects) };
145
+ }
146
+ /** One type's live objects and the per-type totals beside them. */
147
+ function objectsFields(objects) {
148
+ return {
149
+ typeName: objects.type_name,
150
+ totalCount: objects.total_count,
151
+ totalBytes: objects.total_bytes,
152
+ objects: objects.objects.map((object) => ({ id: object.id, type: object.type_name, size: object.size_bytes, repr: object.label })),
153
+ typeSummary: objects.type_summary.map((type) => ({ type: type.type_name, count: type.count, size: type.size_bytes })),
154
+ };
155
+ }
156
+ /** A completed memory step as the dashboard, decorations and autopilot consume it. */
157
+ function toMemoryIngestResult(result) {
158
+ return { memorySessionId: result.memory_session_id, ...outcomeFields(result.outcome) };
159
+ }
160
+ //# sourceMappingURL=wire-adapters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wire-adapters.js","sourceRoot":"","sources":["../../src/wire-adapters.ts"],"names":[],"mappings":";AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,2BAA2B;;;;;;;AA0B3B,0BAAiC,MAA0B;IACzD,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,UAAU;QAC5B,GAAG,EAAE,MAAM,CAAC,GAAG;QACf,cAAc,EAAE,MAAM,CAAC,eAAe;QACtC,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC;AACJ,CAAC;AAED,yBAAgC,MAAqB;IACnD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,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