repoburg 1.3.87 → 1.3.88

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 (544) hide show
  1. package/backend/.env +20 -0
  2. package/backend/.repoburg/hooks/README.md +53 -0
  3. package/backend/.repoburg/hooks/eslint-hook.ts +46 -0
  4. package/backend/.repoburg/hooks/example-hook.ts +62 -0
  5. package/backend/dist/src/ai-actions/ai-actions.controller.js +67 -0
  6. package/backend/dist/src/ai-actions/ai-actions.controller.js.map +1 -1
  7. package/backend/dist/src/application-state/application-state.controller.js +123 -0
  8. package/backend/dist/src/application-state/application-state.controller.js.map +1 -1
  9. package/backend/dist/src/application-state/dto/set-alibaba-config.dto.js +2 -0
  10. package/backend/dist/src/application-state/dto/set-alibaba-config.dto.js.map +1 -1
  11. package/backend/dist/src/application-state/dto/set-auto-context-fetch-enabled.dto.js +4 -0
  12. package/backend/dist/src/application-state/dto/set-auto-context-fetch-enabled.dto.js.map +1 -1
  13. package/backend/dist/src/application-state/dto/set-auto-send-to-ai-studio-enabled.dto.js +2 -0
  14. package/backend/dist/src/application-state/dto/set-auto-send-to-ai-studio-enabled.dto.js.map +1 -1
  15. package/backend/dist/src/application-state/dto/set-context-token-limit.dto.js +6 -0
  16. package/backend/dist/src/application-state/dto/set-context-token-limit.dto.js.map +1 -1
  17. package/backend/dist/src/application-state/dto/set-execution-strategy.dto.js +6 -0
  18. package/backend/dist/src/application-state/dto/set-execution-strategy.dto.js.map +1 -1
  19. package/backend/dist/src/application-state/dto/set-followup-token-limit.dto.js +5 -0
  20. package/backend/dist/src/application-state/dto/set-followup-token-limit.dto.js.map +1 -1
  21. package/backend/dist/src/application-state/dto/set-history-compression-enabled.dto.js +4 -0
  22. package/backend/dist/src/application-state/dto/set-history-compression-enabled.dto.js.map +1 -1
  23. package/backend/dist/src/application-state/dto/set-llm-retry-enabled.dto.js +4 -0
  24. package/backend/dist/src/application-state/dto/set-llm-retry-enabled.dto.js.map +1 -1
  25. package/backend/dist/src/application-state/dto/set-llm-retry-max-attempts.dto.js +6 -0
  26. package/backend/dist/src/application-state/dto/set-llm-retry-max-attempts.dto.js.map +1 -1
  27. package/backend/dist/src/application-state/dto/set-manual-llm-enabled.dto.js +4 -0
  28. package/backend/dist/src/application-state/dto/set-manual-llm-enabled.dto.js.map +1 -1
  29. package/backend/dist/src/application-state/dto/set-openrouter-config.dto.js +2 -0
  30. package/backend/dist/src/application-state/dto/set-openrouter-config.dto.js.map +1 -1
  31. package/backend/dist/src/application-state/dto/set-streaming-enabled.dto.js +2 -0
  32. package/backend/dist/src/application-state/dto/set-streaming-enabled.dto.js.map +1 -1
  33. package/backend/dist/src/application-state/dto/set-syntax-validation-enabled.dto.js +4 -0
  34. package/backend/dist/src/application-state/dto/set-syntax-validation-enabled.dto.js.map +1 -1
  35. package/backend/dist/src/application-state/dto/set-theme.dto.js +6 -0
  36. package/backend/dist/src/application-state/dto/set-theme.dto.js.map +1 -1
  37. package/backend/dist/src/application-state/dto/set-tools-enabled.dto.js +4 -0
  38. package/backend/dist/src/application-state/dto/set-tools-enabled.dto.js.map +1 -1
  39. package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js +2 -0
  40. package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js.map +1 -1
  41. package/backend/dist/src/application-state/dto/set-yolo-mode-message.dto.js +5 -0
  42. package/backend/dist/src/application-state/dto/set-yolo-mode-message.dto.js.map +1 -1
  43. package/backend/dist/src/application-state/dto/set-yolo-mode.dto.js +4 -0
  44. package/backend/dist/src/application-state/dto/set-yolo-mode.dto.js.map +1 -1
  45. package/backend/dist/src/application-state/dto/set-zai-config.dto.js +2 -0
  46. package/backend/dist/src/application-state/dto/set-zai-config.dto.js.map +1 -1
  47. package/backend/dist/src/context-snippets/context-snippets.controller.js +38 -0
  48. package/backend/dist/src/context-snippets/context-snippets.controller.js.map +1 -1
  49. package/backend/dist/src/context-templates/context-templates.controller.js +104 -0
  50. package/backend/dist/src/context-templates/context-templates.controller.js.map +1 -1
  51. package/backend/dist/src/context-templates/dto/context-template.dto.d.ts +1 -1
  52. package/backend/dist/src/context-templates/dto/context-template.dto.js +44 -1
  53. package/backend/dist/src/context-templates/dto/context-template.dto.js.map +1 -1
  54. package/backend/dist/src/core-entities/ai-action.entity.js +73 -0
  55. package/backend/dist/src/core-entities/ai-action.entity.js.map +1 -1
  56. package/backend/dist/src/core-entities/base.entity.js +18 -0
  57. package/backend/dist/src/core-entities/base.entity.js.map +1 -1
  58. package/backend/dist/src/core-entities/context-snippet.entity.js +12 -0
  59. package/backend/dist/src/core-entities/context-snippet.entity.js.map +1 -1
  60. package/backend/dist/src/core-entities/context-template.entity.d.ts +2 -4
  61. package/backend/dist/src/core-entities/context-template.entity.js +50 -7
  62. package/backend/dist/src/core-entities/context-template.entity.js.map +1 -1
  63. package/backend/dist/src/core-entities/custom-snippet.entity.js +16 -0
  64. package/backend/dist/src/core-entities/custom-snippet.entity.js.map +1 -1
  65. package/backend/dist/src/core-entities/custom-variable.entity.js +24 -0
  66. package/backend/dist/src/core-entities/custom-variable.entity.js.map +1 -1
  67. package/backend/dist/src/core-entities/enums.d.ts +64 -0
  68. package/backend/dist/src/core-entities/enums.js +77 -0
  69. package/backend/dist/src/core-entities/enums.js.map +1 -0
  70. package/backend/dist/src/core-entities/execution-log.entity.js +15 -0
  71. package/backend/dist/src/core-entities/execution-log.entity.js.map +1 -1
  72. package/backend/dist/src/core-entities/index.d.ts +1 -2
  73. package/backend/dist/src/core-entities/index.js +1 -2
  74. package/backend/dist/src/core-entities/index.js.map +1 -1
  75. package/backend/dist/src/core-entities/llm-call-log.entity.js +43 -0
  76. package/backend/dist/src/core-entities/llm-call-log.entity.js.map +1 -1
  77. package/backend/dist/src/core-entities/mcp-config.entity.js +27 -0
  78. package/backend/dist/src/core-entities/mcp-config.entity.js.map +1 -1
  79. package/backend/dist/src/core-entities/mcp-tool.entity.js +26 -0
  80. package/backend/dist/src/core-entities/mcp-tool.entity.js.map +1 -1
  81. package/backend/dist/src/core-entities/project.entity.js +13 -0
  82. package/backend/dist/src/core-entities/project.entity.js.map +1 -1
  83. package/backend/dist/src/core-entities/session-input.entity.js +94 -0
  84. package/backend/dist/src/core-entities/session-input.entity.js.map +1 -1
  85. package/backend/dist/src/core-entities/session.entity.d.ts +1 -1
  86. package/backend/dist/src/core-entities/session.entity.js +96 -1
  87. package/backend/dist/src/core-entities/session.entity.js.map +1 -1
  88. package/backend/dist/src/core-entities/system-prompt.entity.js +29 -0
  89. package/backend/dist/src/core-entities/system-prompt.entity.js.map +1 -1
  90. package/backend/dist/src/core-entities/tool-hook.entity.js +21 -0
  91. package/backend/dist/src/core-entities/tool-hook.entity.js.map +1 -1
  92. package/backend/dist/src/custom-snippets/custom-snippets.controller.js +48 -0
  93. package/backend/dist/src/custom-snippets/custom-snippets.controller.js.map +1 -1
  94. package/backend/dist/src/custom-variables/custom-variables.controller.js +46 -0
  95. package/backend/dist/src/custom-variables/custom-variables.controller.js.map +1 -1
  96. package/backend/dist/src/global-config/global-config.controller.js +12 -0
  97. package/backend/dist/src/global-config/global-config.controller.js.map +1 -1
  98. package/backend/dist/src/interactive-chat/streaming.controller.js +38 -0
  99. package/backend/dist/src/interactive-chat/streaming.controller.js.map +1 -1
  100. package/backend/dist/src/llm-call-logs/llm-call-logs.controller.js +96 -0
  101. package/backend/dist/src/llm-call-logs/llm-call-logs.controller.js.map +1 -1
  102. package/backend/dist/src/llm-provider/llm-provider.controller.js +18 -0
  103. package/backend/dist/src/llm-provider/llm-provider.controller.js.map +1 -1
  104. package/backend/dist/src/llm-provider/zai-llm.provider.js +0 -1
  105. package/backend/dist/src/llm-provider/zai-llm.provider.js.map +1 -1
  106. package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js +45 -0
  107. package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js.map +1 -1
  108. package/backend/dist/src/llm-responses/dto/sync-conversation.dto.js +24 -0
  109. package/backend/dist/src/llm-responses/dto/sync-conversation.dto.js.map +1 -1
  110. package/backend/dist/src/llm-responses/llm-responses.controller.js +32 -0
  111. package/backend/dist/src/llm-responses/llm-responses.controller.js.map +1 -1
  112. package/backend/dist/src/main.js +9 -0
  113. package/backend/dist/src/main.js.map +1 -1
  114. package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js +8 -0
  115. package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js.map +1 -1
  116. package/backend/dist/src/mcp/dto/create-mcp-config.dto.js +5 -0
  117. package/backend/dist/src/mcp/dto/create-mcp-config.dto.js.map +1 -1
  118. package/backend/dist/src/mcp/dto/update-mcp-config.dto.js +2 -0
  119. package/backend/dist/src/mcp/dto/update-mcp-config.dto.js.map +1 -1
  120. package/backend/dist/src/mcp/mcp.controller.js +21 -0
  121. package/backend/dist/src/mcp/mcp.controller.js.map +1 -1
  122. package/backend/dist/src/projects/dto/project.dto.js +14 -0
  123. package/backend/dist/src/projects/dto/project.dto.js.map +1 -1
  124. package/backend/dist/src/projects/projects.controller.js +31 -0
  125. package/backend/dist/src/projects/projects.controller.js.map +1 -1
  126. package/backend/dist/src/session-inputs/dto/session-input.dto.d.ts +12 -1
  127. package/backend/dist/src/session-inputs/dto/session-input.dto.js +103 -1
  128. package/backend/dist/src/session-inputs/dto/session-input.dto.js.map +1 -1
  129. package/backend/dist/src/session-inputs/session-input.subscriber.js.map +1 -1
  130. package/backend/dist/src/session-inputs/session-inputs.controller.d.ts +2 -1
  131. package/backend/dist/src/session-inputs/session-inputs.controller.js +84 -0
  132. package/backend/dist/src/session-inputs/session-inputs.controller.js.map +1 -1
  133. package/backend/dist/src/session-inputs/session-inputs.module.js +1 -0
  134. package/backend/dist/src/session-inputs/session-inputs.module.js.map +1 -1
  135. package/backend/dist/src/session-inputs/session-inputs.service.d.ts +7 -3
  136. package/backend/dist/src/session-inputs/session-inputs.service.js +51 -4
  137. package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
  138. package/backend/dist/src/sessions/dto/session.dto.js +91 -0
  139. package/backend/dist/src/sessions/dto/session.dto.js.map +1 -1
  140. package/backend/dist/src/sessions/sessions.controller.js +112 -0
  141. package/backend/dist/src/sessions/sessions.controller.js.map +1 -1
  142. package/backend/dist/src/sub-agents/dto/create-sub-agent.dto.js +26 -0
  143. package/backend/dist/src/sub-agents/dto/create-sub-agent.dto.js.map +1 -1
  144. package/backend/dist/src/sub-agents/dto/update-sub-agent.dto.js +22 -0
  145. package/backend/dist/src/sub-agents/dto/update-sub-agent.dto.js.map +1 -1
  146. package/backend/dist/src/sub-agents/sub-agent-run.entity.d.ts +2 -7
  147. package/backend/dist/src/sub-agents/sub-agent-run.entity.js +63 -9
  148. package/backend/dist/src/sub-agents/sub-agent-run.entity.js.map +1 -1
  149. package/backend/dist/src/sub-agents/sub-agent-runs.controller.js +63 -0
  150. package/backend/dist/src/sub-agents/sub-agent-runs.controller.js.map +1 -1
  151. package/backend/dist/src/sub-agents/sub-agent.entity.js +47 -0
  152. package/backend/dist/src/sub-agents/sub-agent.entity.js.map +1 -1
  153. package/backend/dist/src/sub-agents/sub-agents.controller.js +25 -0
  154. package/backend/dist/src/sub-agents/sub-agents.controller.js.map +1 -1
  155. package/backend/dist/src/system-prompts/dto/set-enabled-tools.dto.js +9 -0
  156. package/backend/dist/src/system-prompts/dto/set-enabled-tools.dto.js.map +1 -1
  157. package/backend/dist/src/system-prompts/dto/system-prompt.dto.js +43 -0
  158. package/backend/dist/src/system-prompts/dto/system-prompt.dto.js.map +1 -1
  159. package/backend/dist/src/system-prompts/dto/toggle-tool.dto.js +5 -0
  160. package/backend/dist/src/system-prompts/dto/toggle-tool.dto.js.map +1 -1
  161. package/backend/dist/src/system-prompts/system-prompts.controller.js +80 -0
  162. package/backend/dist/src/system-prompts/system-prompts.controller.js.map +1 -1
  163. package/backend/dist/src/tool-hooks/dto/create-tool-hook.dto.js +14 -0
  164. package/backend/dist/src/tool-hooks/dto/create-tool-hook.dto.js.map +1 -1
  165. package/backend/dist/src/tool-hooks/dto/update-tool-hook.dto.js +11 -0
  166. package/backend/dist/src/tool-hooks/dto/update-tool-hook.dto.js.map +1 -1
  167. package/backend/dist/src/tool-hooks/tool-hooks.controller.js +52 -0
  168. package/backend/dist/src/tool-hooks/tool-hooks.controller.js.map +1 -1
  169. package/backend/dist/src/visual-editor/visual-editor.controller.js +15 -0
  170. package/backend/dist/src/visual-editor/visual-editor.controller.js.map +1 -1
  171. package/backend/dist/src/workspace/workspace.controller.js +41 -0
  172. package/backend/dist/src/workspace/workspace.controller.js.map +1 -1
  173. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  174. package/{daemon/node_modules/undici-types → backend/node_modules/@eslint/eslintrc}/LICENSE +5 -7
  175. package/backend/node_modules/@eslint/eslintrc/README.md +115 -0
  176. package/backend/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
  177. package/backend/node_modules/@eslint/eslintrc/conf/environments.js +215 -0
  178. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1104 -0
  179. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
  180. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4344 -0
  181. package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
  182. package/backend/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +532 -0
  183. package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
  184. package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +124 -0
  185. package/backend/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
  186. package/backend/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
  187. package/backend/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
  188. package/backend/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
  189. package/backend/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1151 -0
  190. package/backend/node_modules/@eslint/eslintrc/lib/flat-compat.js +318 -0
  191. package/backend/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
  192. package/backend/node_modules/@eslint/eslintrc/lib/index.js +56 -0
  193. package/backend/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
  194. package/backend/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
  195. package/backend/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
  196. package/backend/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
  197. package/backend/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
  198. package/backend/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
  199. package/backend/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
  200. package/backend/node_modules/@eslint/eslintrc/package.json +82 -0
  201. package/backend/node_modules/@eslint/eslintrc/universal.js +9 -0
  202. package/backend/package.json +1 -3
  203. package/daemon/dist/api/system.js +25 -0
  204. package/daemon/dist/daemon.blob +0 -0
  205. package/daemon/dist/index.js +0 -0
  206. package/package.json +3 -1
  207. package/visual-editor-proxy/.repoburg/data.sqlite +0 -0
  208. package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +1 -1
  209. package/backend/node_modules/@types/node/LICENSE +0 -21
  210. package/backend/node_modules/@types/node/README.md +0 -15
  211. package/backend/node_modules/@types/node/assert/strict.d.ts +0 -8
  212. package/backend/node_modules/@types/node/assert.d.ts +0 -1044
  213. package/backend/node_modules/@types/node/async_hooks.d.ts +0 -605
  214. package/backend/node_modules/@types/node/buffer.buffer.d.ts +0 -462
  215. package/backend/node_modules/@types/node/buffer.d.ts +0 -1932
  216. package/backend/node_modules/@types/node/child_process.d.ts +0 -1452
  217. package/backend/node_modules/@types/node/cluster.d.ts +0 -578
  218. package/backend/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  219. package/backend/node_modules/@types/node/compatibility/index.d.ts +0 -9
  220. package/backend/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  221. package/backend/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  222. package/backend/node_modules/@types/node/console.d.ts +0 -452
  223. package/backend/node_modules/@types/node/constants.d.ts +0 -21
  224. package/backend/node_modules/@types/node/crypto.d.ts +0 -4570
  225. package/backend/node_modules/@types/node/dgram.d.ts +0 -596
  226. package/backend/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  227. package/backend/node_modules/@types/node/dns/promises.d.ts +0 -479
  228. package/backend/node_modules/@types/node/dns.d.ts +0 -871
  229. package/backend/node_modules/@types/node/domain.d.ts +0 -170
  230. package/backend/node_modules/@types/node/events.d.ts +0 -931
  231. package/backend/node_modules/@types/node/fs/promises.d.ts +0 -1248
  232. package/backend/node_modules/@types/node/fs.d.ts +0 -4362
  233. package/backend/node_modules/@types/node/globals.d.ts +0 -170
  234. package/backend/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  235. package/backend/node_modules/@types/node/http.d.ts +0 -2031
  236. package/backend/node_modules/@types/node/http2.d.ts +0 -2623
  237. package/backend/node_modules/@types/node/https.d.ts +0 -549
  238. package/backend/node_modules/@types/node/index.d.ts +0 -93
  239. package/backend/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  240. package/backend/node_modules/@types/node/module.d.ts +0 -539
  241. package/backend/node_modules/@types/node/net.d.ts +0 -1011
  242. package/backend/node_modules/@types/node/os.d.ts +0 -495
  243. package/backend/node_modules/@types/node/package.json +0 -140
  244. package/backend/node_modules/@types/node/path.d.ts +0 -200
  245. package/backend/node_modules/@types/node/perf_hooks.d.ts +0 -963
  246. package/backend/node_modules/@types/node/process.d.ts +0 -1956
  247. package/backend/node_modules/@types/node/punycode.d.ts +0 -117
  248. package/backend/node_modules/@types/node/querystring.d.ts +0 -152
  249. package/backend/node_modules/@types/node/readline/promises.d.ts +0 -162
  250. package/backend/node_modules/@types/node/readline.d.ts +0 -589
  251. package/backend/node_modules/@types/node/repl.d.ts +0 -430
  252. package/backend/node_modules/@types/node/sea.d.ts +0 -153
  253. package/backend/node_modules/@types/node/stream/consumers.d.ts +0 -38
  254. package/backend/node_modules/@types/node/stream/promises.d.ts +0 -90
  255. package/backend/node_modules/@types/node/stream/web.d.ts +0 -533
  256. package/backend/node_modules/@types/node/stream.d.ts +0 -1668
  257. package/backend/node_modules/@types/node/string_decoder.d.ts +0 -67
  258. package/backend/node_modules/@types/node/test.d.ts +0 -1807
  259. package/backend/node_modules/@types/node/timers/promises.d.ts +0 -108
  260. package/backend/node_modules/@types/node/timers.d.ts +0 -286
  261. package/backend/node_modules/@types/node/tls.d.ts +0 -1231
  262. package/backend/node_modules/@types/node/trace_events.d.ts +0 -197
  263. package/backend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
  264. package/backend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  265. package/backend/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  266. package/backend/node_modules/@types/node/tty.d.ts +0 -208
  267. package/backend/node_modules/@types/node/url.d.ts +0 -964
  268. package/backend/node_modules/@types/node/util.d.ts +0 -2331
  269. package/backend/node_modules/@types/node/v8.d.ts +0 -808
  270. package/backend/node_modules/@types/node/vm.d.ts +0 -1030
  271. package/backend/node_modules/@types/node/wasi.d.ts +0 -181
  272. package/backend/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  273. package/backend/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  274. package/backend/node_modules/@types/node/web-globals/events.d.ts +0 -94
  275. package/backend/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
  276. package/backend/node_modules/@types/node/worker_threads.d.ts +0 -743
  277. package/backend/node_modules/@types/node/zlib.d.ts +0 -539
  278. package/backend/node_modules/debug/LICENSE +0 -20
  279. package/backend/node_modules/debug/README.md +0 -481
  280. package/backend/node_modules/debug/package.json +0 -64
  281. package/backend/node_modules/debug/src/browser.js +0 -272
  282. package/backend/node_modules/debug/src/common.js +0 -292
  283. package/backend/node_modules/debug/src/index.js +0 -10
  284. package/backend/node_modules/debug/src/node.js +0 -263
  285. package/backend/node_modules/undici-types/LICENSE +0 -21
  286. package/backend/node_modules/undici-types/README.md +0 -6
  287. package/backend/node_modules/undici-types/agent.d.ts +0 -31
  288. package/backend/node_modules/undici-types/api.d.ts +0 -43
  289. package/backend/node_modules/undici-types/balanced-pool.d.ts +0 -29
  290. package/backend/node_modules/undici-types/cache.d.ts +0 -36
  291. package/backend/node_modules/undici-types/client.d.ts +0 -108
  292. package/backend/node_modules/undici-types/connector.d.ts +0 -34
  293. package/backend/node_modules/undici-types/content-type.d.ts +0 -21
  294. package/backend/node_modules/undici-types/cookies.d.ts +0 -28
  295. package/backend/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  296. package/backend/node_modules/undici-types/dispatcher.d.ts +0 -256
  297. package/backend/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  298. package/backend/node_modules/undici-types/errors.d.ts +0 -149
  299. package/backend/node_modules/undici-types/eventsource.d.ts +0 -61
  300. package/backend/node_modules/undici-types/fetch.d.ts +0 -209
  301. package/backend/node_modules/undici-types/file.d.ts +0 -39
  302. package/backend/node_modules/undici-types/filereader.d.ts +0 -54
  303. package/backend/node_modules/undici-types/formdata.d.ts +0 -108
  304. package/backend/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  305. package/backend/node_modules/undici-types/global-origin.d.ts +0 -7
  306. package/backend/node_modules/undici-types/handlers.d.ts +0 -15
  307. package/backend/node_modules/undici-types/header.d.ts +0 -4
  308. package/backend/node_modules/undici-types/index.d.ts +0 -71
  309. package/backend/node_modules/undici-types/interceptors.d.ts +0 -17
  310. package/backend/node_modules/undici-types/mock-agent.d.ts +0 -50
  311. package/backend/node_modules/undici-types/mock-client.d.ts +0 -25
  312. package/backend/node_modules/undici-types/mock-errors.d.ts +0 -12
  313. package/backend/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  314. package/backend/node_modules/undici-types/mock-pool.d.ts +0 -25
  315. package/backend/node_modules/undici-types/package.json +0 -55
  316. package/backend/node_modules/undici-types/patch.d.ts +0 -33
  317. package/backend/node_modules/undici-types/pool-stats.d.ts +0 -19
  318. package/backend/node_modules/undici-types/pool.d.ts +0 -39
  319. package/backend/node_modules/undici-types/proxy-agent.d.ts +0 -28
  320. package/backend/node_modules/undici-types/readable.d.ts +0 -65
  321. package/backend/node_modules/undici-types/retry-agent.d.ts +0 -8
  322. package/backend/node_modules/undici-types/retry-handler.d.ts +0 -116
  323. package/backend/node_modules/undici-types/util.d.ts +0 -18
  324. package/backend/node_modules/undici-types/webidl.d.ts +0 -228
  325. package/backend/node_modules/undici-types/websocket.d.ts +0 -150
  326. package/daemon/node_modules/@types/node/LICENSE +0 -21
  327. package/daemon/node_modules/@types/node/README.md +0 -15
  328. package/daemon/node_modules/@types/node/assert/strict.d.ts +0 -8
  329. package/daemon/node_modules/@types/node/assert.d.ts +0 -1044
  330. package/daemon/node_modules/@types/node/async_hooks.d.ts +0 -605
  331. package/daemon/node_modules/@types/node/buffer.buffer.d.ts +0 -462
  332. package/daemon/node_modules/@types/node/buffer.d.ts +0 -1932
  333. package/daemon/node_modules/@types/node/child_process.d.ts +0 -1452
  334. package/daemon/node_modules/@types/node/cluster.d.ts +0 -578
  335. package/daemon/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  336. package/daemon/node_modules/@types/node/compatibility/index.d.ts +0 -9
  337. package/daemon/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  338. package/daemon/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  339. package/daemon/node_modules/@types/node/console.d.ts +0 -452
  340. package/daemon/node_modules/@types/node/constants.d.ts +0 -21
  341. package/daemon/node_modules/@types/node/crypto.d.ts +0 -4570
  342. package/daemon/node_modules/@types/node/dgram.d.ts +0 -596
  343. package/daemon/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  344. package/daemon/node_modules/@types/node/dns/promises.d.ts +0 -479
  345. package/daemon/node_modules/@types/node/dns.d.ts +0 -871
  346. package/daemon/node_modules/@types/node/domain.d.ts +0 -170
  347. package/daemon/node_modules/@types/node/events.d.ts +0 -931
  348. package/daemon/node_modules/@types/node/fs/promises.d.ts +0 -1248
  349. package/daemon/node_modules/@types/node/fs.d.ts +0 -4362
  350. package/daemon/node_modules/@types/node/globals.d.ts +0 -170
  351. package/daemon/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  352. package/daemon/node_modules/@types/node/http.d.ts +0 -2031
  353. package/daemon/node_modules/@types/node/http2.d.ts +0 -2623
  354. package/daemon/node_modules/@types/node/https.d.ts +0 -549
  355. package/daemon/node_modules/@types/node/index.d.ts +0 -93
  356. package/daemon/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  357. package/daemon/node_modules/@types/node/module.d.ts +0 -539
  358. package/daemon/node_modules/@types/node/net.d.ts +0 -1011
  359. package/daemon/node_modules/@types/node/os.d.ts +0 -495
  360. package/daemon/node_modules/@types/node/package.json +0 -140
  361. package/daemon/node_modules/@types/node/path.d.ts +0 -200
  362. package/daemon/node_modules/@types/node/perf_hooks.d.ts +0 -963
  363. package/daemon/node_modules/@types/node/process.d.ts +0 -1956
  364. package/daemon/node_modules/@types/node/punycode.d.ts +0 -117
  365. package/daemon/node_modules/@types/node/querystring.d.ts +0 -152
  366. package/daemon/node_modules/@types/node/readline/promises.d.ts +0 -162
  367. package/daemon/node_modules/@types/node/readline.d.ts +0 -589
  368. package/daemon/node_modules/@types/node/repl.d.ts +0 -430
  369. package/daemon/node_modules/@types/node/sea.d.ts +0 -153
  370. package/daemon/node_modules/@types/node/stream/consumers.d.ts +0 -38
  371. package/daemon/node_modules/@types/node/stream/promises.d.ts +0 -90
  372. package/daemon/node_modules/@types/node/stream/web.d.ts +0 -533
  373. package/daemon/node_modules/@types/node/stream.d.ts +0 -1668
  374. package/daemon/node_modules/@types/node/string_decoder.d.ts +0 -67
  375. package/daemon/node_modules/@types/node/test.d.ts +0 -1807
  376. package/daemon/node_modules/@types/node/timers/promises.d.ts +0 -108
  377. package/daemon/node_modules/@types/node/timers.d.ts +0 -286
  378. package/daemon/node_modules/@types/node/tls.d.ts +0 -1231
  379. package/daemon/node_modules/@types/node/trace_events.d.ts +0 -197
  380. package/daemon/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
  381. package/daemon/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  382. package/daemon/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  383. package/daemon/node_modules/@types/node/tty.d.ts +0 -208
  384. package/daemon/node_modules/@types/node/url.d.ts +0 -964
  385. package/daemon/node_modules/@types/node/util.d.ts +0 -2331
  386. package/daemon/node_modules/@types/node/v8.d.ts +0 -808
  387. package/daemon/node_modules/@types/node/vm.d.ts +0 -1030
  388. package/daemon/node_modules/@types/node/wasi.d.ts +0 -181
  389. package/daemon/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  390. package/daemon/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  391. package/daemon/node_modules/@types/node/web-globals/events.d.ts +0 -94
  392. package/daemon/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
  393. package/daemon/node_modules/@types/node/worker_threads.d.ts +0 -743
  394. package/daemon/node_modules/@types/node/zlib.d.ts +0 -539
  395. package/daemon/node_modules/undici-types/README.md +0 -6
  396. package/daemon/node_modules/undici-types/agent.d.ts +0 -31
  397. package/daemon/node_modules/undici-types/api.d.ts +0 -43
  398. package/daemon/node_modules/undici-types/balanced-pool.d.ts +0 -29
  399. package/daemon/node_modules/undici-types/cache.d.ts +0 -36
  400. package/daemon/node_modules/undici-types/client.d.ts +0 -108
  401. package/daemon/node_modules/undici-types/connector.d.ts +0 -34
  402. package/daemon/node_modules/undici-types/content-type.d.ts +0 -21
  403. package/daemon/node_modules/undici-types/cookies.d.ts +0 -28
  404. package/daemon/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  405. package/daemon/node_modules/undici-types/dispatcher.d.ts +0 -256
  406. package/daemon/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  407. package/daemon/node_modules/undici-types/errors.d.ts +0 -149
  408. package/daemon/node_modules/undici-types/eventsource.d.ts +0 -61
  409. package/daemon/node_modules/undici-types/fetch.d.ts +0 -209
  410. package/daemon/node_modules/undici-types/file.d.ts +0 -39
  411. package/daemon/node_modules/undici-types/filereader.d.ts +0 -54
  412. package/daemon/node_modules/undici-types/formdata.d.ts +0 -108
  413. package/daemon/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  414. package/daemon/node_modules/undici-types/global-origin.d.ts +0 -7
  415. package/daemon/node_modules/undici-types/handlers.d.ts +0 -15
  416. package/daemon/node_modules/undici-types/header.d.ts +0 -4
  417. package/daemon/node_modules/undici-types/index.d.ts +0 -71
  418. package/daemon/node_modules/undici-types/interceptors.d.ts +0 -17
  419. package/daemon/node_modules/undici-types/mock-agent.d.ts +0 -50
  420. package/daemon/node_modules/undici-types/mock-client.d.ts +0 -25
  421. package/daemon/node_modules/undici-types/mock-errors.d.ts +0 -12
  422. package/daemon/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  423. package/daemon/node_modules/undici-types/mock-pool.d.ts +0 -25
  424. package/daemon/node_modules/undici-types/package.json +0 -55
  425. package/daemon/node_modules/undici-types/patch.d.ts +0 -33
  426. package/daemon/node_modules/undici-types/pool-stats.d.ts +0 -19
  427. package/daemon/node_modules/undici-types/pool.d.ts +0 -39
  428. package/daemon/node_modules/undici-types/proxy-agent.d.ts +0 -28
  429. package/daemon/node_modules/undici-types/readable.d.ts +0 -65
  430. package/daemon/node_modules/undici-types/retry-agent.d.ts +0 -8
  431. package/daemon/node_modules/undici-types/retry-handler.d.ts +0 -116
  432. package/daemon/node_modules/undici-types/util.d.ts +0 -18
  433. package/daemon/node_modules/undici-types/webidl.d.ts +0 -228
  434. package/daemon/node_modules/undici-types/websocket.d.ts +0 -150
  435. package/visual-editor-proxy/node_modules/@types/node/LICENSE +0 -21
  436. package/visual-editor-proxy/node_modules/@types/node/README.md +0 -15
  437. package/visual-editor-proxy/node_modules/@types/node/assert/strict.d.ts +0 -8
  438. package/visual-editor-proxy/node_modules/@types/node/assert.d.ts +0 -1062
  439. package/visual-editor-proxy/node_modules/@types/node/async_hooks.d.ts +0 -605
  440. package/visual-editor-proxy/node_modules/@types/node/buffer.buffer.d.ts +0 -462
  441. package/visual-editor-proxy/node_modules/@types/node/buffer.d.ts +0 -1932
  442. package/visual-editor-proxy/node_modules/@types/node/child_process.d.ts +0 -1458
  443. package/visual-editor-proxy/node_modules/@types/node/cluster.d.ts +0 -577
  444. package/visual-editor-proxy/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  445. package/visual-editor-proxy/node_modules/@types/node/compatibility/index.d.ts +0 -9
  446. package/visual-editor-proxy/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  447. package/visual-editor-proxy/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  448. package/visual-editor-proxy/node_modules/@types/node/console.d.ts +0 -452
  449. package/visual-editor-proxy/node_modules/@types/node/constants.d.ts +0 -21
  450. package/visual-editor-proxy/node_modules/@types/node/crypto.d.ts +0 -4570
  451. package/visual-editor-proxy/node_modules/@types/node/dgram.d.ts +0 -596
  452. package/visual-editor-proxy/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  453. package/visual-editor-proxy/node_modules/@types/node/dns/promises.d.ts +0 -479
  454. package/visual-editor-proxy/node_modules/@types/node/dns.d.ts +0 -871
  455. package/visual-editor-proxy/node_modules/@types/node/domain.d.ts +0 -170
  456. package/visual-editor-proxy/node_modules/@types/node/events.d.ts +0 -977
  457. package/visual-editor-proxy/node_modules/@types/node/fs/promises.d.ts +0 -1248
  458. package/visual-editor-proxy/node_modules/@types/node/fs.d.ts +0 -4362
  459. package/visual-editor-proxy/node_modules/@types/node/globals.d.ts +0 -172
  460. package/visual-editor-proxy/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  461. package/visual-editor-proxy/node_modules/@types/node/http.d.ts +0 -2030
  462. package/visual-editor-proxy/node_modules/@types/node/http2.d.ts +0 -2624
  463. package/visual-editor-proxy/node_modules/@types/node/https.d.ts +0 -546
  464. package/visual-editor-proxy/node_modules/@types/node/index.d.ts +0 -93
  465. package/visual-editor-proxy/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  466. package/visual-editor-proxy/node_modules/@types/node/module.d.ts +0 -539
  467. package/visual-editor-proxy/node_modules/@types/node/net.d.ts +0 -1011
  468. package/visual-editor-proxy/node_modules/@types/node/os.d.ts +0 -505
  469. package/visual-editor-proxy/node_modules/@types/node/package.json +0 -140
  470. package/visual-editor-proxy/node_modules/@types/node/path.d.ts +0 -200
  471. package/visual-editor-proxy/node_modules/@types/node/perf_hooks.d.ts +0 -961
  472. package/visual-editor-proxy/node_modules/@types/node/process.d.ts +0 -1944
  473. package/visual-editor-proxy/node_modules/@types/node/punycode.d.ts +0 -117
  474. package/visual-editor-proxy/node_modules/@types/node/querystring.d.ts +0 -152
  475. package/visual-editor-proxy/node_modules/@types/node/readline/promises.d.ts +0 -162
  476. package/visual-editor-proxy/node_modules/@types/node/readline.d.ts +0 -589
  477. package/visual-editor-proxy/node_modules/@types/node/repl.d.ts +0 -430
  478. package/visual-editor-proxy/node_modules/@types/node/sea.d.ts +0 -153
  479. package/visual-editor-proxy/node_modules/@types/node/stream/consumers.d.ts +0 -38
  480. package/visual-editor-proxy/node_modules/@types/node/stream/promises.d.ts +0 -90
  481. package/visual-editor-proxy/node_modules/@types/node/stream/web.d.ts +0 -533
  482. package/visual-editor-proxy/node_modules/@types/node/stream.d.ts +0 -1675
  483. package/visual-editor-proxy/node_modules/@types/node/string_decoder.d.ts +0 -67
  484. package/visual-editor-proxy/node_modules/@types/node/test.d.ts +0 -1787
  485. package/visual-editor-proxy/node_modules/@types/node/timers/promises.d.ts +0 -108
  486. package/visual-editor-proxy/node_modules/@types/node/timers.d.ts +0 -286
  487. package/visual-editor-proxy/node_modules/@types/node/tls.d.ts +0 -1231
  488. package/visual-editor-proxy/node_modules/@types/node/trace_events.d.ts +0 -197
  489. package/visual-editor-proxy/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
  490. package/visual-editor-proxy/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  491. package/visual-editor-proxy/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  492. package/visual-editor-proxy/node_modules/@types/node/tty.d.ts +0 -208
  493. package/visual-editor-proxy/node_modules/@types/node/url.d.ts +0 -964
  494. package/visual-editor-proxy/node_modules/@types/node/util.d.ts +0 -2331
  495. package/visual-editor-proxy/node_modules/@types/node/v8.d.ts +0 -808
  496. package/visual-editor-proxy/node_modules/@types/node/vm.d.ts +0 -1000
  497. package/visual-editor-proxy/node_modules/@types/node/wasi.d.ts +0 -181
  498. package/visual-editor-proxy/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  499. package/visual-editor-proxy/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  500. package/visual-editor-proxy/node_modules/@types/node/web-globals/events.d.ts +0 -97
  501. package/visual-editor-proxy/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
  502. package/visual-editor-proxy/node_modules/@types/node/worker_threads.d.ts +0 -715
  503. package/visual-editor-proxy/node_modules/@types/node/zlib.d.ts +0 -539
  504. package/visual-editor-proxy/node_modules/undici-types/LICENSE +0 -21
  505. package/visual-editor-proxy/node_modules/undici-types/README.md +0 -6
  506. package/visual-editor-proxy/node_modules/undici-types/agent.d.ts +0 -31
  507. package/visual-editor-proxy/node_modules/undici-types/api.d.ts +0 -43
  508. package/visual-editor-proxy/node_modules/undici-types/balanced-pool.d.ts +0 -29
  509. package/visual-editor-proxy/node_modules/undici-types/cache.d.ts +0 -36
  510. package/visual-editor-proxy/node_modules/undici-types/client.d.ts +0 -108
  511. package/visual-editor-proxy/node_modules/undici-types/connector.d.ts +0 -34
  512. package/visual-editor-proxy/node_modules/undici-types/content-type.d.ts +0 -21
  513. package/visual-editor-proxy/node_modules/undici-types/cookies.d.ts +0 -28
  514. package/visual-editor-proxy/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  515. package/visual-editor-proxy/node_modules/undici-types/dispatcher.d.ts +0 -256
  516. package/visual-editor-proxy/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  517. package/visual-editor-proxy/node_modules/undici-types/errors.d.ts +0 -149
  518. package/visual-editor-proxy/node_modules/undici-types/eventsource.d.ts +0 -61
  519. package/visual-editor-proxy/node_modules/undici-types/fetch.d.ts +0 -209
  520. package/visual-editor-proxy/node_modules/undici-types/file.d.ts +0 -39
  521. package/visual-editor-proxy/node_modules/undici-types/filereader.d.ts +0 -54
  522. package/visual-editor-proxy/node_modules/undici-types/formdata.d.ts +0 -108
  523. package/visual-editor-proxy/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  524. package/visual-editor-proxy/node_modules/undici-types/global-origin.d.ts +0 -7
  525. package/visual-editor-proxy/node_modules/undici-types/handlers.d.ts +0 -15
  526. package/visual-editor-proxy/node_modules/undici-types/header.d.ts +0 -4
  527. package/visual-editor-proxy/node_modules/undici-types/index.d.ts +0 -71
  528. package/visual-editor-proxy/node_modules/undici-types/interceptors.d.ts +0 -17
  529. package/visual-editor-proxy/node_modules/undici-types/mock-agent.d.ts +0 -50
  530. package/visual-editor-proxy/node_modules/undici-types/mock-client.d.ts +0 -25
  531. package/visual-editor-proxy/node_modules/undici-types/mock-errors.d.ts +0 -12
  532. package/visual-editor-proxy/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  533. package/visual-editor-proxy/node_modules/undici-types/mock-pool.d.ts +0 -25
  534. package/visual-editor-proxy/node_modules/undici-types/package.json +0 -55
  535. package/visual-editor-proxy/node_modules/undici-types/patch.d.ts +0 -33
  536. package/visual-editor-proxy/node_modules/undici-types/pool-stats.d.ts +0 -19
  537. package/visual-editor-proxy/node_modules/undici-types/pool.d.ts +0 -39
  538. package/visual-editor-proxy/node_modules/undici-types/proxy-agent.d.ts +0 -28
  539. package/visual-editor-proxy/node_modules/undici-types/readable.d.ts +0 -65
  540. package/visual-editor-proxy/node_modules/undici-types/retry-agent.d.ts +0 -8
  541. package/visual-editor-proxy/node_modules/undici-types/retry-handler.d.ts +0 -116
  542. package/visual-editor-proxy/node_modules/undici-types/util.d.ts +0 -18
  543. package/visual-editor-proxy/node_modules/undici-types/webidl.d.ts +0 -228
  544. package/visual-editor-proxy/node_modules/undici-types/websocket.d.ts +0 -150
