agent-enderun 1.1.1 → 1.1.3

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 (837) hide show
  1. package/{.enderun/ENDERUN.md → ENDERUN.md} +25 -25
  2. package/README.md +6 -6
  3. package/bin/cli.js +3 -4
  4. package/bin/compile.js +21 -0
  5. package/bin/enderun-dashboard.js +866 -0
  6. package/bin/generate-cursor-rules.js +78 -0
  7. package/bin/test-init-run.js +147 -0
  8. package/bin/validate-agent-army.js +65 -67
  9. package/bin/watch-memory.js +54 -0
  10. package/dist/framework-mcp/src/index.js +1 -1
  11. package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +15 -0
  12. package/dist/framework-mcp/src/tools/control_plane/locking.js +65 -0
  13. package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -0
  14. package/dist/framework-mcp/src/tools/control_plane/registry.d.ts +12 -0
  15. package/dist/framework-mcp/src/tools/control_plane/registry.js +35 -0
  16. package/dist/framework-mcp/src/tools/control_plane/registry.js.map +1 -0
  17. package/dist/framework-mcp/src/tools/definitions.js +49 -8
  18. package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
  19. package/dist/framework-mcp/src/tools/file_system/read_file.js +20 -0
  20. package/dist/framework-mcp/src/tools/file_system/read_file.js.map +1 -1
  21. package/dist/framework-mcp/src/tools/file_system/write_file.js +16 -2
  22. package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
  23. package/dist/framework-mcp/src/tools/index.d.ts +1 -1
  24. package/dist/framework-mcp/src/tools/index.js +5 -0
  25. package/dist/framework-mcp/src/tools/index.js.map +1 -1
  26. package/dist/framework-mcp/src/tools/messaging/send_message.d.ts +1 -1
  27. package/dist/framework-mcp/src/tools/messaging/send_message.js +36 -15
  28. package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -1
  29. package/dist/framework-mcp/src/utils/metrics.d.ts +10 -0
  30. package/dist/framework-mcp/src/utils/metrics.js +39 -0
  31. package/dist/framework-mcp/src/utils/metrics.js.map +1 -0
  32. package/dist/framework-mcp/src/utils/security.js +7 -3
  33. package/dist/framework-mcp/src/utils/security.js.map +1 -1
  34. package/dist/init-adapters/antigravity-cli/.agents/BRAIN_DASHBOARD.md +11 -0
  35. package/dist/init-adapters/antigravity-cli/.agents/STATUS.md +3 -0
  36. package/dist/init-adapters/antigravity-cli/.agents/agents/analyst/agent.json +28 -0
  37. package/dist/init-adapters/antigravity-cli/.agents/agents/architect/agent.json +30 -0
  38. package/dist/init-adapters/antigravity-cli/.agents/agents/backend/agent.json +30 -0
  39. package/dist/init-adapters/antigravity-cli/.agents/agents/database/agent.json +29 -0
  40. package/dist/init-adapters/antigravity-cli/.agents/agents/devops/agent.json +28 -0
  41. package/dist/init-adapters/antigravity-cli/.agents/agents/explorer/agent.json +29 -0
  42. package/dist/init-adapters/antigravity-cli/.agents/agents/frontend/agent.json +29 -0
  43. package/dist/init-adapters/antigravity-cli/.agents/agents/git/agent.json +28 -0
  44. package/dist/init-adapters/antigravity-cli/.agents/agents/manager/agent.json +30 -0
  45. package/dist/init-adapters/antigravity-cli/.agents/agents/mobile/agent.json +29 -0
  46. package/dist/init-adapters/antigravity-cli/.agents/agents/native/agent.json +29 -0
  47. package/dist/init-adapters/antigravity-cli/.agents/agents/quality/agent.json +29 -0
  48. package/dist/init-adapters/antigravity-cli/.agents/agents/security/agent.json +29 -0
  49. package/dist/init-adapters/antigravity-cli/.agents/cli-commands.json +32 -0
  50. package/dist/init-adapters/antigravity-cli/.agents/config.json +12 -0
  51. package/dist/init-adapters/antigravity-cli/.agents/mcp_config.json +13 -0
  52. package/dist/init-adapters/antigravity-cli/.agents/memory/PROJECT_MEMORY.md +8 -0
  53. package/dist/init-adapters/antigravity-cli/.agents/skills/discovery.md +3 -0
  54. package/dist/init-adapters/antigravity-cli/.agents/skills/editing.md +3 -0
  55. package/dist/init-adapters/antigravity-cli/.agents/skills/execution.md +4 -0
  56. package/dist/init-adapters/antigravity-cli/.agents/skills/file_system.md +4 -0
  57. package/dist/init-adapters/antigravity-cli/.agents/skills/orchestration.md +3 -0
  58. package/dist/init-adapters/antigravity-cli/AGENTS.md +1 -0
  59. package/dist/init-adapters/antigravity-cli/ENDERUN.md +263 -0
  60. package/dist/init-adapters/antigravity-cli/mcp.json +13 -0
  61. package/dist/init-adapters/antigravity-cli/package.json +5 -0
  62. package/dist/init-adapters/antigravity-cli/panda.config.ts +2 -0
  63. package/dist/init-adapters/claude/.claude/BRAIN_DASHBOARD.md +11 -0
  64. package/dist/init-adapters/claude/.claude/STATUS.md +3 -0
  65. package/dist/init-adapters/claude/.claude/agents/analyst.md +15 -0
  66. package/dist/init-adapters/claude/.claude/agents/architect.md +15 -0
  67. package/dist/init-adapters/claude/.claude/agents/backend.md +15 -0
  68. package/dist/init-adapters/claude/.claude/agents/database.md +15 -0
  69. package/dist/init-adapters/claude/.claude/agents/devops.md +15 -0
  70. package/dist/init-adapters/claude/.claude/agents/explorer.md +15 -0
  71. package/dist/init-adapters/claude/.claude/agents/frontend.md +15 -0
  72. package/dist/init-adapters/claude/.claude/agents/git.md +15 -0
  73. package/dist/init-adapters/claude/.claude/agents/manager.md +15 -0
  74. package/dist/init-adapters/claude/.claude/agents/mobile.md +15 -0
  75. package/dist/init-adapters/claude/.claude/agents/native.md +15 -0
  76. package/dist/init-adapters/claude/.claude/agents/quality.md +15 -0
  77. package/dist/init-adapters/claude/.claude/agents/security.md +15 -0
  78. package/dist/init-adapters/claude/.claude/cli-commands.json +32 -0
  79. package/dist/init-adapters/claude/.claude/config.json +12 -0
  80. package/dist/init-adapters/claude/.claude/mcp_config.json +13 -0
  81. package/dist/init-adapters/claude/.claude/memory/PROJECT_MEMORY.md +8 -0
  82. package/dist/init-adapters/claude/.claude/skills/discovery.md +3 -0
  83. package/dist/init-adapters/claude/.claude/skills/editing.md +3 -0
  84. package/dist/init-adapters/claude/.claude/skills/execution.md +4 -0
  85. package/dist/init-adapters/claude/.claude/skills/file_system.md +4 -0
  86. package/dist/init-adapters/claude/.claude/skills/orchestration.md +3 -0
  87. package/dist/init-adapters/claude/.mcp.json +13 -0
  88. package/dist/init-adapters/claude/CLAUDE.md +1 -0
  89. package/dist/init-adapters/claude/ENDERUN.md +263 -0
  90. package/dist/init-adapters/claude/mcp.json +13 -0
  91. package/dist/init-adapters/claude/package.json +5 -0
  92. package/dist/init-adapters/claude/panda.config.ts +2 -0
  93. package/dist/init-adapters/codex/.github/BRAIN_DASHBOARD.md +11 -0
  94. package/dist/init-adapters/codex/.github/STATUS.md +3 -0
  95. package/dist/init-adapters/codex/.github/agents/analyst.md +15 -0
  96. package/dist/init-adapters/codex/.github/agents/architect.md +15 -0
  97. package/dist/init-adapters/codex/.github/agents/backend.md +15 -0
  98. package/dist/init-adapters/codex/.github/agents/database.md +15 -0
  99. package/dist/init-adapters/codex/.github/agents/devops.md +15 -0
  100. package/dist/init-adapters/codex/.github/agents/explorer.md +15 -0
  101. package/dist/init-adapters/codex/.github/agents/frontend.md +15 -0
  102. package/dist/init-adapters/codex/.github/agents/git.md +15 -0
  103. package/dist/init-adapters/codex/.github/agents/manager.md +15 -0
  104. package/dist/init-adapters/codex/.github/agents/mobile.md +15 -0
  105. package/dist/init-adapters/codex/.github/agents/native.md +15 -0
  106. package/dist/init-adapters/codex/.github/agents/quality.md +15 -0
  107. package/dist/init-adapters/codex/.github/agents/security.md +15 -0
  108. package/dist/init-adapters/codex/.github/cli-commands.json +32 -0
  109. package/dist/init-adapters/codex/.github/config.json +12 -0
  110. package/dist/init-adapters/codex/.github/mcp_config.json +13 -0
  111. package/dist/init-adapters/codex/.github/memory/PROJECT_MEMORY.md +8 -0
  112. package/dist/init-adapters/codex/.github/skills/discovery.md +3 -0
  113. package/dist/init-adapters/codex/.github/skills/editing.md +3 -0
  114. package/dist/init-adapters/codex/.github/skills/execution.md +4 -0
  115. package/dist/init-adapters/codex/.github/skills/file_system.md +4 -0
  116. package/dist/init-adapters/codex/.github/skills/orchestration.md +3 -0
  117. package/dist/init-adapters/codex/.mcp.json +13 -0
  118. package/dist/init-adapters/codex/.vscode/mcp.json +13 -0
  119. package/dist/init-adapters/codex/ENDERUN.md +263 -0
  120. package/dist/init-adapters/codex/copilot-instructions.md +1 -0
  121. package/dist/init-adapters/codex/mcp.json +13 -0
  122. package/dist/init-adapters/codex/package.json +5 -0
  123. package/dist/init-adapters/codex/panda.config.ts +2 -0
  124. package/dist/init-adapters/cursor/.cursor/BRAIN_DASHBOARD.md +11 -0
  125. package/dist/init-adapters/cursor/.cursor/STATUS.md +3 -0
  126. package/dist/init-adapters/cursor/.cursor/agents/analyst.md +15 -0
  127. package/dist/init-adapters/cursor/.cursor/agents/architect.md +15 -0
  128. package/dist/init-adapters/cursor/.cursor/agents/backend.md +15 -0
  129. package/dist/init-adapters/cursor/.cursor/agents/database.md +15 -0
  130. package/dist/init-adapters/cursor/.cursor/agents/devops.md +15 -0
  131. package/dist/init-adapters/cursor/.cursor/agents/explorer.md +15 -0
  132. package/dist/init-adapters/cursor/.cursor/agents/frontend.md +15 -0
  133. package/dist/init-adapters/cursor/.cursor/agents/git.md +15 -0
  134. package/dist/init-adapters/cursor/.cursor/agents/manager.md +15 -0
  135. package/dist/init-adapters/cursor/.cursor/agents/mobile.md +15 -0
  136. package/dist/init-adapters/cursor/.cursor/agents/native.md +15 -0
  137. package/dist/init-adapters/cursor/.cursor/agents/quality.md +15 -0
  138. package/dist/init-adapters/cursor/.cursor/agents/security.md +15 -0
  139. package/dist/init-adapters/cursor/.cursor/cli-commands.json +32 -0
  140. package/dist/init-adapters/cursor/.cursor/config.json +12 -0
  141. package/dist/init-adapters/cursor/.cursor/mcp.json +13 -0
  142. package/dist/init-adapters/cursor/.cursor/memory/PROJECT_MEMORY.md +8 -0
  143. package/dist/init-adapters/cursor/.cursor/skills/discovery.md +3 -0
  144. package/dist/init-adapters/cursor/.cursor/skills/editing.md +3 -0
  145. package/dist/init-adapters/cursor/.cursor/skills/execution.md +4 -0
  146. package/dist/init-adapters/cursor/.cursor/skills/file_system.md +4 -0
  147. package/dist/init-adapters/cursor/.cursor/skills/orchestration.md +3 -0
  148. package/dist/init-adapters/cursor/CURSOR.md +1 -0
  149. package/dist/init-adapters/cursor/ENDERUN.md +263 -0
  150. package/dist/init-adapters/cursor/mcp.json +13 -0
  151. package/dist/init-adapters/cursor/package.json +5 -0
  152. package/dist/init-adapters/cursor/panda.config.ts +2 -0
  153. package/dist/init-adapters/gemini/.gemini/BRAIN_DASHBOARD.md +11 -0
  154. package/dist/init-adapters/gemini/.gemini/STATUS.md +3 -0
  155. package/dist/init-adapters/gemini/.gemini/agents/analyst.md +15 -0
  156. package/dist/init-adapters/gemini/.gemini/agents/architect.md +15 -0
  157. package/dist/init-adapters/gemini/.gemini/agents/backend.md +15 -0
  158. package/dist/init-adapters/gemini/.gemini/agents/database.md +15 -0
  159. package/dist/init-adapters/gemini/.gemini/agents/devops.md +15 -0
  160. package/dist/init-adapters/gemini/.gemini/agents/explorer.md +15 -0
  161. package/dist/init-adapters/gemini/.gemini/agents/frontend.md +15 -0
  162. package/dist/init-adapters/gemini/.gemini/agents/git.md +15 -0
  163. package/dist/init-adapters/gemini/.gemini/agents/manager.md +15 -0
  164. package/dist/init-adapters/gemini/.gemini/agents/mobile.md +15 -0
  165. package/dist/init-adapters/gemini/.gemini/agents/native.md +15 -0
  166. package/dist/init-adapters/gemini/.gemini/agents/quality.md +15 -0
  167. package/dist/init-adapters/gemini/.gemini/agents/security.md +15 -0
  168. package/dist/init-adapters/gemini/.gemini/cli-commands.json +32 -0
  169. package/dist/init-adapters/gemini/.gemini/config.json +12 -0
  170. package/dist/init-adapters/gemini/.gemini/mcp.json +13 -0
  171. package/dist/init-adapters/gemini/.gemini/memory/PROJECT_MEMORY.md +8 -0
  172. package/dist/init-adapters/gemini/.gemini/skills/discovery.md +3 -0
  173. package/dist/init-adapters/gemini/.gemini/skills/editing.md +3 -0
  174. package/dist/init-adapters/gemini/.gemini/skills/execution.md +4 -0
  175. package/dist/init-adapters/gemini/.gemini/skills/file_system.md +4 -0
  176. package/dist/init-adapters/gemini/.gemini/skills/orchestration.md +3 -0
  177. package/dist/init-adapters/gemini/ENDERUN.md +263 -0
  178. package/dist/init-adapters/gemini/GEMINI.md +1 -0
  179. package/dist/init-adapters/gemini/mcp.json +13 -0
  180. package/dist/init-adapters/gemini/package.json +5 -0
  181. package/dist/init-adapters/gemini/panda.config.ts +2 -0
  182. package/dist/init-adapters/grok/.grok/BRAIN_DASHBOARD.md +11 -0
  183. package/dist/init-adapters/grok/.grok/STATUS.md +3 -0
  184. package/dist/init-adapters/grok/.grok/agents/analyst.md +15 -0
  185. package/dist/init-adapters/grok/.grok/agents/architect.md +15 -0
  186. package/dist/init-adapters/grok/.grok/agents/backend.md +15 -0
  187. package/dist/init-adapters/grok/.grok/agents/database.md +15 -0
  188. package/dist/init-adapters/grok/.grok/agents/devops.md +15 -0
  189. package/dist/init-adapters/grok/.grok/agents/explorer.md +15 -0
  190. package/dist/init-adapters/grok/.grok/agents/frontend.md +15 -0
  191. package/dist/init-adapters/grok/.grok/agents/git.md +15 -0
  192. package/dist/init-adapters/grok/.grok/agents/manager.md +15 -0
  193. package/dist/init-adapters/grok/.grok/agents/mobile.md +15 -0
  194. package/dist/init-adapters/grok/.grok/agents/native.md +15 -0
  195. package/dist/init-adapters/grok/.grok/agents/quality.md +15 -0
  196. package/dist/init-adapters/grok/.grok/agents/security.md +15 -0
  197. package/dist/init-adapters/grok/.grok/cli-commands.json +32 -0
  198. package/dist/init-adapters/grok/.grok/config.json +12 -0
  199. package/{.enderun → dist/init-adapters/grok/.grok}/mcp_config.json +4 -2
  200. package/dist/init-adapters/grok/.grok/memory/PROJECT_MEMORY.md +8 -0
  201. package/dist/init-adapters/grok/.grok/skills/discovery.md +3 -0
  202. package/dist/init-adapters/grok/.grok/skills/editing.md +3 -0
  203. package/dist/init-adapters/grok/.grok/skills/execution.md +4 -0
  204. package/dist/init-adapters/grok/.grok/skills/file_system.md +4 -0
  205. package/dist/init-adapters/grok/.grok/skills/orchestration.md +3 -0
  206. package/dist/init-adapters/grok/ENDERUN.md +263 -0
  207. package/dist/init-adapters/grok/GROK.md +1 -0
  208. package/{mcp.json → dist/init-adapters/grok/mcp.json} +4 -2
  209. package/dist/init-adapters/grok/package.json +5 -0
  210. package/dist/init-adapters/grok/panda.config.ts +2 -0
  211. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp.json +13 -0
  212. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp_config.json +13 -0
  213. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst/agent.json +28 -0
  214. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst.json +28 -0
  215. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect/agent.json +30 -0
  216. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect.json +30 -0
  217. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend/agent.json +30 -0
  218. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend.json +30 -0
  219. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database/agent.json +29 -0
  220. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database.json +29 -0
  221. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops/agent.json +28 -0
  222. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops.json +28 -0
  223. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer/agent.json +29 -0
  224. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer.json +29 -0
  225. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend/agent.json +29 -0
  226. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend.json +29 -0
  227. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git/agent.json +28 -0
  228. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git.json +28 -0
  229. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager/agent.json +30 -0
  230. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager.json +30 -0
  231. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile/agent.json +29 -0
  232. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile.json +29 -0
  233. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native/agent.json +29 -0
  234. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native.json +29 -0
  235. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality/agent.json +29 -0
  236. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality.json +29 -0
  237. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security/agent.json +29 -0
  238. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security.json +29 -0
  239. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/hooks.json +4 -0
  240. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp.json +13 -0
  241. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp_config.json +13 -0
  242. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/plugin.json +5 -0
  243. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/analyst.md +11 -0
  244. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/architect.md +11 -0
  245. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/backend.md +11 -0
  246. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/database.md +11 -0
  247. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/devops.md +11 -0
  248. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/explorer.md +11 -0
  249. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/frontend.md +11 -0
  250. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/git.md +11 -0
  251. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/manager.md +11 -0
  252. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/mobile.md +11 -0
  253. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/native.md +11 -0
  254. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/quality.md +11 -0
  255. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/security.md +11 -0
  256. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/discovery.md +3 -0
  257. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/editing.md +3 -0
  258. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/execution.md +4 -0
  259. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/file_system.md +4 -0
  260. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/orchestration.md +3 -0
  261. package/dist/init-adapters/mock-home/Library/Application Support/Claude/claude_desktop_config.json +13 -0
  262. package/dist/src/cli/adapters/types.d.ts +14 -0
  263. package/dist/src/cli/adapters/types.js +2 -0
  264. package/dist/src/cli/adapters/types.js.map +1 -0
  265. package/dist/src/cli/adapters.d.ts +7 -23
  266. package/dist/src/cli/adapters.js +126 -142
  267. package/dist/src/cli/adapters.js.map +1 -1
  268. package/dist/src/cli/commands/check.d.ts +0 -5
  269. package/dist/src/cli/commands/check.js +65 -66
  270. package/dist/src/cli/commands/check.js.map +1 -1
  271. package/dist/src/cli/commands/init.d.ts +1 -1
  272. package/dist/src/cli/commands/init.js +156 -311
  273. package/dist/src/cli/commands/init.js.map +1 -1
  274. package/dist/src/cli/commands/log.d.ts +1 -0
  275. package/dist/src/cli/commands/log.js.map +1 -1
  276. package/dist/src/cli/commands/memory.js +2 -69
  277. package/dist/src/cli/commands/memory.js.map +1 -1
  278. package/dist/src/cli/commands/orchestrate.d.ts +25 -0
  279. package/dist/src/cli/commands/orchestrate.js +71 -48
  280. package/dist/src/cli/commands/orchestrate.js.map +1 -1
  281. package/dist/src/cli/index.js +170 -23
  282. package/dist/src/cli/index.js.map +1 -1
  283. package/dist/src/cli/utils/app.d.ts +1 -2
  284. package/dist/src/cli/utils/app.js +2 -2
  285. package/dist/src/cli/utils/app.js.map +1 -1
  286. package/dist/src/cli/utils/config-schema.d.ts +139 -0
  287. package/dist/src/cli/utils/config-schema.js +43 -0
  288. package/dist/src/cli/utils/config-schema.js.map +1 -0
  289. package/dist/src/cli/utils/fs.d.ts +2 -4
  290. package/dist/src/cli/utils/fs.js +9 -26
  291. package/dist/src/cli/utils/fs.js.map +1 -1
  292. package/dist/src/cli/utils/memory.d.ts +4 -3
  293. package/dist/src/cli/utils/memory.js +136 -113
  294. package/dist/src/cli/utils/memory.js.map +1 -1
  295. package/dist/src/cli/utils/pkg.js +6 -2
  296. package/dist/src/cli/utils/pkg.js.map +1 -1
  297. package/dist/src/cli/utils/ui.d.ts +30 -0
  298. package/dist/src/cli/utils/ui.js +56 -0
  299. package/dist/src/cli/utils/ui.js.map +1 -0
  300. package/dist/src/modules/adapters/antigravity-cli.d.ts +3 -0
  301. package/dist/src/modules/adapters/antigravity-cli.js +21 -0
  302. package/dist/src/modules/adapters/antigravity-cli.js.map +1 -0
  303. package/dist/src/modules/adapters/claude.d.ts +3 -0
  304. package/dist/src/modules/adapters/claude.js +36 -0
  305. package/dist/src/modules/adapters/claude.js.map +1 -0
  306. package/dist/src/modules/adapters/codex.d.ts +3 -0
  307. package/dist/src/modules/adapters/codex.js +20 -0
  308. package/dist/src/modules/adapters/codex.js.map +1 -0
  309. package/dist/src/modules/adapters/cursor.d.ts +3 -0
  310. package/dist/src/modules/adapters/cursor.js +20 -0
  311. package/dist/src/modules/adapters/cursor.js.map +1 -0
  312. package/dist/src/modules/adapters/gemini.d.ts +3 -0
  313. package/dist/src/modules/adapters/gemini.js +23 -0
  314. package/dist/src/modules/adapters/gemini.js.map +1 -0
  315. package/dist/src/modules/adapters/grok.d.ts +3 -0
  316. package/dist/src/modules/adapters/grok.js +18 -0
  317. package/dist/src/modules/adapters/grok.js.map +1 -0
  318. package/dist/src/modules/adapters/shared.d.ts +1 -0
  319. package/dist/src/modules/adapters/shared.js +79 -0
  320. package/dist/src/modules/adapters/shared.js.map +1 -0
  321. package/dist/src/modules/adapters/types.d.ts +14 -0
  322. package/dist/src/modules/adapters/types.js +2 -0
  323. package/dist/src/modules/adapters/types.js.map +1 -0
  324. package/dist/src/modules/agents/definitions.d.ts +13 -0
  325. package/dist/src/modules/agents/definitions.js +169 -0
  326. package/dist/src/modules/agents/definitions.js.map +1 -0
  327. package/dist/src/modules/skills/definitions.d.ts +31 -0
  328. package/dist/src/modules/skills/definitions.js +32 -0
  329. package/dist/src/modules/skills/definitions.js.map +1 -0
  330. package/dist/src/shared/fs.d.ts +3 -0
  331. package/dist/src/shared/fs.js +24 -0
  332. package/dist/src/shared/fs.js.map +1 -0
  333. package/dist/vitest.config.js +1 -1
  334. package/dist/vitest.config.js.map +1 -1
  335. package/eslint.config.js +3 -2
  336. package/framework-mcp/dist/src/index.js +1 -1
  337. package/framework-mcp/dist/src/tools/control_plane/locking.js +64 -0
  338. package/framework-mcp/dist/src/tools/control_plane/registry.js +34 -0
  339. package/framework-mcp/dist/src/tools/definitions.js +49 -8
  340. package/framework-mcp/dist/src/tools/file_system/read_file.js +20 -0
  341. package/framework-mcp/dist/src/tools/file_system/write_file.js +16 -2
  342. package/framework-mcp/dist/src/tools/index.js +5 -0
  343. package/framework-mcp/dist/src/tools/messaging/send_message.js +2 -4
  344. package/framework-mcp/dist/src/utils/metrics.js +38 -0
  345. package/framework-mcp/dist/src/utils/security.js +7 -3
  346. package/framework-mcp/dist/tests/tools/file_system/file_system_tools.test.js +147 -0
  347. package/framework-mcp/package.json +2 -2
  348. package/framework-mcp/src/index.ts +1 -1
  349. package/framework-mcp/src/tools/control_plane/locking.ts +77 -0
  350. package/framework-mcp/src/tools/control_plane/registry.ts +44 -0
  351. package/framework-mcp/src/tools/definitions.ts +49 -8
  352. package/framework-mcp/src/tools/file_system/read_file.ts +24 -0
  353. package/framework-mcp/src/tools/file_system/write_file.ts +19 -2
  354. package/framework-mcp/src/tools/index.ts +6 -1
  355. package/framework-mcp/src/tools/messaging/send_message.ts +2 -3
  356. package/framework-mcp/src/utils/metrics.ts +53 -0
  357. package/framework-mcp/src/utils/security.ts +8 -3
  358. package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +164 -0
  359. package/framework-mcp/tsconfig.json +2 -1
  360. package/package.json +16 -13
  361. package/src/cli/adapters/types.ts +16 -0
  362. package/src/cli/adapters.ts +130 -156
  363. package/src/cli/commands/check.ts +61 -65
  364. package/src/cli/commands/init.ts +163 -311
  365. package/src/cli/commands/log.ts +1 -1
  366. package/src/cli/commands/memory.ts +3 -80
  367. package/src/cli/commands/orchestrate.ts +76 -90
  368. package/src/cli/index.ts +121 -29
  369. package/src/cli/utils/app.ts +3 -3
  370. package/src/cli/utils/config-schema.ts +48 -0
  371. package/src/cli/utils/fs.ts +10 -27
  372. package/src/cli/utils/memory.ts +143 -108
  373. package/src/cli/utils/pkg.ts +6 -2
  374. package/src/cli/utils/ui.ts +63 -0
  375. package/src/modules/adapters/antigravity-cli.ts +25 -0
  376. package/src/modules/adapters/claude.ts +36 -0
  377. package/src/modules/adapters/codex.ts +22 -0
  378. package/src/modules/adapters/cursor.ts +22 -0
  379. package/src/modules/adapters/gemini.ts +27 -0
  380. package/src/modules/adapters/grok.ts +20 -0
  381. package/src/modules/adapters/shared.ts +90 -0
  382. package/src/modules/adapters/types.ts +16 -0
  383. package/src/modules/agents/definitions.ts +182 -0
  384. package/src/modules/skills/definitions.ts +32 -0
  385. package/src/shared/fs.ts +25 -0
  386. package/tsconfig.json +0 -2
  387. package/.enderun/ARCHITECTURE.md +0 -1
  388. package/.enderun/BRAIN_DASHBOARD.md +0 -46
  389. package/.enderun/SECURITY.md +0 -1
  390. package/.enderun/STATUS.md +0 -61
  391. package/.enderun/agents/agent_army_schema.json +0 -101
  392. package/.enderun/agents/analyst.json +0 -32
  393. package/.enderun/agents/backend.json +0 -32
  394. package/.enderun/agents/database.json +0 -32
  395. package/.enderun/agents/devops.json +0 -32
  396. package/.enderun/agents/explorer.json +0 -32
  397. package/.enderun/agents/frontend.json +0 -32
  398. package/.enderun/agents/git.json +0 -32
  399. package/.enderun/agents/manager.json +0 -34
  400. package/.enderun/agents/mobile.json +0 -32
  401. package/.enderun/agents/native.json +0 -32
  402. package/.enderun/agents/quality.json +0 -32
  403. package/.enderun/agents/schema/agent-lifecycle-schema.json +0 -41
  404. package/.enderun/agents/security.json +0 -32
  405. package/.enderun/benchmarks/.gitkeep +0 -0
  406. package/.enderun/cli-commands.json +0 -76
  407. package/.enderun/config.json +0 -12
  408. package/.enderun/knowledge/ARCHITECTURE.md +0 -1
  409. package/.enderun/knowledge/SECURITY.md +0 -1
  410. package/.enderun/knowledge/SHIM_TEMPLATE.md +0 -36
  411. package/.enderun/knowledge/analyst_reference_guide.md +0 -31
  412. package/.enderun/knowledge/async_error_handling.md +0 -27
  413. package/.enderun/knowledge/backend_reference_guide.md +0 -165
  414. package/.enderun/knowledge/blueprint_driven_construction.md +0 -22
  415. package/.enderun/knowledge/context_boundary_rules.md +0 -57
  416. package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +0 -92
  417. package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +0 -59
  418. package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +0 -125
  419. package/.enderun/knowledge/corporate-governance/branded-types-law.md +0 -77
  420. package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +0 -92
  421. package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +0 -89
  422. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +0 -56
  423. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +0 -144
  424. package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +0 -103
  425. package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +0 -75
  426. package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +0 -211
  427. package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +0 -54
  428. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +0 -167
  429. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow.md +0 -29
  430. package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +0 -76
  431. package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +0 -49
  432. package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +0 -112
  433. package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +0 -79
  434. package/.enderun/knowledge/database_reference_guide.md +0 -38
  435. package/.enderun/knowledge/devops_reference_guide.md +0 -43
  436. package/.enderun/knowledge/documentation_ownership.md +0 -53
  437. package/.enderun/knowledge/eslint-standards.md +0 -63
  438. package/.enderun/knowledge/evaluation_engine.md +0 -26
  439. package/.enderun/knowledge/explorer_reference_guide.md +0 -34
  440. package/.enderun/knowledge/framework_vs_user_project_boundary.md +0 -52
  441. package/.enderun/knowledge/frontend_professionalization_guidelines.md +0 -108
  442. package/.enderun/knowledge/frontend_reference_guide.md +0 -64
  443. package/.enderun/knowledge/git_reference_guide.md +0 -51
  444. package/.enderun/knowledge/hermes_live_test_guidelines.md +0 -90
  445. package/.enderun/knowledge/hermes_protocol.md +0 -59
  446. package/.enderun/knowledge/legacy_onboarding.md +0 -18
  447. package/.enderun/knowledge/lessons-learned.md +0 -14
  448. package/.enderun/knowledge/manager_authority_audit_enforcement.md +0 -104
  449. package/.enderun/knowledge/manager_reference_guide.md +0 -55
  450. package/.enderun/knowledge/mobile_reference_guide.md +0 -35
  451. package/.enderun/knowledge/native_reference_guide.md +0 -34
  452. package/.enderun/knowledge/project_scaffold_guidelines.md +0 -110
  453. package/.enderun/knowledge/quality_reference_guide.md +0 -42
  454. package/.enderun/knowledge/reference_application_guidelines.md +0 -101
  455. package/.enderun/knowledge/responsive_design_standards.md +0 -27
  456. package/.enderun/knowledge/router_logic.md +0 -29
  457. package/.enderun/knowledge/security_reference_guide.md +0 -35
  458. package/.enderun/knowledge/token_economy_and_memory.md +0 -129
  459. package/.enderun/knowledge/zero_ui_library_policy.md +0 -13
  460. package/.enderun/logs/manager.json +0 -48
  461. package/.enderun/memory/BUSINESS_CONTEXT.md +0 -17
  462. package/.enderun/memory/DECISIONS.md +0 -24
  463. package/.enderun/memory/LESSONS_LEARNED.md +0 -12
  464. package/.enderun/memory/PATTERNS.md +0 -17
  465. package/.enderun/memory/PROJECT_MEMORY.md +0 -31
  466. package/.enderun/memory-graph/agent-contexts/analyst.json +0 -1
  467. package/.enderun/memory-graph/agent-contexts/backend.json +0 -1
  468. package/.enderun/memory-graph/agent-contexts/devops.json +0 -1
  469. package/.enderun/memory-graph/agent-contexts/explorer.json +0 -1
  470. package/.enderun/memory-graph/agent-contexts/frontend.json +0 -1
  471. package/.enderun/memory-graph/agent-contexts/git.json +0 -1
  472. package/.enderun/memory-graph/agent-contexts/manager.json +0 -1
  473. package/.enderun/memory-graph/agent-contexts/mobile.json +0 -1
  474. package/.enderun/memory-graph/agent-contexts/native.json +0 -1
  475. package/.enderun/memory-graph/agent-contexts/quality.json +0 -1
  476. package/.enderun/memory-graph/agent-contexts/security.json +0 -1
  477. package/.enderun/memory-graph/graph.json +0 -133
  478. package/.enderun/memory-graph/shared-facts.json +0 -46
  479. package/.enderun/monitoring/.gitkeep +0 -0
  480. package/.enderun/observability/AUDIT_LOG.md +0 -9
  481. package/.enderun/observability/METRICS.md +0 -10
  482. package/.enderun/observability/README.md +0 -19
  483. package/.enderun/observability/TRACE_LOG.md +0 -10
  484. package/.enderun/queue/README.md +0 -36
  485. package/.enderun/registry/agents.yaml +0 -69
  486. package/.enderun/skills/agent_handshake.md +0 -37
  487. package/.enderun/skills/multi_agent_coordination.md +0 -64
  488. package/.enderun/skills/subagent_lifecycle.md +0 -48
  489. package/CLAUDE.md +0 -20
  490. package/GEMINI.md +0 -23
  491. package/GROK.md +0 -20
  492. package/agent.md +0 -25
  493. package/bin/init-check.js +0 -86
  494. package/bin/update-contract.js +0 -93
  495. package/dist/.keep +0 -1
  496. package/dist/apps/backend/src/types/index.d.ts +0 -9
  497. package/dist/apps/backend/src/types/index.js +0 -5
  498. package/dist/apps/backend/src/types/index.js.map +0 -1
  499. package/dist/apps/web/src/main.d.ts +0 -1
  500. package/dist/apps/web/src/main.js +0 -9
  501. package/dist/apps/web/src/main.js.map +0 -1
  502. package/dist/apps/web/vite.config.d.ts +0 -2
  503. package/dist/apps/web/vite.config.js +0 -6
  504. package/dist/apps/web/vite.config.js.map +0 -1
  505. package/dist/tests/adapter.test.d.ts +0 -1
  506. package/dist/tests/adapter.test.js +0 -80
  507. package/dist/tests/adapter.test.js.map +0 -1
  508. package/dist/tests/framework-init-test/framework-mcp/src/index.d.ts +0 -1
  509. package/dist/tests/framework-init-test/framework-mcp/src/index.js +0 -71
  510. package/dist/tests/framework-init-test/framework-mcp/src/index.js.map +0 -1
  511. package/dist/tests/framework-init-test/framework-mcp/src/tools/definitions.d.ts +0 -2
  512. package/dist/tests/framework-init-test/framework-mcp/src/tools/definitions.js +0 -111
  513. package/dist/tests/framework-init-test/framework-mcp/src/tools/definitions.js.map +0 -1
  514. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/patch_file.d.ts +0 -2
  515. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/patch_file.js +0 -19
  516. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/patch_file.js.map +0 -1
  517. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/read_file.d.ts +0 -2
  518. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/read_file.js +0 -8
  519. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/read_file.js.map +0 -1
  520. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/replace_text.d.ts +0 -2
  521. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/replace_text.js +0 -32
  522. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/replace_text.js.map +0 -1
  523. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/write_file.d.ts +0 -2
  524. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/write_file.js +0 -10
  525. package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/write_file.js.map +0 -1
  526. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/get_status.d.ts +0 -2
  527. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/get_status.js +0 -6
  528. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/get_status.js.map +0 -1
  529. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/orchestrate.d.ts +0 -2
  530. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/orchestrate.js +0 -6
  531. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/orchestrate.js.map +0 -1
  532. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_contract_hash.d.ts +0 -2
  533. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_contract_hash.js +0 -6
  534. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_contract_hash.js.map +0 -1
  535. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_memory.d.ts +0 -2
  536. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_memory.js +0 -9
  537. package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_memory.js.map +0 -1
  538. package/dist/tests/framework-init-test/framework-mcp/src/tools/index.d.ts +0 -5
  539. package/dist/tests/framework-init-test/framework-mcp/src/tools/index.js +0 -26
  540. package/dist/tests/framework-init-test/framework-mcp/src/tools/index.js.map +0 -1
  541. package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/log_action.d.ts +0 -2
  542. package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/log_action.js +0 -23
  543. package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/log_action.js.map +0 -1
  544. package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/send_message.d.ts +0 -2
  545. package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/send_message.js +0 -24
  546. package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/send_message.js.map +0 -1
  547. package/dist/tests/framework-init-test/framework-mcp/src/tools/types.d.ts +0 -47
  548. package/dist/tests/framework-init-test/framework-mcp/src/tools/types.js +0 -2
  549. package/dist/tests/framework-init-test/framework-mcp/src/tools/types.js.map +0 -1
  550. package/dist/tests/framework-init-test/framework-mcp/src/utils/cli.d.ts +0 -5
  551. package/dist/tests/framework-init-test/framework-mcp/src/utils/cli.js +0 -21
  552. package/dist/tests/framework-init-test/framework-mcp/src/utils/cli.js.map +0 -1
  553. package/dist/tests/framework-init-test/framework-mcp/src/utils/security.d.ts +0 -12
  554. package/dist/tests/framework-init-test/framework-mcp/src/utils/security.js +0 -54
  555. package/dist/tests/framework-init-test/framework-mcp/src/utils/security.js.map +0 -1
  556. package/dist/tests/framework-init-test/framework-mcp/tests/tools/file_system/replace_text.test.d.ts +0 -1
  557. package/dist/tests/framework-init-test/framework-mcp/tests/tools/file_system/replace_text.test.js +0 -69
  558. package/dist/tests/framework-init-test/framework-mcp/tests/tools/file_system/replace_text.test.js.map +0 -1
  559. package/dist/tests/framework-init-test/panda.config.d.ts +0 -4
  560. package/dist/tests/framework-init-test/panda.config.js +0 -95
  561. package/dist/tests/framework-init-test/panda.config.js.map +0 -1
  562. package/dist/tests/framework-init-test/vitest.config.d.ts +0 -2
  563. package/dist/tests/framework-init-test/vitest.config.js +0 -19
  564. package/dist/tests/framework-init-test/vitest.config.js.map +0 -1
  565. package/dist/tests/gemini.test.d.ts +0 -1
  566. package/dist/tests/gemini.test.js +0 -38
  567. package/dist/tests/gemini.test.js.map +0 -1
  568. package/dist/tests/initial.test.d.ts +0 -1
  569. package/dist/tests/initial.test.js +0 -7
  570. package/dist/tests/initial.test.js.map +0 -1
  571. package/docs/project_analysis_report.md +0 -69
  572. package/framework-mcp/dist/index.js +0 -70
  573. package/framework-mcp/dist/tests/tools/file_system/replace_text.test.js +0 -68
  574. package/framework-mcp/dist/tools/definitions.js +0 -110
  575. package/framework-mcp/dist/tools/file_system/patch_file.js +0 -18
  576. package/framework-mcp/dist/tools/file_system/read_file.js +0 -7
  577. package/framework-mcp/dist/tools/file_system/replace_text.js +0 -31
  578. package/framework-mcp/dist/tools/file_system/write_file.js +0 -9
  579. package/framework-mcp/dist/tools/framework/get_status.js +0 -5
  580. package/framework-mcp/dist/tools/framework/orchestrate.js +0 -5
  581. package/framework-mcp/dist/tools/framework/update_contract_hash.js +0 -5
  582. package/framework-mcp/dist/tools/framework/update_memory.js +0 -8
  583. package/framework-mcp/dist/tools/index.js +0 -25
  584. package/framework-mcp/dist/tools/messaging/log_action.js +0 -22
  585. package/framework-mcp/dist/tools/messaging/send_message.js +0 -23
  586. package/framework-mcp/dist/tools/types.js +0 -1
  587. package/framework-mcp/dist/utils/cli.js +0 -20
  588. package/framework-mcp/dist/utils/security.js +0 -53
  589. package/framework-mcp/node_modules/@types/node/LICENSE +0 -21
  590. package/framework-mcp/node_modules/@types/node/README.md +0 -15
  591. package/framework-mcp/node_modules/@types/node/assert/strict.d.ts +0 -111
  592. package/framework-mcp/node_modules/@types/node/assert.d.ts +0 -1078
  593. package/framework-mcp/node_modules/@types/node/async_hooks.d.ts +0 -603
  594. package/framework-mcp/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  595. package/framework-mcp/node_modules/@types/node/buffer.d.ts +0 -1934
  596. package/framework-mcp/node_modules/@types/node/child_process.d.ts +0 -1476
  597. package/framework-mcp/node_modules/@types/node/cluster.d.ts +0 -578
  598. package/framework-mcp/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  599. package/framework-mcp/node_modules/@types/node/compatibility/index.d.ts +0 -9
  600. package/framework-mcp/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  601. package/framework-mcp/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  602. package/framework-mcp/node_modules/@types/node/console.d.ts +0 -452
  603. package/framework-mcp/node_modules/@types/node/constants.d.ts +0 -21
  604. package/framework-mcp/node_modules/@types/node/crypto.d.ts +0 -4545
  605. package/framework-mcp/node_modules/@types/node/dgram.d.ts +0 -600
  606. package/framework-mcp/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  607. package/framework-mcp/node_modules/@types/node/dns/promises.d.ts +0 -503
  608. package/framework-mcp/node_modules/@types/node/dns.d.ts +0 -923
  609. package/framework-mcp/node_modules/@types/node/domain.d.ts +0 -170
  610. package/framework-mcp/node_modules/@types/node/events.d.ts +0 -976
  611. package/framework-mcp/node_modules/@types/node/fs/promises.d.ts +0 -1295
  612. package/framework-mcp/node_modules/@types/node/fs.d.ts +0 -4461
  613. package/framework-mcp/node_modules/@types/node/globals.d.ts +0 -172
  614. package/framework-mcp/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  615. package/framework-mcp/node_modules/@types/node/http.d.ts +0 -2089
  616. package/framework-mcp/node_modules/@types/node/http2.d.ts +0 -2721
  617. package/framework-mcp/node_modules/@types/node/https.d.ts +0 -579
  618. package/framework-mcp/node_modules/@types/node/index.d.ts +0 -97
  619. package/framework-mcp/node_modules/@types/node/inspector.d.ts +0 -253
  620. package/framework-mcp/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  621. package/framework-mcp/node_modules/@types/node/module.d.ts +0 -891
  622. package/framework-mcp/node_modules/@types/node/net.d.ts +0 -1076
  623. package/framework-mcp/node_modules/@types/node/os.d.ts +0 -506
  624. package/framework-mcp/node_modules/@types/node/package.json +0 -145
  625. package/framework-mcp/node_modules/@types/node/path.d.ts +0 -200
  626. package/framework-mcp/node_modules/@types/node/perf_hooks.d.ts +0 -968
  627. package/framework-mcp/node_modules/@types/node/process.d.ts +0 -2084
  628. package/framework-mcp/node_modules/@types/node/punycode.d.ts +0 -117
  629. package/framework-mcp/node_modules/@types/node/querystring.d.ts +0 -152
  630. package/framework-mcp/node_modules/@types/node/readline/promises.d.ts +0 -161
  631. package/framework-mcp/node_modules/@types/node/readline.d.ts +0 -594
  632. package/framework-mcp/node_modules/@types/node/repl.d.ts +0 -428
  633. package/framework-mcp/node_modules/@types/node/sea.d.ts +0 -153
  634. package/framework-mcp/node_modules/@types/node/sqlite.d.ts +0 -721
  635. package/framework-mcp/node_modules/@types/node/stream/consumers.d.ts +0 -38
  636. package/framework-mcp/node_modules/@types/node/stream/promises.d.ts +0 -90
  637. package/framework-mcp/node_modules/@types/node/stream/web.d.ts +0 -622
  638. package/framework-mcp/node_modules/@types/node/stream.d.ts +0 -1687
  639. package/framework-mcp/node_modules/@types/node/string_decoder.d.ts +0 -67
  640. package/framework-mcp/node_modules/@types/node/test.d.ts +0 -2163
  641. package/framework-mcp/node_modules/@types/node/timers/promises.d.ts +0 -108
  642. package/framework-mcp/node_modules/@types/node/timers.d.ts +0 -287
  643. package/framework-mcp/node_modules/@types/node/tls.d.ts +0 -1319
  644. package/framework-mcp/node_modules/@types/node/trace_events.d.ts +0 -197
  645. package/framework-mcp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  646. package/framework-mcp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  647. package/framework-mcp/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  648. package/framework-mcp/node_modules/@types/node/tty.d.ts +0 -208
  649. package/framework-mcp/node_modules/@types/node/url.d.ts +0 -984
  650. package/framework-mcp/node_modules/@types/node/util.d.ts +0 -2606
  651. package/framework-mcp/node_modules/@types/node/v8.d.ts +0 -920
  652. package/framework-mcp/node_modules/@types/node/vm.d.ts +0 -1000
  653. package/framework-mcp/node_modules/@types/node/wasi.d.ts +0 -181
  654. package/framework-mcp/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  655. package/framework-mcp/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  656. package/framework-mcp/node_modules/@types/node/web-globals/events.d.ts +0 -97
  657. package/framework-mcp/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  658. package/framework-mcp/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  659. package/framework-mcp/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  660. package/framework-mcp/node_modules/@types/node/worker_threads.d.ts +0 -784
  661. package/framework-mcp/node_modules/@types/node/zlib.d.ts +0 -747
  662. package/framework-mcp/node_modules/typescript/LICENSE.txt +0 -55
  663. package/framework-mcp/node_modules/typescript/README.md +0 -50
  664. package/framework-mcp/node_modules/typescript/SECURITY.md +0 -41
  665. package/framework-mcp/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  666. package/framework-mcp/node_modules/typescript/bin/tsc +0 -2
  667. package/framework-mcp/node_modules/typescript/bin/tsserver +0 -2
  668. package/framework-mcp/node_modules/typescript/lib/_tsc.js +0 -133818
  669. package/framework-mcp/node_modules/typescript/lib/_tsserver.js +0 -659
  670. package/framework-mcp/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  671. package/framework-mcp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  672. package/framework-mcp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  673. package/framework-mcp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  674. package/framework-mcp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  675. package/framework-mcp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  676. package/framework-mcp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  677. package/framework-mcp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  678. package/framework-mcp/node_modules/typescript/lib/lib.d.ts +0 -22
  679. package/framework-mcp/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  680. package/framework-mcp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  681. package/framework-mcp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  682. package/framework-mcp/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  683. package/framework-mcp/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  684. package/framework-mcp/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  685. package/framework-mcp/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  686. package/framework-mcp/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  687. package/framework-mcp/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  688. package/framework-mcp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  689. package/framework-mcp/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  690. package/framework-mcp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  691. package/framework-mcp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  692. package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  693. package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  694. package/framework-mcp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  695. package/framework-mcp/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  696. package/framework-mcp/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  697. package/framework-mcp/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  698. package/framework-mcp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  699. package/framework-mcp/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  700. package/framework-mcp/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  701. package/framework-mcp/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  702. package/framework-mcp/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  703. package/framework-mcp/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  704. package/framework-mcp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  705. package/framework-mcp/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  706. package/framework-mcp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  707. package/framework-mcp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  708. package/framework-mcp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  709. package/framework-mcp/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  710. package/framework-mcp/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  711. package/framework-mcp/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  712. package/framework-mcp/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  713. package/framework-mcp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  714. package/framework-mcp/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  715. package/framework-mcp/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  716. package/framework-mcp/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  717. package/framework-mcp/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  718. package/framework-mcp/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  719. package/framework-mcp/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  720. package/framework-mcp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  721. package/framework-mcp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  722. package/framework-mcp/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  723. package/framework-mcp/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  724. package/framework-mcp/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  725. package/framework-mcp/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  726. package/framework-mcp/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  727. package/framework-mcp/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  728. package/framework-mcp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  729. package/framework-mcp/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  730. package/framework-mcp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  731. package/framework-mcp/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  732. package/framework-mcp/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  733. package/framework-mcp/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  734. package/framework-mcp/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  735. package/framework-mcp/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  736. package/framework-mcp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  737. package/framework-mcp/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  738. package/framework-mcp/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  739. package/framework-mcp/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  740. package/framework-mcp/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  741. package/framework-mcp/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  742. package/framework-mcp/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  743. package/framework-mcp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  744. package/framework-mcp/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  745. package/framework-mcp/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  746. package/framework-mcp/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  747. package/framework-mcp/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  748. package/framework-mcp/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  749. package/framework-mcp/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  750. package/framework-mcp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  751. package/framework-mcp/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  752. package/framework-mcp/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  753. package/framework-mcp/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  754. package/framework-mcp/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  755. package/framework-mcp/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  756. package/framework-mcp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  757. package/framework-mcp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  758. package/framework-mcp/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  759. package/framework-mcp/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  760. package/framework-mcp/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  761. package/framework-mcp/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  762. package/framework-mcp/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  763. package/framework-mcp/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  764. package/framework-mcp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  765. package/framework-mcp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  766. package/framework-mcp/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  767. package/framework-mcp/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  768. package/framework-mcp/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  769. package/framework-mcp/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  770. package/framework-mcp/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  771. package/framework-mcp/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  772. package/framework-mcp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  773. package/framework-mcp/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  774. package/framework-mcp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  775. package/framework-mcp/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  776. package/framework-mcp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  777. package/framework-mcp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  778. package/framework-mcp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  779. package/framework-mcp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  780. package/framework-mcp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  781. package/framework-mcp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  782. package/framework-mcp/node_modules/typescript/lib/tsc.js +0 -8
  783. package/framework-mcp/node_modules/typescript/lib/tsserver.js +0 -8
  784. package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  785. package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  786. package/framework-mcp/node_modules/typescript/lib/typesMap.json +0 -497
  787. package/framework-mcp/node_modules/typescript/lib/typescript.d.ts +0 -11437
  788. package/framework-mcp/node_modules/typescript/lib/typescript.js +0 -200276
  789. package/framework-mcp/node_modules/typescript/lib/typingsInstaller.js +0 -8
  790. package/framework-mcp/node_modules/typescript/lib/watchGuard.js +0 -53
  791. package/framework-mcp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  792. package/framework-mcp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  793. package/framework-mcp/node_modules/typescript/package.json +0 -120
  794. package/framework-mcp/node_modules/undici-types/LICENSE +0 -21
  795. package/framework-mcp/node_modules/undici-types/README.md +0 -6
  796. package/framework-mcp/node_modules/undici-types/agent.d.ts +0 -31
  797. package/framework-mcp/node_modules/undici-types/api.d.ts +0 -43
  798. package/framework-mcp/node_modules/undici-types/balanced-pool.d.ts +0 -29
  799. package/framework-mcp/node_modules/undici-types/cache.d.ts +0 -36
  800. package/framework-mcp/node_modules/undici-types/client.d.ts +0 -108
  801. package/framework-mcp/node_modules/undici-types/connector.d.ts +0 -34
  802. package/framework-mcp/node_modules/undici-types/content-type.d.ts +0 -21
  803. package/framework-mcp/node_modules/undici-types/cookies.d.ts +0 -28
  804. package/framework-mcp/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  805. package/framework-mcp/node_modules/undici-types/dispatcher.d.ts +0 -256
  806. package/framework-mcp/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  807. package/framework-mcp/node_modules/undici-types/errors.d.ts +0 -149
  808. package/framework-mcp/node_modules/undici-types/eventsource.d.ts +0 -61
  809. package/framework-mcp/node_modules/undici-types/fetch.d.ts +0 -209
  810. package/framework-mcp/node_modules/undici-types/file.d.ts +0 -39
  811. package/framework-mcp/node_modules/undici-types/filereader.d.ts +0 -54
  812. package/framework-mcp/node_modules/undici-types/formdata.d.ts +0 -108
  813. package/framework-mcp/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  814. package/framework-mcp/node_modules/undici-types/global-origin.d.ts +0 -7
  815. package/framework-mcp/node_modules/undici-types/handlers.d.ts +0 -15
  816. package/framework-mcp/node_modules/undici-types/header.d.ts +0 -4
  817. package/framework-mcp/node_modules/undici-types/index.d.ts +0 -71
  818. package/framework-mcp/node_modules/undici-types/interceptors.d.ts +0 -17
  819. package/framework-mcp/node_modules/undici-types/mock-agent.d.ts +0 -50
  820. package/framework-mcp/node_modules/undici-types/mock-client.d.ts +0 -25
  821. package/framework-mcp/node_modules/undici-types/mock-errors.d.ts +0 -12
  822. package/framework-mcp/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  823. package/framework-mcp/node_modules/undici-types/mock-pool.d.ts +0 -25
  824. package/framework-mcp/node_modules/undici-types/package.json +0 -55
  825. package/framework-mcp/node_modules/undici-types/patch.d.ts +0 -33
  826. package/framework-mcp/node_modules/undici-types/pool-stats.d.ts +0 -19
  827. package/framework-mcp/node_modules/undici-types/pool.d.ts +0 -39
  828. package/framework-mcp/node_modules/undici-types/proxy-agent.d.ts +0 -28
  829. package/framework-mcp/node_modules/undici-types/readable.d.ts +0 -65
  830. package/framework-mcp/node_modules/undici-types/retry-agent.d.ts +0 -8
  831. package/framework-mcp/node_modules/undici-types/retry-handler.d.ts +0 -116
  832. package/framework-mcp/node_modules/undici-types/util.d.ts +0 -18
  833. package/framework-mcp/node_modules/undici-types/webidl.d.ts +0 -228
  834. package/framework-mcp/node_modules/undici-types/websocket.d.ts +0 -150
  835. package/framework-mcp/tests/tools/file_system/replace_text.test.js +0 -68
  836. package/framework-mcp/tests/tools/file_system/replace_text.test.ts +0 -77
  837. package/panda.config.ts +0 -100