@@ -1,963 +0,0 @@
1
- /**
2
- * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for
3
- * Node.js-specific performance measurements.
4
- *
5
- * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/):
6
- *
7
- * * [High Resolution Time](https://www.w3.org/TR/hr-time-2)
8
- * * [Performance Timeline](https://w3c.github.io/performance-timeline/)
9
- * * [User Timing](https://www.w3.org/TR/user-timing/)
10
- * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/)
11
- *
12
- * ```js
13
- * import { PerformanceObserver, performance } from 'node:perf_hooks';
14
- *
15
- * const obs = new PerformanceObserver((items) => {
16
- * console.log(items.getEntries()[0].duration);
17
- * performance.clearMarks();
18
- * });
19
- * obs.observe({ type: 'measure' });
20
- * performance.measure('Start to Now');
21
- *
22
- * performance.mark('A');
23
- * doSomeLongRunningProcess(() => {
24
- * performance.measure('A to Now', 'A');
25
- *
26
- * performance.mark('B');
27
- * performance.measure('A to B', 'A', 'B');
28
- * });
29
- * ```
30
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/perf_hooks.js)
31
- */
32
- declare module "perf_hooks" {
33
- import { AsyncResource } from "node:async_hooks";
34
- type EntryType =
35
- | "dns" // Node.js only
36
- | "function" // Node.js only
37
- | "gc" // Node.js only
38
- | "http2" // Node.js only
39
- | "http" // Node.js only
40
- | "mark" // available on the Web
41
- | "measure" // available on the Web
42
- | "net" // Node.js only
43
- | "node" // Node.js only
44
- | "resource"; // available on the Web
45
- interface NodeGCPerformanceDetail {
46
- /**
47
- * When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies
48
- * the type of garbage collection operation that occurred.
49
- * See perf_hooks.constants for valid values.
50
- */
51
- readonly kind?: number | undefined;
52
- /**
53
- * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
54
- * property contains additional information about garbage collection operation.
55
- * See perf_hooks.constants for valid values.
56
- */
57
- readonly flags?: number | undefined;
58
- }
59
- /**
60
- * The constructor of this class is not exposed to users directly.
61
- * @since v8.5.0
62
- */
63
- class PerformanceEntry {
64
- protected constructor();
65
- /**
66
- * The total number of milliseconds elapsed for this entry. This value will not
67
- * be meaningful for all Performance Entry types.
68
- * @since v8.5.0
69
- */
70
- readonly duration: number;
71
- /**
72
- * The name of the performance entry.
73
- * @since v8.5.0
74
- */
75
- readonly name: string;
76
- /**
77
- * The high resolution millisecond timestamp marking the starting time of the
78
- * Performance Entry.
79
- * @since v8.5.0
80
- */
81
- readonly startTime: number;
82
- /**
83
- * The type of the performance entry. It may be one of:
84
- *
85
- * * `'node'` (Node.js only)
86
- * * `'mark'` (available on the Web)
87
- * * `'measure'` (available on the Web)
88
- * * `'gc'` (Node.js only)
89
- * * `'function'` (Node.js only)
90
- * * `'http2'` (Node.js only)
91
- * * `'http'` (Node.js only)
92
- * @since v8.5.0
93
- */
94
- readonly entryType: EntryType;
95
- /**
96
- * Additional detail specific to the `entryType`.
97
- * @since v16.0.0
98
- */
99
- readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
100
- toJSON(): any;
101
- }
102
- /**
103
- * Exposes marks created via the `Performance.mark()` method.
104
- * @since v18.2.0, v16.17.0
105
- */
106
- class PerformanceMark extends PerformanceEntry {
107
- readonly duration: 0;
108
- readonly entryType: "mark";
109
- }
110
- /**
111
- * Exposes measures created via the `Performance.measure()` method.
112
- *
113
- * The constructor of this class is not exposed to users directly.
114
- * @since v18.2.0, v16.17.0
115
- */
116
- class PerformanceMeasure extends PerformanceEntry {
117
- readonly entryType: "measure";
118
- }
119
- interface UVMetrics {
120
- /**
121
- * Number of event loop iterations.
122
- */
123
- readonly loopCount: number;
124
- /**
125
- * Number of events that have been processed by the event handler.
126
- */
127
- readonly events: number;
128
- /**
129
- * Number of events that were waiting to be processed when the event provider was called.
130
- */
131
- readonly eventsWaiting: number;
132
- }
133
- /**
134
- * _This property is an extension by Node.js. It is not available in Web browsers._
135
- *
136
- * Provides timing details for Node.js itself. The constructor of this class
137
- * is not exposed to users.
138
- * @since v8.5.0
139
- */
140
- class PerformanceNodeTiming extends PerformanceEntry {
141
- /**
142
- * The high resolution millisecond timestamp at which the Node.js process
143
- * completed bootstrapping. If bootstrapping has not yet finished, the property
144
- * has the value of -1.
145
- * @since v8.5.0
146
- */
147
- readonly bootstrapComplete: number;
148
- /**
149
- * The high resolution millisecond timestamp at which the Node.js environment was
150
- * initialized.
151
- * @since v8.5.0
152
- */
153
- readonly environment: number;
154
- /**
155
- * The high resolution millisecond timestamp of the amount of time the event loop
156
- * has been idle within the event loop's event provider (e.g. `epoll_wait`). This
157
- * does not take CPU usage into consideration. If the event loop has not yet
158
- * started (e.g., in the first tick of the main script), the property has the
159
- * value of 0.
160
- * @since v14.10.0, v12.19.0
161
- */
162
- readonly idleTime: number;
163
- /**
164
- * The high resolution millisecond timestamp at which the Node.js event loop
165
- * exited. If the event loop has not yet exited, the property has the value of -1\.
166
- * It can only have a value of not -1 in a handler of the `'exit'` event.
167
- * @since v8.5.0
168
- */
169
- readonly loopExit: number;
170
- /**
171
- * The high resolution millisecond timestamp at which the Node.js event loop
172
- * started. If the event loop has not yet started (e.g., in the first tick of the
173
- * main script), the property has the value of -1.
174
- * @since v8.5.0
175
- */
176
- readonly loopStart: number;
177
- /**
178
- * The high resolution millisecond timestamp at which the Node.js process was initialized.
179
- * @since v8.5.0
180
- */
181
- readonly nodeStart: number;
182
- /**
183
- * This is a wrapper to the `uv_metrics_info` function.
184
- * It returns the current set of event loop metrics.
185
- *
186
- * It is recommended to use this property inside a function whose execution was
187
- * scheduled using `setImmediate` to avoid collecting metrics before finishing all
188
- * operations scheduled during the current loop iteration.
189
- * @since v20.18.0
190
- */
191
- readonly uvMetricsInfo: UVMetrics;
192
- /**
193
- * The high resolution millisecond timestamp at which the V8 platform was
194
- * initialized.
195
- * @since v8.5.0
196
- */
197
- readonly v8Start: number;
198
- }
199
- interface EventLoopUtilization {
200
- idle: number;
201
- active: number;
202
- utilization: number;
203
- }
204
- /**
205
- * @param utilization1 The result of a previous call to `eventLoopUtilization()`.
206
- * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`.
207
- */
208
- type EventLoopUtilityFunction = (
209
- utilization1?: EventLoopUtilization,
210
- utilization2?: EventLoopUtilization,
211
- ) => EventLoopUtilization;
212
- interface MarkOptions {
213
- /**
214
- * Additional optional detail to include with the mark.
215
- */
216
- detail?: unknown | undefined;
217
- /**
218
- * An optional timestamp to be used as the mark time.
219
- * @default `performance.now()`
220
- */
221
- startTime?: number | undefined;
222
- }
223
- interface MeasureOptions {
224
- /**
225
- * Additional optional detail to include with the mark.
226
- */
227
- detail?: unknown | undefined;
228
- /**
229
- * Duration between start and end times.
230
- */
231
- duration?: number | undefined;
232
- /**
233
- * Timestamp to be used as the end time, or a string identifying a previously recorded mark.
234
- */
235
- end?: number | string | undefined;
236
- /**
237
- * Timestamp to be used as the start time, or a string identifying a previously recorded mark.
238
- */
239
- start?: number | string | undefined;
240
- }
241
- interface TimerifyOptions {
242
- /**
243
- * A histogram object created using `perf_hooks.createHistogram()` that will record runtime
244
- * durations in nanoseconds.
245
- */
246
- histogram?: RecordableHistogram | undefined;
247
- }
248
- interface Performance {
249
- /**
250
- * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline.
251
- * If `name` is provided, removes only the named mark.
252
- * @since v8.5.0
253
- */
254
- clearMarks(name?: string): void;
255
- /**
256
- * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline.
257
- * If `name` is provided, removes only the named measure.
258
- * @since v16.7.0
259
- */
260
- clearMeasures(name?: string): void;
261
- /**
262
- * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline.
263
- * If `name` is provided, removes only the named resource.
264
- * @since v18.2.0, v16.17.0
265
- */
266
- clearResourceTimings(name?: string): void;
267
- /**
268
- * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
269
- * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
270
- * No other CPU idle time is taken into consideration.
271
- */
272
- eventLoopUtilization: EventLoopUtilityFunction;
273
- /**
274
- * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`.
275
- * If you are only interested in performance entries of certain types or that have certain names, see
276
- * `performance.getEntriesByType()` and `performance.getEntriesByName()`.
277
- * @since v16.7.0
278
- */
279
- getEntries(): PerformanceEntry[];
280
- /**
281
- * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
282
- * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`.
283
- * @param name
284
- * @param type
285
- * @since v16.7.0
286
- */
287
- getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
288
- /**
289
- * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
290
- * whose `performanceEntry.entryType` is equal to `type`.
291
- * @param type
292
- * @since v16.7.0
293
- */
294
- getEntriesByType(type: EntryType): PerformanceEntry[];
295
- /**
296
- * Creates a new `PerformanceMark` entry in the Performance Timeline.
297
- * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`,
298
- * and whose `performanceEntry.duration` is always `0`.
299
- * Performance marks are used to mark specific significant moments in the Performance Timeline.
300
- *
301
- * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with
302
- * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is
303
- * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`.
304
- * @param name
305
- */
306
- mark(name: string, options?: MarkOptions): PerformanceMark;
307
- /**
308
- * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline.
309
- * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`.
310
- * Performance resources are used to mark moments in the Resource Timeline.
311
- * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info)
312
- * @param requestedUrl The resource url
313
- * @param initiatorType The initiator name, e.g: 'fetch'
314
- * @param global
315
- * @param cacheMode The cache mode must be an empty string ('') or 'local'
316
- * @since v18.2.0, v16.17.0
317
- */
318
- markResourceTiming(
319
- timingInfo: object,
320
- requestedUrl: string,
321
- initiatorType: string,
322
- global: object,
323
- cacheMode: "" | "local",
324
- ): PerformanceResourceTiming;
325
- /**
326
- * Creates a new PerformanceMeasure entry in the Performance Timeline.
327
- * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
328
- * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
329
- *
330
- * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
331
- * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
332
- * then startMark is set to timeOrigin by default.
333
- *
334
- * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
335
- * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
336
- * @param name
337
- * @param startMark
338
- * @param endMark
339
- * @return The PerformanceMeasure entry that was created
340
- */
341
- measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure;
342
- measure(name: string, options: MeasureOptions): PerformanceMeasure;
343
- /**
344
- * _This property is an extension by Node.js. It is not available in Web browsers._
345
- *
346
- * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones.
347
- * @since v8.5.0
348
- */
349
- readonly nodeTiming: PerformanceNodeTiming;
350
- /**
351
- * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process.
352
- * @since v8.5.0
353
- */
354
- now(): number;
355
- /**
356
- * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects.
357
- *
358
- * By default the max buffer size is set to 250.
359
- * @since v18.8.0
360
- */
361
- setResourceTimingBufferSize(maxSize: number): void;
362
- /**
363
- * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp
364
- * at which the current `node` process began, measured in Unix time.
365
- * @since v8.5.0
366
- */
367
- readonly timeOrigin: number;
368
- /**
369
- * _This property is an extension by Node.js. It is not available in Web browsers._
370
- *
371
- * Wraps a function within a new function that measures the running time of the wrapped function.
372
- * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed.
373
- *
374
- * ```js
375
- * import {
376
- * performance,
377
- * PerformanceObserver,
378
- * } from 'node:perf_hooks';
379
- *
380
- * function someFunction() {
381
- * console.log('hello world');
382
- * }
383
- *
384
- * const wrapped = performance.timerify(someFunction);
385
- *
386
- * const obs = new PerformanceObserver((list) => {
387
- * console.log(list.getEntries()[0].duration);
388
- *
389
- * performance.clearMarks();
390
- * performance.clearMeasures();
391
- * obs.disconnect();
392
- * });
393
- * obs.observe({ entryTypes: ['function'] });
394
- *
395
- * // A performance timeline entry will be created
396
- * wrapped();
397
- * ```
398
- *
399
- * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported
400
- * once the finally handler is invoked.
401
- * @param fn
402
- */
403
- timerify<T extends (...params: any[]) => any>(fn: T, options?: TimerifyOptions): T;
404
- /**
405
- * An object which is JSON representation of the performance object. It is similar to
406
- * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers.
407
- * @since v16.1.0
408
- */
409
- toJSON(): any;
410
- }
411
- class PerformanceObserverEntryList {
412
- /**
413
- * Returns a list of `PerformanceEntry` objects in chronological order
414
- * with respect to `performanceEntry.startTime`.
415
- *
416
- * ```js
417
- * import {
418
- * performance,
419
- * PerformanceObserver,
420
- * } from 'node:perf_hooks';
421
- *
422
- * const obs = new PerformanceObserver((perfObserverList, observer) => {
423
- * console.log(perfObserverList.getEntries());
424
- *
425
- * * [
426
- * * PerformanceEntry {
427
- * * name: 'test',
428
- * * entryType: 'mark',
429
- * * startTime: 81.465639,
430
- * * duration: 0,
431
- * * detail: null
432
- * * },
433
- * * PerformanceEntry {
434
- * * name: 'meow',
435
- * * entryType: 'mark',
436
- * * startTime: 81.860064,
437
- * * duration: 0,
438
- * * detail: null
439
- * * }
440
- * * ]
441
- *
442
- * performance.clearMarks();
443
- * performance.clearMeasures();
444
- * observer.disconnect();
445
- * });
446
- * obs.observe({ type: 'mark' });
447
- *
448
- * performance.mark('test');
449
- * performance.mark('meow');
450
- * ```
451
- * @since v8.5.0
452
- */
453
- getEntries(): PerformanceEntry[];
454
- /**
455
- * Returns a list of `PerformanceEntry` objects in chronological order
456
- * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is
457
- * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`.
458
- *
459
- * ```js
460
- * import {
461
- * performance,
462
- * PerformanceObserver,
463
- * } from 'node:perf_hooks';
464
- *
465
- * const obs = new PerformanceObserver((perfObserverList, observer) => {
466
- * console.log(perfObserverList.getEntriesByName('meow'));
467
- *
468
- * * [
469
- * * PerformanceEntry {
470
- * * name: 'meow',
471
- * * entryType: 'mark',
472
- * * startTime: 98.545991,
473
- * * duration: 0,
474
- * * detail: null
475
- * * }
476
- * * ]
477
- *
478
- * console.log(perfObserverList.getEntriesByName('nope')); // []
479
- *
480
- * console.log(perfObserverList.getEntriesByName('test', 'mark'));
481
- *
482
- * * [
483
- * * PerformanceEntry {
484
- * * name: 'test',
485
- * * entryType: 'mark',
486
- * * startTime: 63.518931,
487
- * * duration: 0,
488
- * * detail: null
489
- * * }
490
- * * ]
491
- *
492
- * console.log(perfObserverList.getEntriesByName('test', 'measure')); // []
493
- *
494
- * performance.clearMarks();
495
- * performance.clearMeasures();
496
- * observer.disconnect();
497
- * });
498
- * obs.observe({ entryTypes: ['mark', 'measure'] });
499
- *
500
- * performance.mark('test');
501
- * performance.mark('meow');
502
- * ```
503
- * @since v8.5.0
504
- */
505
- getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
506
- /**
507
- * Returns a list of `PerformanceEntry` objects in chronological order
508
- * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`.
509
- *
510
- * ```js
511
- * import {
512
- * performance,
513
- * PerformanceObserver,
514
- * } from 'node:perf_hooks';
515
- *
516
- * const obs = new PerformanceObserver((perfObserverList, observer) => {
517
- * console.log(perfObserverList.getEntriesByType('mark'));
518
- *
519
- * * [
520
- * * PerformanceEntry {
521
- * * name: 'test',
522
- * * entryType: 'mark',
523
- * * startTime: 55.897834,
524
- * * duration: 0,
525
- * * detail: null
526
- * * },
527
- * * PerformanceEntry {
528
- * * name: 'meow',
529
- * * entryType: 'mark',
530
- * * startTime: 56.350146,
531
- * * duration: 0,
532
- * * detail: null
533
- * * }
534
- * * ]
535
- *
536
- * performance.clearMarks();
537
- * performance.clearMeasures();
538
- * observer.disconnect();
539
- * });
540
- * obs.observe({ type: 'mark' });
541
- *
542
- * performance.mark('test');
543
- * performance.mark('meow');
544
- * ```
545
- * @since v8.5.0
546
- */
547
- getEntriesByType(type: EntryType): PerformanceEntry[];
548
- }
549
- type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
550
- /**
551
- * @since v8.5.0
552
- */
553
- class PerformanceObserver extends AsyncResource {
554
- constructor(callback: PerformanceObserverCallback);
555
- /**
556
- * Disconnects the `PerformanceObserver` instance from all notifications.
557
- * @since v8.5.0
558
- */
559
- disconnect(): void;
560
- /**
561
- * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
562
- *
563
- * ```js
564
- * import {
565
- * performance,
566
- * PerformanceObserver,
567
- * } from 'node:perf_hooks';
568
- *
569
- * const obs = new PerformanceObserver((list, observer) => {
570
- * // Called once asynchronously. `list` contains three items.
571
- * });
572
- * obs.observe({ type: 'mark' });
573
- *
574
- * for (let n = 0; n < 3; n++)
575
- * performance.mark(`test${n}`);
576
- * ```
577
- * @since v8.5.0
578
- */
579
- observe(
580
- options:
581
- | {
582
- entryTypes: readonly EntryType[];
583
- buffered?: boolean | undefined;
584
- }
585
- | {
586
- type: EntryType;
587
- buffered?: boolean | undefined;
588
- },
589
- ): void;
590
- /**
591
- * @since v16.0.0
592
- * @returns Current list of entries stored in the performance observer, emptying it out.
593
- */
594
- takeRecords(): PerformanceEntry[];
595
- }
596
- /**
597
- * Provides detailed network timing data regarding the loading of an application's resources.
598
- *
599
- * The constructor of this class is not exposed to users directly.
600
- * @since v18.2.0, v16.17.0
601
- */
602
- class PerformanceResourceTiming extends PerformanceEntry {
603
- readonly entryType: "resource";
604
- protected constructor();
605
- /**
606
- * The high resolution millisecond timestamp at immediately before dispatching the `fetch`
607
- * request. If the resource is not intercepted by a worker the property will always return 0.
608
- * @since v18.2.0, v16.17.0
609
- */
610
- readonly workerStart: number;
611
- /**
612
- * The high resolution millisecond timestamp that represents the start time of the fetch which
613
- * initiates the redirect.
614
- * @since v18.2.0, v16.17.0
615
- */
616
- readonly redirectStart: number;
617
- /**
618
- * The high resolution millisecond timestamp that will be created immediately after receiving
619
- * the last byte of the response of the last redirect.
620
- * @since v18.2.0, v16.17.0
621
- */
622
- readonly redirectEnd: number;
623
- /**
624
- * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource.
625
- * @since v18.2.0, v16.17.0
626
- */
627
- readonly fetchStart: number;
628
- /**
629
- * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup
630
- * for the resource.
631
- * @since v18.2.0, v16.17.0
632
- */
633
- readonly domainLookupStart: number;
634
- /**
635
- * The high resolution millisecond timestamp representing the time immediately after the Node.js finished
636
- * the domain name lookup for the resource.
637
- * @since v18.2.0, v16.17.0
638
- */
639
- readonly domainLookupEnd: number;
640
- /**
641
- * The high resolution millisecond timestamp representing the time immediately before Node.js starts to
642
- * establish the connection to the server to retrieve the resource.
643
- * @since v18.2.0, v16.17.0
644
- */
645
- readonly connectStart: number;
646
- /**
647
- * The high resolution millisecond timestamp representing the time immediately after Node.js finishes
648
- * establishing the connection to the server to retrieve the resource.
649
- * @since v18.2.0, v16.17.0
650
- */
651
- readonly connectEnd: number;
652
- /**
653
- * The high resolution millisecond timestamp representing the time immediately before Node.js starts the
654
- * handshake process to secure the current connection.
655
- * @since v18.2.0, v16.17.0
656
- */
657
- readonly secureConnectionStart: number;
658
- /**
659
- * The high resolution millisecond timestamp representing the time immediately before Node.js receives the
660
- * first byte of the response from the server.
661
- * @since v18.2.0, v16.17.0
662
- */
663
- readonly requestStart: number;
664
- /**
665
- * The high resolution millisecond timestamp representing the time immediately after Node.js receives the
666
- * last byte of the resource or immediately before the transport connection is closed, whichever comes first.
667
- * @since v18.2.0, v16.17.0
668
- */
669
- readonly responseEnd: number;
670
- /**
671
- * A number representing the size (in octets) of the fetched resource. The size includes the response header
672
- * fields plus the response payload body.
673
- * @since v18.2.0, v16.17.0
674
- */
675
- readonly transferSize: number;
676
- /**
677
- * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before
678
- * removing any applied content-codings.
679
- * @since v18.2.0, v16.17.0
680
- */
681
- readonly encodedBodySize: number;
682
- /**
683
- * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after
684
- * removing any applied content-codings.
685
- * @since v18.2.0, v16.17.0
686
- */
687
- readonly decodedBodySize: number;
688
- /**
689
- * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object
690
- * @since v18.2.0, v16.17.0
691
- */
692
- toJSON(): any;
693
- }
694
- namespace constants {
695
- const NODE_PERFORMANCE_GC_MAJOR: number;
696
- const NODE_PERFORMANCE_GC_MINOR: number;
697
- const NODE_PERFORMANCE_GC_INCREMENTAL: number;
698
- const NODE_PERFORMANCE_GC_WEAKCB: number;
699
- const NODE_PERFORMANCE_GC_FLAGS_NO: number;
700
- const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
701
- const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
702
- const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
703
- const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
704
- const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
705
- const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
706
- }
707
- const performance: Performance;
708
- interface EventLoopMonitorOptions {
709
- /**
710
- * The sampling rate in milliseconds.
711
- * Must be greater than zero.
712
- * @default 10
713
- */
714
- resolution?: number | undefined;
715
- }
716
- interface Histogram {
717
- /**
718
- * The number of samples recorded by the histogram.
719
- * @since v17.4.0, v16.14.0
720
- */
721
- readonly count: number;
722
- /**
723
- * The number of samples recorded by the histogram.
724
- * v17.4.0, v16.14.0
725
- */
726
- readonly countBigInt: bigint;
727
- /**
728
- * The number of times the event loop delay exceeded the maximum 1 hour event
729
- * loop delay threshold.
730
- * @since v11.10.0
731
- */
732
- readonly exceeds: number;
733
- /**
734
- * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.
735
- * @since v17.4.0, v16.14.0
736
- */
737
- readonly exceedsBigInt: bigint;
738
- /**
739
- * The maximum recorded event loop delay.
740
- * @since v11.10.0
741
- */
742
- readonly max: number;
743
- /**
744
- * The maximum recorded event loop delay.
745
- * v17.4.0, v16.14.0
746
- */
747
- readonly maxBigInt: number;
748
- /**
749
- * The mean of the recorded event loop delays.
750
- * @since v11.10.0
751
- */
752
- readonly mean: number;
753
- /**
754
- * The minimum recorded event loop delay.
755
- * @since v11.10.0
756
- */
757
- readonly min: number;
758
- /**
759
- * The minimum recorded event loop delay.
760
- * v17.4.0, v16.14.0
761
- */
762
- readonly minBigInt: bigint;
763
- /**
764
- * Returns the value at the given percentile.
765
- * @since v11.10.0
766
- * @param percentile A percentile value in the range (0, 100].
767
- */
768
- percentile(percentile: number): number;
769
- /**
770
- * Returns the value at the given percentile.
771
- * @since v17.4.0, v16.14.0
772
- * @param percentile A percentile value in the range (0, 100].
773
- */
774
- percentileBigInt(percentile: number): bigint;
775
- /**
776
- * Returns a `Map` object detailing the accumulated percentile distribution.
777
- * @since v11.10.0
778
- */
779
- readonly percentiles: Map<number, number>;
780
- /**
781
- * Returns a `Map` object detailing the accumulated percentile distribution.
782
- * @since v17.4.0, v16.14.0
783
- */
784
- readonly percentilesBigInt: Map<bigint, bigint>;
785
- /**
786
- * Resets the collected histogram data.
787
- * @since v11.10.0
788
- */
789
- reset(): void;
790
- /**
791
- * The standard deviation of the recorded event loop delays.
792
- * @since v11.10.0
793
- */
794
- readonly stddev: number;
795
- }
796
- interface IntervalHistogram extends Histogram {
797
- /**
798
- * Enables the update interval timer. Returns `true` if the timer was
799
- * started, `false` if it was already started.
800
- * @since v11.10.0
801
- */
802
- enable(): boolean;
803
- /**
804
- * Disables the update interval timer. Returns `true` if the timer was
805
- * stopped, `false` if it was already stopped.
806
- * @since v11.10.0
807
- */
808
- disable(): boolean;
809
- }
810
- interface RecordableHistogram extends Histogram {
811
- /**
812
- * @since v15.9.0, v14.18.0
813
- * @param val The amount to record in the histogram.
814
- */
815
- record(val: number | bigint): void;
816
- /**
817
- * Calculates the amount of time (in nanoseconds) that has passed since the
818
- * previous call to `recordDelta()` and records that amount in the histogram.
819
- * @since v15.9.0, v14.18.0
820
- */
821
- recordDelta(): void;
822
- /**
823
- * Adds the values from `other` to this histogram.
824
- * @since v17.4.0, v16.14.0
825
- */
826
- add(other: RecordableHistogram): void;
827
- }
828
- /**
829
- * _This property is an extension by Node.js. It is not available in Web browsers._
830
- *
831
- * Creates an `IntervalHistogram` object that samples and reports the event loop
832
- * delay over time. The delays will be reported in nanoseconds.
833
- *
834
- * Using a timer to detect approximate event loop delay works because the
835
- * execution of timers is tied specifically to the lifecycle of the libuv
836
- * event loop. That is, a delay in the loop will cause a delay in the execution
837
- * of the timer, and those delays are specifically what this API is intended to
838
- * detect.
839
- *
840
- * ```js
841
- * import { monitorEventLoopDelay } from 'node:perf_hooks';
842
- * const h = monitorEventLoopDelay({ resolution: 20 });
843
- * h.enable();
844
- * // Do something.
845
- * h.disable();
846
- * console.log(h.min);
847
- * console.log(h.max);
848
- * console.log(h.mean);
849
- * console.log(h.stddev);
850
- * console.log(h.percentiles);
851
- * console.log(h.percentile(50));
852
- * console.log(h.percentile(99));
853
- * ```
854
- * @since v11.10.0
855
- */
856
- function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
857
- interface CreateHistogramOptions {
858
- /**
859
- * The minimum recordable value. Must be an integer value greater than 0.
860
- * @default 1
861
- */
862
- lowest?: number | bigint | undefined;
863
- /**
864
- * The maximum recordable value. Must be an integer value greater than min.
865
- * @default Number.MAX_SAFE_INTEGER
866
- */
867
- highest?: number | bigint | undefined;
868
- /**
869
- * The number of accuracy digits. Must be a number between 1 and 5.
870
- * @default 3
871
- */
872
- figures?: number | undefined;
873
- }
874
- /**
875
- * Returns a `RecordableHistogram`.
876
- * @since v15.9.0, v14.18.0
877
- */
878
- function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
879
- import {
880
- performance as _performance,
881
- PerformanceEntry as _PerformanceEntry,
882
- PerformanceMark as _PerformanceMark,
883
- PerformanceMeasure as _PerformanceMeasure,
884
- PerformanceObserver as _PerformanceObserver,
885
- PerformanceObserverEntryList as _PerformanceObserverEntryList,
886
- PerformanceResourceTiming as _PerformanceResourceTiming,
887
- } from "perf_hooks";
888
- global {
889
- /**
890
- * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:node:perf_hooks'`
891
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceentry
892
- * @since v19.0.0
893
- */
894
- var PerformanceEntry: typeof globalThis extends {
895
- onmessage: any;
896
- PerformanceEntry: infer T;
897
- } ? T
898
- : typeof _PerformanceEntry;
899
- /**
900
- * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:node:perf_hooks'`
901
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemark
902
- * @since v19.0.0
903
- */
904
- var PerformanceMark: typeof globalThis extends {
905
- onmessage: any;
906
- PerformanceMark: infer T;
907
- } ? T
908
- : typeof _PerformanceMark;
909
- /**
910
- * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:node:perf_hooks'`
911
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemeasure
912
- * @since v19.0.0
913
- */
914
- var PerformanceMeasure: typeof globalThis extends {
915
- onmessage: any;
916
- PerformanceMeasure: infer T;
917
- } ? T
918
- : typeof _PerformanceMeasure;
919
- /**
920
- * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:node:perf_hooks'`
921
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserver
922
- * @since v19.0.0
923
- */
924
- var PerformanceObserver: typeof globalThis extends {
925
- onmessage: any;
926
- PerformanceObserver: infer T;
927
- } ? T
928
- : typeof _PerformanceObserver;
929
- /**
930
- * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:node:perf_hooks'`
931
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserverentrylist
932
- * @since v19.0.0
933
- */
934
- var PerformanceObserverEntryList: typeof globalThis extends {
935
- onmessage: any;
936
- PerformanceObserverEntryList: infer T;
937
- } ? T
938
- : typeof _PerformanceObserverEntryList;
939
- /**
940
- * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:node:perf_hooks'`
941
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceresourcetiming
942
- * @since v19.0.0
943
- */
944
- var PerformanceResourceTiming: typeof globalThis extends {
945
- onmessage: any;
946
- PerformanceResourceTiming: infer T;
947
- } ? T
948
- : typeof _PerformanceResourceTiming;
949
- /**
950
- * `performance` is a global reference for `import { performance } from 'node:node:perf_hooks'`
951
- * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performance
952
- * @since v16.0.0
953
- */
954
- var performance: typeof globalThis extends {
955
- onmessage: any;
956
- performance: infer T;
957
- } ? T
958
- : typeof _performance;
959
- }
960
- }
961
- declare module "node:perf_hooks" {
962
- export * from "perf_hooks";
963
- }