@@ -1,968 +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/v22.x/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;
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;
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
- toJSON(): any;
96
- }
97
- /**
98
- * Exposes marks created via the `Performance.mark()` method.
99
- * @since v18.2.0, v16.17.0
100
- */
101
- class PerformanceMark extends PerformanceEntry {
102
- readonly detail: any;
103
- readonly duration: 0;
104
- readonly entryType: "mark";
105
- }
106
- /**
107
- * Exposes measures created via the `Performance.measure()` method.
108
- *
109
- * The constructor of this class is not exposed to users directly.
110
- * @since v18.2.0, v16.17.0
111
- */
112
- class PerformanceMeasure extends PerformanceEntry {
113
- readonly detail: any;
114
- readonly entryType: "measure";
115
- }
116
- interface UVMetrics {
117
- /**
118
- * Number of event loop iterations.
119
- */
120
- readonly loopCount: number;
121
- /**
122
- * Number of events that have been processed by the event handler.
123
- */
124
- readonly events: number;
125
- /**
126
- * Number of events that were waiting to be processed when the event provider was called.
127
- */
128
- readonly eventsWaiting: number;
129
- }
130
- // TODO: PerformanceNodeEntry is missing
131
- /**
132
- * _This property is an extension by Node.js. It is not available in Web browsers._
133
- *
134
- * Provides timing details for Node.js itself. The constructor of this class
135
- * is not exposed to users.
136
- * @since v8.5.0
137
- */
138
- class PerformanceNodeTiming extends PerformanceEntry {
139
- readonly entryType: "node";
140
- /**
141
- * The high resolution millisecond timestamp at which the Node.js process
142
- * completed bootstrapping. If bootstrapping has not yet finished, the property
143
- * has the value of -1.
144
- * @since v8.5.0
145
- */
146
- readonly bootstrapComplete: number;
147
- /**
148
- * The high resolution millisecond timestamp at which the Node.js environment was
149
- * initialized.
150
- * @since v8.5.0
151
- */
152
- readonly environment: number;
153
- /**
154
- * The high resolution millisecond timestamp of the amount of time the event loop
155
- * has been idle within the event loop's event provider (e.g. `epoll_wait`). This
156
- * does not take CPU usage into consideration. If the event loop has not yet
157
- * started (e.g., in the first tick of the main script), the property has the
158
- * value of 0.
159
- * @since v14.10.0, v12.19.0
160
- */
161
- readonly idleTime: number;
162
- /**
163
- * The high resolution millisecond timestamp at which the Node.js event loop
164
- * exited. If the event loop has not yet exited, the property has the value of -1\.
165
- * It can only have a value of not -1 in a handler of the `'exit'` event.
166
- * @since v8.5.0
167
- */
168
- readonly loopExit: number;
169
- /**
170
- * The high resolution millisecond timestamp at which the Node.js event loop
171
- * started. If the event loop has not yet started (e.g., in the first tick of the
172
- * main script), the property has the value of -1.
173
- * @since v8.5.0
174
- */
175
- readonly loopStart: number;
176
- /**
177
- * The high resolution millisecond timestamp at which the Node.js process was initialized.
178
- * @since v8.5.0
179
- */
180
- readonly nodeStart: number;
181
- /**
182
- * This is a wrapper to the `uv_metrics_info` function.
183
- * It returns the current set of event loop metrics.
184
- *
185
- * It is recommended to use this property inside a function whose execution was
186
- * scheduled using `setImmediate` to avoid collecting metrics before finishing all
187
- * operations scheduled during the current loop iteration.
188
- * @since v22.8.0, v20.18.0
189
- */
190
- readonly uvMetricsInfo: UVMetrics;
191
- /**
192
- * The high resolution millisecond timestamp at which the V8 platform was
193
- * initialized.
194
- * @since v8.5.0
195
- */
196
- readonly v8Start: number;
197
- }
198
- interface EventLoopUtilization {
199
- idle: number;
200
- active: number;
201
- utilization: number;
202
- }
203
- /**
204
- * @param utilization1 The result of a previous call to `eventLoopUtilization()`.
205
- * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`.
206
- */
207
- type EventLoopUtilityFunction = (
208
- utilization1?: EventLoopUtilization,
209
- utilization2?: EventLoopUtilization,
210
- ) => EventLoopUtilization;
211
- interface MarkOptions {
212
- /**
213
- * Additional optional detail to include with the mark.
214
- */
215
- detail?: unknown | undefined;
216
- /**
217
- * An optional timestamp to be used as the mark time.
218
- * @default `performance.now()`
219
- */
220
- startTime?: number | undefined;
221
- }
222
- interface MeasureOptions {
223
- /**
224
- * Additional optional detail to include with the mark.
225
- */
226
- detail?: unknown;
227
- /**
228
- * Duration between start and end times.
229
- */
230
- duration?: number | undefined;
231
- /**
232
- * Timestamp to be used as the end time, or a string identifying a previously recorded mark.
233
- */
234
- end?: number | string | undefined;
235
- /**
236
- * Timestamp to be used as the start time, or a string identifying a previously recorded mark.
237
- */
238
- start?: number | string | undefined;
239
- }
240
- interface TimerifyOptions {
241
- /**
242
- * A histogram object created using `perf_hooks.createHistogram()` that will record runtime
243
- * durations in nanoseconds.
244
- */
245
- histogram?: RecordableHistogram | undefined;
246
- }
247
- interface Performance {
248
- /**
249
- * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline.
250
- * If `name` is provided, removes only the named mark.
251
- * @since v8.5.0
252
- */
253
- clearMarks(name?: string): void;
254
- /**
255
- * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline.
256
- * If `name` is provided, removes only the named measure.
257
- * @since v16.7.0
258
- */
259
- clearMeasures(name?: string): void;
260
- /**
261
- * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline.
262
- * If `name` is provided, removes only the named resource.
263
- * @since v18.2.0, v16.17.0
264
- */
265
- clearResourceTimings(name?: string): void;
266
- /**
267
- * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
268
- * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
269
- * No other CPU idle time is taken into consideration.
270
- */
271
- eventLoopUtilization: EventLoopUtilityFunction;
272
- /**
273
- * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`.
274
- * If you are only interested in performance entries of certain types or that have certain names, see
275
- * `performance.getEntriesByType()` and `performance.getEntriesByName()`.
276
- * @since v16.7.0
277
- */
278
- getEntries(): PerformanceEntry[];
279
- /**
280
- * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
281
- * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`.
282
- * @param name
283
- * @param type
284
- * @since v16.7.0
285
- */
286
- getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
287
- /**
288
- * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
289
- * whose `performanceEntry.entryType` is equal to `type`.
290
- * @param type
291
- * @since v16.7.0
292
- */
293
- getEntriesByType(type: EntryType): PerformanceEntry[];
294
- /**
295
- * Creates a new `PerformanceMark` entry in the Performance Timeline.
296
- * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`,
297
- * and whose `performanceEntry.duration` is always `0`.
298
- * Performance marks are used to mark specific significant moments in the Performance Timeline.
299
- *
300
- * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with
301
- * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is
302
- * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`.
303
- * @param name
304
- */
305
- mark(name: string, options?: MarkOptions): PerformanceMark;
306
- /**
307
- * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline.
308
- * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`.
309
- * Performance resources are used to mark moments in the Resource Timeline.
310
- * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info)
311
- * @param requestedUrl The resource url
312
- * @param initiatorType The initiator name, e.g: 'fetch'
313
- * @param global
314
- * @param cacheMode The cache mode must be an empty string ('') or 'local'
315
- * @param bodyInfo [Fetch Response Body Info](https://fetch.spec.whatwg.org/#response-body-info)
316
- * @param responseStatus The response's status code
317
- * @param deliveryType The delivery type. Default: ''.
318
- * @since v18.2.0, v16.17.0
319
- */
320
- markResourceTiming(
321
- timingInfo: object,
322
- requestedUrl: string,
323
- initiatorType: string,
324
- global: object,
325
- cacheMode: "" | "local",
326
- bodyInfo: object,
327
- responseStatus: number,
328
- deliveryType?: string,
329
- ): PerformanceResourceTiming;
330
- /**
331
- * Creates a new PerformanceMeasure entry in the Performance Timeline.
332
- * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
333
- * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
334
- *
335
- * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
336
- * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
337
- * then startMark is set to timeOrigin by default.
338
- *
339
- * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
340
- * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
341
- * @param name
342
- * @param startMark
343
- * @param endMark
344
- * @return The PerformanceMeasure entry that was created
345
- */
346
- measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure;
347
- measure(name: string, options: MeasureOptions): PerformanceMeasure;
348
- /**
349
- * _This property is an extension by Node.js. It is not available in Web browsers._
350
- *
351
- * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones.
352
- * @since v8.5.0
353
- */
354
- readonly nodeTiming: PerformanceNodeTiming;
355
- /**
356
- * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process.
357
- * @since v8.5.0
358
- */
359
- now(): number;
360
- /**
361
- * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects.
362
- *
363
- * By default the max buffer size is set to 250.
364
- * @since v18.8.0
365
- */
366
- setResourceTimingBufferSize(maxSize: number): void;
367
- /**
368
- * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp
369
- * at which the current `node` process began, measured in Unix time.
370
- * @since v8.5.0
371
- */
372
- readonly timeOrigin: number;
373
- /**
374
- * _This property is an extension by Node.js. It is not available in Web browsers._
375
- *
376
- * Wraps a function within a new function that measures the running time of the wrapped function.
377
- * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed.
378
- *
379
- * ```js
380
- * import {
381
- * performance,
382
- * PerformanceObserver,
383
- * } from 'node:perf_hooks';
384
- *
385
- * function someFunction() {
386
- * console.log('hello world');
387
- * }
388
- *
389
- * const wrapped = performance.timerify(someFunction);
390
- *
391
- * const obs = new PerformanceObserver((list) => {
392
- * console.log(list.getEntries()[0].duration);
393
- *
394
- * performance.clearMarks();
395
- * performance.clearMeasures();
396
- * obs.disconnect();
397
- * });
398
- * obs.observe({ entryTypes: ['function'] });
399
- *
400
- * // A performance timeline entry will be created
401
- * wrapped();
402
- * ```
403
- *
404
- * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported
405
- * once the finally handler is invoked.
406
- * @param fn
407
- */
408
- timerify<T extends (...params: any[]) => any>(fn: T, options?: TimerifyOptions): T;
409
- /**
410
- * An object which is JSON representation of the performance object. It is similar to
411
- * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers.
412
- * @since v16.1.0
413
- */
414
- toJSON(): any;
415
- }
416
- class PerformanceObserverEntryList {
417
- /**
418
- * Returns a list of `PerformanceEntry` objects in chronological order
419
- * with respect to `performanceEntry.startTime`.
420
- *
421
- * ```js
422
- * import {
423
- * performance,
424
- * PerformanceObserver,
425
- * } from 'node:perf_hooks';
426
- *
427
- * const obs = new PerformanceObserver((perfObserverList, observer) => {
428
- * console.log(perfObserverList.getEntries());
429
- *
430
- * * [
431
- * * PerformanceEntry {
432
- * * name: 'test',
433
- * * entryType: 'mark',
434
- * * startTime: 81.465639,
435
- * * duration: 0,
436
- * * detail: null
437
- * * },
438
- * * PerformanceEntry {
439
- * * name: 'meow',
440
- * * entryType: 'mark',
441
- * * startTime: 81.860064,
442
- * * duration: 0,
443
- * * detail: null
444
- * * }
445
- * * ]
446
- *
447
- * performance.clearMarks();
448
- * performance.clearMeasures();
449
- * observer.disconnect();
450
- * });
451
- * obs.observe({ type: 'mark' });
452
- *
453
- * performance.mark('test');
454
- * performance.mark('meow');
455
- * ```
456
- * @since v8.5.0
457
- */
458
- getEntries(): PerformanceEntry[];
459
- /**
460
- * Returns a list of `PerformanceEntry` objects in chronological order
461
- * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is
462
- * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`.
463
- *
464
- * ```js
465
- * import {
466
- * performance,
467
- * PerformanceObserver,
468
- * } from 'node:perf_hooks';
469
- *
470
- * const obs = new PerformanceObserver((perfObserverList, observer) => {
471
- * console.log(perfObserverList.getEntriesByName('meow'));
472
- *
473
- * * [
474
- * * PerformanceEntry {
475
- * * name: 'meow',
476
- * * entryType: 'mark',
477
- * * startTime: 98.545991,
478
- * * duration: 0,
479
- * * detail: null
480
- * * }
481
- * * ]
482
- *
483
- * console.log(perfObserverList.getEntriesByName('nope')); // []
484
- *
485
- * console.log(perfObserverList.getEntriesByName('test', 'mark'));
486
- *
487
- * * [
488
- * * PerformanceEntry {
489
- * * name: 'test',
490
- * * entryType: 'mark',
491
- * * startTime: 63.518931,
492
- * * duration: 0,
493
- * * detail: null
494
- * * }
495
- * * ]
496
- *
497
- * console.log(perfObserverList.getEntriesByName('test', 'measure')); // []
498
- *
499
- * performance.clearMarks();
500
- * performance.clearMeasures();
501
- * observer.disconnect();
502
- * });
503
- * obs.observe({ entryTypes: ['mark', 'measure'] });
504
- *
505
- * performance.mark('test');
506
- * performance.mark('meow');
507
- * ```
508
- * @since v8.5.0
509
- */
510
- getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
511
- /**
512
- * Returns a list of `PerformanceEntry` objects in chronological order
513
- * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`.
514
- *
515
- * ```js
516
- * import {
517
- * performance,
518
- * PerformanceObserver,
519
- * } from 'node:perf_hooks';
520
- *
521
- * const obs = new PerformanceObserver((perfObserverList, observer) => {
522
- * console.log(perfObserverList.getEntriesByType('mark'));
523
- *
524
- * * [
525
- * * PerformanceEntry {
526
- * * name: 'test',
527
- * * entryType: 'mark',
528
- * * startTime: 55.897834,
529
- * * duration: 0,
530
- * * detail: null
531
- * * },
532
- * * PerformanceEntry {
533
- * * name: 'meow',
534
- * * entryType: 'mark',
535
- * * startTime: 56.350146,
536
- * * duration: 0,
537
- * * detail: null
538
- * * }
539
- * * ]
540
- *
541
- * performance.clearMarks();
542
- * performance.clearMeasures();
543
- * observer.disconnect();
544
- * });
545
- * obs.observe({ type: 'mark' });
546
- *
547
- * performance.mark('test');
548
- * performance.mark('meow');
549
- * ```
550
- * @since v8.5.0
551
- */
552
- getEntriesByType(type: EntryType): PerformanceEntry[];
553
- }
554
- type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
555
- /**
556
- * @since v8.5.0
557
- */
558
- class PerformanceObserver extends AsyncResource {
559
- constructor(callback: PerformanceObserverCallback);
560
- /**
561
- * Disconnects the `PerformanceObserver` instance from all notifications.
562
- * @since v8.5.0
563
- */
564
- disconnect(): void;
565
- /**
566
- * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
567
- *
568
- * ```js
569
- * import {
570
- * performance,
571
- * PerformanceObserver,
572
- * } from 'node:perf_hooks';
573
- *
574
- * const obs = new PerformanceObserver((list, observer) => {
575
- * // Called once asynchronously. `list` contains three items.
576
- * });
577
- * obs.observe({ type: 'mark' });
578
- *
579
- * for (let n = 0; n < 3; n++)
580
- * performance.mark(`test${n}`);
581
- * ```
582
- * @since v8.5.0
583
- */
584
- observe(
585
- options:
586
- | {
587
- entryTypes: readonly EntryType[];
588
- buffered?: boolean | undefined;
589
- }
590
- | {
591
- type: EntryType;
592
- buffered?: boolean | undefined;
593
- },
594
- ): void;
595
- /**
596
- * @since v16.0.0
597
- * @returns Current list of entries stored in the performance observer, emptying it out.
598
- */
599
- takeRecords(): PerformanceEntry[];
600
- }
601
- /**
602
- * Provides detailed network timing data regarding the loading of an application's resources.
603
- *
604
- * The constructor of this class is not exposed to users directly.
605
- * @since v18.2.0, v16.17.0
606
- */
607
- class PerformanceResourceTiming extends PerformanceEntry {
608
- readonly entryType: "resource";
609
- protected constructor();
610
- /**
611
- * The high resolution millisecond timestamp at immediately before dispatching the `fetch`
612
- * request. If the resource is not intercepted by a worker the property will always return 0.
613
- * @since v18.2.0, v16.17.0
614
- */
615
- readonly workerStart: number;
616
- /**
617
- * The high resolution millisecond timestamp that represents the start time of the fetch which
618
- * initiates the redirect.
619
- * @since v18.2.0, v16.17.0
620
- */
621
- readonly redirectStart: number;
622
- /**
623
- * The high resolution millisecond timestamp that will be created immediately after receiving
624
- * the last byte of the response of the last redirect.
625
- * @since v18.2.0, v16.17.0
626
- */
627
- readonly redirectEnd: number;
628
- /**
629
- * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource.
630
- * @since v18.2.0, v16.17.0
631
- */
632
- readonly fetchStart: number;
633
- /**
634
- * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup
635
- * for the resource.
636
- * @since v18.2.0, v16.17.0
637
- */
638
- readonly domainLookupStart: number;
639
- /**
640
- * The high resolution millisecond timestamp representing the time immediately after the Node.js finished
641
- * the domain name lookup for the resource.
642
- * @since v18.2.0, v16.17.0
643
- */
644
- readonly domainLookupEnd: number;
645
- /**
646
- * The high resolution millisecond timestamp representing the time immediately before Node.js starts to
647
- * establish the connection to the server to retrieve the resource.
648
- * @since v18.2.0, v16.17.0
649
- */
650
- readonly connectStart: number;
651
- /**
652
- * The high resolution millisecond timestamp representing the time immediately after Node.js finishes
653
- * establishing the connection to the server to retrieve the resource.
654
- * @since v18.2.0, v16.17.0
655
- */
656
- readonly connectEnd: number;
657
- /**
658
- * The high resolution millisecond timestamp representing the time immediately before Node.js starts the
659
- * handshake process to secure the current connection.
660
- * @since v18.2.0, v16.17.0
661
- */
662
- readonly secureConnectionStart: number;
663
- /**
664
- * The high resolution millisecond timestamp representing the time immediately before Node.js receives the
665
- * first byte of the response from the server.
666
- * @since v18.2.0, v16.17.0
667
- */
668
- readonly requestStart: number;
669
- /**
670
- * The high resolution millisecond timestamp representing the time immediately after Node.js receives the
671
- * last byte of the resource or immediately before the transport connection is closed, whichever comes first.
672
- * @since v18.2.0, v16.17.0
673
- */
674
- readonly responseEnd: number;
675
- /**
676
- * A number representing the size (in octets) of the fetched resource. The size includes the response header
677
- * fields plus the response payload body.
678
- * @since v18.2.0, v16.17.0
679
- */
680
- readonly transferSize: number;
681
- /**
682
- * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before
683
- * removing any applied content-codings.
684
- * @since v18.2.0, v16.17.0
685
- */
686
- readonly encodedBodySize: number;
687
- /**
688
- * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after
689
- * removing any applied content-codings.
690
- * @since v18.2.0, v16.17.0
691
- */
692
- readonly decodedBodySize: number;
693
- /**
694
- * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object
695
- * @since v18.2.0, v16.17.0
696
- */
697
- toJSON(): any;
698
- }
699
- namespace constants {
700
- const NODE_PERFORMANCE_GC_MAJOR: number;
701
- const NODE_PERFORMANCE_GC_MINOR: number;
702
- const NODE_PERFORMANCE_GC_INCREMENTAL: number;
703
- const NODE_PERFORMANCE_GC_WEAKCB: number;
704
- const NODE_PERFORMANCE_GC_FLAGS_NO: number;
705
- const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
706
- const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
707
- const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
708
- const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
709
- const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
710
- const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
711
- }
712
- const performance: Performance;
713
- interface EventLoopMonitorOptions {
714
- /**
715
- * The sampling rate in milliseconds.
716
- * Must be greater than zero.
717
- * @default 10
718
- */
719
- resolution?: number | undefined;
720
- }
721
- interface Histogram {
722
- /**
723
- * The number of samples recorded by the histogram.
724
- * @since v17.4.0, v16.14.0
725
- */
726
- readonly count: number;
727
- /**
728
- * The number of samples recorded by the histogram.
729
- * v17.4.0, v16.14.0
730
- */
731
- readonly countBigInt: bigint;
732
- /**
733
- * The number of times the event loop delay exceeded the maximum 1 hour event
734
- * loop delay threshold.
735
- * @since v11.10.0
736
- */
737
- readonly exceeds: number;
738
- /**
739
- * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.
740
- * @since v17.4.0, v16.14.0
741
- */
742
- readonly exceedsBigInt: bigint;
743
- /**
744
- * The maximum recorded event loop delay.
745
- * @since v11.10.0
746
- */
747
- readonly max: number;
748
- /**
749
- * The maximum recorded event loop delay.
750
- * v17.4.0, v16.14.0
751
- */
752
- readonly maxBigInt: number;
753
- /**
754
- * The mean of the recorded event loop delays.
755
- * @since v11.10.0
756
- */
757
- readonly mean: number;
758
- /**
759
- * The minimum recorded event loop delay.
760
- * @since v11.10.0
761
- */
762
- readonly min: number;
763
- /**
764
- * The minimum recorded event loop delay.
765
- * v17.4.0, v16.14.0
766
- */
767
- readonly minBigInt: bigint;
768
- /**
769
- * Returns the value at the given percentile.
770
- * @since v11.10.0
771
- * @param percentile A percentile value in the range (0, 100].
772
- */
773
- percentile(percentile: number): number;
774
- /**
775
- * Returns the value at the given percentile.
776
- * @since v17.4.0, v16.14.0
777
- * @param percentile A percentile value in the range (0, 100].
778
- */
779
- percentileBigInt(percentile: number): bigint;
780
- /**
781
- * Returns a `Map` object detailing the accumulated percentile distribution.
782
- * @since v11.10.0
783
- */
784
- readonly percentiles: Map<number, number>;
785
- /**
786
- * Returns a `Map` object detailing the accumulated percentile distribution.
787
- * @since v17.4.0, v16.14.0
788
- */
789
- readonly percentilesBigInt: Map<bigint, bigint>;
790
- /**
791
- * Resets the collected histogram data.
792
- * @since v11.10.0
793
- */
794
- reset(): void;
795
- /**
796
- * The standard deviation of the recorded event loop delays.
797
- * @since v11.10.0
798
- */
799
- readonly stddev: number;
800
- }
801
- interface IntervalHistogram extends Histogram {
802
- /**
803
- * Enables the update interval timer. Returns `true` if the timer was
804
- * started, `false` if it was already started.
805
- * @since v11.10.0
806
- */
807
- enable(): boolean;
808
- /**
809
- * Disables the update interval timer. Returns `true` if the timer was
810
- * stopped, `false` if it was already stopped.
811
- * @since v11.10.0
812
- */
813
- disable(): boolean;
814
- }
815
- interface RecordableHistogram extends Histogram {
816
- /**
817
- * @since v15.9.0, v14.18.0
818
- * @param val The amount to record in the histogram.
819
- */
820
- record(val: number | bigint): void;
821
- /**
822
- * Calculates the amount of time (in nanoseconds) that has passed since the
823
- * previous call to `recordDelta()` and records that amount in the histogram.
824
- * @since v15.9.0, v14.18.0
825
- */
826
- recordDelta(): void;
827
- /**
828
- * Adds the values from `other` to this histogram.
829
- * @since v17.4.0, v16.14.0
830
- */
831
- add(other: RecordableHistogram): void;
832
- }
833
- /**
834
- * _This property is an extension by Node.js. It is not available in Web browsers._
835
- *
836
- * Creates an `IntervalHistogram` object that samples and reports the event loop
837
- * delay over time. The delays will be reported in nanoseconds.
838
- *
839
- * Using a timer to detect approximate event loop delay works because the
840
- * execution of timers is tied specifically to the lifecycle of the libuv
841
- * event loop. That is, a delay in the loop will cause a delay in the execution
842
- * of the timer, and those delays are specifically what this API is intended to
843
- * detect.
844
- *
845
- * ```js
846
- * import { monitorEventLoopDelay } from 'node:perf_hooks';
847
- * const h = monitorEventLoopDelay({ resolution: 20 });
848
- * h.enable();
849
- * // Do something.
850
- * h.disable();
851
- * console.log(h.min);
852
- * console.log(h.max);
853
- * console.log(h.mean);
854
- * console.log(h.stddev);
855
- * console.log(h.percentiles);
856
- * console.log(h.percentile(50));
857
- * console.log(h.percentile(99));
858
- * ```
859
- * @since v11.10.0
860
- */
861
- function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
862
- interface CreateHistogramOptions {
863
- /**
864
- * The minimum recordable value. Must be an integer value greater than 0.
865
- * @default 1
866
- */
867
- lowest?: number | bigint | undefined;
868
- /**
869
- * The maximum recordable value. Must be an integer value greater than min.
870
- * @default Number.MAX_SAFE_INTEGER
871
- */
872
- highest?: number | bigint | undefined;
873
- /**
874
- * The number of accuracy digits. Must be a number between 1 and 5.
875
- * @default 3
876
- */
877
- figures?: number | undefined;
878
- }
879
- /**
880
- * Returns a `RecordableHistogram`.
881
- * @since v15.9.0, v14.18.0
882
- */
883
- function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
884
- import {
885
- performance as _performance,
886
- PerformanceEntry as _PerformanceEntry,
887
- PerformanceMark as _PerformanceMark,
888
- PerformanceMeasure as _PerformanceMeasure,
889
- PerformanceObserver as _PerformanceObserver,
890
- PerformanceObserverEntryList as _PerformanceObserverEntryList,
891
- PerformanceResourceTiming as _PerformanceResourceTiming,
892
- } from "perf_hooks";
893
- global {
894
- /**
895
- * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:perf_hooks'`
896
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceentry
897
- * @since v19.0.0
898
- */
899
- var PerformanceEntry: typeof globalThis extends {
900
- onmessage: any;
901
- PerformanceEntry: infer T;
902
- } ? T
903
- : typeof _PerformanceEntry;
904
- /**
905
- * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:perf_hooks'`
906
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performancemark
907
- * @since v19.0.0
908
- */
909
- var PerformanceMark: typeof globalThis extends {
910
- onmessage: any;
911
- PerformanceMark: infer T;
912
- } ? T
913
- : typeof _PerformanceMark;
914
- /**
915
- * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:perf_hooks'`
916
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performancemeasure
917
- * @since v19.0.0
918
- */
919
- var PerformanceMeasure: typeof globalThis extends {
920
- onmessage: any;
921
- PerformanceMeasure: infer T;
922
- } ? T
923
- : typeof _PerformanceMeasure;
924
- /**
925
- * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:perf_hooks'`
926
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceobserver
927
- * @since v19.0.0
928
- */
929
- var PerformanceObserver: typeof globalThis extends {
930
- onmessage: any;
931
- PerformanceObserver: infer T;
932
- } ? T
933
- : typeof _PerformanceObserver;
934
- /**
935
- * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:perf_hooks'`
936
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceobserverentrylist
937
- * @since v19.0.0
938
- */
939
- var PerformanceObserverEntryList: typeof globalThis extends {
940
- onmessage: any;
941
- PerformanceObserverEntryList: infer T;
942
- } ? T
943
- : typeof _PerformanceObserverEntryList;
944
- /**
945
- * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:perf_hooks'`
946
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceresourcetiming
947
- * @since v19.0.0
948
- */
949
- var PerformanceResourceTiming: typeof globalThis extends {
950
- onmessage: any;
951
- PerformanceResourceTiming: infer T;
952
- } ? T
953
- : typeof _PerformanceResourceTiming;
954
- /**
955
- * `performance` is a global reference for `import { performance } from 'node:perf_hooks'`
956
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performance
957
- * @since v16.0.0
958
- */
959
- var performance: typeof globalThis extends {
960
- onmessage: any;
961
- performance: infer T;
962
- } ? T
963
- : typeof _performance;
964
- }
965
- }
966
- declare module "node:perf_hooks" {
967
- export * from "perf_hooks";
968
- }