@roberttlange/agentlens 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2893) hide show
  1. package/dist/browser.d.ts +26 -0
  2. package/dist/browser.js +216 -0
  3. package/dist/browser.js.map +1 -0
  4. package/dist/main.d.ts +2 -0
  5. package/dist/main.js +394 -0
  6. package/dist/main.js.map +1 -0
  7. package/dist/main.test.d.ts +1 -0
  8. package/dist/main.test.js +403 -0
  9. package/dist/main.test.js.map +1 -0
  10. package/node_modules/@agentlens/contracts/dist/index.d.ts +221 -0
  11. package/node_modules/@agentlens/contracts/dist/index.js +2 -0
  12. package/node_modules/@agentlens/contracts/dist/index.js.map +1 -0
  13. package/node_modules/@agentlens/contracts/package.json +22 -0
  14. package/node_modules/@agentlens/core/dist/__tests__/activityStatus.test.d.ts +1 -0
  15. package/node_modules/@agentlens/core/dist/__tests__/activityStatus.test.js +485 -0
  16. package/node_modules/@agentlens/core/dist/__tests__/activityStatus.test.js.map +1 -0
  17. package/node_modules/@agentlens/core/dist/__tests__/config.test.d.ts +1 -0
  18. package/node_modules/@agentlens/core/dist/__tests__/config.test.js +121 -0
  19. package/node_modules/@agentlens/core/dist/__tests__/config.test.js.map +1 -0
  20. package/node_modules/@agentlens/core/dist/__tests__/index.test.d.ts +1 -0
  21. package/node_modules/@agentlens/core/dist/__tests__/index.test.js +2058 -0
  22. package/node_modules/@agentlens/core/dist/__tests__/index.test.js.map +1 -0
  23. package/node_modules/@agentlens/core/dist/config.d.ts +9 -0
  24. package/node_modules/@agentlens/core/dist/config.js +273 -0
  25. package/node_modules/@agentlens/core/dist/config.js.map +1 -0
  26. package/node_modules/@agentlens/core/dist/discovery.d.ts +13 -0
  27. package/node_modules/@agentlens/core/dist/discovery.js +177 -0
  28. package/node_modules/@agentlens/core/dist/discovery.js.map +1 -0
  29. package/node_modules/@agentlens/core/dist/index.d.ts +6 -0
  30. package/node_modules/@agentlens/core/dist/index.js +7 -0
  31. package/node_modules/@agentlens/core/dist/index.js.map +1 -0
  32. package/node_modules/@agentlens/core/dist/metrics.d.ts +10 -0
  33. package/node_modules/@agentlens/core/dist/metrics.js +445 -0
  34. package/node_modules/@agentlens/core/dist/metrics.js.map +1 -0
  35. package/node_modules/@agentlens/core/dist/parsers/claude.d.ts +8 -0
  36. package/node_modules/@agentlens/core/dist/parsers/claude.js +264 -0
  37. package/node_modules/@agentlens/core/dist/parsers/claude.js.map +1 -0
  38. package/node_modules/@agentlens/core/dist/parsers/claude.test.d.ts +1 -0
  39. package/node_modules/@agentlens/core/dist/parsers/claude.test.js +87 -0
  40. package/node_modules/@agentlens/core/dist/parsers/claude.test.js.map +1 -0
  41. package/node_modules/@agentlens/core/dist/parsers/codex.d.ts +8 -0
  42. package/node_modules/@agentlens/core/dist/parsers/codex.js +526 -0
  43. package/node_modules/@agentlens/core/dist/parsers/codex.js.map +1 -0
  44. package/node_modules/@agentlens/core/dist/parsers/common.d.ts +35 -0
  45. package/node_modules/@agentlens/core/dist/parsers/common.js +138 -0
  46. package/node_modules/@agentlens/core/dist/parsers/common.js.map +1 -0
  47. package/node_modules/@agentlens/core/dist/parsers/cursor.d.ts +8 -0
  48. package/node_modules/@agentlens/core/dist/parsers/cursor.js +511 -0
  49. package/node_modules/@agentlens/core/dist/parsers/cursor.js.map +1 -0
  50. package/node_modules/@agentlens/core/dist/parsers/cursor.test.d.ts +1 -0
  51. package/node_modules/@agentlens/core/dist/parsers/cursor.test.js +179 -0
  52. package/node_modules/@agentlens/core/dist/parsers/cursor.test.js.map +1 -0
  53. package/node_modules/@agentlens/core/dist/parsers/gemini.d.ts +9 -0
  54. package/node_modules/@agentlens/core/dist/parsers/gemini.js +403 -0
  55. package/node_modules/@agentlens/core/dist/parsers/gemini.js.map +1 -0
  56. package/node_modules/@agentlens/core/dist/parsers/gemini.test.d.ts +1 -0
  57. package/node_modules/@agentlens/core/dist/parsers/gemini.test.js +107 -0
  58. package/node_modules/@agentlens/core/dist/parsers/gemini.test.js.map +1 -0
  59. package/node_modules/@agentlens/core/dist/parsers/generic.d.ts +8 -0
  60. package/node_modules/@agentlens/core/dist/parsers/generic.js +32 -0
  61. package/node_modules/@agentlens/core/dist/parsers/generic.js.map +1 -0
  62. package/node_modules/@agentlens/core/dist/parsers/index.d.ts +11 -0
  63. package/node_modules/@agentlens/core/dist/parsers/index.js +59 -0
  64. package/node_modules/@agentlens/core/dist/parsers/index.js.map +1 -0
  65. package/node_modules/@agentlens/core/dist/parsers/opencode.d.ts +8 -0
  66. package/node_modules/@agentlens/core/dist/parsers/opencode.js +591 -0
  67. package/node_modules/@agentlens/core/dist/parsers/opencode.js.map +1 -0
  68. package/node_modules/@agentlens/core/dist/parsers/opencode.test.d.ts +1 -0
  69. package/node_modules/@agentlens/core/dist/parsers/opencode.test.js +219 -0
  70. package/node_modules/@agentlens/core/dist/parsers/opencode.test.js.map +1 -0
  71. package/node_modules/@agentlens/core/dist/parsers/types.d.ts +15 -0
  72. package/node_modules/@agentlens/core/dist/parsers/types.js +2 -0
  73. package/node_modules/@agentlens/core/dist/parsers/types.js.map +1 -0
  74. package/node_modules/@agentlens/core/dist/redaction.d.ts +3 -0
  75. package/node_modules/@agentlens/core/dist/redaction.js +97 -0
  76. package/node_modules/@agentlens/core/dist/redaction.js.map +1 -0
  77. package/node_modules/@agentlens/core/dist/snapshot.d.ts +2 -0
  78. package/node_modules/@agentlens/core/dist/snapshot.js +9 -0
  79. package/node_modules/@agentlens/core/dist/snapshot.js.map +1 -0
  80. package/node_modules/@agentlens/core/dist/sourceProfiles.d.ts +4 -0
  81. package/node_modules/@agentlens/core/dist/sourceProfiles.js +176 -0
  82. package/node_modules/@agentlens/core/dist/sourceProfiles.js.map +1 -0
  83. package/node_modules/@agentlens/core/dist/traceIndex.d.ts +66 -0
  84. package/node_modules/@agentlens/core/dist/traceIndex.js +1281 -0
  85. package/node_modules/@agentlens/core/dist/traceIndex.js.map +1 -0
  86. package/node_modules/@agentlens/core/dist/utils.d.ts +10 -0
  87. package/node_modules/@agentlens/core/dist/utils.js +125 -0
  88. package/node_modules/@agentlens/core/dist/utils.js.map +1 -0
  89. package/node_modules/@agentlens/core/package.json +28 -0
  90. package/node_modules/@agentlens/server/dist/app.d.ts +133 -0
  91. package/node_modules/@agentlens/server/dist/app.js +1939 -0
  92. package/node_modules/@agentlens/server/dist/app.js.map +1 -0
  93. package/node_modules/@agentlens/server/dist/app.test.d.ts +1 -0
  94. package/node_modules/@agentlens/server/dist/app.test.js +925 -0
  95. package/node_modules/@agentlens/server/dist/app.test.js.map +1 -0
  96. package/node_modules/@agentlens/server/dist/main.d.ts +1 -0
  97. package/node_modules/@agentlens/server/dist/main.js +3 -0
  98. package/node_modules/@agentlens/server/dist/main.js.map +1 -0
  99. package/node_modules/@agentlens/server/dist/web/assets/index-B9pmgl04.js +52 -0
  100. package/node_modules/@agentlens/server/dist/web/assets/index-Dwy5TIZL.css +1 -0
  101. package/node_modules/@agentlens/server/dist/web/favicon.png +0 -0
  102. package/node_modules/@agentlens/server/dist/web/favicon.svg +37 -0
  103. package/node_modules/@agentlens/server/dist/web/icons/claude.svg +7 -0
  104. package/node_modules/@agentlens/server/dist/web/icons/cursor.jpeg +0 -0
  105. package/node_modules/@agentlens/server/dist/web/icons/cursor.svg +5 -0
  106. package/node_modules/@agentlens/server/dist/web/icons/gemini.jpeg +0 -0
  107. package/node_modules/@agentlens/server/dist/web/icons/gemini.svg +37 -0
  108. package/node_modules/@agentlens/server/dist/web/icons/openai.svg +2 -0
  109. package/node_modules/@agentlens/server/dist/web/icons/opencode.png +0 -0
  110. package/node_modules/@agentlens/server/dist/web/index.html +17 -0
  111. package/node_modules/@agentlens/server/package.json +24 -0
  112. package/node_modules/@fastify/accept-negotiator/LICENSE +22 -0
  113. package/node_modules/@fastify/accept-negotiator/README.md +52 -0
  114. package/node_modules/@fastify/accept-negotiator/index.js +170 -0
  115. package/node_modules/@fastify/accept-negotiator/package.json +77 -0
  116. package/node_modules/@fastify/accept-negotiator/types/index.d.ts +17 -0
  117. package/node_modules/@fastify/ajv-compiler/.gitattributes +2 -0
  118. package/node_modules/@fastify/ajv-compiler/.github/.stale.yml +21 -0
  119. package/node_modules/@fastify/ajv-compiler/.github/dependabot.yml +13 -0
  120. package/node_modules/@fastify/ajv-compiler/.github/tests_checker.yml +8 -0
  121. package/node_modules/@fastify/ajv-compiler/.github/workflows/ci.yml +33 -0
  122. package/node_modules/@fastify/ajv-compiler/LICENSE +23 -0
  123. package/node_modules/@fastify/ajv-compiler/README.md +237 -0
  124. package/node_modules/@fastify/ajv-compiler/benchmark/small-object.mjs +37 -0
  125. package/node_modules/@fastify/ajv-compiler/eslint.config.js +6 -0
  126. package/node_modules/@fastify/ajv-compiler/index.js +53 -0
  127. package/node_modules/@fastify/ajv-compiler/lib/default-ajv-options.js +14 -0
  128. package/node_modules/@fastify/ajv-compiler/lib/serializer-compiler.js +27 -0
  129. package/node_modules/@fastify/ajv-compiler/lib/validator-compiler.js +58 -0
  130. package/node_modules/@fastify/ajv-compiler/package.json +84 -0
  131. package/node_modules/@fastify/ajv-compiler/standalone.js +44 -0
  132. package/node_modules/@fastify/ajv-compiler/test/.gitkeep +0 -0
  133. package/node_modules/@fastify/ajv-compiler/test/duplicated-id-compile.test.js +55 -0
  134. package/node_modules/@fastify/ajv-compiler/test/index.test.js +307 -0
  135. package/node_modules/@fastify/ajv-compiler/test/plugins.test.js +246 -0
  136. package/node_modules/@fastify/ajv-compiler/test/serialization.test.js +279 -0
  137. package/node_modules/@fastify/ajv-compiler/test/standalone.test.js +203 -0
  138. package/node_modules/@fastify/ajv-compiler/types/index.d.ts +87 -0
  139. package/node_modules/@fastify/ajv-compiler/types/index.test-d.ts +302 -0
  140. package/node_modules/@fastify/error/.gitattributes +2 -0
  141. package/node_modules/@fastify/error/.github/dependabot.yml +13 -0
  142. package/node_modules/@fastify/error/.github/workflows/ci.yml +28 -0
  143. package/node_modules/@fastify/error/LICENSE +21 -0
  144. package/node_modules/@fastify/error/README.md +140 -0
  145. package/node_modules/@fastify/error/benchmarks/create.js +9 -0
  146. package/node_modules/@fastify/error/benchmarks/instantiate.js +18 -0
  147. package/node_modules/@fastify/error/benchmarks/no-stack.js +13 -0
  148. package/node_modules/@fastify/error/benchmarks/toString.js +11 -0
  149. package/node_modules/@fastify/error/eslint.config.js +6 -0
  150. package/node_modules/@fastify/error/index.js +100 -0
  151. package/node_modules/@fastify/error/package.json +75 -0
  152. package/node_modules/@fastify/error/test/index.test.js +232 -0
  153. package/node_modules/@fastify/error/test/instanceof.test.js +263 -0
  154. package/node_modules/@fastify/error/types/index.d.ts +49 -0
  155. package/node_modules/@fastify/error/types/index.test-d.ts +92 -0
  156. package/node_modules/@fastify/fast-json-stringify-compiler/.eslintrc +1 -0
  157. package/node_modules/@fastify/fast-json-stringify-compiler/.gitattributes +2 -0
  158. package/node_modules/@fastify/fast-json-stringify-compiler/.github/dependabot.yml +13 -0
  159. package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/ci.yml +28 -0
  160. package/node_modules/@fastify/fast-json-stringify-compiler/LICENSE +21 -0
  161. package/node_modules/@fastify/fast-json-stringify-compiler/README.md +128 -0
  162. package/node_modules/@fastify/fast-json-stringify-compiler/eslint.config.js +6 -0
  163. package/node_modules/@fastify/fast-json-stringify-compiler/index.js +8 -0
  164. package/node_modules/@fastify/fast-json-stringify-compiler/package.json +71 -0
  165. package/node_modules/@fastify/fast-json-stringify-compiler/standalone.js +58 -0
  166. package/node_modules/@fastify/fast-json-stringify-compiler/test/duplicate-schema.test.js +26 -0
  167. package/node_modules/@fastify/fast-json-stringify-compiler/test/plugin.test.js +78 -0
  168. package/node_modules/@fastify/fast-json-stringify-compiler/test/standalone.test.js +230 -0
  169. package/node_modules/@fastify/fast-json-stringify-compiler/types/index.d.ts +41 -0
  170. package/node_modules/@fastify/fast-json-stringify-compiler/types/index.test-d.ts +142 -0
  171. package/node_modules/@fastify/forwarded/LICENSE +24 -0
  172. package/node_modules/@fastify/forwarded/README.md +43 -0
  173. package/node_modules/@fastify/forwarded/index.js +59 -0
  174. package/node_modules/@fastify/forwarded/package.json +74 -0
  175. package/node_modules/@fastify/forwarded/types/index.d.ts +14 -0
  176. package/node_modules/@fastify/merge-json-schemas/.gitattributes +2 -0
  177. package/node_modules/@fastify/merge-json-schemas/.github/dependabot.yml +13 -0
  178. package/node_modules/@fastify/merge-json-schemas/.github/workflows/ci.yml +23 -0
  179. package/node_modules/@fastify/merge-json-schemas/LICENSE +21 -0
  180. package/node_modules/@fastify/merge-json-schemas/README.md +119 -0
  181. package/node_modules/@fastify/merge-json-schemas/eslint.config.js +6 -0
  182. package/node_modules/@fastify/merge-json-schemas/index.js +357 -0
  183. package/node_modules/@fastify/merge-json-schemas/lib/errors.js +36 -0
  184. package/node_modules/@fastify/merge-json-schemas/lib/resolvers.js +127 -0
  185. package/node_modules/@fastify/merge-json-schemas/package.json +67 -0
  186. package/node_modules/@fastify/merge-json-schemas/test/additional-items.test.js +164 -0
  187. package/node_modules/@fastify/merge-json-schemas/test/additional-properties.test.js +129 -0
  188. package/node_modules/@fastify/merge-json-schemas/test/all-of.test.js +43 -0
  189. package/node_modules/@fastify/merge-json-schemas/test/any-of.test.js +81 -0
  190. package/node_modules/@fastify/merge-json-schemas/test/const.test.js +58 -0
  191. package/node_modules/@fastify/merge-json-schemas/test/contains.test.js +55 -0
  192. package/node_modules/@fastify/merge-json-schemas/test/custom-resolvers.test.js +50 -0
  193. package/node_modules/@fastify/merge-json-schemas/test/default-resolver.test.js +111 -0
  194. package/node_modules/@fastify/merge-json-schemas/test/default.test.js +50 -0
  195. package/node_modules/@fastify/merge-json-schemas/test/definitions.test.js +46 -0
  196. package/node_modules/@fastify/merge-json-schemas/test/defs.test.js +46 -0
  197. package/node_modules/@fastify/merge-json-schemas/test/dependencies.test.js +75 -0
  198. package/node_modules/@fastify/merge-json-schemas/test/dependent-required.test.js +75 -0
  199. package/node_modules/@fastify/merge-json-schemas/test/dependent-schemas.test.js +76 -0
  200. package/node_modules/@fastify/merge-json-schemas/test/enum.test.js +44 -0
  201. package/node_modules/@fastify/merge-json-schemas/test/exclusive-maximum.test.js +30 -0
  202. package/node_modules/@fastify/merge-json-schemas/test/exclusive-minimum.test.js +30 -0
  203. package/node_modules/@fastify/merge-json-schemas/test/format.test.js +36 -0
  204. package/node_modules/@fastify/merge-json-schemas/test/id.test.js +22 -0
  205. package/node_modules/@fastify/merge-json-schemas/test/if-then-else.test.js +550 -0
  206. package/node_modules/@fastify/merge-json-schemas/test/items.test.js +152 -0
  207. package/node_modules/@fastify/merge-json-schemas/test/max-items.test.js +30 -0
  208. package/node_modules/@fastify/merge-json-schemas/test/max-length.test.js +30 -0
  209. package/node_modules/@fastify/merge-json-schemas/test/max-properties.test.js +30 -0
  210. package/node_modules/@fastify/merge-json-schemas/test/maximum.test.js +30 -0
  211. package/node_modules/@fastify/merge-json-schemas/test/merge-schema.test.js +29 -0
  212. package/node_modules/@fastify/merge-json-schemas/test/min-items.test.js +30 -0
  213. package/node_modules/@fastify/merge-json-schemas/test/min-length.test.js +30 -0
  214. package/node_modules/@fastify/merge-json-schemas/test/min-properties.test.js +30 -0
  215. package/node_modules/@fastify/merge-json-schemas/test/minimum.test.js +30 -0
  216. package/node_modules/@fastify/merge-json-schemas/test/multiple-of.test.js +36 -0
  217. package/node_modules/@fastify/merge-json-schemas/test/not.test.js +29 -0
  218. package/node_modules/@fastify/merge-json-schemas/test/nullable.test.js +30 -0
  219. package/node_modules/@fastify/merge-json-schemas/test/one-of.test.js +144 -0
  220. package/node_modules/@fastify/merge-json-schemas/test/properties.test.js +312 -0
  221. package/node_modules/@fastify/merge-json-schemas/test/property-names.test.js +49 -0
  222. package/node_modules/@fastify/merge-json-schemas/test/required.test.js +30 -0
  223. package/node_modules/@fastify/merge-json-schemas/test/type.test.js +52 -0
  224. package/node_modules/@fastify/merge-json-schemas/test/unique-items.test.js +38 -0
  225. package/node_modules/@fastify/merge-json-schemas/test/utils.js +9 -0
  226. package/node_modules/@fastify/merge-json-schemas/types/index.d.ts +61 -0
  227. package/node_modules/@fastify/merge-json-schemas/types/index.test-d.ts +52 -0
  228. package/node_modules/@fastify/proxy-addr/.gitattributes +2 -0
  229. package/node_modules/@fastify/proxy-addr/.github/dependabot.yml +13 -0
  230. package/node_modules/@fastify/proxy-addr/.github/stale.yml +21 -0
  231. package/node_modules/@fastify/proxy-addr/.github/workflows/ci.yml +28 -0
  232. package/node_modules/@fastify/proxy-addr/LICENSE +24 -0
  233. package/node_modules/@fastify/proxy-addr/README.md +141 -0
  234. package/node_modules/@fastify/proxy-addr/benchmark/compiling.js +50 -0
  235. package/node_modules/@fastify/proxy-addr/benchmark/index.js +30 -0
  236. package/node_modules/@fastify/proxy-addr/benchmark/kind.js +57 -0
  237. package/node_modules/@fastify/proxy-addr/benchmark/matching.js +78 -0
  238. package/node_modules/@fastify/proxy-addr/eslint.config.js +6 -0
  239. package/node_modules/@fastify/proxy-addr/index.js +331 -0
  240. package/node_modules/@fastify/proxy-addr/package.json +73 -0
  241. package/node_modules/@fastify/proxy-addr/test/all.test.js +55 -0
  242. package/node_modules/@fastify/proxy-addr/test/base.test.js +365 -0
  243. package/node_modules/@fastify/proxy-addr/test/compile.test.js +58 -0
  244. package/node_modules/@fastify/proxy-addr/types/index.d.ts +18 -0
  245. package/node_modules/@fastify/proxy-addr/types/index.test-d.ts +27 -0
  246. package/node_modules/@fastify/send/.gitattributes +2 -0
  247. package/node_modules/@fastify/send/.github/dependabot.yml +13 -0
  248. package/node_modules/@fastify/send/.github/workflows/ci.yml +28 -0
  249. package/node_modules/@fastify/send/HISTORY.md +521 -0
  250. package/node_modules/@fastify/send/LICENSE +23 -0
  251. package/node_modules/@fastify/send/README.md +310 -0
  252. package/node_modules/@fastify/send/benchmarks/collapseLeadingSlashes.js +13 -0
  253. package/node_modules/@fastify/send/benchmarks/containsDotFile.js +15 -0
  254. package/node_modules/@fastify/send/benchmarks/isUtf8MimeType.js +23 -0
  255. package/node_modules/@fastify/send/benchmarks/normalizeList.js +14 -0
  256. package/node_modules/@fastify/send/benchmarks/parseBytesRange.js +15 -0
  257. package/node_modules/@fastify/send/eslint.config.js +6 -0
  258. package/node_modules/@fastify/send/examples/index.html +1 -0
  259. package/node_modules/@fastify/send/examples/simple.js +15 -0
  260. package/node_modules/@fastify/send/index.js +28 -0
  261. package/node_modules/@fastify/send/lib/collapseLeadingSlashes.js +25 -0
  262. package/node_modules/@fastify/send/lib/containsDotFile.js +23 -0
  263. package/node_modules/@fastify/send/lib/contentRange.js +18 -0
  264. package/node_modules/@fastify/send/lib/createHtmlDocument.js +29 -0
  265. package/node_modules/@fastify/send/lib/createHttpError.js +23 -0
  266. package/node_modules/@fastify/send/lib/isUtf8MimeType.js +12 -0
  267. package/node_modules/@fastify/send/lib/normalizeList.js +28 -0
  268. package/node_modules/@fastify/send/lib/parseBytesRange.js +133 -0
  269. package/node_modules/@fastify/send/lib/parseTokenList.js +46 -0
  270. package/node_modules/@fastify/send/lib/send.js +729 -0
  271. package/node_modules/@fastify/send/package.json +81 -0
  272. package/node_modules/@fastify/send/test/collapseLeadingSlashes.test.js +22 -0
  273. package/node_modules/@fastify/send/test/containsDotFile.test.js +18 -0
  274. package/node_modules/@fastify/send/test/fixtures/.hidden.txt +1 -0
  275. package/node_modules/@fastify/send/test/fixtures/.mine/.hidden.txt +1 -0
  276. package/node_modules/@fastify/send/test/fixtures/.mine/name.txt +1 -0
  277. package/node_modules/@fastify/send/test/fixtures/do..ts.txt +1 -0
  278. package/node_modules/@fastify/send/test/fixtures/empty.txt +0 -0
  279. package/node_modules/@fastify/send/test/fixtures/images/node-js.png +0 -0
  280. package/node_modules/@fastify/send/test/fixtures/name.d/name.txt +1 -0
  281. package/node_modules/@fastify/send/test/fixtures/name.dir/name.txt +1 -0
  282. package/node_modules/@fastify/send/test/fixtures/name.html +1 -0
  283. package/node_modules/@fastify/send/test/fixtures/name.txt +1 -0
  284. package/node_modules/@fastify/send/test/fixtures/no_ext +1 -0
  285. package/node_modules/@fastify/send/test/fixtures/nums.txt +1 -0
  286. package/node_modules/@fastify/send/test/fixtures/pets/.hidden.txt +1 -0
  287. package/node_modules/@fastify/send/test/fixtures/pets/index.html +3 -0
  288. package/node_modules/@fastify/send/test/fixtures/snow /342/230/203/index.html +0 -0
  289. package/node_modules/@fastify/send/test/fixtures/some thing.txt +1 -0
  290. package/node_modules/@fastify/send/test/fixtures/thing.html.html +1 -0
  291. package/node_modules/@fastify/send/test/fixtures/tobi.html +1 -0
  292. package/node_modules/@fastify/send/test/isUtf8MimeType.test.js +22 -0
  293. package/node_modules/@fastify/send/test/mime.test.js +56 -0
  294. package/node_modules/@fastify/send/test/normalizeList.test.js +28 -0
  295. package/node_modules/@fastify/send/test/parseBytesRange.test.js +103 -0
  296. package/node_modules/@fastify/send/test/send.1.test.js +646 -0
  297. package/node_modules/@fastify/send/test/send.2.test.js +977 -0
  298. package/node_modules/@fastify/send/test/send.3.test.js +133 -0
  299. package/node_modules/@fastify/send/test/utils.js +36 -0
  300. package/node_modules/@fastify/send/types/index.d.ts +167 -0
  301. package/node_modules/@fastify/send/types/index.test-d.ts +67 -0
  302. package/node_modules/@fastify/static/.gitattributes +5 -0
  303. package/node_modules/@fastify/static/.github/dependabot.yml +13 -0
  304. package/node_modules/@fastify/static/.github/stale.yml +21 -0
  305. package/node_modules/@fastify/static/.github/workflows/ci.yml +33 -0
  306. package/node_modules/@fastify/static/LICENSE +23 -0
  307. package/node_modules/@fastify/static/README.md +538 -0
  308. package/node_modules/@fastify/static/eslint.config.js +7 -0
  309. package/node_modules/@fastify/static/example/public/.hidden/sample.json +1 -0
  310. package/node_modules/@fastify/static/example/public/images/sample.jpg +0 -0
  311. package/node_modules/@fastify/static/example/public/index.css +9 -0
  312. package/node_modules/@fastify/static/example/public/index.html +11 -0
  313. package/node_modules/@fastify/static/example/public/index.js +8 -0
  314. package/node_modules/@fastify/static/example/public2/test.css +4 -0
  315. package/node_modules/@fastify/static/example/public2/test.html +8 -0
  316. package/node_modules/@fastify/static/example/server-compress.js +15 -0
  317. package/node_modules/@fastify/static/example/server-dir-list.js +38 -0
  318. package/node_modules/@fastify/static/example/server-hidden-file.js +15 -0
  319. package/node_modules/@fastify/static/example/server.js +13 -0
  320. package/node_modules/@fastify/static/index.js +580 -0
  321. package/node_modules/@fastify/static/lib/dirList.js +211 -0
  322. package/node_modules/@fastify/static/package.json +87 -0
  323. package/node_modules/@fastify/static/test/content-type/binary +0 -0
  324. package/node_modules/@fastify/static/test/content-type/binary.br +1 -0
  325. package/node_modules/@fastify/static/test/content-type/index.css +0 -0
  326. package/node_modules/@fastify/static/test/content-type/index.css.br +1 -0
  327. package/node_modules/@fastify/static/test/content-type/index.html +5 -0
  328. package/node_modules/@fastify/static/test/content-type/index.html.br +0 -0
  329. package/node_modules/@fastify/static/test/content-type/sample.jpg +0 -0
  330. package/node_modules/@fastify/static/test/content-type/test.txt +0 -0
  331. package/node_modules/@fastify/static/test/content-type/test.txt.br +1 -0
  332. package/node_modules/@fastify/static/test/content-type.test.js +144 -0
  333. package/node_modules/@fastify/static/test/dir-list.test.js +738 -0
  334. package/node_modules/@fastify/static/test/static/.example +1 -0
  335. package/node_modules/@fastify/static/test/static/100%.txt +1 -0
  336. package/node_modules/@fastify/static/test/static/a .md +1 -0
  337. package/node_modules/@fastify/static/test/static/deep/path/for/test/index.html +5 -0
  338. package/node_modules/@fastify/static/test/static/deep/path/for/test/purpose/foo.html +5 -0
  339. package/node_modules/@fastify/static/test/static/foo.html +3 -0
  340. package/node_modules/@fastify/static/test/static/foobar.html +3 -0
  341. package/node_modules/@fastify/static/test/static/index.css +0 -0
  342. package/node_modules/@fastify/static/test/static/index.html +5 -0
  343. package/node_modules/@fastify/static/test/static/shallow/sample.jpg +0 -0
  344. package/node_modules/@fastify/static/test/static-dotfiles/.aaa +0 -0
  345. package/node_modules/@fastify/static/test/static-dotfiles/dir/index.html +0 -0
  346. package/node_modules/@fastify/static/test/static-dotfiles/test.txt +0 -0
  347. package/node_modules/@fastify/static/test/static-encode/[...]/a .md +1 -0
  348. package/node_modules/@fastify/static/test/static-filtered/bar.private +1 -0
  349. package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.html +3 -0
  350. package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.private +1 -0
  351. package/node_modules/@fastify/static/test/static-filtered/index.html +3 -0
  352. package/node_modules/@fastify/static/test/static-hidden/.hidden/sample.json +1 -0
  353. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html +5 -0
  354. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.br +0 -0
  355. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.gz +0 -0
  356. package/node_modules/@fastify/static/test/static-pre-compressed/baz.json +3 -0
  357. package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html +5 -0
  358. package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html.br +0 -0
  359. package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html +5 -0
  360. package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html.gz +0 -0
  361. package/node_modules/@fastify/static/test/static-pre-compressed/empty/.gitkeep +0 -0
  362. package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html +3 -0
  363. package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html.gz +0 -0
  364. package/node_modules/@fastify/static/test/static-pre-compressed/index.html +5 -0
  365. package/node_modules/@fastify/static/test/static-pre-compressed/index.html.br +0 -0
  366. package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg +0 -0
  367. package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg.br +0 -0
  368. package/node_modules/@fastify/static/test/static-pre-compressed/uncompressed.html +3 -0
  369. package/node_modules/@fastify/static/test/static-symbolic-link/origin/subdir/subdir/index.html +3 -0
  370. package/node_modules/@fastify/static/test/static.test.js +3793 -0
  371. package/node_modules/@fastify/static/test/static2/bar.html +3 -0
  372. package/node_modules/@fastify/static/test/static2/index.html +3 -0
  373. package/node_modules/@fastify/static/types/index.d.ts +140 -0
  374. package/node_modules/@fastify/static/types/index.test-d.ts +240 -0
  375. package/node_modules/@iarna/toml/LICENSE +14 -0
  376. package/node_modules/@iarna/toml/README.md +301 -0
  377. package/node_modules/@iarna/toml/index.d.ts +57 -0
  378. package/node_modules/@iarna/toml/lib/create-date.js +23 -0
  379. package/node_modules/@iarna/toml/lib/create-datetime-float.js +24 -0
  380. package/node_modules/@iarna/toml/lib/create-datetime.js +10 -0
  381. package/node_modules/@iarna/toml/lib/create-time.js +22 -0
  382. package/node_modules/@iarna/toml/lib/format-num.js +6 -0
  383. package/node_modules/@iarna/toml/lib/parser-debug.js +60 -0
  384. package/node_modules/@iarna/toml/lib/parser.js +127 -0
  385. package/node_modules/@iarna/toml/lib/toml-parser.js +1379 -0
  386. package/node_modules/@iarna/toml/package.json +82 -0
  387. package/node_modules/@iarna/toml/parse-async.js +30 -0
  388. package/node_modules/@iarna/toml/parse-pretty-error.js +33 -0
  389. package/node_modules/@iarna/toml/parse-stream.js +80 -0
  390. package/node_modules/@iarna/toml/parse-string.js +18 -0
  391. package/node_modules/@iarna/toml/parse.js +5 -0
  392. package/node_modules/@iarna/toml/stringify.js +296 -0
  393. package/node_modules/@iarna/toml/toml.js +3 -0
  394. package/node_modules/@isaacs/balanced-match/LICENSE.md +23 -0
  395. package/node_modules/@isaacs/balanced-match/README.md +60 -0
  396. package/node_modules/@isaacs/balanced-match/dist/commonjs/index.d.ts +9 -0
  397. package/node_modules/@isaacs/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  398. package/node_modules/@isaacs/balanced-match/dist/commonjs/index.js +59 -0
  399. package/node_modules/@isaacs/balanced-match/dist/commonjs/index.js.map +1 -0
  400. package/node_modules/@isaacs/balanced-match/dist/commonjs/package.json +3 -0
  401. package/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts +9 -0
  402. package/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts.map +1 -0
  403. package/node_modules/@isaacs/balanced-match/dist/esm/index.js +54 -0
  404. package/node_modules/@isaacs/balanced-match/dist/esm/index.js.map +1 -0
  405. package/node_modules/@isaacs/balanced-match/dist/esm/package.json +3 -0
  406. package/node_modules/@isaacs/balanced-match/package.json +79 -0
  407. package/node_modules/@isaacs/brace-expansion/LICENSE +23 -0
  408. package/node_modules/@isaacs/brace-expansion/README.md +97 -0
  409. package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts +6 -0
  410. package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  411. package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js +199 -0
  412. package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js.map +1 -0
  413. package/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json +3 -0
  414. package/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts +6 -0
  415. package/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts.map +1 -0
  416. package/node_modules/@isaacs/brace-expansion/dist/esm/index.js +195 -0
  417. package/node_modules/@isaacs/brace-expansion/dist/esm/index.js.map +1 -0
  418. package/node_modules/@isaacs/brace-expansion/dist/esm/package.json +3 -0
  419. package/node_modules/@isaacs/brace-expansion/package.json +60 -0
  420. package/node_modules/@isaacs/cliui/LICENSE.md +63 -0
  421. package/node_modules/@isaacs/cliui/README.md +151 -0
  422. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +4 -0
  423. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +1 -0
  424. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +16 -0
  425. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +1 -0
  426. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +34 -0
  427. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +1 -0
  428. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +170 -0
  429. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +1 -0
  430. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +6 -0
  431. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +1 -0
  432. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +307 -0
  433. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +1 -0
  434. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +2 -0
  435. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +1 -0
  436. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +7 -0
  437. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +1 -0
  438. package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +41 -0
  439. package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +1 -0
  440. package/node_modules/@isaacs/cliui/dist/commonjs/index.js +322 -0
  441. package/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +1 -0
  442. package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +12 -0
  443. package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +7 -0
  444. package/node_modules/@isaacs/cliui/dist/commonjs/package.json +3 -0
  445. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +5 -0
  446. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +1 -0
  447. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +49 -0
  448. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +1 -0
  449. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +2 -0
  450. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +1 -0
  451. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +8 -0
  452. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +1 -0
  453. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +7 -0
  454. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +1 -0
  455. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +176 -0
  456. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +1 -0
  457. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +4 -0
  458. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +1 -0
  459. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +12 -0
  460. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +1 -0
  461. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +34 -0
  462. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +1 -0
  463. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +167 -0
  464. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +1 -0
  465. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +6 -0
  466. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +1 -0
  467. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +299 -0
  468. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +1 -0
  469. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +2 -0
  470. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +1 -0
  471. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +3 -0
  472. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +1 -0
  473. package/node_modules/@isaacs/cliui/dist/esm/index.d.ts +41 -0
  474. package/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +1 -0
  475. package/node_modules/@isaacs/cliui/dist/esm/index.js +317 -0
  476. package/node_modules/@isaacs/cliui/dist/esm/index.js.map +1 -0
  477. package/node_modules/@isaacs/cliui/dist/esm/index.min.js +12 -0
  478. package/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +7 -0
  479. package/node_modules/@isaacs/cliui/dist/esm/package.json +3 -0
  480. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +5 -0
  481. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +1 -0
  482. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +46 -0
  483. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +1 -0
  484. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +2 -0
  485. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +1 -0
  486. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +4 -0
  487. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +1 -0
  488. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +7 -0
  489. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +1 -0
  490. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +172 -0
  491. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +1 -0
  492. package/node_modules/@isaacs/cliui/package.json +163 -0
  493. package/node_modules/@lukeed/ms/dist/index.js +37 -0
  494. package/node_modules/@lukeed/ms/dist/index.min.js +1 -0
  495. package/node_modules/@lukeed/ms/dist/index.mjs +34 -0
  496. package/node_modules/@lukeed/ms/index.d.ts +2 -0
  497. package/node_modules/@lukeed/ms/license +9 -0
  498. package/node_modules/@lukeed/ms/package.json +48 -0
  499. package/node_modules/@lukeed/ms/readme.md +133 -0
  500. package/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  501. package/node_modules/@nodelib/fs.scandir/README.md +171 -0
  502. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  503. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  504. package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  505. package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  506. package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  507. package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  508. package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  509. package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  510. package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  511. package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  512. package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  513. package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  514. package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  515. package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  516. package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  517. package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  518. package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  519. package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  520. package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  521. package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  522. package/node_modules/@nodelib/fs.scandir/package.json +44 -0
  523. package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  524. package/node_modules/@nodelib/fs.stat/README.md +126 -0
  525. package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  526. package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  527. package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  528. package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  529. package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  530. package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  531. package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  532. package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  533. package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  534. package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  535. package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  536. package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  537. package/node_modules/@nodelib/fs.stat/package.json +37 -0
  538. package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  539. package/node_modules/@nodelib/fs.walk/README.md +215 -0
  540. package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  541. package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  542. package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  543. package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  544. package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  545. package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  546. package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  547. package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  548. package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  549. package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  550. package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  551. package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  552. package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  553. package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  554. package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  555. package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  556. package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  557. package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  558. package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  559. package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  560. package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  561. package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  562. package/node_modules/@nodelib/fs.walk/package.json +44 -0
  563. package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
  564. package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
  565. package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
  566. package/node_modules/@pinojs/redact/LICENSE +21 -0
  567. package/node_modules/@pinojs/redact/README.md +350 -0
  568. package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
  569. package/node_modules/@pinojs/redact/eslint.config.js +1 -0
  570. package/node_modules/@pinojs/redact/index.d.ts +52 -0
  571. package/node_modules/@pinojs/redact/index.js +529 -0
  572. package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
  573. package/node_modules/@pinojs/redact/package.json +37 -0
  574. package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
  575. package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
  576. package/node_modules/@pinojs/redact/test/index.test.js +824 -0
  577. package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
  578. package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
  579. package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
  580. package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
  581. package/node_modules/@pinojs/redact/tsconfig.json +19 -0
  582. package/node_modules/abstract-logging/Readme.md +47 -0
  583. package/node_modules/abstract-logging/index.js +18 -0
  584. package/node_modules/abstract-logging/package.json +25 -0
  585. package/node_modules/abstract-logging/test.js +17 -0
  586. package/node_modules/ajv/.runkit_example.js +23 -0
  587. package/node_modules/ajv/LICENSE +22 -0
  588. package/node_modules/ajv/README.md +207 -0
  589. package/node_modules/ajv/dist/2019.d.ts +19 -0
  590. package/node_modules/ajv/dist/2019.js +61 -0
  591. package/node_modules/ajv/dist/2019.js.map +1 -0
  592. package/node_modules/ajv/dist/2020.d.ts +19 -0
  593. package/node_modules/ajv/dist/2020.js +55 -0
  594. package/node_modules/ajv/dist/2020.js.map +1 -0
  595. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  596. package/node_modules/ajv/dist/ajv.js +50 -0
  597. package/node_modules/ajv/dist/ajv.js.map +1 -0
  598. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  599. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  600. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  601. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  602. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  603. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  604. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  605. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  606. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  607. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  608. package/node_modules/ajv/dist/compile/errors.js +123 -0
  609. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  610. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  611. package/node_modules/ajv/dist/compile/index.js +242 -0
  612. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  613. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  614. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  615. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  616. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  617. package/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  618. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  619. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  620. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  621. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  622. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  623. package/node_modules/ajv/dist/compile/names.js +28 -0
  624. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  625. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  626. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  627. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  628. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  629. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  630. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  631. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  632. package/node_modules/ajv/dist/compile/rules.js +26 -0
  633. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  634. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  635. package/node_modules/ajv/dist/compile/util.js +178 -0
  636. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  637. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  638. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  639. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  640. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  641. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  642. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  643. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  644. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  645. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  646. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  647. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  648. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  649. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  650. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  651. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  652. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  653. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  654. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  655. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  656. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  657. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  658. package/node_modules/ajv/dist/core.d.ts +173 -0
  659. package/node_modules/ajv/dist/core.js +618 -0
  660. package/node_modules/ajv/dist/core.js.map +1 -0
  661. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  662. package/node_modules/ajv/dist/jtd.js +72 -0
  663. package/node_modules/ajv/dist/jtd.js.map +1 -0
  664. package/node_modules/ajv/dist/refs/data.json +13 -0
  665. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  666. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  667. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  668. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  669. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  670. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  671. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  672. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  673. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  674. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  675. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  676. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  677. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  678. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  679. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  680. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  681. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  682. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  683. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  684. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  685. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  686. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  687. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  688. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  689. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  690. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  691. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  692. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  693. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  694. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  695. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  696. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  697. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  698. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  699. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  700. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  701. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  702. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  703. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  704. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  705. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  706. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  707. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  708. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  709. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  710. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  711. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  712. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  713. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  714. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  715. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  716. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  717. package/node_modules/ajv/dist/standalone/index.js +90 -0
  718. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  719. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  720. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  721. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  722. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  723. package/node_modules/ajv/dist/types/index.js +3 -0
  724. package/node_modules/ajv/dist/types/index.js.map +1 -0
  725. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  726. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  727. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  728. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  729. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  730. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  731. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  732. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  733. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  734. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  735. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  736. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  737. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  738. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  739. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  740. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  741. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  742. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  743. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  744. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  745. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  746. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  747. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  748. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  749. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  750. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  751. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  752. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  753. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  754. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  755. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  756. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  757. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  758. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  759. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  760. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  761. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  762. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  763. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  764. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  765. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  766. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  767. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  768. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  769. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  770. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  771. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  772. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  773. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  774. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  775. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  776. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  777. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  778. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  779. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  780. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  781. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  782. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  783. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  784. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  785. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  786. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  787. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  788. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  789. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  790. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  791. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  792. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  793. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  794. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  795. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  796. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  797. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  798. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  799. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  800. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  801. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  802. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  803. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  804. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  805. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  806. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  807. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  808. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  809. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  810. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  811. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  812. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  813. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  814. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  815. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  816. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  817. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  818. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  819. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  820. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  821. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  822. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  823. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  824. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  825. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  826. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  827. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  828. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  829. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  830. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  831. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  832. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  833. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  834. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  835. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  836. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  837. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  838. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  839. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  840. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  841. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  842. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  843. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  844. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  845. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  846. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  847. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  848. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  849. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  850. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  851. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  852. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  853. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  854. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  855. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  856. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  857. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  858. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  859. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  860. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  861. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  862. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  863. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  864. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  865. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  866. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  867. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  868. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  869. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  870. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  871. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  872. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  873. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  874. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  875. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  876. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  877. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  878. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  879. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  880. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  881. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  882. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  883. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  884. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  885. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  886. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  887. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  888. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  889. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  890. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  891. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  892. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  893. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  894. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  895. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  896. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  897. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  898. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  899. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  900. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  901. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  902. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  903. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  904. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  905. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  906. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  907. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  908. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  909. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  910. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  911. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  912. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  913. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  914. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  915. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  916. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  917. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  918. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  919. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  920. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  921. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  922. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  923. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  924. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  925. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  926. package/node_modules/ajv/lib/2019.ts +81 -0
  927. package/node_modules/ajv/lib/2020.ts +75 -0
  928. package/node_modules/ajv/lib/ajv.ts +70 -0
  929. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  930. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  931. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  932. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  933. package/node_modules/ajv/lib/compile/index.ts +324 -0
  934. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  935. package/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  936. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  937. package/node_modules/ajv/lib/compile/names.ts +27 -0
  938. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  939. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  940. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  941. package/node_modules/ajv/lib/compile/util.ts +213 -0
  942. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  943. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  944. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  945. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  946. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  947. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  948. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  949. package/node_modules/ajv/lib/core.ts +891 -0
  950. package/node_modules/ajv/lib/jtd.ts +132 -0
  951. package/node_modules/ajv/lib/refs/data.json +13 -0
  952. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  953. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  954. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  955. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  956. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  957. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  958. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  959. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  960. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  961. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  962. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  963. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  964. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  965. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  966. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  967. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  968. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  969. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  970. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  971. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  972. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  973. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  974. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  975. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  976. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  977. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  978. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  979. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  980. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  981. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  982. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  983. package/node_modules/ajv/lib/types/index.ts +244 -0
  984. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  985. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  986. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  987. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  988. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  989. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  990. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  991. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  992. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  993. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  994. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  995. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  996. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  997. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  998. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  999. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  1000. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  1001. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  1002. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  1003. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  1004. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  1005. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  1006. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  1007. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  1008. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  1009. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  1010. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  1011. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  1012. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  1013. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  1014. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  1015. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  1016. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  1017. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  1018. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  1019. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  1020. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  1021. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  1022. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  1023. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  1024. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  1025. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  1026. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  1027. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  1028. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  1029. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  1030. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  1031. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  1032. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  1033. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  1034. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  1035. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  1036. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  1037. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  1038. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  1039. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  1040. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  1041. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  1042. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  1043. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  1044. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  1045. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  1046. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  1047. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  1048. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  1049. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  1050. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  1051. package/node_modules/ajv/package.json +126 -0
  1052. package/node_modules/ajv-formats/LICENSE +21 -0
  1053. package/node_modules/ajv-formats/README.md +125 -0
  1054. package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  1055. package/node_modules/ajv-formats/dist/formats.js +208 -0
  1056. package/node_modules/ajv-formats/dist/formats.js.map +1 -0
  1057. package/node_modules/ajv-formats/dist/index.d.ts +15 -0
  1058. package/node_modules/ajv-formats/dist/index.js +37 -0
  1059. package/node_modules/ajv-formats/dist/index.js.map +1 -0
  1060. package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  1061. package/node_modules/ajv-formats/dist/limit.js +69 -0
  1062. package/node_modules/ajv-formats/dist/limit.js.map +1 -0
  1063. package/node_modules/ajv-formats/package.json +74 -0
  1064. package/node_modules/ajv-formats/src/formats.ts +269 -0
  1065. package/node_modules/ajv-formats/src/index.ts +62 -0
  1066. package/node_modules/ajv-formats/src/limit.ts +99 -0
  1067. package/node_modules/atomic-sleep/.travis.yml +11 -0
  1068. package/node_modules/atomic-sleep/LICENSE +22 -0
  1069. package/node_modules/atomic-sleep/index.js +38 -0
  1070. package/node_modules/atomic-sleep/package.json +37 -0
  1071. package/node_modules/atomic-sleep/readme.md +58 -0
  1072. package/node_modules/atomic-sleep/test.js +47 -0
  1073. package/node_modules/avvio/.gitattributes +2 -0
  1074. package/node_modules/avvio/.github/dependabot.yml +13 -0
  1075. package/node_modules/avvio/.github/release-drafter.yml +4 -0
  1076. package/node_modules/avvio/.github/tests_checker.yml +3 -0
  1077. package/node_modules/avvio/.github/workflows/ci.yml +24 -0
  1078. package/node_modules/avvio/.taprc +3 -0
  1079. package/node_modules/avvio/LICENSE +24 -0
  1080. package/node_modules/avvio/README.md +670 -0
  1081. package/node_modules/avvio/boot.js +607 -0
  1082. package/node_modules/avvio/examples/example.js +72 -0
  1083. package/node_modules/avvio/index.d.ts +92 -0
  1084. package/node_modules/avvio/lib/create-promise.js +45 -0
  1085. package/node_modules/avvio/lib/debug.js +19 -0
  1086. package/node_modules/avvio/lib/errors.js +38 -0
  1087. package/node_modules/avvio/lib/execute-with-thenable.js +28 -0
  1088. package/node_modules/avvio/lib/get-plugin-name.js +34 -0
  1089. package/node_modules/avvio/lib/is-bundled-or-typescript-plugin.js +23 -0
  1090. package/node_modules/avvio/lib/is-promise-like.js +17 -0
  1091. package/node_modules/avvio/lib/plugin.js +279 -0
  1092. package/node_modules/avvio/lib/symbols.js +26 -0
  1093. package/node_modules/avvio/lib/thenify.js +60 -0
  1094. package/node_modules/avvio/lib/time-tree.js +200 -0
  1095. package/node_modules/avvio/lib/validate-plugin.js +26 -0
  1096. package/node_modules/avvio/package.json +51 -0
  1097. package/node_modules/avvio/test/after-and-ready.test.js +864 -0
  1098. package/node_modules/avvio/test/after-pass-through.test.js +32 -0
  1099. package/node_modules/avvio/test/after-self-promise.test.js +20 -0
  1100. package/node_modules/avvio/test/after-throw.test.js +24 -0
  1101. package/node_modules/avvio/test/after-use-after.test.js +90 -0
  1102. package/node_modules/avvio/test/async-await.test.js +325 -0
  1103. package/node_modules/avvio/test/await-after.test.js +449 -0
  1104. package/node_modules/avvio/test/await-self.test.js +31 -0
  1105. package/node_modules/avvio/test/await-use.test.js +294 -0
  1106. package/node_modules/avvio/test/basic.test.js +439 -0
  1107. package/node_modules/avvio/test/callbacks.test.js +113 -0
  1108. package/node_modules/avvio/test/catch-override-exception.test.js +26 -0
  1109. package/node_modules/avvio/test/chainable.test.js +67 -0
  1110. package/node_modules/avvio/test/close.test.js +544 -0
  1111. package/node_modules/avvio/test/errors.test.js +26 -0
  1112. package/node_modules/avvio/test/esm.mjs +12 -0
  1113. package/node_modules/avvio/test/esm.test.js +14 -0
  1114. package/node_modules/avvio/test/events-listeners.test.js +23 -0
  1115. package/node_modules/avvio/test/expose.test.js +80 -0
  1116. package/node_modules/avvio/test/fixtures/dummy.txt +1 -0
  1117. package/node_modules/avvio/test/fixtures/esm.mjs +3 -0
  1118. package/node_modules/avvio/test/fixtures/plugin-no-next.js +5 -0
  1119. package/node_modules/avvio/test/gh-issues/bug-205.test.js +16 -0
  1120. package/node_modules/avvio/test/lib/create-promise.test.js +55 -0
  1121. package/node_modules/avvio/test/lib/execute-with-thenable.test.js +82 -0
  1122. package/node_modules/avvio/test/lib/get-plugin-name.test.js +67 -0
  1123. package/node_modules/avvio/test/lib/is-bundled-or-typescript-plugin.test.js +20 -0
  1124. package/node_modules/avvio/test/lib/is-promise-like.test.js +20 -0
  1125. package/node_modules/avvio/test/lib/thenify.test.js +123 -0
  1126. package/node_modules/avvio/test/lib/time-tree.test.js +391 -0
  1127. package/node_modules/avvio/test/lib/validate-plugin.test.js +19 -0
  1128. package/node_modules/avvio/test/load-plugin.test.js +123 -0
  1129. package/node_modules/avvio/test/no-done.test.js +18 -0
  1130. package/node_modules/avvio/test/on-ready-timeout-await.test.js +33 -0
  1131. package/node_modules/avvio/test/override.test.js +374 -0
  1132. package/node_modules/avvio/test/plugin-loaded-so-far.test.js +84 -0
  1133. package/node_modules/avvio/test/plugin-name.test.js +69 -0
  1134. package/node_modules/avvio/test/plugin-timeout-await.test.js +33 -0
  1135. package/node_modules/avvio/test/plugin-timeout.test.js +218 -0
  1136. package/node_modules/avvio/test/pretty-print.test.js +75 -0
  1137. package/node_modules/avvio/test/reentrant.test.js +124 -0
  1138. package/node_modules/avvio/test/to-json.test.js +151 -0
  1139. package/node_modules/avvio/test/twice-done.test.js +22 -0
  1140. package/node_modules/avvio/test/types/index.ts +411 -0
  1141. package/node_modules/avvio/test/types/tsconfig.json +9 -0
  1142. package/node_modules/braces/LICENSE +21 -0
  1143. package/node_modules/braces/README.md +586 -0
  1144. package/node_modules/braces/index.js +170 -0
  1145. package/node_modules/braces/lib/compile.js +60 -0
  1146. package/node_modules/braces/lib/constants.js +57 -0
  1147. package/node_modules/braces/lib/expand.js +113 -0
  1148. package/node_modules/braces/lib/parse.js +331 -0
  1149. package/node_modules/braces/lib/stringify.js +32 -0
  1150. package/node_modules/braces/lib/utils.js +122 -0
  1151. package/node_modules/braces/package.json +77 -0
  1152. package/node_modules/chokidar/LICENSE +21 -0
  1153. package/node_modules/chokidar/README.md +305 -0
  1154. package/node_modules/chokidar/handler.d.ts +90 -0
  1155. package/node_modules/chokidar/handler.js +632 -0
  1156. package/node_modules/chokidar/index.d.ts +217 -0
  1157. package/node_modules/chokidar/index.js +822 -0
  1158. package/node_modules/chokidar/package.json +63 -0
  1159. package/node_modules/commander/LICENSE +22 -0
  1160. package/node_modules/commander/Readme.md +1149 -0
  1161. package/node_modules/commander/esm.mjs +16 -0
  1162. package/node_modules/commander/index.js +24 -0
  1163. package/node_modules/commander/lib/argument.js +149 -0
  1164. package/node_modules/commander/lib/command.js +2662 -0
  1165. package/node_modules/commander/lib/error.js +39 -0
  1166. package/node_modules/commander/lib/help.js +709 -0
  1167. package/node_modules/commander/lib/option.js +367 -0
  1168. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  1169. package/node_modules/commander/package-support.json +16 -0
  1170. package/node_modules/commander/package.json +82 -0
  1171. package/node_modules/commander/typings/esm.d.mts +3 -0
  1172. package/node_modules/commander/typings/index.d.ts +1045 -0
  1173. package/node_modules/content-disposition/HISTORY.md +60 -0
  1174. package/node_modules/content-disposition/LICENSE +22 -0
  1175. package/node_modules/content-disposition/README.md +142 -0
  1176. package/node_modules/content-disposition/index.js +458 -0
  1177. package/node_modules/content-disposition/package.json +44 -0
  1178. package/node_modules/cookie/LICENSE +24 -0
  1179. package/node_modules/cookie/README.md +295 -0
  1180. package/node_modules/cookie/dist/index.d.ts +148 -0
  1181. package/node_modules/cookie/dist/index.js +350 -0
  1182. package/node_modules/cookie/dist/index.js.map +1 -0
  1183. package/node_modules/cookie/package.json +47 -0
  1184. package/node_modules/cross-spawn/LICENSE +21 -0
  1185. package/node_modules/cross-spawn/README.md +89 -0
  1186. package/node_modules/cross-spawn/index.js +39 -0
  1187. package/node_modules/cross-spawn/lib/enoent.js +59 -0
  1188. package/node_modules/cross-spawn/lib/parse.js +91 -0
  1189. package/node_modules/cross-spawn/lib/util/escape.js +47 -0
  1190. package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  1191. package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  1192. package/node_modules/cross-spawn/package.json +73 -0
  1193. package/node_modules/depd/History.md +103 -0
  1194. package/node_modules/depd/LICENSE +22 -0
  1195. package/node_modules/depd/Readme.md +280 -0
  1196. package/node_modules/depd/index.js +538 -0
  1197. package/node_modules/depd/lib/browser/index.js +77 -0
  1198. package/node_modules/depd/package.json +45 -0
  1199. package/node_modules/dequal/dist/index.js +86 -0
  1200. package/node_modules/dequal/dist/index.min.js +1 -0
  1201. package/node_modules/dequal/dist/index.mjs +84 -0
  1202. package/node_modules/dequal/index.d.ts +1 -0
  1203. package/node_modules/dequal/license +21 -0
  1204. package/node_modules/dequal/lite/index.d.ts +1 -0
  1205. package/node_modules/dequal/lite/index.js +31 -0
  1206. package/node_modules/dequal/lite/index.min.js +1 -0
  1207. package/node_modules/dequal/lite/index.mjs +29 -0
  1208. package/node_modules/dequal/package.json +57 -0
  1209. package/node_modules/dequal/readme.md +112 -0
  1210. package/node_modules/escape-html/LICENSE +24 -0
  1211. package/node_modules/escape-html/Readme.md +43 -0
  1212. package/node_modules/escape-html/index.js +78 -0
  1213. package/node_modules/escape-html/package.json +24 -0
  1214. package/node_modules/fast-decode-uri-component/.travis.yml +12 -0
  1215. package/node_modules/fast-decode-uri-component/LICENSE +23 -0
  1216. package/node_modules/fast-decode-uri-component/README.md +43 -0
  1217. package/node_modules/fast-decode-uri-component/bench.js +35 -0
  1218. package/node_modules/fast-decode-uri-component/index.js +115 -0
  1219. package/node_modules/fast-decode-uri-component/package.json +33 -0
  1220. package/node_modules/fast-decode-uri-component/test.js +32 -0
  1221. package/node_modules/fast-deep-equal/LICENSE +21 -0
  1222. package/node_modules/fast-deep-equal/README.md +96 -0
  1223. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  1224. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  1225. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  1226. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  1227. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  1228. package/node_modules/fast-deep-equal/index.js +46 -0
  1229. package/node_modules/fast-deep-equal/package.json +61 -0
  1230. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  1231. package/node_modules/fast-deep-equal/react.js +53 -0
  1232. package/node_modules/fast-glob/LICENSE +21 -0
  1233. package/node_modules/fast-glob/README.md +830 -0
  1234. package/node_modules/fast-glob/out/index.d.ts +40 -0
  1235. package/node_modules/fast-glob/out/index.js +102 -0
  1236. package/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  1237. package/node_modules/fast-glob/out/managers/tasks.js +110 -0
  1238. package/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  1239. package/node_modules/fast-glob/out/providers/async.js +23 -0
  1240. package/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  1241. package/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
  1242. package/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
  1243. package/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
  1244. package/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  1245. package/node_modules/fast-glob/out/providers/filters/error.js +15 -0
  1246. package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  1247. package/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
  1248. package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  1249. package/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
  1250. package/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  1251. package/node_modules/fast-glob/out/providers/provider.js +48 -0
  1252. package/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  1253. package/node_modules/fast-glob/out/providers/stream.js +31 -0
  1254. package/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  1255. package/node_modules/fast-glob/out/providers/sync.js +23 -0
  1256. package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  1257. package/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
  1258. package/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  1259. package/node_modules/fast-glob/out/readers/async.js +35 -0
  1260. package/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  1261. package/node_modules/fast-glob/out/readers/reader.js +33 -0
  1262. package/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  1263. package/node_modules/fast-glob/out/readers/stream.js +55 -0
  1264. package/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  1265. package/node_modules/fast-glob/out/readers/sync.js +43 -0
  1266. package/node_modules/fast-glob/out/settings.d.ts +164 -0
  1267. package/node_modules/fast-glob/out/settings.js +59 -0
  1268. package/node_modules/fast-glob/out/types/index.d.ts +31 -0
  1269. package/node_modules/fast-glob/out/types/index.js +2 -0
  1270. package/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  1271. package/node_modules/fast-glob/out/utils/array.js +22 -0
  1272. package/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  1273. package/node_modules/fast-glob/out/utils/errno.js +7 -0
  1274. package/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  1275. package/node_modules/fast-glob/out/utils/fs.js +19 -0
  1276. package/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  1277. package/node_modules/fast-glob/out/utils/index.js +17 -0
  1278. package/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  1279. package/node_modules/fast-glob/out/utils/path.js +68 -0
  1280. package/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
  1281. package/node_modules/fast-glob/out/utils/pattern.js +206 -0
  1282. package/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  1283. package/node_modules/fast-glob/out/utils/stream.js +17 -0
  1284. package/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  1285. package/node_modules/fast-glob/out/utils/string.js +11 -0
  1286. package/node_modules/fast-glob/package.json +81 -0
  1287. package/node_modules/fast-json-stringify/.gitattributes +2 -0
  1288. package/node_modules/fast-json-stringify/.github/dependabot.yml +13 -0
  1289. package/node_modules/fast-json-stringify/.github/stale.yml +21 -0
  1290. package/node_modules/fast-json-stringify/.github/workflows/ci.yml +33 -0
  1291. package/node_modules/fast-json-stringify/LICENSE +24 -0
  1292. package/node_modules/fast-json-stringify/README.md +742 -0
  1293. package/node_modules/fast-json-stringify/benchmark/bench-cmp-branch.js +116 -0
  1294. package/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +323 -0
  1295. package/node_modules/fast-json-stringify/benchmark/bench-thread.js +33 -0
  1296. package/node_modules/fast-json-stringify/benchmark/bench.js +391 -0
  1297. package/node_modules/fast-json-stringify/build/build-schema-validator.js +26 -0
  1298. package/node_modules/fast-json-stringify/eslint.config.js +9 -0
  1299. package/node_modules/fast-json-stringify/examples/example.js +81 -0
  1300. package/node_modules/fast-json-stringify/examples/server.js +42 -0
  1301. package/node_modules/fast-json-stringify/index.js +1312 -0
  1302. package/node_modules/fast-json-stringify/lib/location.js +24 -0
  1303. package/node_modules/fast-json-stringify/lib/merge-schemas.js +9 -0
  1304. package/node_modules/fast-json-stringify/lib/schema-validator.js +1134 -0
  1305. package/node_modules/fast-json-stringify/lib/serializer.js +141 -0
  1306. package/node_modules/fast-json-stringify/lib/standalone.js +34 -0
  1307. package/node_modules/fast-json-stringify/lib/validator.js +96 -0
  1308. package/node_modules/fast-json-stringify/package.json +89 -0
  1309. package/node_modules/fast-json-stringify/test/additionalProperties.test.js +332 -0
  1310. package/node_modules/fast-json-stringify/test/allof.test.js +751 -0
  1311. package/node_modules/fast-json-stringify/test/any.test.js +231 -0
  1312. package/node_modules/fast-json-stringify/test/anyof.test.js +792 -0
  1313. package/node_modules/fast-json-stringify/test/array.test.js +666 -0
  1314. package/node_modules/fast-json-stringify/test/asNumber.test.js +13 -0
  1315. package/node_modules/fast-json-stringify/test/basic.test.js +400 -0
  1316. package/node_modules/fast-json-stringify/test/bigint.test.js +76 -0
  1317. package/node_modules/fast-json-stringify/test/clean-cache.test.js +47 -0
  1318. package/node_modules/fast-json-stringify/test/const.test.js +314 -0
  1319. package/node_modules/fast-json-stringify/test/date.test.js +639 -0
  1320. package/node_modules/fast-json-stringify/test/debug-mode.test.js +121 -0
  1321. package/node_modules/fast-json-stringify/test/defaults.test.js +376 -0
  1322. package/node_modules/fast-json-stringify/test/enum.test.js +37 -0
  1323. package/node_modules/fast-json-stringify/test/fix-604.test.js +25 -0
  1324. package/node_modules/fast-json-stringify/test/fixtures/.keep +0 -0
  1325. package/node_modules/fast-json-stringify/test/if-then-else.test.js +468 -0
  1326. package/node_modules/fast-json-stringify/test/inferType.test.js +92 -0
  1327. package/node_modules/fast-json-stringify/test/infinity.test.js +55 -0
  1328. package/node_modules/fast-json-stringify/test/integer.test.js +194 -0
  1329. package/node_modules/fast-json-stringify/test/invalidSchema.test.js +18 -0
  1330. package/node_modules/fast-json-stringify/test/issue-479.test.js +57 -0
  1331. package/node_modules/fast-json-stringify/test/issue-793.test.js +107 -0
  1332. package/node_modules/fast-json-stringify/test/issue-794.test.js +177 -0
  1333. package/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -0
  1334. package/node_modules/fast-json-stringify/test/json-schema-test-suite/README.md +10 -0
  1335. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4/required.json +54 -0
  1336. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4.test.js +12 -0
  1337. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6/required.json +70 -0
  1338. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6.test.js +12 -0
  1339. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7/required.json +70 -0
  1340. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7.test.js +12 -0
  1341. package/node_modules/fast-json-stringify/test/json-schema-test-suite/util.js +31 -0
  1342. package/node_modules/fast-json-stringify/test/missing-values.test.js +88 -0
  1343. package/node_modules/fast-json-stringify/test/multi-type-serializer.test.js +19 -0
  1344. package/node_modules/fast-json-stringify/test/nestedObjects.test.js +63 -0
  1345. package/node_modules/fast-json-stringify/test/nullable.test.js +543 -0
  1346. package/node_modules/fast-json-stringify/test/oneof.test.js +490 -0
  1347. package/node_modules/fast-json-stringify/test/patternProperties.test.js +168 -0
  1348. package/node_modules/fast-json-stringify/test/recursion.test.js +245 -0
  1349. package/node_modules/fast-json-stringify/test/ref.json +12 -0
  1350. package/node_modules/fast-json-stringify/test/ref.test.js +2046 -0
  1351. package/node_modules/fast-json-stringify/test/regex.test.js +32 -0
  1352. package/node_modules/fast-json-stringify/test/required.test.js +204 -0
  1353. package/node_modules/fast-json-stringify/test/requiresAjv.test.js +50 -0
  1354. package/node_modules/fast-json-stringify/test/sanitize.test.js +141 -0
  1355. package/node_modules/fast-json-stringify/test/sanitize2.test.js +18 -0
  1356. package/node_modules/fast-json-stringify/test/sanitize3.test.js +17 -0
  1357. package/node_modules/fast-json-stringify/test/sanitize4.test.js +16 -0
  1358. package/node_modules/fast-json-stringify/test/sanitize5.test.js +16 -0
  1359. package/node_modules/fast-json-stringify/test/sanitize6.test.js +22 -0
  1360. package/node_modules/fast-json-stringify/test/sanitize7.test.js +68 -0
  1361. package/node_modules/fast-json-stringify/test/side-effect.test.js +196 -0
  1362. package/node_modules/fast-json-stringify/test/standalone-mode.test.js +219 -0
  1363. package/node_modules/fast-json-stringify/test/string.test.js +84 -0
  1364. package/node_modules/fast-json-stringify/test/surrogate.test.js +67 -0
  1365. package/node_modules/fast-json-stringify/test/toJSON.test.js +203 -0
  1366. package/node_modules/fast-json-stringify/test/typebox.test.js +36 -0
  1367. package/node_modules/fast-json-stringify/test/typesArray.test.js +550 -0
  1368. package/node_modules/fast-json-stringify/test/unknownFormats.test.js +27 -0
  1369. package/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
  1370. package/node_modules/fast-json-stringify/types/index.d.ts +231 -0
  1371. package/node_modules/fast-json-stringify/types/index.test-d.ts +259 -0
  1372. package/node_modules/fast-querystring/LICENSE +25 -0
  1373. package/node_modules/fast-querystring/README.md +114 -0
  1374. package/node_modules/fast-querystring/lib/index.d.ts +14 -0
  1375. package/node_modules/fast-querystring/lib/index.js +20 -0
  1376. package/node_modules/fast-querystring/lib/internals/querystring.js +96 -0
  1377. package/node_modules/fast-querystring/lib/parse.js +126 -0
  1378. package/node_modules/fast-querystring/lib/stringify.js +69 -0
  1379. package/node_modules/fast-querystring/package.json +56 -0
  1380. package/node_modules/fast-uri/.gitattributes +2 -0
  1381. package/node_modules/fast-uri/.github/.stale.yml +21 -0
  1382. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1383. package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  1384. package/node_modules/fast-uri/.github/workflows/ci.yml +101 -0
  1385. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  1386. package/node_modules/fast-uri/LICENSE +32 -0
  1387. package/node_modules/fast-uri/README.md +143 -0
  1388. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  1389. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  1390. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  1391. package/node_modules/fast-uri/benchmark/package.json +17 -0
  1392. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  1393. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  1394. package/node_modules/fast-uri/eslint.config.js +6 -0
  1395. package/node_modules/fast-uri/index.js +340 -0
  1396. package/node_modules/fast-uri/lib/schemes.js +267 -0
  1397. package/node_modules/fast-uri/lib/utils.js +336 -0
  1398. package/node_modules/fast-uri/package.json +69 -0
  1399. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  1400. package/node_modules/fast-uri/test/equal.test.js +108 -0
  1401. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  1402. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  1403. package/node_modules/fast-uri/test/parse.test.js +318 -0
  1404. package/node_modules/fast-uri/test/resolve.test.js +78 -0
  1405. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  1406. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  1407. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  1408. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  1409. package/node_modules/fast-uri/test/util.test.js +38 -0
  1410. package/node_modules/fast-uri/tsconfig.json +9 -0
  1411. package/node_modules/fast-uri/types/index.d.ts +60 -0
  1412. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1413. package/node_modules/fastify/.borp.yaml +3 -0
  1414. package/node_modules/fastify/.markdownlint-cli2.yaml +22 -0
  1415. package/node_modules/fastify/.prettierignore +1 -0
  1416. package/node_modules/fastify/AGENTS.md +290 -0
  1417. package/node_modules/fastify/GOVERNANCE.md +4 -0
  1418. package/node_modules/fastify/LICENSE +21 -0
  1419. package/node_modules/fastify/PROJECT_CHARTER.md +126 -0
  1420. package/node_modules/fastify/README.md +422 -0
  1421. package/node_modules/fastify/SECURITY.md +211 -0
  1422. package/node_modules/fastify/SPONSORS.md +24 -0
  1423. package/node_modules/fastify/build/build-error-serializer.js +35 -0
  1424. package/node_modules/fastify/build/build-validation.js +167 -0
  1425. package/node_modules/fastify/build/sync-version.js +11 -0
  1426. package/node_modules/fastify/docs/Guides/Benchmarking.md +60 -0
  1427. package/node_modules/fastify/docs/Guides/Database.md +321 -0
  1428. package/node_modules/fastify/docs/Guides/Delay-Accepting-Requests.md +608 -0
  1429. package/node_modules/fastify/docs/Guides/Detecting-When-Clients-Abort.md +172 -0
  1430. package/node_modules/fastify/docs/Guides/Ecosystem.md +768 -0
  1431. package/node_modules/fastify/docs/Guides/Fluent-Schema.md +126 -0
  1432. package/node_modules/fastify/docs/Guides/Getting-Started.md +620 -0
  1433. package/node_modules/fastify/docs/Guides/Index.md +43 -0
  1434. package/node_modules/fastify/docs/Guides/Migration-Guide-V3.md +287 -0
  1435. package/node_modules/fastify/docs/Guides/Migration-Guide-V4.md +271 -0
  1436. package/node_modules/fastify/docs/Guides/Migration-Guide-V5.md +727 -0
  1437. package/node_modules/fastify/docs/Guides/Plugins-Guide.md +520 -0
  1438. package/node_modules/fastify/docs/Guides/Prototype-Poisoning.md +383 -0
  1439. package/node_modules/fastify/docs/Guides/Recommendations.md +353 -0
  1440. package/node_modules/fastify/docs/Guides/Serverless.md +604 -0
  1441. package/node_modules/fastify/docs/Guides/Style-Guide.md +246 -0
  1442. package/node_modules/fastify/docs/Guides/Testing.md +481 -0
  1443. package/node_modules/fastify/docs/Guides/Write-Plugin.md +103 -0
  1444. package/node_modules/fastify/docs/Guides/Write-Type-Provider.md +34 -0
  1445. package/node_modules/fastify/docs/Reference/ContentTypeParser.md +255 -0
  1446. package/node_modules/fastify/docs/Reference/Decorators.md +434 -0
  1447. package/node_modules/fastify/docs/Reference/Encapsulation.md +194 -0
  1448. package/node_modules/fastify/docs/Reference/Errors.md +372 -0
  1449. package/node_modules/fastify/docs/Reference/HTTP2.md +94 -0
  1450. package/node_modules/fastify/docs/Reference/Hooks.md +896 -0
  1451. package/node_modules/fastify/docs/Reference/Index.md +73 -0
  1452. package/node_modules/fastify/docs/Reference/LTS.md +86 -0
  1453. package/node_modules/fastify/docs/Reference/Lifecycle.md +84 -0
  1454. package/node_modules/fastify/docs/Reference/Logging.md +264 -0
  1455. package/node_modules/fastify/docs/Reference/Middleware.md +78 -0
  1456. package/node_modules/fastify/docs/Reference/Plugins.md +245 -0
  1457. package/node_modules/fastify/docs/Reference/Principles.md +73 -0
  1458. package/node_modules/fastify/docs/Reference/Reply.md +994 -0
  1459. package/node_modules/fastify/docs/Reference/Request.md +279 -0
  1460. package/node_modules/fastify/docs/Reference/Routes.md +793 -0
  1461. package/node_modules/fastify/docs/Reference/Server.md +2265 -0
  1462. package/node_modules/fastify/docs/Reference/Type-Providers.md +256 -0
  1463. package/node_modules/fastify/docs/Reference/TypeScript.md +1725 -0
  1464. package/node_modules/fastify/docs/Reference/Validation-and-Serialization.md +1057 -0
  1465. package/node_modules/fastify/docs/Reference/Warnings.md +58 -0
  1466. package/node_modules/fastify/docs/index.md +24 -0
  1467. package/node_modules/fastify/docs/resources/encapsulation_context.drawio +1 -0
  1468. package/node_modules/fastify/docs/resources/encapsulation_context.svg +3 -0
  1469. package/node_modules/fastify/eslint.config.js +35 -0
  1470. package/node_modules/fastify/examples/asyncawait.js +38 -0
  1471. package/node_modules/fastify/examples/benchmark/body.json +3 -0
  1472. package/node_modules/fastify/examples/benchmark/hooks-benchmark-async-await.js +44 -0
  1473. package/node_modules/fastify/examples/benchmark/hooks-benchmark.js +52 -0
  1474. package/node_modules/fastify/examples/benchmark/parser.js +47 -0
  1475. package/node_modules/fastify/examples/benchmark/simple.js +30 -0
  1476. package/node_modules/fastify/examples/benchmark/webstream.js +27 -0
  1477. package/node_modules/fastify/examples/hooks.js +91 -0
  1478. package/node_modules/fastify/examples/http2.js +39 -0
  1479. package/node_modules/fastify/examples/https.js +38 -0
  1480. package/node_modules/fastify/examples/parser.js +53 -0
  1481. package/node_modules/fastify/examples/plugin.js +12 -0
  1482. package/node_modules/fastify/examples/route-prefix.js +38 -0
  1483. package/node_modules/fastify/examples/shared-schema.js +38 -0
  1484. package/node_modules/fastify/examples/simple-stream.js +20 -0
  1485. package/node_modules/fastify/examples/simple.js +32 -0
  1486. package/node_modules/fastify/examples/simple.mjs +27 -0
  1487. package/node_modules/fastify/examples/typescript-server.ts +79 -0
  1488. package/node_modules/fastify/examples/use-plugin.js +29 -0
  1489. package/node_modules/fastify/fastify.d.ts +252 -0
  1490. package/node_modules/fastify/fastify.js +983 -0
  1491. package/node_modules/fastify/integration/server.js +29 -0
  1492. package/node_modules/fastify/integration/test.sh +23 -0
  1493. package/node_modules/fastify/lib/config-validator.js +1238 -0
  1494. package/node_modules/fastify/lib/content-type-parser.js +413 -0
  1495. package/node_modules/fastify/lib/content-type.js +152 -0
  1496. package/node_modules/fastify/lib/context.js +95 -0
  1497. package/node_modules/fastify/lib/decorate.js +152 -0
  1498. package/node_modules/fastify/lib/error-handler.js +173 -0
  1499. package/node_modules/fastify/lib/error-serializer.js +134 -0
  1500. package/node_modules/fastify/lib/error-status.js +14 -0
  1501. package/node_modules/fastify/lib/errors.js +505 -0
  1502. package/node_modules/fastify/lib/four-oh-four.js +190 -0
  1503. package/node_modules/fastify/lib/handle-request.js +195 -0
  1504. package/node_modules/fastify/lib/head-route.js +45 -0
  1505. package/node_modules/fastify/lib/hooks.js +429 -0
  1506. package/node_modules/fastify/lib/initial-config-validation.js +37 -0
  1507. package/node_modules/fastify/lib/logger-factory.js +136 -0
  1508. package/node_modules/fastify/lib/logger-pino.js +68 -0
  1509. package/node_modules/fastify/lib/noop-set.js +10 -0
  1510. package/node_modules/fastify/lib/plugin-override.js +90 -0
  1511. package/node_modules/fastify/lib/plugin-utils.js +169 -0
  1512. package/node_modules/fastify/lib/promise.js +23 -0
  1513. package/node_modules/fastify/lib/reply.js +1008 -0
  1514. package/node_modules/fastify/lib/req-id-gen-factory.js +52 -0
  1515. package/node_modules/fastify/lib/request.js +374 -0
  1516. package/node_modules/fastify/lib/route.js +645 -0
  1517. package/node_modules/fastify/lib/schema-controller.js +164 -0
  1518. package/node_modules/fastify/lib/schemas.js +207 -0
  1519. package/node_modules/fastify/lib/server.js +441 -0
  1520. package/node_modules/fastify/lib/symbols.js +67 -0
  1521. package/node_modules/fastify/lib/validation.js +280 -0
  1522. package/node_modules/fastify/lib/warnings.js +57 -0
  1523. package/node_modules/fastify/lib/wrap-thenable.js +84 -0
  1524. package/node_modules/fastify/node_modules/semver/LICENSE +15 -0
  1525. package/node_modules/fastify/node_modules/semver/README.md +665 -0
  1526. package/node_modules/fastify/node_modules/semver/bin/semver.js +191 -0
  1527. package/node_modules/fastify/node_modules/semver/classes/comparator.js +143 -0
  1528. package/node_modules/fastify/node_modules/semver/classes/index.js +7 -0
  1529. package/node_modules/fastify/node_modules/semver/classes/range.js +557 -0
  1530. package/node_modules/fastify/node_modules/semver/classes/semver.js +333 -0
  1531. package/node_modules/fastify/node_modules/semver/functions/clean.js +8 -0
  1532. package/node_modules/fastify/node_modules/semver/functions/cmp.js +54 -0
  1533. package/node_modules/fastify/node_modules/semver/functions/coerce.js +62 -0
  1534. package/node_modules/fastify/node_modules/semver/functions/compare-build.js +9 -0
  1535. package/node_modules/fastify/node_modules/semver/functions/compare-loose.js +5 -0
  1536. package/node_modules/fastify/node_modules/semver/functions/compare.js +7 -0
  1537. package/node_modules/fastify/node_modules/semver/functions/diff.js +60 -0
  1538. package/node_modules/fastify/node_modules/semver/functions/eq.js +5 -0
  1539. package/node_modules/fastify/node_modules/semver/functions/gt.js +5 -0
  1540. package/node_modules/fastify/node_modules/semver/functions/gte.js +5 -0
  1541. package/node_modules/fastify/node_modules/semver/functions/inc.js +21 -0
  1542. package/node_modules/fastify/node_modules/semver/functions/lt.js +5 -0
  1543. package/node_modules/fastify/node_modules/semver/functions/lte.js +5 -0
  1544. package/node_modules/fastify/node_modules/semver/functions/major.js +5 -0
  1545. package/node_modules/fastify/node_modules/semver/functions/minor.js +5 -0
  1546. package/node_modules/fastify/node_modules/semver/functions/neq.js +5 -0
  1547. package/node_modules/fastify/node_modules/semver/functions/parse.js +18 -0
  1548. package/node_modules/fastify/node_modules/semver/functions/patch.js +5 -0
  1549. package/node_modules/fastify/node_modules/semver/functions/prerelease.js +8 -0
  1550. package/node_modules/fastify/node_modules/semver/functions/rcompare.js +5 -0
  1551. package/node_modules/fastify/node_modules/semver/functions/rsort.js +5 -0
  1552. package/node_modules/fastify/node_modules/semver/functions/satisfies.js +12 -0
  1553. package/node_modules/fastify/node_modules/semver/functions/sort.js +5 -0
  1554. package/node_modules/fastify/node_modules/semver/functions/valid.js +8 -0
  1555. package/node_modules/fastify/node_modules/semver/index.js +91 -0
  1556. package/node_modules/fastify/node_modules/semver/internal/constants.js +37 -0
  1557. package/node_modules/fastify/node_modules/semver/internal/debug.js +11 -0
  1558. package/node_modules/fastify/node_modules/semver/internal/identifiers.js +29 -0
  1559. package/node_modules/fastify/node_modules/semver/internal/lrucache.js +42 -0
  1560. package/node_modules/fastify/node_modules/semver/internal/parse-options.js +17 -0
  1561. package/node_modules/fastify/node_modules/semver/internal/re.js +223 -0
  1562. package/node_modules/fastify/node_modules/semver/package.json +78 -0
  1563. package/node_modules/fastify/node_modules/semver/preload.js +4 -0
  1564. package/node_modules/fastify/node_modules/semver/range.bnf +16 -0
  1565. package/node_modules/fastify/node_modules/semver/ranges/gtr.js +6 -0
  1566. package/node_modules/fastify/node_modules/semver/ranges/intersects.js +9 -0
  1567. package/node_modules/fastify/node_modules/semver/ranges/ltr.js +6 -0
  1568. package/node_modules/fastify/node_modules/semver/ranges/max-satisfying.js +27 -0
  1569. package/node_modules/fastify/node_modules/semver/ranges/min-satisfying.js +26 -0
  1570. package/node_modules/fastify/node_modules/semver/ranges/min-version.js +63 -0
  1571. package/node_modules/fastify/node_modules/semver/ranges/outside.js +82 -0
  1572. package/node_modules/fastify/node_modules/semver/ranges/simplify.js +49 -0
  1573. package/node_modules/fastify/node_modules/semver/ranges/subset.js +249 -0
  1574. package/node_modules/fastify/node_modules/semver/ranges/to-comparators.js +10 -0
  1575. package/node_modules/fastify/node_modules/semver/ranges/valid.js +13 -0
  1576. package/node_modules/fastify/package.json +225 -0
  1577. package/node_modules/fastify/test/404s.test.js +2035 -0
  1578. package/node_modules/fastify/test/500s.test.js +422 -0
  1579. package/node_modules/fastify/test/allow-unsafe-regex.test.js +92 -0
  1580. package/node_modules/fastify/test/als.test.js +65 -0
  1581. package/node_modules/fastify/test/async-await.test.js +705 -0
  1582. package/node_modules/fastify/test/async-dispose.test.js +20 -0
  1583. package/node_modules/fastify/test/async_hooks.test.js +52 -0
  1584. package/node_modules/fastify/test/body-limit.test.js +224 -0
  1585. package/node_modules/fastify/test/buffer.test.js +74 -0
  1586. package/node_modules/fastify/test/build/error-serializer.test.js +36 -0
  1587. package/node_modules/fastify/test/build/version.test.js +14 -0
  1588. package/node_modules/fastify/test/build-certificate.js +109 -0
  1589. package/node_modules/fastify/test/bundler/README.md +29 -0
  1590. package/node_modules/fastify/test/bundler/esbuild/bundler-test.js +32 -0
  1591. package/node_modules/fastify/test/bundler/esbuild/package.json +10 -0
  1592. package/node_modules/fastify/test/bundler/esbuild/src/fail-plugin-version.js +14 -0
  1593. package/node_modules/fastify/test/bundler/esbuild/src/index.js +9 -0
  1594. package/node_modules/fastify/test/bundler/webpack/bundler-test.js +32 -0
  1595. package/node_modules/fastify/test/bundler/webpack/package.json +11 -0
  1596. package/node_modules/fastify/test/bundler/webpack/src/fail-plugin-version.js +14 -0
  1597. package/node_modules/fastify/test/bundler/webpack/src/index.js +9 -0
  1598. package/node_modules/fastify/test/bundler/webpack/webpack.config.js +15 -0
  1599. package/node_modules/fastify/test/case-insensitive.test.js +102 -0
  1600. package/node_modules/fastify/test/chainable.test.js +40 -0
  1601. package/node_modules/fastify/test/child-logger-factory.test.js +128 -0
  1602. package/node_modules/fastify/test/client-timeout.test.js +38 -0
  1603. package/node_modules/fastify/test/close-pipelining.test.js +78 -0
  1604. package/node_modules/fastify/test/close.test.js +706 -0
  1605. package/node_modules/fastify/test/conditional-pino.test.js +47 -0
  1606. package/node_modules/fastify/test/connection-timeout.test.js +42 -0
  1607. package/node_modules/fastify/test/constrained-routes.test.js +1138 -0
  1608. package/node_modules/fastify/test/content-length.test.js +174 -0
  1609. package/node_modules/fastify/test/content-parser.test.js +715 -0
  1610. package/node_modules/fastify/test/content-type.test.js +143 -0
  1611. package/node_modules/fastify/test/context-config.test.js +164 -0
  1612. package/node_modules/fastify/test/custom-http-server.test.js +118 -0
  1613. package/node_modules/fastify/test/custom-parser-async.test.js +59 -0
  1614. package/node_modules/fastify/test/custom-parser.0.test.js +701 -0
  1615. package/node_modules/fastify/test/custom-parser.1.test.js +266 -0
  1616. package/node_modules/fastify/test/custom-parser.2.test.js +91 -0
  1617. package/node_modules/fastify/test/custom-parser.3.test.js +208 -0
  1618. package/node_modules/fastify/test/custom-parser.4.test.js +218 -0
  1619. package/node_modules/fastify/test/custom-parser.5.test.js +130 -0
  1620. package/node_modules/fastify/test/custom-querystring-parser.test.js +129 -0
  1621. package/node_modules/fastify/test/decorator.test.js +1330 -0
  1622. package/node_modules/fastify/test/delete.test.js +344 -0
  1623. package/node_modules/fastify/test/diagnostics-channel/404.test.js +49 -0
  1624. package/node_modules/fastify/test/diagnostics-channel/async-delay-request.test.js +65 -0
  1625. package/node_modules/fastify/test/diagnostics-channel/async-request.test.js +64 -0
  1626. package/node_modules/fastify/test/diagnostics-channel/error-before-handler.test.js +35 -0
  1627. package/node_modules/fastify/test/diagnostics-channel/error-request.test.js +53 -0
  1628. package/node_modules/fastify/test/diagnostics-channel/error-status.test.js +123 -0
  1629. package/node_modules/fastify/test/diagnostics-channel/init.test.js +50 -0
  1630. package/node_modules/fastify/test/diagnostics-channel/sync-delay-request.test.js +49 -0
  1631. package/node_modules/fastify/test/diagnostics-channel/sync-request-reply.test.js +51 -0
  1632. package/node_modules/fastify/test/diagnostics-channel/sync-request.test.js +54 -0
  1633. package/node_modules/fastify/test/encapsulated-child-logger-factory.test.js +69 -0
  1634. package/node_modules/fastify/test/encapsulated-error-handler.test.js +237 -0
  1635. package/node_modules/fastify/test/esm/errorCodes.test.mjs +10 -0
  1636. package/node_modules/fastify/test/esm/esm.test.mjs +13 -0
  1637. package/node_modules/fastify/test/esm/index.test.js +8 -0
  1638. package/node_modules/fastify/test/esm/named-exports.mjs +14 -0
  1639. package/node_modules/fastify/test/esm/other.mjs +8 -0
  1640. package/node_modules/fastify/test/esm/plugin.mjs +8 -0
  1641. package/node_modules/fastify/test/fastify-instance.test.js +300 -0
  1642. package/node_modules/fastify/test/find-route.test.js +152 -0
  1643. package/node_modules/fastify/test/fluent-schema.test.js +209 -0
  1644. package/node_modules/fastify/test/genReqId.test.js +426 -0
  1645. package/node_modules/fastify/test/handler-context.test.js +45 -0
  1646. package/node_modules/fastify/test/has-route.test.js +88 -0
  1647. package/node_modules/fastify/test/header-overflow.test.js +55 -0
  1648. package/node_modules/fastify/test/helper.js +496 -0
  1649. package/node_modules/fastify/test/hooks-async.test.js +1099 -0
  1650. package/node_modules/fastify/test/hooks.on-listen.test.js +1162 -0
  1651. package/node_modules/fastify/test/hooks.on-ready.test.js +421 -0
  1652. package/node_modules/fastify/test/hooks.test.js +3578 -0
  1653. package/node_modules/fastify/test/http-methods/copy.test.js +35 -0
  1654. package/node_modules/fastify/test/http-methods/custom-http-methods.test.js +114 -0
  1655. package/node_modules/fastify/test/http-methods/get.test.js +412 -0
  1656. package/node_modules/fastify/test/http-methods/head.test.js +263 -0
  1657. package/node_modules/fastify/test/http-methods/lock.test.js +108 -0
  1658. package/node_modules/fastify/test/http-methods/mkcalendar.test.js +143 -0
  1659. package/node_modules/fastify/test/http-methods/mkcol.test.js +35 -0
  1660. package/node_modules/fastify/test/http-methods/move.test.js +42 -0
  1661. package/node_modules/fastify/test/http-methods/propfind.test.js +136 -0
  1662. package/node_modules/fastify/test/http-methods/proppatch.test.js +105 -0
  1663. package/node_modules/fastify/test/http-methods/report.test.js +142 -0
  1664. package/node_modules/fastify/test/http-methods/search.test.js +233 -0
  1665. package/node_modules/fastify/test/http-methods/trace.test.js +21 -0
  1666. package/node_modules/fastify/test/http-methods/unlock.test.js +38 -0
  1667. package/node_modules/fastify/test/http2/closing.test.js +270 -0
  1668. package/node_modules/fastify/test/http2/constraint.test.js +109 -0
  1669. package/node_modules/fastify/test/http2/head.test.js +34 -0
  1670. package/node_modules/fastify/test/http2/plain.test.js +68 -0
  1671. package/node_modules/fastify/test/http2/secure-with-fallback.test.js +113 -0
  1672. package/node_modules/fastify/test/http2/secure.test.js +67 -0
  1673. package/node_modules/fastify/test/http2/unknown-http-method.test.js +34 -0
  1674. package/node_modules/fastify/test/https/custom-https-server.test.js +58 -0
  1675. package/node_modules/fastify/test/https/https.test.js +136 -0
  1676. package/node_modules/fastify/test/imports.test.js +17 -0
  1677. package/node_modules/fastify/test/inject.test.js +502 -0
  1678. package/node_modules/fastify/test/input-validation.js +335 -0
  1679. package/node_modules/fastify/test/internals/all.test.js +38 -0
  1680. package/node_modules/fastify/test/internals/content-type-parser.test.js +111 -0
  1681. package/node_modules/fastify/test/internals/context.test.js +31 -0
  1682. package/node_modules/fastify/test/internals/decorator.test.js +156 -0
  1683. package/node_modules/fastify/test/internals/errors.test.js +982 -0
  1684. package/node_modules/fastify/test/internals/handle-request.test.js +270 -0
  1685. package/node_modules/fastify/test/internals/hook-runner.test.js +449 -0
  1686. package/node_modules/fastify/test/internals/hooks.test.js +96 -0
  1687. package/node_modules/fastify/test/internals/initial-config.test.js +381 -0
  1688. package/node_modules/fastify/test/internals/logger.test.js +163 -0
  1689. package/node_modules/fastify/test/internals/plugin.test.js +170 -0
  1690. package/node_modules/fastify/test/internals/promise.test.js +63 -0
  1691. package/node_modules/fastify/test/internals/reply-serialize.test.js +714 -0
  1692. package/node_modules/fastify/test/internals/reply.test.js +1920 -0
  1693. package/node_modules/fastify/test/internals/req-id-gen-factory.test.js +133 -0
  1694. package/node_modules/fastify/test/internals/request-validate.test.js +1402 -0
  1695. package/node_modules/fastify/test/internals/request.test.js +506 -0
  1696. package/node_modules/fastify/test/internals/schema-controller-perf.test.js +40 -0
  1697. package/node_modules/fastify/test/internals/server.test.js +91 -0
  1698. package/node_modules/fastify/test/internals/validation.test.js +352 -0
  1699. package/node_modules/fastify/test/issue-4959.test.js +118 -0
  1700. package/node_modules/fastify/test/keep-alive-timeout.test.js +42 -0
  1701. package/node_modules/fastify/test/listen.1.test.js +154 -0
  1702. package/node_modules/fastify/test/listen.2.test.js +113 -0
  1703. package/node_modules/fastify/test/listen.3.test.js +83 -0
  1704. package/node_modules/fastify/test/listen.4.test.js +168 -0
  1705. package/node_modules/fastify/test/listen.5.test.js +122 -0
  1706. package/node_modules/fastify/test/logger/instantiation.test.js +341 -0
  1707. package/node_modules/fastify/test/logger/logger-test-utils.js +47 -0
  1708. package/node_modules/fastify/test/logger/logging.test.js +460 -0
  1709. package/node_modules/fastify/test/logger/options.test.js +579 -0
  1710. package/node_modules/fastify/test/logger/request.test.js +292 -0
  1711. package/node_modules/fastify/test/logger/response.test.js +183 -0
  1712. package/node_modules/fastify/test/logger/tap-parallel-not-ok +0 -0
  1713. package/node_modules/fastify/test/max-requests-per-socket.test.js +113 -0
  1714. package/node_modules/fastify/test/middleware.test.js +37 -0
  1715. package/node_modules/fastify/test/noop-set.test.js +19 -0
  1716. package/node_modules/fastify/test/nullable-validation.test.js +187 -0
  1717. package/node_modules/fastify/test/options.error-handler.test.js +5 -0
  1718. package/node_modules/fastify/test/options.test.js +5 -0
  1719. package/node_modules/fastify/test/output-validation.test.js +140 -0
  1720. package/node_modules/fastify/test/patch.error-handler.test.js +5 -0
  1721. package/node_modules/fastify/test/patch.test.js +5 -0
  1722. package/node_modules/fastify/test/plugin.1.test.js +230 -0
  1723. package/node_modules/fastify/test/plugin.2.test.js +314 -0
  1724. package/node_modules/fastify/test/plugin.3.test.js +287 -0
  1725. package/node_modules/fastify/test/plugin.4.test.js +504 -0
  1726. package/node_modules/fastify/test/plugin.helper.js +8 -0
  1727. package/node_modules/fastify/test/plugin.name.display.js +10 -0
  1728. package/node_modules/fastify/test/post-empty-body.test.js +38 -0
  1729. package/node_modules/fastify/test/pretty-print.test.js +366 -0
  1730. package/node_modules/fastify/test/promises.test.js +125 -0
  1731. package/node_modules/fastify/test/proto-poisoning.test.js +145 -0
  1732. package/node_modules/fastify/test/put.error-handler.test.js +5 -0
  1733. package/node_modules/fastify/test/put.test.js +5 -0
  1734. package/node_modules/fastify/test/register.test.js +184 -0
  1735. package/node_modules/fastify/test/reply-code.test.js +148 -0
  1736. package/node_modules/fastify/test/reply-early-hints.test.js +100 -0
  1737. package/node_modules/fastify/test/reply-error.test.js +815 -0
  1738. package/node_modules/fastify/test/reply-trailers.test.js +445 -0
  1739. package/node_modules/fastify/test/reply-web-stream-locked.test.js +37 -0
  1740. package/node_modules/fastify/test/request-error.test.js +583 -0
  1741. package/node_modules/fastify/test/request-header-host.test.js +339 -0
  1742. package/node_modules/fastify/test/request-id.test.js +118 -0
  1743. package/node_modules/fastify/test/request-timeout.test.js +53 -0
  1744. package/node_modules/fastify/test/route-hooks.test.js +635 -0
  1745. package/node_modules/fastify/test/route-prefix.test.js +904 -0
  1746. package/node_modules/fastify/test/route-shorthand.test.js +48 -0
  1747. package/node_modules/fastify/test/route.1.test.js +259 -0
  1748. package/node_modules/fastify/test/route.2.test.js +100 -0
  1749. package/node_modules/fastify/test/route.3.test.js +213 -0
  1750. package/node_modules/fastify/test/route.4.test.js +127 -0
  1751. package/node_modules/fastify/test/route.5.test.js +211 -0
  1752. package/node_modules/fastify/test/route.6.test.js +306 -0
  1753. package/node_modules/fastify/test/route.7.test.js +406 -0
  1754. package/node_modules/fastify/test/route.8.test.js +225 -0
  1755. package/node_modules/fastify/test/router-options.test.js +1066 -0
  1756. package/node_modules/fastify/test/same-shape.test.js +124 -0
  1757. package/node_modules/fastify/test/schema-examples.test.js +661 -0
  1758. package/node_modules/fastify/test/schema-feature.test.js +2198 -0
  1759. package/node_modules/fastify/test/schema-serialization.test.js +1171 -0
  1760. package/node_modules/fastify/test/schema-special-usage.test.js +1348 -0
  1761. package/node_modules/fastify/test/schema-validation.test.js +1572 -0
  1762. package/node_modules/fastify/test/serialize-response.test.js +186 -0
  1763. package/node_modules/fastify/test/server.test.js +347 -0
  1764. package/node_modules/fastify/test/set-error-handler.test.js +69 -0
  1765. package/node_modules/fastify/test/skip-reply-send.test.js +317 -0
  1766. package/node_modules/fastify/test/stream-serializers.test.js +40 -0
  1767. package/node_modules/fastify/test/stream.1.test.js +94 -0
  1768. package/node_modules/fastify/test/stream.2.test.js +129 -0
  1769. package/node_modules/fastify/test/stream.3.test.js +198 -0
  1770. package/node_modules/fastify/test/stream.4.test.js +176 -0
  1771. package/node_modules/fastify/test/stream.5.test.js +188 -0
  1772. package/node_modules/fastify/test/sync-routes.test.js +32 -0
  1773. package/node_modules/fastify/test/throw.test.js +359 -0
  1774. package/node_modules/fastify/test/toolkit.js +63 -0
  1775. package/node_modules/fastify/test/trust-proxy.test.js +162 -0
  1776. package/node_modules/fastify/test/type-provider.test.js +22 -0
  1777. package/node_modules/fastify/test/types/content-type-parser.test-d.ts +72 -0
  1778. package/node_modules/fastify/test/types/decorate-request-reply.test-d.ts +18 -0
  1779. package/node_modules/fastify/test/types/dummy-plugin.ts +9 -0
  1780. package/node_modules/fastify/test/types/errors.test-d.ts +90 -0
  1781. package/node_modules/fastify/test/types/fastify.test-d.ts +351 -0
  1782. package/node_modules/fastify/test/types/hooks.test-d.ts +550 -0
  1783. package/node_modules/fastify/test/types/import.ts +2 -0
  1784. package/node_modules/fastify/test/types/instance.test-d.ts +588 -0
  1785. package/node_modules/fastify/test/types/logger.test-d.ts +278 -0
  1786. package/node_modules/fastify/test/types/plugin.test-d.ts +97 -0
  1787. package/node_modules/fastify/test/types/register.test-d.ts +237 -0
  1788. package/node_modules/fastify/test/types/reply.test-d.ts +254 -0
  1789. package/node_modules/fastify/test/types/request.test-d.ts +187 -0
  1790. package/node_modules/fastify/test/types/route.test-d.ts +547 -0
  1791. package/node_modules/fastify/test/types/schema.test-d.ts +135 -0
  1792. package/node_modules/fastify/test/types/serverFactory.test-d.ts +37 -0
  1793. package/node_modules/fastify/test/types/type-provider.test-d.ts +1213 -0
  1794. package/node_modules/fastify/test/types/using.test-d.ts +17 -0
  1795. package/node_modules/fastify/test/upgrade.test.js +52 -0
  1796. package/node_modules/fastify/test/url-rewriting.test.js +122 -0
  1797. package/node_modules/fastify/test/use-semicolon-delimiter.test.js +168 -0
  1798. package/node_modules/fastify/test/validation-error-handling.test.js +900 -0
  1799. package/node_modules/fastify/test/versioned-routes.test.js +603 -0
  1800. package/node_modules/fastify/test/web-api.test.js +541 -0
  1801. package/node_modules/fastify/test/wrap-thenable.test.js +30 -0
  1802. package/node_modules/fastify/types/content-type-parser.d.ts +75 -0
  1803. package/node_modules/fastify/types/context.d.ts +22 -0
  1804. package/node_modules/fastify/types/errors.d.ts +90 -0
  1805. package/node_modules/fastify/types/hooks.d.ts +875 -0
  1806. package/node_modules/fastify/types/instance.d.ts +609 -0
  1807. package/node_modules/fastify/types/logger.d.ts +107 -0
  1808. package/node_modules/fastify/types/plugin.d.ts +44 -0
  1809. package/node_modules/fastify/types/register.d.ts +42 -0
  1810. package/node_modules/fastify/types/reply.d.ts +81 -0
  1811. package/node_modules/fastify/types/request.d.ts +93 -0
  1812. package/node_modules/fastify/types/route.d.ts +185 -0
  1813. package/node_modules/fastify/types/schema.d.ts +61 -0
  1814. package/node_modules/fastify/types/server-factory.d.ts +19 -0
  1815. package/node_modules/fastify/types/tsconfig.eslint.json +13 -0
  1816. package/node_modules/fastify/types/type-provider.d.ts +130 -0
  1817. package/node_modules/fastify/types/utils.d.ts +98 -0
  1818. package/node_modules/fastify-plugin/.gitattributes +2 -0
  1819. package/node_modules/fastify-plugin/.github/dependabot.yml +13 -0
  1820. package/node_modules/fastify-plugin/.github/stale.yml +21 -0
  1821. package/node_modules/fastify-plugin/.github/workflows/ci.yml +28 -0
  1822. package/node_modules/fastify-plugin/LICENSE +23 -0
  1823. package/node_modules/fastify-plugin/README.md +188 -0
  1824. package/node_modules/fastify-plugin/eslint.config.js +6 -0
  1825. package/node_modules/fastify-plugin/lib/getPluginName.js +25 -0
  1826. package/node_modules/fastify-plugin/lib/toCamelCase.js +10 -0
  1827. package/node_modules/fastify-plugin/package.json +70 -0
  1828. package/node_modules/fastify-plugin/plugin.js +67 -0
  1829. package/node_modules/fastify-plugin/test/bundlers.test.js +110 -0
  1830. package/node_modules/fastify-plugin/test/checkVersion.test.js +67 -0
  1831. package/node_modules/fastify-plugin/test/composite.test.js +14 -0
  1832. package/node_modules/fastify-plugin/test/esm/esm.mjs +11 -0
  1833. package/node_modules/fastify-plugin/test/esm/index.test.js +11 -0
  1834. package/node_modules/fastify-plugin/test/extractPluginName.test.js +49 -0
  1835. package/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +15 -0
  1836. package/node_modules/fastify-plugin/test/test.js +396 -0
  1837. package/node_modules/fastify-plugin/test/toCamelCase.test.js +24 -0
  1838. package/node_modules/fastify-plugin/types/example-async.test-d.ts +19 -0
  1839. package/node_modules/fastify-plugin/types/example-callback.test-d.ts +19 -0
  1840. package/node_modules/fastify-plugin/types/plugin.d.ts +61 -0
  1841. package/node_modules/fastify-plugin/types/plugin.test-d.ts +166 -0
  1842. package/node_modules/fastq/LICENSE +13 -0
  1843. package/node_modules/fastq/README.md +310 -0
  1844. package/node_modules/fastq/SECURITY.md +15 -0
  1845. package/node_modules/fastq/bench.js +66 -0
  1846. package/node_modules/fastq/eslint.config.js +11 -0
  1847. package/node_modules/fastq/example.js +14 -0
  1848. package/node_modules/fastq/example.mjs +9 -0
  1849. package/node_modules/fastq/index.d.ts +59 -0
  1850. package/node_modules/fastq/package.json +49 -0
  1851. package/node_modules/fastq/queue.js +346 -0
  1852. package/node_modules/fastq/test/example.ts +83 -0
  1853. package/node_modules/fastq/test/promise.js +325 -0
  1854. package/node_modules/fastq/test/test.js +733 -0
  1855. package/node_modules/fastq/test/tsconfig.json +11 -0
  1856. package/node_modules/fill-range/LICENSE +21 -0
  1857. package/node_modules/fill-range/README.md +237 -0
  1858. package/node_modules/fill-range/index.js +248 -0
  1859. package/node_modules/fill-range/package.json +74 -0
  1860. package/node_modules/find-my-way/.github/dependabot.yml +34 -0
  1861. package/node_modules/find-my-way/.github/workflows/node.js.yml +68 -0
  1862. package/node_modules/find-my-way/LICENSE +21 -0
  1863. package/node_modules/find-my-way/README.md +845 -0
  1864. package/node_modules/find-my-way/benchmark/bench-thread.js +35 -0
  1865. package/node_modules/find-my-way/benchmark/bench.js +156 -0
  1866. package/node_modules/find-my-way/benchmark/compare-branches.js +113 -0
  1867. package/node_modules/find-my-way/benchmark/uri-decoding.js +55 -0
  1868. package/node_modules/find-my-way/example.js +29 -0
  1869. package/node_modules/find-my-way/index.d.ts +237 -0
  1870. package/node_modules/find-my-way/index.js +836 -0
  1871. package/node_modules/find-my-way/lib/constrainer.js +170 -0
  1872. package/node_modules/find-my-way/lib/handler-storage.js +174 -0
  1873. package/node_modules/find-my-way/lib/http-methods.js +13 -0
  1874. package/node_modules/find-my-way/lib/node.js +228 -0
  1875. package/node_modules/find-my-way/lib/null-object.js +8 -0
  1876. package/node_modules/find-my-way/lib/pretty-print.js +168 -0
  1877. package/node_modules/find-my-way/lib/strategies/accept-host.js +36 -0
  1878. package/node_modules/find-my-way/lib/strategies/accept-version.js +64 -0
  1879. package/node_modules/find-my-way/lib/strategies/http-method.js +15 -0
  1880. package/node_modules/find-my-way/lib/url-sanitizer.js +105 -0
  1881. package/node_modules/find-my-way/package.json +57 -0
  1882. package/node_modules/find-my-way/test/case-insensitive.test.js +230 -0
  1883. package/node_modules/find-my-way/test/constraint.custom-versioning.test.js +130 -0
  1884. package/node_modules/find-my-way/test/constraint.custom.async.test.js +111 -0
  1885. package/node_modules/find-my-way/test/constraint.custom.test.js +273 -0
  1886. package/node_modules/find-my-way/test/constraint.default-versioning.test.js +289 -0
  1887. package/node_modules/find-my-way/test/constraint.host.test.js +104 -0
  1888. package/node_modules/find-my-way/test/constraints.test.js +108 -0
  1889. package/node_modules/find-my-way/test/custom-querystring-parser.test.js +46 -0
  1890. package/node_modules/find-my-way/test/errors.test.js +484 -0
  1891. package/node_modules/find-my-way/test/fastify-issue-3129.test.js +34 -0
  1892. package/node_modules/find-my-way/test/fastify-issue-3957.test.js +23 -0
  1893. package/node_modules/find-my-way/test/find-route.test.js +275 -0
  1894. package/node_modules/find-my-way/test/find.test.js +16 -0
  1895. package/node_modules/find-my-way/test/for-in-loop.test.js +13 -0
  1896. package/node_modules/find-my-way/test/full-url.test.js +30 -0
  1897. package/node_modules/find-my-way/test/has-route.test.js +218 -0
  1898. package/node_modules/find-my-way/test/host-storage.test.js +27 -0
  1899. package/node_modules/find-my-way/test/http2/constraint.host.test.js +44 -0
  1900. package/node_modules/find-my-way/test/issue-101.test.js +31 -0
  1901. package/node_modules/find-my-way/test/issue-104.test.js +206 -0
  1902. package/node_modules/find-my-way/test/issue-110.test.js +31 -0
  1903. package/node_modules/find-my-way/test/issue-132.test.js +80 -0
  1904. package/node_modules/find-my-way/test/issue-145.test.js +24 -0
  1905. package/node_modules/find-my-way/test/issue-149.test.js +21 -0
  1906. package/node_modules/find-my-way/test/issue-151.test.js +54 -0
  1907. package/node_modules/find-my-way/test/issue-154.test.js +21 -0
  1908. package/node_modules/find-my-way/test/issue-161.test.js +88 -0
  1909. package/node_modules/find-my-way/test/issue-17.test.js +397 -0
  1910. package/node_modules/find-my-way/test/issue-175.test.js +80 -0
  1911. package/node_modules/find-my-way/test/issue-182.test.js +18 -0
  1912. package/node_modules/find-my-way/test/issue-190.test.js +44 -0
  1913. package/node_modules/find-my-way/test/issue-20.test.js +79 -0
  1914. package/node_modules/find-my-way/test/issue-206.test.js +121 -0
  1915. package/node_modules/find-my-way/test/issue-221.test.js +50 -0
  1916. package/node_modules/find-my-way/test/issue-234.test.js +94 -0
  1917. package/node_modules/find-my-way/test/issue-238.test.js +119 -0
  1918. package/node_modules/find-my-way/test/issue-240.test.js +30 -0
  1919. package/node_modules/find-my-way/test/issue-241.test.js +32 -0
  1920. package/node_modules/find-my-way/test/issue-247.test.js +51 -0
  1921. package/node_modules/find-my-way/test/issue-254.test.js +31 -0
  1922. package/node_modules/find-my-way/test/issue-28.test.js +618 -0
  1923. package/node_modules/find-my-way/test/issue-280.test.js +14 -0
  1924. package/node_modules/find-my-way/test/issue-285.test.js +37 -0
  1925. package/node_modules/find-my-way/test/issue-330.test.js +231 -0
  1926. package/node_modules/find-my-way/test/issue-44.test.js +149 -0
  1927. package/node_modules/find-my-way/test/issue-46.test.js +75 -0
  1928. package/node_modules/find-my-way/test/issue-49.test.js +108 -0
  1929. package/node_modules/find-my-way/test/issue-59.test.js +131 -0
  1930. package/node_modules/find-my-way/test/issue-62.test.js +28 -0
  1931. package/node_modules/find-my-way/test/issue-63.test.js +23 -0
  1932. package/node_modules/find-my-way/test/issue-67.test.js +50 -0
  1933. package/node_modules/find-my-way/test/issue-93.test.js +19 -0
  1934. package/node_modules/find-my-way/test/lookup-async.test.js +29 -0
  1935. package/node_modules/find-my-way/test/lookup.test.js +58 -0
  1936. package/node_modules/find-my-way/test/matching-order.test.js +17 -0
  1937. package/node_modules/find-my-way/test/max-param-length.test.js +44 -0
  1938. package/node_modules/find-my-way/test/methods.test.js +830 -0
  1939. package/node_modules/find-my-way/test/null-object.test.js +36 -0
  1940. package/node_modules/find-my-way/test/on-bad-url.test.js +72 -0
  1941. package/node_modules/find-my-way/test/optional-params.test.js +216 -0
  1942. package/node_modules/find-my-way/test/params-collisions.test.js +126 -0
  1943. package/node_modules/find-my-way/test/path-params-match.test.js +53 -0
  1944. package/node_modules/find-my-way/test/pretty-print-tree.test.js +596 -0
  1945. package/node_modules/find-my-way/test/pretty-print.test.js +680 -0
  1946. package/node_modules/find-my-way/test/querystring.test.js +54 -0
  1947. package/node_modules/find-my-way/test/regex.test.js +269 -0
  1948. package/node_modules/find-my-way/test/routes-registered.test.js +45 -0
  1949. package/node_modules/find-my-way/test/server.test.js +368 -0
  1950. package/node_modules/find-my-way/test/shorthands.test.js +44 -0
  1951. package/node_modules/find-my-way/test/store.test.js +49 -0
  1952. package/node_modules/find-my-way/test/types/router.test-d.ts +182 -0
  1953. package/node_modules/find-my-way/test/url-sanitizer.test.js +43 -0
  1954. package/node_modules/foreground-child/LICENSE +15 -0
  1955. package/node_modules/foreground-child/README.md +128 -0
  1956. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +2 -0
  1957. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
  1958. package/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
  1959. package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
  1960. package/node_modules/foreground-child/dist/commonjs/index.d.ts +58 -0
  1961. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
  1962. package/node_modules/foreground-child/dist/commonjs/index.js +123 -0
  1963. package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
  1964. package/node_modules/foreground-child/dist/commonjs/package.json +3 -0
  1965. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +6 -0
  1966. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
  1967. package/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
  1968. package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
  1969. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +10 -0
  1970. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
  1971. package/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
  1972. package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
  1973. package/node_modules/foreground-child/dist/esm/all-signals.d.ts +2 -0
  1974. package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
  1975. package/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
  1976. package/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
  1977. package/node_modules/foreground-child/dist/esm/index.d.ts +58 -0
  1978. package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
  1979. package/node_modules/foreground-child/dist/esm/index.js +115 -0
  1980. package/node_modules/foreground-child/dist/esm/index.js.map +1 -0
  1981. package/node_modules/foreground-child/dist/esm/package.json +3 -0
  1982. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +6 -0
  1983. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
  1984. package/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
  1985. package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
  1986. package/node_modules/foreground-child/dist/esm/watchdog.d.ts +10 -0
  1987. package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
  1988. package/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
  1989. package/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
  1990. package/node_modules/foreground-child/package.json +106 -0
  1991. package/node_modules/glob/LICENSE.md +63 -0
  1992. package/node_modules/glob/README.md +1294 -0
  1993. package/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
  1994. package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  1995. package/node_modules/glob/dist/commonjs/glob.js +247 -0
  1996. package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  1997. package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  1998. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  1999. package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  2000. package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  2001. package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
  2002. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  2003. package/node_modules/glob/dist/commonjs/ignore.js +119 -0
  2004. package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  2005. package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
  2006. package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  2007. package/node_modules/glob/dist/commonjs/index.js +68 -0
  2008. package/node_modules/glob/dist/commonjs/index.js.map +1 -0
  2009. package/node_modules/glob/dist/commonjs/package.json +3 -0
  2010. package/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
  2011. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  2012. package/node_modules/glob/dist/commonjs/pattern.js +219 -0
  2013. package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  2014. package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
  2015. package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  2016. package/node_modules/glob/dist/commonjs/processor.js +301 -0
  2017. package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  2018. package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
  2019. package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  2020. package/node_modules/glob/dist/commonjs/walker.js +387 -0
  2021. package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  2022. package/node_modules/glob/dist/esm/bin.d.mts +3 -0
  2023. package/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
  2024. package/node_modules/glob/dist/esm/bin.mjs +346 -0
  2025. package/node_modules/glob/dist/esm/bin.mjs.map +1 -0
  2026. package/node_modules/glob/dist/esm/glob.d.ts +388 -0
  2027. package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  2028. package/node_modules/glob/dist/esm/glob.js +243 -0
  2029. package/node_modules/glob/dist/esm/glob.js.map +1 -0
  2030. package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  2031. package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  2032. package/node_modules/glob/dist/esm/has-magic.js +23 -0
  2033. package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  2034. package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
  2035. package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  2036. package/node_modules/glob/dist/esm/ignore.js +115 -0
  2037. package/node_modules/glob/dist/esm/ignore.js.map +1 -0
  2038. package/node_modules/glob/dist/esm/index.d.ts +97 -0
  2039. package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  2040. package/node_modules/glob/dist/esm/index.js +55 -0
  2041. package/node_modules/glob/dist/esm/index.js.map +1 -0
  2042. package/node_modules/glob/dist/esm/package.json +3 -0
  2043. package/node_modules/glob/dist/esm/pattern.d.ts +76 -0
  2044. package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  2045. package/node_modules/glob/dist/esm/pattern.js +215 -0
  2046. package/node_modules/glob/dist/esm/pattern.js.map +1 -0
  2047. package/node_modules/glob/dist/esm/processor.d.ts +59 -0
  2048. package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  2049. package/node_modules/glob/dist/esm/processor.js +294 -0
  2050. package/node_modules/glob/dist/esm/processor.js.map +1 -0
  2051. package/node_modules/glob/dist/esm/walker.d.ts +97 -0
  2052. package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  2053. package/node_modules/glob/dist/esm/walker.js +381 -0
  2054. package/node_modules/glob/dist/esm/walker.js.map +1 -0
  2055. package/node_modules/glob/package.json +97 -0
  2056. package/node_modules/glob-parent/LICENSE +15 -0
  2057. package/node_modules/glob-parent/README.md +137 -0
  2058. package/node_modules/glob-parent/index.js +42 -0
  2059. package/node_modules/glob-parent/package.json +48 -0
  2060. package/node_modules/http-errors/HISTORY.md +186 -0
  2061. package/node_modules/http-errors/LICENSE +23 -0
  2062. package/node_modules/http-errors/README.md +169 -0
  2063. package/node_modules/http-errors/index.js +290 -0
  2064. package/node_modules/http-errors/package.json +54 -0
  2065. package/node_modules/inherits/LICENSE +16 -0
  2066. package/node_modules/inherits/README.md +42 -0
  2067. package/node_modules/inherits/inherits.js +9 -0
  2068. package/node_modules/inherits/inherits_browser.js +27 -0
  2069. package/node_modules/inherits/package.json +29 -0
  2070. package/node_modules/ipaddr.js/LICENSE +19 -0
  2071. package/node_modules/ipaddr.js/README.md +233 -0
  2072. package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  2073. package/node_modules/ipaddr.js/lib/ipaddr.js +1067 -0
  2074. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +72 -0
  2075. package/node_modules/ipaddr.js/package.json +36 -0
  2076. package/node_modules/is-extglob/LICENSE +21 -0
  2077. package/node_modules/is-extglob/README.md +107 -0
  2078. package/node_modules/is-extglob/index.js +20 -0
  2079. package/node_modules/is-extglob/package.json +69 -0
  2080. package/node_modules/is-glob/LICENSE +21 -0
  2081. package/node_modules/is-glob/README.md +206 -0
  2082. package/node_modules/is-glob/index.js +150 -0
  2083. package/node_modules/is-glob/package.json +81 -0
  2084. package/node_modules/is-number/LICENSE +21 -0
  2085. package/node_modules/is-number/README.md +187 -0
  2086. package/node_modules/is-number/index.js +18 -0
  2087. package/node_modules/is-number/package.json +82 -0
  2088. package/node_modules/isexe/.npmignore +2 -0
  2089. package/node_modules/isexe/LICENSE +15 -0
  2090. package/node_modules/isexe/README.md +51 -0
  2091. package/node_modules/isexe/index.js +57 -0
  2092. package/node_modules/isexe/mode.js +41 -0
  2093. package/node_modules/isexe/package.json +31 -0
  2094. package/node_modules/isexe/test/basic.js +221 -0
  2095. package/node_modules/isexe/windows.js +42 -0
  2096. package/node_modules/jackspeak/LICENSE.md +55 -0
  2097. package/node_modules/jackspeak/README.md +394 -0
  2098. package/node_modules/jackspeak/dist/commonjs/index.d.ts +323 -0
  2099. package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
  2100. package/node_modules/jackspeak/dist/commonjs/index.js +944 -0
  2101. package/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
  2102. package/node_modules/jackspeak/dist/commonjs/index.min.js +33 -0
  2103. package/node_modules/jackspeak/dist/commonjs/index.min.js.map +7 -0
  2104. package/node_modules/jackspeak/dist/commonjs/package.json +3 -0
  2105. package/node_modules/jackspeak/dist/esm/index.d.ts +323 -0
  2106. package/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
  2107. package/node_modules/jackspeak/dist/esm/index.js +936 -0
  2108. package/node_modules/jackspeak/dist/esm/index.js.map +1 -0
  2109. package/node_modules/jackspeak/dist/esm/index.min.js +33 -0
  2110. package/node_modules/jackspeak/dist/esm/index.min.js.map +7 -0
  2111. package/node_modules/jackspeak/dist/esm/package.json +3 -0
  2112. package/node_modules/jackspeak/package.json +115 -0
  2113. package/node_modules/json-schema-ref-resolver/.gitattributes +2 -0
  2114. package/node_modules/json-schema-ref-resolver/.github/dependabot.yml +13 -0
  2115. package/node_modules/json-schema-ref-resolver/.github/workflows/ci.yml +25 -0
  2116. package/node_modules/json-schema-ref-resolver/LICENSE +21 -0
  2117. package/node_modules/json-schema-ref-resolver/README.md +406 -0
  2118. package/node_modules/json-schema-ref-resolver/eslint.config.js +6 -0
  2119. package/node_modules/json-schema-ref-resolver/index.js +284 -0
  2120. package/node_modules/json-schema-ref-resolver/package.json +76 -0
  2121. package/node_modules/json-schema-ref-resolver/test/anchor.test.js +56 -0
  2122. package/node_modules/json-schema-ref-resolver/test/collisions.test.js +199 -0
  2123. package/node_modules/json-schema-ref-resolver/test/deref-schema.test.js +287 -0
  2124. package/node_modules/json-schema-ref-resolver/test/get-deref-schema.test.js +363 -0
  2125. package/node_modules/json-schema-ref-resolver/test/get-schema-dependencies.test.js +158 -0
  2126. package/node_modules/json-schema-ref-resolver/test/get-schema-refs.test.js +87 -0
  2127. package/node_modules/json-schema-ref-resolver/test/get-schema.test.js +222 -0
  2128. package/node_modules/json-schema-ref-resolver/test/has-schema.test.js +28 -0
  2129. package/node_modules/json-schema-ref-resolver/types/index.d.ts +67 -0
  2130. package/node_modules/json-schema-ref-resolver/types/index.test-d.ts +23 -0
  2131. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  2132. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  2133. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  2134. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  2135. package/node_modules/json-schema-traverse/LICENSE +21 -0
  2136. package/node_modules/json-schema-traverse/README.md +95 -0
  2137. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  2138. package/node_modules/json-schema-traverse/index.js +93 -0
  2139. package/node_modules/json-schema-traverse/package.json +43 -0
  2140. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  2141. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  2142. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  2143. package/node_modules/light-my-request/.gitattributes +2 -0
  2144. package/node_modules/light-my-request/.github/dependabot.yml +13 -0
  2145. package/node_modules/light-my-request/.github/stale.yml +21 -0
  2146. package/node_modules/light-my-request/.github/workflows/benchmark.yml +30 -0
  2147. package/node_modules/light-my-request/.github/workflows/ci.yml +23 -0
  2148. package/node_modules/light-my-request/LICENSE +32 -0
  2149. package/node_modules/light-my-request/README.md +261 -0
  2150. package/node_modules/light-my-request/benchmark/benchmark.js +164 -0
  2151. package/node_modules/light-my-request/build/build-validation.js +100 -0
  2152. package/node_modules/light-my-request/eslint.config.js +9 -0
  2153. package/node_modules/light-my-request/index.js +194 -0
  2154. package/node_modules/light-my-request/lib/config-validator.js +919 -0
  2155. package/node_modules/light-my-request/lib/form-data.js +79 -0
  2156. package/node_modules/light-my-request/lib/parse-url.js +47 -0
  2157. package/node_modules/light-my-request/lib/request.js +290 -0
  2158. package/node_modules/light-my-request/lib/response.js +240 -0
  2159. package/node_modules/light-my-request/node_modules/process-warning/.gitattributes +2 -0
  2160. package/node_modules/light-my-request/node_modules/process-warning/.github/dependabot.yml +13 -0
  2161. package/node_modules/light-my-request/node_modules/process-warning/.github/workflows/ci.yml +24 -0
  2162. package/node_modules/light-my-request/node_modules/process-warning/.taprc +2 -0
  2163. package/node_modules/light-my-request/node_modules/process-warning/LICENSE +21 -0
  2164. package/node_modules/light-my-request/node_modules/process-warning/README.md +118 -0
  2165. package/node_modules/light-my-request/node_modules/process-warning/benchmarks/warn.js +25 -0
  2166. package/node_modules/light-my-request/node_modules/process-warning/eslint.config.js +6 -0
  2167. package/node_modules/light-my-request/node_modules/process-warning/examples/example.js +11 -0
  2168. package/node_modules/light-my-request/node_modules/process-warning/index.js +124 -0
  2169. package/node_modules/light-my-request/node_modules/process-warning/package.json +73 -0
  2170. package/node_modules/light-my-request/node_modules/process-warning/test/emit-interpolated-string.test.js +29 -0
  2171. package/node_modules/light-my-request/node_modules/process-warning/test/emit-once-only.test.js +28 -0
  2172. package/node_modules/light-my-request/node_modules/process-warning/test/emit-reset.test.js +36 -0
  2173. package/node_modules/light-my-request/node_modules/process-warning/test/emit-set.test.js +30 -0
  2174. package/node_modules/light-my-request/node_modules/process-warning/test/emit-unlimited.test.js +37 -0
  2175. package/node_modules/light-my-request/node_modules/process-warning/test/index.test.js +99 -0
  2176. package/node_modules/light-my-request/node_modules/process-warning/test/issue-88.test.js +33 -0
  2177. package/node_modules/light-my-request/node_modules/process-warning/test/jest.test.js +22 -0
  2178. package/node_modules/light-my-request/node_modules/process-warning/test/no-warnings.test.js +80 -0
  2179. package/node_modules/light-my-request/node_modules/process-warning/types/index.d.ts +37 -0
  2180. package/node_modules/light-my-request/node_modules/process-warning/types/index.test-d.ts +36 -0
  2181. package/node_modules/light-my-request/package.json +85 -0
  2182. package/node_modules/light-my-request/test/async-await.test.js +55 -0
  2183. package/node_modules/light-my-request/test/index.test.js +2316 -0
  2184. package/node_modules/light-my-request/test/request.test.js +16 -0
  2185. package/node_modules/light-my-request/test/response.test.js +19 -0
  2186. package/node_modules/light-my-request/test/stream.test.js +359 -0
  2187. package/node_modules/light-my-request/types/index.d.ts +128 -0
  2188. package/node_modules/light-my-request/types/index.test-d.ts +149 -0
  2189. package/node_modules/merge2/LICENSE +21 -0
  2190. package/node_modules/merge2/README.md +144 -0
  2191. package/node_modules/merge2/index.js +144 -0
  2192. package/node_modules/merge2/package.json +43 -0
  2193. package/node_modules/micromatch/LICENSE +21 -0
  2194. package/node_modules/micromatch/README.md +1024 -0
  2195. package/node_modules/micromatch/index.js +474 -0
  2196. package/node_modules/micromatch/package.json +119 -0
  2197. package/node_modules/mime/LICENSE +21 -0
  2198. package/node_modules/mime/Mime.js +97 -0
  2199. package/node_modules/mime/README.md +178 -0
  2200. package/node_modules/mime/cli.js +46 -0
  2201. package/node_modules/mime/index.js +4 -0
  2202. package/node_modules/mime/lite.js +4 -0
  2203. package/node_modules/mime/package.json +52 -0
  2204. package/node_modules/mime/types/other.js +1 -0
  2205. package/node_modules/mime/types/standard.js +1 -0
  2206. package/node_modules/minimatch/LICENSE.md +55 -0
  2207. package/node_modules/minimatch/README.md +453 -0
  2208. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  2209. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  2210. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  2211. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  2212. package/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  2213. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  2214. package/node_modules/minimatch/dist/commonjs/ast.js +591 -0
  2215. package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  2216. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  2217. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  2218. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  2219. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  2220. package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  2221. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  2222. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  2223. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  2224. package/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  2225. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  2226. package/node_modules/minimatch/dist/commonjs/index.js +1029 -0
  2227. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  2228. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  2229. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  2230. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  2231. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  2232. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  2233. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  2234. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  2235. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  2236. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  2237. package/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  2238. package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  2239. package/node_modules/minimatch/dist/esm/ast.js +587 -0
  2240. package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  2241. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  2242. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  2243. package/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  2244. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  2245. package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  2246. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  2247. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  2248. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  2249. package/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  2250. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  2251. package/node_modules/minimatch/dist/esm/index.js +1016 -0
  2252. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  2253. package/node_modules/minimatch/dist/esm/package.json +3 -0
  2254. package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  2255. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  2256. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  2257. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  2258. package/node_modules/minimatch/package.json +67 -0
  2259. package/node_modules/minipass/LICENSE +15 -0
  2260. package/node_modules/minipass/README.md +825 -0
  2261. package/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
  2262. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  2263. package/node_modules/minipass/dist/commonjs/index.js +1028 -0
  2264. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  2265. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  2266. package/node_modules/minipass/dist/esm/index.d.ts +549 -0
  2267. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  2268. package/node_modules/minipass/dist/esm/index.js +1018 -0
  2269. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  2270. package/node_modules/minipass/dist/esm/package.json +3 -0
  2271. package/node_modules/minipass/package.json +82 -0
  2272. package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
  2273. package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
  2274. package/node_modules/on-exit-leak-free/LICENSE +21 -0
  2275. package/node_modules/on-exit-leak-free/README.md +54 -0
  2276. package/node_modules/on-exit-leak-free/index.js +108 -0
  2277. package/node_modules/on-exit-leak-free/package.json +37 -0
  2278. package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
  2279. package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
  2280. package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
  2281. package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
  2282. package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
  2283. package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
  2284. package/node_modules/package-json-from-dist/LICENSE.md +63 -0
  2285. package/node_modules/package-json-from-dist/README.md +110 -0
  2286. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +89 -0
  2287. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
  2288. package/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
  2289. package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
  2290. package/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
  2291. package/node_modules/package-json-from-dist/dist/esm/index.d.ts +89 -0
  2292. package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
  2293. package/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
  2294. package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
  2295. package/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
  2296. package/node_modules/package-json-from-dist/package.json +68 -0
  2297. package/node_modules/path-key/index.d.ts +40 -0
  2298. package/node_modules/path-key/index.js +16 -0
  2299. package/node_modules/path-key/license +9 -0
  2300. package/node_modules/path-key/package.json +39 -0
  2301. package/node_modules/path-key/readme.md +61 -0
  2302. package/node_modules/path-scurry/LICENSE.md +55 -0
  2303. package/node_modules/path-scurry/README.md +636 -0
  2304. package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
  2305. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  2306. package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
  2307. package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  2308. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  2309. package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
  2310. package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  2311. package/node_modules/path-scurry/dist/esm/index.js +1983 -0
  2312. package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  2313. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  2314. package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
  2315. package/node_modules/path-scurry/node_modules/lru-cache/README.md +383 -0
  2316. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts +1323 -0
  2317. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  2318. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1589 -0
  2319. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  2320. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  2321. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  2322. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  2323. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1323 -0
  2324. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  2325. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1585 -0
  2326. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  2327. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  2328. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  2329. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
  2330. package/node_modules/path-scurry/node_modules/lru-cache/package.json +101 -0
  2331. package/node_modules/path-scurry/package.json +88 -0
  2332. package/node_modules/picomatch/LICENSE +21 -0
  2333. package/node_modules/picomatch/README.md +708 -0
  2334. package/node_modules/picomatch/index.js +3 -0
  2335. package/node_modules/picomatch/lib/constants.js +179 -0
  2336. package/node_modules/picomatch/lib/parse.js +1091 -0
  2337. package/node_modules/picomatch/lib/picomatch.js +342 -0
  2338. package/node_modules/picomatch/lib/scan.js +391 -0
  2339. package/node_modules/picomatch/lib/utils.js +64 -0
  2340. package/node_modules/picomatch/package.json +81 -0
  2341. package/node_modules/pino/.nojekyll +0 -0
  2342. package/node_modules/pino/.prettierignore +1 -0
  2343. package/node_modules/pino/CNAME +1 -0
  2344. package/node_modules/pino/CONTRIBUTING.md +30 -0
  2345. package/node_modules/pino/LICENSE +21 -0
  2346. package/node_modules/pino/README.md +177 -0
  2347. package/node_modules/pino/SECURITY.md +87 -0
  2348. package/node_modules/pino/benchmarks/basic.bench.js +95 -0
  2349. package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
  2350. package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
  2351. package/node_modules/pino/benchmarks/child.bench.js +62 -0
  2352. package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
  2353. package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
  2354. package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
  2355. package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
  2356. package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
  2357. package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
  2358. package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
  2359. package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
  2360. package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
  2361. package/node_modules/pino/benchmarks/multistream.js +98 -0
  2362. package/node_modules/pino/benchmarks/object.bench.js +82 -0
  2363. package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
  2364. package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
  2365. package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
  2366. package/node_modules/pino/bin.js +6 -0
  2367. package/node_modules/pino/browser.js +547 -0
  2368. package/node_modules/pino/build/sync-version.js +25 -0
  2369. package/node_modules/pino/docs/api.md +1593 -0
  2370. package/node_modules/pino/docs/asynchronous.md +40 -0
  2371. package/node_modules/pino/docs/benchmarks.md +55 -0
  2372. package/node_modules/pino/docs/browser.md +278 -0
  2373. package/node_modules/pino/docs/bundling.md +40 -0
  2374. package/node_modules/pino/docs/child-loggers.md +95 -0
  2375. package/node_modules/pino/docs/diagnostics.md +16 -0
  2376. package/node_modules/pino/docs/ecosystem.md +86 -0
  2377. package/node_modules/pino/docs/help.md +345 -0
  2378. package/node_modules/pino/docs/lts.md +64 -0
  2379. package/node_modules/pino/docs/pretty.md +35 -0
  2380. package/node_modules/pino/docs/redaction.md +135 -0
  2381. package/node_modules/pino/docs/transports.md +1376 -0
  2382. package/node_modules/pino/docs/web.md +309 -0
  2383. package/node_modules/pino/eslint.config.js +28 -0
  2384. package/node_modules/pino/examples/basic.js +43 -0
  2385. package/node_modules/pino/examples/transport.js +68 -0
  2386. package/node_modules/pino/favicon.ico +0 -0
  2387. package/node_modules/pino/file.js +12 -0
  2388. package/node_modules/pino/inc-version.sh +42 -0
  2389. package/node_modules/pino/index.html +55 -0
  2390. package/node_modules/pino/lib/caller.js +30 -0
  2391. package/node_modules/pino/lib/constants.js +28 -0
  2392. package/node_modules/pino/lib/deprecations.js +8 -0
  2393. package/node_modules/pino/lib/levels.js +241 -0
  2394. package/node_modules/pino/lib/meta.js +3 -0
  2395. package/node_modules/pino/lib/multistream.js +203 -0
  2396. package/node_modules/pino/lib/proto.js +256 -0
  2397. package/node_modules/pino/lib/redaction.js +114 -0
  2398. package/node_modules/pino/lib/symbols.js +74 -0
  2399. package/node_modules/pino/lib/time.js +39 -0
  2400. package/node_modules/pino/lib/tools.js +427 -0
  2401. package/node_modules/pino/lib/transport-stream.js +56 -0
  2402. package/node_modules/pino/lib/transport.js +289 -0
  2403. package/node_modules/pino/lib/worker.js +194 -0
  2404. package/node_modules/pino/package.json +120 -0
  2405. package/node_modules/pino/pino.d.ts +908 -0
  2406. package/node_modules/pino/pino.js +234 -0
  2407. package/node_modules/pino/test/basic.test.js +886 -0
  2408. package/node_modules/pino/test/broken-pipe.test.js +59 -0
  2409. package/node_modules/pino/test/browser-child.test.js +132 -0
  2410. package/node_modules/pino/test/browser-disabled.test.js +87 -0
  2411. package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
  2412. package/node_modules/pino/test/browser-is-level-enabled.test.js +101 -0
  2413. package/node_modules/pino/test/browser-levels.test.js +241 -0
  2414. package/node_modules/pino/test/browser-serializers.test.js +352 -0
  2415. package/node_modules/pino/test/browser-timestamp.test.js +88 -0
  2416. package/node_modules/pino/test/browser-transmit.test.js +417 -0
  2417. package/node_modules/pino/test/browser.test.js +698 -0
  2418. package/node_modules/pino/test/complex-objects.test.js +36 -0
  2419. package/node_modules/pino/test/crlf.test.js +34 -0
  2420. package/node_modules/pino/test/custom-levels.test.js +267 -0
  2421. package/node_modules/pino/test/diagnostics.test.js +107 -0
  2422. package/node_modules/pino/test/error-key.test.js +37 -0
  2423. package/node_modules/pino/test/error.test.js +403 -0
  2424. package/node_modules/pino/test/escaping.test.js +93 -0
  2425. package/node_modules/pino/test/esm/esm.mjs +14 -0
  2426. package/node_modules/pino/test/esm/index.test.js +21 -0
  2427. package/node_modules/pino/test/esm/named-exports.mjs +29 -0
  2428. package/node_modules/pino/test/exit.test.js +79 -0
  2429. package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
  2430. package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
  2431. package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
  2432. package/node_modules/pino/test/fixtures/console-transport.js +13 -0
  2433. package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
  2434. package/node_modules/pino/test/fixtures/default-exit.js +8 -0
  2435. package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
  2436. package/node_modules/pino/test/fixtures/eval/index.js +13 -0
  2437. package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
  2438. package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
  2439. package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
  2440. package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
  2441. package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
  2442. package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
  2443. package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
  2444. package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
  2445. package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
  2446. package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
  2447. package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
  2448. package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
  2449. package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
  2450. package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
  2451. package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
  2452. package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
  2453. package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
  2454. package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
  2455. package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
  2456. package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
  2457. package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
  2458. package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
  2459. package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
  2460. package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
  2461. package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
  2462. package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
  2463. package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
  2464. package/node_modules/pino/test/fixtures/transport/index.js +12 -0
  2465. package/node_modules/pino/test/fixtures/transport/package.json +5 -0
  2466. package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
  2467. package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
  2468. package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
  2469. package/node_modules/pino/test/fixtures/transport-invalid-node-options.js +26 -0
  2470. package/node_modules/pino/test/fixtures/transport-main.js +9 -0
  2471. package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
  2472. package/node_modules/pino/test/fixtures/transport-preload-main.mjs +13 -0
  2473. package/node_modules/pino/test/fixtures/transport-preload.mjs +13 -0
  2474. package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
  2475. package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
  2476. package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
  2477. package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
  2478. package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
  2479. package/node_modules/pino/test/fixtures/transport-worker-name.js +24 -0
  2480. package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
  2481. package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
  2482. package/node_modules/pino/test/fixtures/ts/to-file-transport-native.mts +15 -0
  2483. package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
  2484. package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
  2485. package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
  2486. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
  2487. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
  2488. package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
  2489. package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
  2490. package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
  2491. package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
  2492. package/node_modules/pino/test/formatters.test.js +364 -0
  2493. package/node_modules/pino/test/helper.d.ts +4 -0
  2494. package/node_modules/pino/test/helper.js +155 -0
  2495. package/node_modules/pino/test/hooks.test.js +114 -0
  2496. package/node_modules/pino/test/http.test.js +214 -0
  2497. package/node_modules/pino/test/internals/version.test.js +17 -0
  2498. package/node_modules/pino/test/is-level-enabled.test.js +179 -0
  2499. package/node_modules/pino/test/jest/basic.spec.js +10 -0
  2500. package/node_modules/pino/test/levels.test.js +810 -0
  2501. package/node_modules/pino/test/metadata.test.js +120 -0
  2502. package/node_modules/pino/test/mixin-merge-strategy.test.js +57 -0
  2503. package/node_modules/pino/test/mixin.test.js +241 -0
  2504. package/node_modules/pino/test/multistream.test.js +729 -0
  2505. package/node_modules/pino/test/redact.test.js +893 -0
  2506. package/node_modules/pino/test/serializers.test.js +257 -0
  2507. package/node_modules/pino/test/stdout-protection.test.js +41 -0
  2508. package/node_modules/pino/test/syncfalse.test.js +186 -0
  2509. package/node_modules/pino/test/timestamp-nano.test.js +37 -0
  2510. package/node_modules/pino/test/timestamp.test.js +124 -0
  2511. package/node_modules/pino/test/transport/big.test.js +42 -0
  2512. package/node_modules/pino/test/transport/bundlers-support.test.js +99 -0
  2513. package/node_modules/pino/test/transport/caller.test.js +24 -0
  2514. package/node_modules/pino/test/transport/core.test.js +733 -0
  2515. package/node_modules/pino/test/transport/core.transpiled.test.ts +114 -0
  2516. package/node_modules/pino/test/transport/crash.test.js +36 -0
  2517. package/node_modules/pino/test/transport/module-link.test.js +241 -0
  2518. package/node_modules/pino/test/transport/native-type-stripping.test.mjs +151 -0
  2519. package/node_modules/pino/test/transport/node-options.test.js +116 -0
  2520. package/node_modules/pino/test/transport/pipeline.test.js +137 -0
  2521. package/node_modules/pino/test/transport/preload.test.js +54 -0
  2522. package/node_modules/pino/test/transport/repl.test.js +15 -0
  2523. package/node_modules/pino/test/transport/sync-false.test.js +67 -0
  2524. package/node_modules/pino/test/transport/sync-true.test.js +57 -0
  2525. package/node_modules/pino/test/transport/targets.test.js +48 -0
  2526. package/node_modules/pino/test/transport/uses-pino-config.test.js +166 -0
  2527. package/node_modules/pino/test/transport-stream.test.js +40 -0
  2528. package/node_modules/pino/test/types/pino-import.test-d.cts +30 -0
  2529. package/node_modules/pino/test/types/pino-multistream.test-d.ts +28 -0
  2530. package/node_modules/pino/test/types/pino-top-export.test-d.ts +34 -0
  2531. package/node_modules/pino/test/types/pino-transport.test-d.ts +156 -0
  2532. package/node_modules/pino/test/types/pino-type-only.test-d.ts +75 -0
  2533. package/node_modules/pino/test/types/pino.test-d.ts +683 -0
  2534. package/node_modules/pino/test/types/pino.ts +91 -0
  2535. package/node_modules/pino/tsconfig.json +14 -0
  2536. package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
  2537. package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +80 -0
  2538. package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
  2539. package/node_modules/pino-abstract-transport/LICENSE +21 -0
  2540. package/node_modules/pino-abstract-transport/README.md +171 -0
  2541. package/node_modules/pino-abstract-transport/index.d.ts +122 -0
  2542. package/node_modules/pino-abstract-transport/index.js +128 -0
  2543. package/node_modules/pino-abstract-transport/package.json +41 -0
  2544. package/node_modules/pino-abstract-transport/test/base.test.js +473 -0
  2545. package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
  2546. package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
  2547. package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
  2548. package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
  2549. package/node_modules/pino-abstract-transport/test/match.js +24 -0
  2550. package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
  2551. package/node_modules/pino-abstract-transport/test/worker.test.js +372 -0
  2552. package/node_modules/pino-std-serializers/.editorconfig +13 -0
  2553. package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
  2554. package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
  2555. package/node_modules/pino-std-serializers/LICENSE +7 -0
  2556. package/node_modules/pino-std-serializers/Readme.md +182 -0
  2557. package/node_modules/pino-std-serializers/eslint.config.js +7 -0
  2558. package/node_modules/pino-std-serializers/index.d.ts +145 -0
  2559. package/node_modules/pino-std-serializers/index.js +36 -0
  2560. package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
  2561. package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
  2562. package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
  2563. package/node_modules/pino-std-serializers/lib/err.js +45 -0
  2564. package/node_modules/pino-std-serializers/lib/req.js +100 -0
  2565. package/node_modules/pino-std-serializers/lib/res.js +47 -0
  2566. package/node_modules/pino-std-serializers/package.json +42 -0
  2567. package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
  2568. package/node_modules/pino-std-serializers/test/err.test.js +200 -0
  2569. package/node_modules/pino-std-serializers/test/req.test.js +477 -0
  2570. package/node_modules/pino-std-serializers/test/res.test.js +120 -0
  2571. package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
  2572. package/node_modules/pino-std-serializers/tsconfig.json +13 -0
  2573. package/node_modules/process-warning/.gitattributes +2 -0
  2574. package/node_modules/process-warning/.github/dependabot.yml +13 -0
  2575. package/node_modules/process-warning/.github/workflows/ci.yml +22 -0
  2576. package/node_modules/process-warning/LICENSE +21 -0
  2577. package/node_modules/process-warning/README.md +118 -0
  2578. package/node_modules/process-warning/benchmarks/warn.js +25 -0
  2579. package/node_modules/process-warning/eslint.config.js +6 -0
  2580. package/node_modules/process-warning/examples/example.js +11 -0
  2581. package/node_modules/process-warning/index.js +124 -0
  2582. package/node_modules/process-warning/package.json +73 -0
  2583. package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
  2584. package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
  2585. package/node_modules/process-warning/test/emit-reset.test.js +40 -0
  2586. package/node_modules/process-warning/test/emit-set.test.js +35 -0
  2587. package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
  2588. package/node_modules/process-warning/test/index.test.js +99 -0
  2589. package/node_modules/process-warning/test/issue-88.test.js +38 -0
  2590. package/node_modules/process-warning/test/jest.test.js +24 -0
  2591. package/node_modules/process-warning/test/no-warnings.test.js +80 -0
  2592. package/node_modules/process-warning/test/promise.js +10 -0
  2593. package/node_modules/process-warning/types/index.d.ts +37 -0
  2594. package/node_modules/process-warning/types/index.test-d.ts +36 -0
  2595. package/node_modules/queue-microtask/LICENSE +20 -0
  2596. package/node_modules/queue-microtask/README.md +90 -0
  2597. package/node_modules/queue-microtask/index.d.ts +2 -0
  2598. package/node_modules/queue-microtask/index.js +9 -0
  2599. package/node_modules/queue-microtask/package.json +55 -0
  2600. package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
  2601. package/node_modules/quick-format-unescaped/LICENSE +21 -0
  2602. package/node_modules/quick-format-unescaped/benchmark.js +24 -0
  2603. package/node_modules/quick-format-unescaped/index.js +109 -0
  2604. package/node_modules/quick-format-unescaped/package.json +29 -0
  2605. package/node_modules/quick-format-unescaped/readme.md +66 -0
  2606. package/node_modules/quick-format-unescaped/test/index.js +136 -0
  2607. package/node_modules/readdirp/LICENSE +21 -0
  2608. package/node_modules/readdirp/README.md +120 -0
  2609. package/node_modules/readdirp/index.d.ts +108 -0
  2610. package/node_modules/readdirp/index.js +272 -0
  2611. package/node_modules/readdirp/package.json +66 -0
  2612. package/node_modules/real-require/LICENSE.md +21 -0
  2613. package/node_modules/real-require/README.md +51 -0
  2614. package/node_modules/real-require/package.json +49 -0
  2615. package/node_modules/real-require/src/index.js +14 -0
  2616. package/node_modules/require-from-string/index.js +34 -0
  2617. package/node_modules/require-from-string/license +21 -0
  2618. package/node_modules/require-from-string/package.json +28 -0
  2619. package/node_modules/require-from-string/readme.md +56 -0
  2620. package/node_modules/ret/LICENSE +21 -0
  2621. package/node_modules/ret/README.md +539 -0
  2622. package/node_modules/ret/dist/index.d.ts +7 -0
  2623. package/node_modules/ret/dist/index.js +26 -0
  2624. package/node_modules/ret/dist/index.js.map +1 -0
  2625. package/node_modules/ret/dist/reconstruct.d.ts +2 -0
  2626. package/node_modules/ret/dist/reconstruct.js +77 -0
  2627. package/node_modules/ret/dist/reconstruct.js.map +1 -0
  2628. package/node_modules/ret/dist/sets-lookup.d.ts +5 -0
  2629. package/node_modules/ret/dist/sets-lookup.js +51 -0
  2630. package/node_modules/ret/dist/sets-lookup.js.map +1 -0
  2631. package/node_modules/ret/dist/sets.d.ts +9 -0
  2632. package/node_modules/ret/dist/sets.js +43 -0
  2633. package/node_modules/ret/dist/sets.js.map +1 -0
  2634. package/node_modules/ret/dist/tokenizer.d.ts +8 -0
  2635. package/node_modules/ret/dist/tokenizer.js +361 -0
  2636. package/node_modules/ret/dist/tokenizer.js.map +1 -0
  2637. package/node_modules/ret/dist/types/index.d.ts +3 -0
  2638. package/node_modules/ret/dist/types/index.js +16 -0
  2639. package/node_modules/ret/dist/types/index.js.map +1 -0
  2640. package/node_modules/ret/dist/types/set-lookup.d.ts +8 -0
  2641. package/node_modules/ret/dist/types/set-lookup.js +3 -0
  2642. package/node_modules/ret/dist/types/set-lookup.js.map +1 -0
  2643. package/node_modules/ret/dist/types/tokens.d.ts +41 -0
  2644. package/node_modules/ret/dist/types/tokens.js +3 -0
  2645. package/node_modules/ret/dist/types/tokens.js.map +1 -0
  2646. package/node_modules/ret/dist/types/types.d.ts +10 -0
  2647. package/node_modules/ret/dist/types/types.js +15 -0
  2648. package/node_modules/ret/dist/types/types.js.map +1 -0
  2649. package/node_modules/ret/dist/util.d.ts +18 -0
  2650. package/node_modules/ret/dist/util.js +82 -0
  2651. package/node_modules/ret/dist/util.js.map +1 -0
  2652. package/node_modules/ret/dist/write-set-tokens.d.ts +14 -0
  2653. package/node_modules/ret/dist/write-set-tokens.js +108 -0
  2654. package/node_modules/ret/dist/write-set-tokens.js.map +1 -0
  2655. package/node_modules/ret/package.json +42 -0
  2656. package/node_modules/reusify/.github/dependabot.yml +7 -0
  2657. package/node_modules/reusify/.github/workflows/ci.yml +96 -0
  2658. package/node_modules/reusify/LICENSE +22 -0
  2659. package/node_modules/reusify/README.md +139 -0
  2660. package/node_modules/reusify/SECURITY.md +15 -0
  2661. package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  2662. package/node_modules/reusify/benchmarks/fib.js +13 -0
  2663. package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  2664. package/node_modules/reusify/eslint.config.js +14 -0
  2665. package/node_modules/reusify/package.json +50 -0
  2666. package/node_modules/reusify/reusify.d.ts +14 -0
  2667. package/node_modules/reusify/reusify.js +33 -0
  2668. package/node_modules/reusify/test.js +66 -0
  2669. package/node_modules/reusify/tsconfig.json +11 -0
  2670. package/node_modules/rfdc/.github/workflows/ci.yml +21 -0
  2671. package/node_modules/rfdc/LICENSE +15 -0
  2672. package/node_modules/rfdc/default.js +3 -0
  2673. package/node_modules/rfdc/index.d.ts +13 -0
  2674. package/node_modules/rfdc/index.js +198 -0
  2675. package/node_modules/rfdc/index.test-d.ts +13 -0
  2676. package/node_modules/rfdc/package.json +73 -0
  2677. package/node_modules/rfdc/readme.md +181 -0
  2678. package/node_modules/rfdc/test/index.js +306 -0
  2679. package/node_modules/run-parallel/LICENSE +20 -0
  2680. package/node_modules/run-parallel/README.md +85 -0
  2681. package/node_modules/run-parallel/index.js +51 -0
  2682. package/node_modules/run-parallel/package.json +58 -0
  2683. package/node_modules/safe-buffer/LICENSE +21 -0
  2684. package/node_modules/safe-buffer/README.md +584 -0
  2685. package/node_modules/safe-buffer/index.d.ts +187 -0
  2686. package/node_modules/safe-buffer/index.js +65 -0
  2687. package/node_modules/safe-buffer/package.json +51 -0
  2688. package/node_modules/safe-regex2/.gitattributes +2 -0
  2689. package/node_modules/safe-regex2/.github/dependabot.yml +13 -0
  2690. package/node_modules/safe-regex2/.github/stale.yml +21 -0
  2691. package/node_modules/safe-regex2/.github/workflows/ci.yml +25 -0
  2692. package/node_modules/safe-regex2/LICENSE +18 -0
  2693. package/node_modules/safe-regex2/README.md +59 -0
  2694. package/node_modules/safe-regex2/eslint.config.js +6 -0
  2695. package/node_modules/safe-regex2/example/safe.js +5 -0
  2696. package/node_modules/safe-regex2/index.js +54 -0
  2697. package/node_modules/safe-regex2/package.json +77 -0
  2698. package/node_modules/safe-regex2/test/regex.js +51 -0
  2699. package/node_modules/safe-regex2/types/index.d.ts +9 -0
  2700. package/node_modules/safe-regex2/types/index.test-d.ts +12 -0
  2701. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  2702. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  2703. package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
  2704. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  2705. package/node_modules/safe-stable-stringify/index.d.ts +22 -0
  2706. package/node_modules/safe-stable-stringify/index.js +625 -0
  2707. package/node_modules/safe-stable-stringify/package.json +65 -0
  2708. package/node_modules/safe-stable-stringify/readme.md +179 -0
  2709. package/node_modules/secure-json-parse/.airtap.yml +7 -0
  2710. package/node_modules/secure-json-parse/.gitattributes +2 -0
  2711. package/node_modules/secure-json-parse/.github/dependabot.yml +13 -0
  2712. package/node_modules/secure-json-parse/.github/stale.yml +21 -0
  2713. package/node_modules/secure-json-parse/.github/workflows/ci.yml +149 -0
  2714. package/node_modules/secure-json-parse/LICENSE +19 -0
  2715. package/node_modules/secure-json-parse/README.md +132 -0
  2716. package/node_modules/secure-json-parse/benchmarks/ignore.js +35 -0
  2717. package/node_modules/secure-json-parse/benchmarks/no__proto__.js +40 -0
  2718. package/node_modules/secure-json-parse/benchmarks/package.json +15 -0
  2719. package/node_modules/secure-json-parse/benchmarks/remove.js +39 -0
  2720. package/node_modules/secure-json-parse/benchmarks/throw.js +49 -0
  2721. package/node_modules/secure-json-parse/benchmarks/valid.js +49 -0
  2722. package/node_modules/secure-json-parse/eslint.config.js +6 -0
  2723. package/node_modules/secure-json-parse/index.js +161 -0
  2724. package/node_modules/secure-json-parse/package.json +74 -0
  2725. package/node_modules/secure-json-parse/test/index.test.js +649 -0
  2726. package/node_modules/secure-json-parse/types/index.d.ts +60 -0
  2727. package/node_modules/secure-json-parse/types/index.test-d.ts +43 -0
  2728. package/node_modules/set-cookie-parser/LICENSE +21 -0
  2729. package/node_modules/set-cookie-parser/README.md +202 -0
  2730. package/node_modules/set-cookie-parser/lib/set-cookie.js +242 -0
  2731. package/node_modules/set-cookie-parser/package.json +45 -0
  2732. package/node_modules/setprototypeof/LICENSE +13 -0
  2733. package/node_modules/setprototypeof/README.md +31 -0
  2734. package/node_modules/setprototypeof/index.d.ts +2 -0
  2735. package/node_modules/setprototypeof/index.js +17 -0
  2736. package/node_modules/setprototypeof/package.json +38 -0
  2737. package/node_modules/setprototypeof/test/index.js +24 -0
  2738. package/node_modules/shebang-command/index.js +19 -0
  2739. package/node_modules/shebang-command/license +9 -0
  2740. package/node_modules/shebang-command/package.json +34 -0
  2741. package/node_modules/shebang-command/readme.md +34 -0
  2742. package/node_modules/shebang-regex/index.d.ts +22 -0
  2743. package/node_modules/shebang-regex/index.js +2 -0
  2744. package/node_modules/shebang-regex/license +9 -0
  2745. package/node_modules/shebang-regex/package.json +35 -0
  2746. package/node_modules/shebang-regex/readme.md +33 -0
  2747. package/node_modules/signal-exit/LICENSE.txt +16 -0
  2748. package/node_modules/signal-exit/README.md +74 -0
  2749. package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  2750. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  2751. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  2752. package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  2753. package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  2754. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  2755. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  2756. package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  2757. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  2758. package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  2759. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  2760. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  2761. package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  2762. package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  2763. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  2764. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  2765. package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  2766. package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  2767. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  2768. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  2769. package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  2770. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  2771. package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  2772. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  2773. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  2774. package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  2775. package/node_modules/signal-exit/package.json +106 -0
  2776. package/node_modules/sonic-boom/.eslintignore +2 -0
  2777. package/node_modules/sonic-boom/.taprc +3 -0
  2778. package/node_modules/sonic-boom/LICENSE +21 -0
  2779. package/node_modules/sonic-boom/README.md +153 -0
  2780. package/node_modules/sonic-boom/bench.js +98 -0
  2781. package/node_modules/sonic-boom/check.js +18 -0
  2782. package/node_modules/sonic-boom/example.js +8 -0
  2783. package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
  2784. package/node_modules/sonic-boom/index.js +733 -0
  2785. package/node_modules/sonic-boom/package.json +52 -0
  2786. package/node_modules/sonic-boom/test/destroy.test.js +49 -0
  2787. package/node_modules/sonic-boom/test/end.test.js +98 -0
  2788. package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
  2789. package/node_modules/sonic-boom/test/flush.test.js +419 -0
  2790. package/node_modules/sonic-boom/test/fsync.test.js +63 -0
  2791. package/node_modules/sonic-boom/test/helper.js +42 -0
  2792. package/node_modules/sonic-boom/test/minlength.test.js +35 -0
  2793. package/node_modules/sonic-boom/test/mode.test.js +116 -0
  2794. package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
  2795. package/node_modules/sonic-boom/test/reopen.test.js +239 -0
  2796. package/node_modules/sonic-boom/test/retry.test.js +414 -0
  2797. package/node_modules/sonic-boom/test/sync.test.js +261 -0
  2798. package/node_modules/sonic-boom/test/write.test.js +515 -0
  2799. package/node_modules/sonic-boom/types/index.d.ts +63 -0
  2800. package/node_modules/sonic-boom/types/tests/test.ts +4 -0
  2801. package/node_modules/split2/LICENSE +13 -0
  2802. package/node_modules/split2/README.md +85 -0
  2803. package/node_modules/split2/bench.js +27 -0
  2804. package/node_modules/split2/index.js +141 -0
  2805. package/node_modules/split2/package.json +39 -0
  2806. package/node_modules/split2/test.js +409 -0
  2807. package/node_modules/statuses/HISTORY.md +87 -0
  2808. package/node_modules/statuses/LICENSE +23 -0
  2809. package/node_modules/statuses/README.md +139 -0
  2810. package/node_modules/statuses/codes.json +65 -0
  2811. package/node_modules/statuses/index.js +146 -0
  2812. package/node_modules/statuses/package.json +49 -0
  2813. package/node_modules/thread-stream/.github/dependabot.yml +13 -0
  2814. package/node_modules/thread-stream/.github/workflows/ci.yml +74 -0
  2815. package/node_modules/thread-stream/.husky/pre-commit +4 -0
  2816. package/node_modules/thread-stream/CLAUDE.md +53 -0
  2817. package/node_modules/thread-stream/LICENSE +21 -0
  2818. package/node_modules/thread-stream/README.md +135 -0
  2819. package/node_modules/thread-stream/bench.js +85 -0
  2820. package/node_modules/thread-stream/eslint.config.js +10 -0
  2821. package/node_modules/thread-stream/index.d.ts +92 -0
  2822. package/node_modules/thread-stream/index.js +541 -0
  2823. package/node_modules/thread-stream/lib/indexes.js +9 -0
  2824. package/node_modules/thread-stream/lib/wait.js +68 -0
  2825. package/node_modules/thread-stream/lib/worker.js +179 -0
  2826. package/node_modules/thread-stream/package.json +52 -0
  2827. package/node_modules/thread-stream/test/base.test.js +259 -0
  2828. package/node_modules/thread-stream/test/bench.test.js +38 -0
  2829. package/node_modules/thread-stream/test/bundlers.test.js +59 -0
  2830. package/node_modules/thread-stream/test/close-on-gc.js +37 -0
  2831. package/node_modules/thread-stream/test/commonjs-fallback.test.js +75 -0
  2832. package/node_modules/thread-stream/test/context.test.js +21 -0
  2833. package/node_modules/thread-stream/test/create-and-exit.js +16 -0
  2834. package/node_modules/thread-stream/test/custom-worker.js +9 -0
  2835. package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
  2836. package/node_modules/thread-stream/test/emit-event.js +22 -0
  2837. package/node_modules/thread-stream/test/end.test.js +56 -0
  2838. package/node_modules/thread-stream/test/error.js +14 -0
  2839. package/node_modules/thread-stream/test/esm.test.mjs +46 -0
  2840. package/node_modules/thread-stream/test/event.test.js +24 -0
  2841. package/node_modules/thread-stream/test/exit.js +14 -0
  2842. package/node_modules/thread-stream/test/get-context.js +22 -0
  2843. package/node_modules/thread-stream/test/helper.d.ts +1 -0
  2844. package/node_modules/thread-stream/test/helper.js +26 -0
  2845. package/node_modules/thread-stream/test/indexes.test.js +11 -0
  2846. package/node_modules/thread-stream/test/multibyte-chars.test.mjs +75 -0
  2847. package/node_modules/thread-stream/test/on-message.js +18 -0
  2848. package/node_modules/thread-stream/test/pkg/index.js +37 -0
  2849. package/node_modules/thread-stream/test/pkg/pkg.config.json +14 -0
  2850. package/node_modules/thread-stream/test/pkg/pkg.test.js +45 -0
  2851. package/node_modules/thread-stream/test/port.js +16 -0
  2852. package/node_modules/thread-stream/test/post-message.test.js +23 -0
  2853. package/node_modules/thread-stream/test/string-limit-2.test.js +35 -0
  2854. package/node_modules/thread-stream/test/string-limit.test.js +37 -0
  2855. package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
  2856. package/node_modules/thread-stream/test/thread-management.test.js +138 -0
  2857. package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
  2858. package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
  2859. package/node_modules/thread-stream/test/to-file.js +12 -0
  2860. package/node_modules/thread-stream/test/to-file.mjs +8 -0
  2861. package/node_modules/thread-stream/test/to-next.js +9 -0
  2862. package/node_modules/thread-stream/test/transpiled.test.js +29 -0
  2863. package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
  2864. package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
  2865. package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
  2866. package/node_modules/thread-stream/test/ts-native.test.mjs +35 -0
  2867. package/node_modules/thread-stream/test/ts-node-fallback.test.js +35 -0
  2868. package/node_modules/thread-stream/test/uncaughtException.js +21 -0
  2869. package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
  2870. package/node_modules/thread-stream/test/yarnrc.yml +7 -0
  2871. package/node_modules/thread-stream/tsconfig.json +8 -0
  2872. package/node_modules/to-regex-range/LICENSE +21 -0
  2873. package/node_modules/to-regex-range/README.md +305 -0
  2874. package/node_modules/to-regex-range/index.js +288 -0
  2875. package/node_modules/to-regex-range/package.json +88 -0
  2876. package/node_modules/toad-cache/LICENSE +21 -0
  2877. package/node_modules/toad-cache/README.md +265 -0
  2878. package/node_modules/toad-cache/dist/toad-cache.cjs +878 -0
  2879. package/node_modules/toad-cache/dist/toad-cache.mjs +852 -0
  2880. package/node_modules/toad-cache/package.json +82 -0
  2881. package/node_modules/toad-cache/toad-cache.d.cts +138 -0
  2882. package/node_modules/toad-cache/toad-cache.d.ts +128 -0
  2883. package/node_modules/toidentifier/HISTORY.md +9 -0
  2884. package/node_modules/toidentifier/LICENSE +21 -0
  2885. package/node_modules/toidentifier/README.md +61 -0
  2886. package/node_modules/toidentifier/index.js +32 -0
  2887. package/node_modules/toidentifier/package.json +38 -0
  2888. package/node_modules/which/LICENSE +15 -0
  2889. package/node_modules/which/README.md +54 -0
  2890. package/node_modules/which/bin/node-which +52 -0
  2891. package/node_modules/which/package.json +43 -0
  2892. package/node_modules/which/which.js +125 -0
  2893. package/package.json +45 -0
@@ -0,0 +1,1939 @@
1
+ import { execFile } from "node:child_process";
2
+ import { createHash } from "node:crypto";
3
+ import { existsSync, readdirSync, readFileSync } from "node:fs";
4
+ import os from "node:os";
5
+ import path from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ import { promisify } from "node:util";
8
+ import Fastify from "fastify";
9
+ import fastifyStatic from "@fastify/static";
10
+ import { DEFAULT_CONFIG_PATH, mergeConfig, saveConfig, TraceIndex } from "@agentlens/core";
11
+ const execFileAsync = promisify(execFile);
12
+ const STOP_SIGNAL_WAIT_MS = 1_200;
13
+ const STOP_FORCE_WAIT_MS = 700;
14
+ const STOP_WAIT_POLL_MS = 120;
15
+ const DEFAULT_RECENT_TRACE_LIMIT = 50;
16
+ const MAX_RECENT_TRACE_LIMIT = 5000;
17
+ const MAX_TRACE_INPUT_TEXT_LENGTH = 2000;
18
+ function isPlainObject(value) {
19
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
20
+ }
21
+ function deepMergeConfig(base, patch) {
22
+ const out = { ...base };
23
+ for (const [key, value] of Object.entries(patch)) {
24
+ const baseValue = out[key];
25
+ if (isPlainObject(baseValue) && isPlainObject(value)) {
26
+ out[key] = deepMergeConfig(baseValue, value);
27
+ continue;
28
+ }
29
+ out[key] = value;
30
+ }
31
+ return out;
32
+ }
33
+ function delay(ms) {
34
+ return new Promise((resolve) => {
35
+ setTimeout(resolve, ms);
36
+ });
37
+ }
38
+ function asErrorMessage(error) {
39
+ return error instanceof Error ? error.message : String(error);
40
+ }
41
+ function normalizeTraceInputText(value) {
42
+ return value.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
43
+ }
44
+ function parsePositiveInt(rawValue, fallback) {
45
+ if (!rawValue)
46
+ return fallback;
47
+ const parsed = Number.parseInt(rawValue, 10);
48
+ if (!Number.isFinite(parsed) || parsed <= 0)
49
+ return fallback;
50
+ return Math.max(1, Math.min(MAX_RECENT_TRACE_LIMIT, parsed));
51
+ }
52
+ function listRecentTraceSummaries(traceIndex, options) {
53
+ const agent = options.agent?.trim().toLowerCase();
54
+ const limit = parsePositiveInt(options.limit, DEFAULT_RECENT_TRACE_LIMIT);
55
+ const filtered = traceIndex.getSummaries().filter((summary) => (agent ? summary.agent === agent : true));
56
+ return filtered.slice(0, limit);
57
+ }
58
+ function asSessionCwd(value) {
59
+ return typeof value === "string" ? value.trim() : "";
60
+ }
61
+ function inferSessionCwd(detail) {
62
+ for (const event of detail.events) {
63
+ if (event.rawType !== "session_meta")
64
+ continue;
65
+ const rawPayload = event.raw.payload;
66
+ if (!rawPayload || typeof rawPayload !== "object")
67
+ continue;
68
+ const cwd = asSessionCwd(rawPayload.cwd);
69
+ if (cwd)
70
+ return cwd;
71
+ }
72
+ return "";
73
+ }
74
+ function isNoOpenFileMatchError(error) {
75
+ if (!error || typeof error !== "object")
76
+ return false;
77
+ const code = error.code;
78
+ return code === 1 || code === "1";
79
+ }
80
+ function parseOpenFileProcesses(output) {
81
+ const byPid = new Map();
82
+ let currentPid = 0;
83
+ for (const line of output.split(/\r?\n/)) {
84
+ if (!line)
85
+ continue;
86
+ const field = line[0];
87
+ const value = line.slice(1).trim();
88
+ if (field === "p") {
89
+ const pid = Number.parseInt(value, 10);
90
+ if (!Number.isInteger(pid) || pid <= 0) {
91
+ currentPid = 0;
92
+ continue;
93
+ }
94
+ currentPid = pid;
95
+ if (!byPid.has(pid)) {
96
+ byPid.set(pid, { pid, command: "", user: "" });
97
+ }
98
+ continue;
99
+ }
100
+ if (currentPid <= 0)
101
+ continue;
102
+ const current = byPid.get(currentPid);
103
+ if (!current)
104
+ continue;
105
+ if (field === "c" && !current.command) {
106
+ current.command = value;
107
+ continue;
108
+ }
109
+ if (field === "u" && !current.user) {
110
+ current.user = value;
111
+ }
112
+ }
113
+ return Array.from(byPid.values());
114
+ }
115
+ function parseRunningProcesses(output) {
116
+ const processes = [];
117
+ for (const line of output.split(/\r?\n/)) {
118
+ if (!line.trim())
119
+ continue;
120
+ const match = line.match(/^\s*(\d+)\s+(\S+)\s+(.*)$/);
121
+ if (!match)
122
+ continue;
123
+ const pid = Number.parseInt(match[1] || "", 10);
124
+ if (!Number.isInteger(pid) || pid <= 0)
125
+ continue;
126
+ const user = (match[2] || "").trim();
127
+ const args = (match[3] || "").trim();
128
+ if (!args)
129
+ continue;
130
+ processes.push({ pid, user, args });
131
+ }
132
+ return processes;
133
+ }
134
+ function parseProcessOpenFilePaths(output) {
135
+ const openPaths = [];
136
+ for (const line of output.split(/\r?\n/)) {
137
+ if (!line || line[0] !== "n")
138
+ continue;
139
+ const openPath = line.slice(1).trim();
140
+ if (!openPath)
141
+ continue;
142
+ openPaths.push(openPath);
143
+ }
144
+ return openPaths;
145
+ }
146
+ async function listOpenFileProcesses(filePath) {
147
+ try {
148
+ const { stdout } = await execFileAsync("lsof", ["-n", "-Fpcu", "--", filePath], {
149
+ maxBuffer: 1_024 * 1_024,
150
+ });
151
+ return parseOpenFileProcesses(stdout);
152
+ }
153
+ catch (error) {
154
+ if (isNoOpenFileMatchError(error)) {
155
+ return [];
156
+ }
157
+ throw new Error(`failed to inspect open file handles: ${asErrorMessage(error)}`);
158
+ }
159
+ }
160
+ async function listRunningProcesses() {
161
+ try {
162
+ const { stdout } = await execFileAsync("ps", ["-axo", "pid=,user=,args="], {
163
+ maxBuffer: 8 * 1_024 * 1_024,
164
+ });
165
+ return parseRunningProcesses(stdout);
166
+ }
167
+ catch (error) {
168
+ throw new Error(`failed to inspect running processes: ${asErrorMessage(error)}`);
169
+ }
170
+ }
171
+ async function listProcessCwd(pid) {
172
+ try {
173
+ const { stdout } = await execFileAsync("lsof", ["-a", "-d", "cwd", "-n", "-Fpfn", "-p", String(pid)], {
174
+ maxBuffer: 256 * 1_024,
175
+ });
176
+ for (const line of stdout.split(/\r?\n/)) {
177
+ if (line[0] !== "n")
178
+ continue;
179
+ return line.slice(1).trim();
180
+ }
181
+ return "";
182
+ }
183
+ catch {
184
+ return "";
185
+ }
186
+ }
187
+ async function listProcessOpenFilePaths(pid) {
188
+ try {
189
+ const { stdout } = await execFileAsync("lsof", ["-n", "-Fn", "-p", String(pid)], {
190
+ maxBuffer: 2 * 1_024 * 1_024,
191
+ });
192
+ return parseProcessOpenFilePaths(stdout);
193
+ }
194
+ catch {
195
+ return [];
196
+ }
197
+ }
198
+ function normalizeTtyPath(value) {
199
+ const trimmed = value.trim();
200
+ if (!trimmed || trimmed === "?")
201
+ return "";
202
+ return trimmed.startsWith("/dev/") ? trimmed : `/dev/${trimmed.replace(/^\/+/, "")}`;
203
+ }
204
+ async function listProcessTty(pid) {
205
+ try {
206
+ const { stdout } = await execFileAsync("ps", ["-p", String(pid), "-o", "tty="], {
207
+ maxBuffer: 64 * 1_024,
208
+ });
209
+ return normalizeTtyPath(stdout);
210
+ }
211
+ catch {
212
+ return "";
213
+ }
214
+ }
215
+ async function listProcessStartMs(pid) {
216
+ try {
217
+ const { stdout } = await execFileAsync("ps", ["-p", String(pid), "-o", "lstart="], {
218
+ maxBuffer: 64 * 1_024,
219
+ });
220
+ const parsed = Date.parse(stdout.trim());
221
+ return Number.isFinite(parsed) ? parsed : 0;
222
+ }
223
+ catch {
224
+ return 0;
225
+ }
226
+ }
227
+ function tmuxArgs(socketPath, args) {
228
+ if (!socketPath)
229
+ return args;
230
+ return ["-S", socketPath, ...args];
231
+ }
232
+ async function runTmux(socketPath, args, maxBuffer = 64 * 1_024) {
233
+ const { stdout } = await execFileAsync("tmux", tmuxArgs(socketPath, args), {
234
+ maxBuffer,
235
+ });
236
+ return stdout;
237
+ }
238
+ function parseTmuxPanes(output, socketPath) {
239
+ const panes = [];
240
+ for (const line of output.split(/\r?\n/)) {
241
+ if (!line.trim())
242
+ continue;
243
+ const [tmuxSession = "", windowIndexRaw = "", paneIndexRaw = "", paneTtyRaw = ""] = line.split("\t");
244
+ const windowIndex = Number.parseInt(windowIndexRaw, 10);
245
+ const paneIndex = Number.parseInt(paneIndexRaw, 10);
246
+ const paneTty = normalizeTtyPath(paneTtyRaw);
247
+ if (!tmuxSession || !Number.isInteger(windowIndex) || !Number.isInteger(paneIndex) || !paneTty)
248
+ continue;
249
+ panes.push({
250
+ socketPath,
251
+ tmuxSession,
252
+ windowIndex,
253
+ paneIndex,
254
+ paneTty,
255
+ });
256
+ }
257
+ return panes;
258
+ }
259
+ export function parseTmuxClients(output) {
260
+ const clients = [];
261
+ for (const line of output.split(/\r?\n/)) {
262
+ if (!line.trim())
263
+ continue;
264
+ const [ttyRaw = "", activityRaw = "", sessionName = "", flagsRaw = ""] = line.split("\t");
265
+ const tty = normalizeTtyPath(ttyRaw);
266
+ if (!tty)
267
+ continue;
268
+ const activityEpoch = Number.parseInt(activityRaw, 10);
269
+ const flags = flagsRaw
270
+ .split(",")
271
+ .map((flag) => flag.trim())
272
+ .filter(Boolean);
273
+ clients.push({
274
+ tty,
275
+ activityEpoch: Number.isFinite(activityEpoch) ? activityEpoch : 0,
276
+ sessionName: sessionName.trim(),
277
+ flags,
278
+ isFocused: flags.includes("focused"),
279
+ });
280
+ }
281
+ return clients;
282
+ }
283
+ export function selectPreferredTmuxClient(clients, targetSession) {
284
+ if (clients.length === 0)
285
+ return null;
286
+ const sorted = [...clients].sort((left, right) => {
287
+ if (right.isFocused !== left.isFocused)
288
+ return Number(right.isFocused) - Number(left.isFocused);
289
+ if (right.activityEpoch !== left.activityEpoch)
290
+ return right.activityEpoch - left.activityEpoch;
291
+ return left.tty.localeCompare(right.tty);
292
+ });
293
+ const normalizedTargetSession = targetSession.trim();
294
+ if (!normalizedTargetSession)
295
+ return sorted[0] ?? null;
296
+ const focusedSwitchingCandidate = sorted.find((client) => client.isFocused && client.sessionName !== normalizedTargetSession);
297
+ if (focusedSwitchingCandidate)
298
+ return focusedSwitchingCandidate;
299
+ const focusedCandidate = sorted.find((client) => client.isFocused);
300
+ if (focusedCandidate)
301
+ return focusedCandidate;
302
+ const switchingCandidate = sorted.find((client) => client.sessionName !== normalizedTargetSession);
303
+ return switchingCandidate ?? sorted[0] ?? null;
304
+ }
305
+ function orderTmuxClientsForSwitch(clients, preferredClient) {
306
+ const byTty = new Map();
307
+ for (const client of clients) {
308
+ if (!client.tty)
309
+ continue;
310
+ byTty.set(client.tty, client);
311
+ }
312
+ const sorted = Array.from(byTty.values()).sort((left, right) => {
313
+ if (right.isFocused !== left.isFocused)
314
+ return Number(right.isFocused) - Number(left.isFocused);
315
+ if (right.activityEpoch !== left.activityEpoch)
316
+ return right.activityEpoch - left.activityEpoch;
317
+ return left.tty.localeCompare(right.tty);
318
+ });
319
+ const preferredIndex = sorted.findIndex((candidate) => candidate.tty === preferredClient.tty);
320
+ if (preferredIndex > 0) {
321
+ const [candidate] = sorted.splice(preferredIndex, 1);
322
+ if (candidate)
323
+ sorted.unshift(candidate);
324
+ }
325
+ return sorted;
326
+ }
327
+ function discoverTmuxSocketPaths(identity) {
328
+ const candidates = new Set();
329
+ const bases = [`/tmp/tmux-${identity.uid}`, `/private/tmp/tmux-${identity.uid}`];
330
+ for (const base of bases) {
331
+ if (!identity.uid || !existsSync(base))
332
+ continue;
333
+ try {
334
+ for (const entry of readdirSync(base)) {
335
+ const socketPath = path.join(base, entry);
336
+ candidates.add(socketPath);
337
+ }
338
+ }
339
+ catch {
340
+ // Ignore unreadable socket directories.
341
+ }
342
+ }
343
+ if (candidates.size === 0) {
344
+ candidates.add("");
345
+ }
346
+ return Array.from(candidates.values());
347
+ }
348
+ async function listTmuxPanes(identity) {
349
+ const scannedSockets = discoverTmuxSocketPaths(identity);
350
+ const panes = [];
351
+ for (const socketPath of scannedSockets) {
352
+ try {
353
+ const stdout = await runTmux(socketPath, ["list-panes", "-a", "-F", "#{session_name}\t#{window_index}\t#{pane_index}\t#{pane_tty}"], 512 * 1_024);
354
+ panes.push(...parseTmuxPanes(stdout, socketPath));
355
+ }
356
+ catch {
357
+ // Ignore stale/non-running tmux sockets.
358
+ }
359
+ }
360
+ return {
361
+ panes,
362
+ scannedSockets,
363
+ };
364
+ }
365
+ async function listTmuxClients(socketPath) {
366
+ try {
367
+ const stdout = await runTmux(socketPath, ["list-clients", "-F", "#{client_tty}\t#{client_activity}\t#{session_name}\t#{client_flags}"], 128 * 1_024);
368
+ return parseTmuxClients(stdout);
369
+ }
370
+ catch {
371
+ return [];
372
+ }
373
+ }
374
+ async function listTmuxClientsWithFocusWarmup(socketPath) {
375
+ const initialClients = await listTmuxClients(socketPath);
376
+ if (initialClients.some((client) => client.isFocused)) {
377
+ return initialClients;
378
+ }
379
+ await delay(120);
380
+ const warmedClients = await listTmuxClients(socketPath);
381
+ return warmedClients.length > 0 ? warmedClients : initialClients;
382
+ }
383
+ async function focusTmuxPane(target) {
384
+ const clients = await listTmuxClientsWithFocusWarmup(target.socketPath);
385
+ const preferredClient = selectPreferredTmuxClient(clients, target.tmuxSession);
386
+ if (!preferredClient) {
387
+ throw new Error("no attached tmux clients");
388
+ }
389
+ await runTmux(target.socketPath, ["select-window", "-t", `${target.tmuxSession}:${target.windowIndex}`]);
390
+ await runTmux(target.socketPath, ["select-pane", "-t", `${target.tmuxSession}:${target.windowIndex}.${target.paneIndex}`]);
391
+ const orderedClients = orderTmuxClientsForSwitch(clients, preferredClient);
392
+ const switchedClients = [];
393
+ for (const client of orderedClients) {
394
+ try {
395
+ await runTmux(target.socketPath, ["switch-client", "-c", client.tty, "-t", target.tmuxSession]);
396
+ await runTmux(target.socketPath, ["refresh-client", "-t", client.tty]);
397
+ switchedClients.push(client.tty);
398
+ }
399
+ catch {
400
+ // Ignore clients that disappear while switching.
401
+ }
402
+ }
403
+ if (switchedClients.length === 0) {
404
+ throw new Error("failed to switch any attached tmux client");
405
+ }
406
+ return {
407
+ focusedClient: preferredClient.tty,
408
+ previousSession: preferredClient.sessionName,
409
+ switchedClients,
410
+ preferredWasFocused: preferredClient.isFocused,
411
+ };
412
+ }
413
+ function isGhosttyFrontmost(name) {
414
+ return name.trim().toLowerCase().includes("ghostty");
415
+ }
416
+ async function frontmostAppName() {
417
+ try {
418
+ const { stdout } = await execFileAsync("osascript", ["-e", 'tell application "System Events" to get name of first process whose frontmost is true'], {
419
+ maxBuffer: 64 * 1_024,
420
+ });
421
+ return stdout.trim();
422
+ }
423
+ catch {
424
+ return "";
425
+ }
426
+ }
427
+ async function waitForGhosttyFrontmost() {
428
+ let observed = "";
429
+ for (let index = 0; index < 4; index += 1) {
430
+ observed = await frontmostAppName();
431
+ if (isGhosttyFrontmost(observed))
432
+ return observed;
433
+ await delay(80);
434
+ }
435
+ return observed;
436
+ }
437
+ async function activateGhostty() {
438
+ const strategies = [
439
+ {
440
+ method: "app_id_activate",
441
+ run: async () => {
442
+ await execFileAsync("osascript", ["-e", 'tell application id "com.mitchellh.ghostty" to activate'], {
443
+ maxBuffer: 64 * 1_024,
444
+ });
445
+ },
446
+ },
447
+ {
448
+ method: "app_name_activate",
449
+ run: async () => {
450
+ await execFileAsync("osascript", ["-e", 'tell application "Ghostty" to activate'], {
451
+ maxBuffer: 64 * 1_024,
452
+ });
453
+ },
454
+ },
455
+ {
456
+ method: "open_app",
457
+ run: async () => {
458
+ await execFileAsync("open", ["-a", "Ghostty"], {
459
+ maxBuffer: 64 * 1_024,
460
+ });
461
+ },
462
+ },
463
+ ];
464
+ let lastError = "";
465
+ let lastFrontmost = "";
466
+ for (const strategy of strategies) {
467
+ try {
468
+ await strategy.run();
469
+ const frontmost = await waitForGhosttyFrontmost();
470
+ if (isGhosttyFrontmost(frontmost)) {
471
+ return {
472
+ method: strategy.method,
473
+ frontmostApp: frontmost,
474
+ };
475
+ }
476
+ lastFrontmost = frontmost;
477
+ }
478
+ catch (error) {
479
+ lastError = asErrorMessage(error);
480
+ }
481
+ }
482
+ const frontmost = lastFrontmost || (await frontmostAppName()) || "unknown";
483
+ const suffix = lastError ? `; last activation error: ${lastError}` : "";
484
+ throw new Error(`Ghostty did not become frontmost (frontmost: ${frontmost}${suffix})`);
485
+ }
486
+ function currentUserIdentity() {
487
+ try {
488
+ const userInfo = os.userInfo();
489
+ return { username: userInfo.username, uid: String(userInfo.uid) };
490
+ }
491
+ catch {
492
+ return { username: "", uid: "" };
493
+ }
494
+ }
495
+ export function matchesCurrentUser(userField, identity) {
496
+ const candidate = userField.trim();
497
+ if (!candidate)
498
+ return true;
499
+ if (!identity.username && !identity.uid)
500
+ return true;
501
+ return candidate === identity.username || candidate === identity.uid;
502
+ }
503
+ function normalizeCommand(command) {
504
+ return command.trim().toLowerCase();
505
+ }
506
+ function isOpenCodeServeCommand(command) {
507
+ const normalized = normalizeCommand(command);
508
+ if (!normalized)
509
+ return false;
510
+ if (!/\bopencode\b/.test(normalized))
511
+ return false;
512
+ return /\bserve\b/.test(normalized);
513
+ }
514
+ function isExcludedAgentCommand(command, agent) {
515
+ if (agent !== "opencode")
516
+ return false;
517
+ return isOpenCodeServeCommand(command);
518
+ }
519
+ function commandMatchesAgent(command, agent) {
520
+ const normalized = normalizeCommand(command);
521
+ if (!normalized)
522
+ return false;
523
+ if (agent === "codex")
524
+ return /\bcodex\b/.test(normalized);
525
+ if (agent === "claude")
526
+ return /\bclaude\b/.test(normalized);
527
+ if (agent === "cursor")
528
+ return /\bcursor\b/.test(normalized);
529
+ if (agent === "gemini")
530
+ return /\bgemini\b/.test(normalized);
531
+ if (agent === "opencode")
532
+ return /\bopencode\b/.test(normalized);
533
+ return false;
534
+ }
535
+ export function selectOpenFileProcessPids(input) {
536
+ const sameUserCandidates = input.openFileProcesses.filter((candidate) => {
537
+ if (candidate.pid === input.requesterPid)
538
+ return false;
539
+ return matchesCurrentUser(candidate.user, input.identity);
540
+ });
541
+ if (sameUserCandidates.length === 0)
542
+ return [];
543
+ const normalizedSessionId = input.summary.sessionId.trim().toLowerCase();
544
+ const agentCandidates = sameUserCandidates.filter((candidate) => {
545
+ const resolvedCommand = input.argsByPid.get(candidate.pid) ?? candidate.command;
546
+ if (!commandMatchesAgent(resolvedCommand, input.summary.agent))
547
+ return false;
548
+ if (isExcludedAgentCommand(resolvedCommand, input.summary.agent))
549
+ return false;
550
+ return true;
551
+ });
552
+ if (agentCandidates.length > 0) {
553
+ if (normalizedSessionId) {
554
+ const sessionCandidates = agentCandidates.filter((candidate) => {
555
+ const resolvedCommand = input.argsByPid.get(candidate.pid) ?? candidate.command;
556
+ return normalizeCommand(resolvedCommand).includes(normalizedSessionId);
557
+ });
558
+ if (sessionCandidates.length > 0) {
559
+ return uniquePids(sessionCandidates.map((candidate) => candidate.pid));
560
+ }
561
+ }
562
+ if (agentCandidates.length === 1) {
563
+ return uniquePids([agentCandidates[0]?.pid ?? 0]);
564
+ }
565
+ return uniquePids(agentCandidates.map((candidate) => candidate.pid));
566
+ }
567
+ if (sameUserCandidates.length === 1) {
568
+ return uniquePids([sameUserCandidates[0]?.pid ?? 0]);
569
+ }
570
+ return [];
571
+ }
572
+ export function extractClaudeDebugProcessPid(logContent) {
573
+ let resolvedPid = 0;
574
+ for (const line of logContent.split(/\r?\n/)) {
575
+ if (!line)
576
+ continue;
577
+ const tmpWriteMatch = line.match(/\.claude\.json\.tmp\.(\d+)\./);
578
+ if (tmpWriteMatch) {
579
+ const parsed = Number.parseInt(tmpWriteMatch[1] ?? "", 10);
580
+ if (Number.isInteger(parsed) && parsed > 0) {
581
+ resolvedPid = parsed;
582
+ }
583
+ continue;
584
+ }
585
+ if (!line.includes("Acquired PID lock"))
586
+ continue;
587
+ const lockMatch = line.match(/\(PID\s+(\d+)\)/);
588
+ if (!lockMatch)
589
+ continue;
590
+ const parsed = Number.parseInt(lockMatch[1] ?? "", 10);
591
+ if (Number.isInteger(parsed) && parsed > 0) {
592
+ resolvedPid = parsed;
593
+ }
594
+ }
595
+ return resolvedPid;
596
+ }
597
+ async function readClaudeDebugTail(sessionId) {
598
+ const filePath = path.join(os.homedir(), ".claude", "debug", `${sessionId}.txt`);
599
+ if (!existsSync(filePath))
600
+ return "";
601
+ try {
602
+ const { stdout } = await execFileAsync("tail", ["-n", "500", filePath], {
603
+ maxBuffer: 512 * 1_024,
604
+ });
605
+ if (stdout.trim())
606
+ return stdout;
607
+ }
608
+ catch {
609
+ // Fall through to full-file read below.
610
+ }
611
+ try {
612
+ return readFileSync(filePath, "utf8");
613
+ }
614
+ catch {
615
+ return "";
616
+ }
617
+ }
618
+ async function findClaudeProcessPidByDebugLog(summary, identity, requesterPid) {
619
+ const sessionId = summary.sessionId.trim();
620
+ if (!sessionId)
621
+ return [];
622
+ const debugTail = await readClaudeDebugTail(sessionId);
623
+ if (!debugTail)
624
+ return [];
625
+ const debugPid = extractClaudeDebugProcessPid(debugTail);
626
+ if (!debugPid || debugPid === requesterPid)
627
+ return [];
628
+ if (!isProcessAlive(debugPid))
629
+ return [];
630
+ const runningProcesses = await listRunningProcesses();
631
+ const matchedProcess = runningProcesses.find((processInfo) => processInfo.pid === debugPid);
632
+ if (!matchedProcess)
633
+ return [];
634
+ if (!matchesCurrentUser(matchedProcess.user, identity))
635
+ return [];
636
+ if (!commandMatchesAgent(matchedProcess.args, "claude"))
637
+ return [];
638
+ const projectKey = claudeProjectKeyFromTracePath(summary.path);
639
+ if (projectKey) {
640
+ const processCwd = await listProcessCwd(debugPid);
641
+ if (claudeProjectKeyFromCwd(processCwd) !== projectKey)
642
+ return [];
643
+ }
644
+ return [debugPid];
645
+ }
646
+ export function claudeProjectKeyFromTracePath(tracePath) {
647
+ const normalizedPath = tracePath.replace(/\\/g, "/");
648
+ const marker = "/.claude/projects/";
649
+ const markerIndex = normalizedPath.indexOf(marker);
650
+ if (markerIndex < 0)
651
+ return "";
652
+ const tail = normalizedPath.slice(markerIndex + marker.length);
653
+ const nextSlashIndex = tail.indexOf("/");
654
+ if (nextSlashIndex <= 0)
655
+ return "";
656
+ return tail.slice(0, nextSlashIndex);
657
+ }
658
+ export function claudeProjectKeyFromCwd(cwd) {
659
+ const normalized = cwd.trim().replace(/\\/g, "/");
660
+ if (!normalized)
661
+ return "";
662
+ const absolute = normalized.startsWith("/") ? normalized : `/${normalized}`;
663
+ return absolute.replace(/[^A-Za-z0-9]+/g, "-");
664
+ }
665
+ export function cursorProjectKeyFromTracePath(tracePath) {
666
+ const normalizedPath = tracePath.replace(/\\/g, "/");
667
+ const marker = "/.cursor/projects/";
668
+ const markerIndex = normalizedPath.indexOf(marker);
669
+ if (markerIndex < 0)
670
+ return "";
671
+ const tail = normalizedPath.slice(markerIndex + marker.length);
672
+ const projectKey = tail.split("/", 1)[0] ?? "";
673
+ return projectKey.trim().toLowerCase();
674
+ }
675
+ export function cursorProjectKeyFromCwd(cwd) {
676
+ const normalized = cwd.trim().replace(/\\/g, "/");
677
+ if (!normalized)
678
+ return "";
679
+ return normalized
680
+ .replace(/^\/+/, "")
681
+ .replace(/[^A-Za-z0-9]+/g, "-")
682
+ .replace(/^-+|-+$/g, "")
683
+ .toLowerCase();
684
+ }
685
+ export function geminiProjectHashFromTracePath(tracePath) {
686
+ const projectHash = geminiProjectKeyFromTracePath(tracePath);
687
+ if (!/^[a-f0-9]{64}$/.test(projectHash))
688
+ return "";
689
+ return projectHash;
690
+ }
691
+ export function geminiProjectKeyFromTracePath(tracePath) {
692
+ const normalizedPath = tracePath.replace(/\\/g, "/");
693
+ const marker = "/.gemini/tmp/";
694
+ const markerIndex = normalizedPath.indexOf(marker);
695
+ if (markerIndex < 0)
696
+ return "";
697
+ const tail = normalizedPath.slice(markerIndex + marker.length);
698
+ const projectKey = (tail.split("/", 1)[0] ?? "").trim().toLowerCase();
699
+ if (!projectKey)
700
+ return "";
701
+ return projectKey;
702
+ }
703
+ export function geminiProjectHashesFromCwd(cwd) {
704
+ const trimmed = cwd.trim();
705
+ if (!trimmed)
706
+ return [];
707
+ const normalized = trimmed.replace(/\\/g, "/").replace(/\/+$/g, "");
708
+ const candidates = [trimmed, normalized].map((value) => value.trim()).filter((value) => value.length > 0);
709
+ const uniqueValues = Array.from(new Set(candidates));
710
+ return uniqueValues.map((value) => createHash("sha256").update(value).digest("hex"));
711
+ }
712
+ export function geminiProjectSlugsFromCwd(cwd) {
713
+ const trimmed = cwd.trim();
714
+ if (!trimmed)
715
+ return [];
716
+ const normalized = trimmed.replace(/\\/g, "/").replace(/\/+$/g, "");
717
+ if (!normalized)
718
+ return [];
719
+ const basename = normalized.split("/").filter(Boolean).at(-1) ?? "";
720
+ const slugify = (value) => value
721
+ .trim()
722
+ .replace(/[^A-Za-z0-9]+/g, "-")
723
+ .replace(/^-+|-+$/g, "")
724
+ .toLowerCase();
725
+ const slugs = [slugify(basename), slugify(normalized)].filter((value) => value.length > 0);
726
+ return Array.from(new Set(slugs));
727
+ }
728
+ function geminiProjectKeyMatchesCwd(projectKey, cwd) {
729
+ const normalizedKey = projectKey.trim().toLowerCase();
730
+ if (!normalizedKey)
731
+ return false;
732
+ if (/^[a-f0-9]{64}$/.test(normalizedKey)) {
733
+ return geminiProjectHashesFromCwd(cwd).includes(normalizedKey);
734
+ }
735
+ return geminiProjectSlugsFromCwd(cwd).includes(normalizedKey);
736
+ }
737
+ export function extractCursorSessionIdsFromOpenPaths(openPaths) {
738
+ const sessionIds = new Set();
739
+ for (const openPath of openPaths) {
740
+ const normalizedPath = openPath.replace(/\\/g, "/");
741
+ const match = normalizedPath.match(/\/\.cursor\/chats\/[^/]+\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\/store\.db(?:-wal|-shm)?$/i);
742
+ if (!match || !match[1])
743
+ continue;
744
+ sessionIds.add(match[1].toLowerCase());
745
+ }
746
+ return Array.from(sessionIds.values());
747
+ }
748
+ export function extractOpenCodeSessionIdsFromLogContent(logContent) {
749
+ const sessionIds = new Set();
750
+ const matcher = /sessionID=(ses_[A-Za-z0-9]+)/g;
751
+ for (;;) {
752
+ const match = matcher.exec(logContent);
753
+ if (!match)
754
+ break;
755
+ const sessionId = (match[1] ?? "").trim();
756
+ if (!sessionId)
757
+ continue;
758
+ sessionIds.add(sessionId);
759
+ }
760
+ return Array.from(sessionIds.values());
761
+ }
762
+ export function geminiLogsContainSessionId(logContent, sessionId) {
763
+ const normalizedSessionId = sessionId.trim().toLowerCase();
764
+ if (!normalizedSessionId)
765
+ return false;
766
+ try {
767
+ const parsed = JSON.parse(logContent);
768
+ if (Array.isArray(parsed)) {
769
+ return parsed.some((entry) => {
770
+ if (!entry || typeof entry !== "object")
771
+ return false;
772
+ const candidate = entry.sessionId;
773
+ return typeof candidate === "string" && candidate.trim().toLowerCase() === normalizedSessionId;
774
+ });
775
+ }
776
+ }
777
+ catch {
778
+ // Fall through to string matching for malformed logs.
779
+ }
780
+ return logContent.toLowerCase().includes(normalizedSessionId);
781
+ }
782
+ export function selectClaudeProjectProcessPids(summary, processes, identity, requesterPid) {
783
+ const projectKey = claudeProjectKeyFromTracePath(summary.path);
784
+ if (!projectKey)
785
+ return [];
786
+ const sameUserAgentCandidates = processes.filter((processInfo) => {
787
+ if (processInfo.pid === requesterPid)
788
+ return false;
789
+ if (!matchesCurrentUser(processInfo.user, identity))
790
+ return false;
791
+ return commandMatchesAgent(processInfo.args, "claude");
792
+ });
793
+ if (sameUserAgentCandidates.length === 0)
794
+ return [];
795
+ const projectCandidates = sameUserAgentCandidates.filter((processInfo) => claudeProjectKeyFromCwd(processInfo.cwd) === projectKey);
796
+ if (projectCandidates.length === 0)
797
+ return [];
798
+ const sessionId = summary.sessionId.trim();
799
+ if (sessionId) {
800
+ const normalizedSessionId = sessionId.toLowerCase();
801
+ const sessionCandidates = projectCandidates.filter((processInfo) => normalizeCommand(processInfo.args).includes(normalizedSessionId));
802
+ if (sessionCandidates.length > 0) {
803
+ return uniquePids(sessionCandidates.map((processInfo) => processInfo.pid));
804
+ }
805
+ }
806
+ if (projectCandidates.length === 1) {
807
+ return uniquePids([projectCandidates[0]?.pid ?? 0]);
808
+ }
809
+ return [];
810
+ }
811
+ export function selectAgentProjectProcessPids(processCwd, sessionId, agent, processes, identity, requesterPid) {
812
+ const projectKey = claudeProjectKeyFromCwd(processCwd);
813
+ if (!projectKey)
814
+ return [];
815
+ const sameUserAgentCandidates = processes.filter((processInfo) => {
816
+ if (processInfo.pid === requesterPid)
817
+ return false;
818
+ if (!matchesCurrentUser(processInfo.user, identity))
819
+ return false;
820
+ if (!commandMatchesAgent(processInfo.args, agent))
821
+ return false;
822
+ if (isExcludedAgentCommand(processInfo.args, agent))
823
+ return false;
824
+ return true;
825
+ });
826
+ if (sameUserAgentCandidates.length === 0)
827
+ return [];
828
+ const projectCandidates = sameUserAgentCandidates.filter((processInfo) => claudeProjectKeyFromCwd(processInfo.cwd) === projectKey);
829
+ if (projectCandidates.length === 0)
830
+ return [];
831
+ const normalizedSessionId = sessionId.trim().toLowerCase();
832
+ if (normalizedSessionId) {
833
+ const sessionCandidates = projectCandidates.filter((processInfo) => normalizeCommand(processInfo.args).includes(normalizedSessionId));
834
+ if (sessionCandidates.length > 0) {
835
+ return uniquePids(sessionCandidates.map((processInfo) => processInfo.pid));
836
+ }
837
+ }
838
+ if (projectCandidates.length === 1) {
839
+ return uniquePids([projectCandidates[0]?.pid ?? 0]);
840
+ }
841
+ return [];
842
+ }
843
+ export function selectAgentProcessPidsBySessionId(sessionId, agent, processes, identity, requesterPid) {
844
+ const sameUserAgentCandidates = processes.filter((processInfo) => {
845
+ if (processInfo.pid === requesterPid)
846
+ return false;
847
+ if (!matchesCurrentUser(processInfo.user, identity))
848
+ return false;
849
+ if (!commandMatchesAgent(processInfo.args, agent))
850
+ return false;
851
+ if (isExcludedAgentCommand(processInfo.args, agent))
852
+ return false;
853
+ return true;
854
+ });
855
+ if (sameUserAgentCandidates.length === 0)
856
+ return [];
857
+ const normalizedSessionId = sessionId.trim().toLowerCase();
858
+ if (normalizedSessionId) {
859
+ const sessionCandidates = sameUserAgentCandidates.filter((processInfo) => normalizeCommand(processInfo.args).includes(normalizedSessionId));
860
+ if (sessionCandidates.length > 0) {
861
+ return uniquePids(sessionCandidates.map((processInfo) => processInfo.pid));
862
+ }
863
+ }
864
+ if (sameUserAgentCandidates.length === 1) {
865
+ return uniquePids([sameUserAgentCandidates[0]?.pid ?? 0]);
866
+ }
867
+ return [];
868
+ }
869
+ export function selectCursorProjectProcessPids(summary, processes, identity, requesterPid) {
870
+ const projectKey = cursorProjectKeyFromTracePath(summary.path);
871
+ if (!projectKey)
872
+ return [];
873
+ const sameUserCursorCandidates = processes.filter((processInfo) => {
874
+ if (processInfo.pid === requesterPid)
875
+ return false;
876
+ if (!matchesCurrentUser(processInfo.user, identity))
877
+ return false;
878
+ return commandMatchesAgent(processInfo.args, "cursor");
879
+ });
880
+ if (sameUserCursorCandidates.length === 0)
881
+ return [];
882
+ const projectCandidates = sameUserCursorCandidates.filter((processInfo) => cursorProjectKeyFromCwd(processInfo.cwd) === projectKey);
883
+ if (projectCandidates.length === 0)
884
+ return [];
885
+ const normalizedSessionId = summary.sessionId.trim().toLowerCase();
886
+ if (normalizedSessionId) {
887
+ const sessionCandidates = projectCandidates.filter((processInfo) => normalizeCommand(processInfo.args).includes(normalizedSessionId));
888
+ if (sessionCandidates.length > 0) {
889
+ return uniquePids(sessionCandidates.map((processInfo) => processInfo.pid));
890
+ }
891
+ }
892
+ if (projectCandidates.length === 1) {
893
+ return uniquePids([projectCandidates[0]?.pid ?? 0]);
894
+ }
895
+ return [];
896
+ }
897
+ export function selectGeminiProjectProcessPids(summary, processes, identity, requesterPid) {
898
+ const projectKey = geminiProjectKeyFromTracePath(summary.path);
899
+ if (!projectKey)
900
+ return [];
901
+ const sameUserGeminiCandidates = processes.filter((processInfo) => {
902
+ if (processInfo.pid === requesterPid)
903
+ return false;
904
+ if (!matchesCurrentUser(processInfo.user, identity))
905
+ return false;
906
+ return commandMatchesAgent(processInfo.args, "gemini");
907
+ });
908
+ if (sameUserGeminiCandidates.length === 0)
909
+ return [];
910
+ const projectCandidates = sameUserGeminiCandidates.filter((processInfo) => geminiProjectKeyMatchesCwd(projectKey, processInfo.cwd));
911
+ if (projectCandidates.length === 0)
912
+ return [];
913
+ const normalizedSessionId = summary.sessionId.trim().toLowerCase();
914
+ if (normalizedSessionId) {
915
+ const sessionCandidates = projectCandidates.filter((processInfo) => normalizeCommand(processInfo.args).includes(normalizedSessionId));
916
+ if (sessionCandidates.length > 0) {
917
+ return uniquePids(sessionCandidates.map((processInfo) => processInfo.pid));
918
+ }
919
+ }
920
+ if (projectCandidates.length === 1) {
921
+ return uniquePids([projectCandidates[0]?.pid ?? 0]);
922
+ }
923
+ return [];
924
+ }
925
+ async function findClaudeProjectProcessPids(summary, identity, requesterPid) {
926
+ const projectKey = claudeProjectKeyFromTracePath(summary.path);
927
+ if (!projectKey)
928
+ return [];
929
+ const runningProcesses = await listRunningProcesses();
930
+ const claudeProcesses = runningProcesses.filter((processInfo) => {
931
+ if (processInfo.pid === requesterPid)
932
+ return false;
933
+ if (!matchesCurrentUser(processInfo.user, identity))
934
+ return false;
935
+ return commandMatchesAgent(processInfo.args, "claude");
936
+ });
937
+ if (claudeProcesses.length === 0)
938
+ return [];
939
+ const withCwd = await Promise.all(claudeProcesses.map(async (processInfo) => ({
940
+ ...processInfo,
941
+ cwd: await listProcessCwd(processInfo.pid),
942
+ })));
943
+ return selectClaudeProjectProcessPids(summary, withCwd, identity, requesterPid);
944
+ }
945
+ async function findAgentProjectProcessPids(sessionCwd, sessionId, agent, identity, requesterPid) {
946
+ const projectKey = claudeProjectKeyFromCwd(sessionCwd);
947
+ if (!projectKey)
948
+ return [];
949
+ const runningProcesses = await listRunningProcesses();
950
+ const agentProcesses = runningProcesses.filter((processInfo) => {
951
+ if (processInfo.pid === requesterPid)
952
+ return false;
953
+ if (!matchesCurrentUser(processInfo.user, identity))
954
+ return false;
955
+ if (!commandMatchesAgent(processInfo.args, agent))
956
+ return false;
957
+ if (isExcludedAgentCommand(processInfo.args, agent))
958
+ return false;
959
+ return true;
960
+ });
961
+ if (agentProcesses.length === 0)
962
+ return [];
963
+ const withCwd = await Promise.all(agentProcesses.map(async (processInfo) => ({
964
+ ...processInfo,
965
+ cwd: await listProcessCwd(processInfo.pid),
966
+ })));
967
+ return selectAgentProjectProcessPids(sessionCwd, sessionId, agent, withCwd, identity, requesterPid);
968
+ }
969
+ async function findAgentProcessPidsBySessionId(sessionId, agent, identity, requesterPid) {
970
+ const runningProcesses = await listRunningProcesses();
971
+ return selectAgentProcessPidsBySessionId(sessionId, agent, runningProcesses, identity, requesterPid);
972
+ }
973
+ async function findCursorProjectProcessPids(summary, identity, requesterPid) {
974
+ const projectKey = cursorProjectKeyFromTracePath(summary.path);
975
+ if (!projectKey)
976
+ return [];
977
+ const runningProcesses = await listRunningProcesses();
978
+ const cursorProcesses = runningProcesses.filter((processInfo) => {
979
+ if (processInfo.pid === requesterPid)
980
+ return false;
981
+ if (!matchesCurrentUser(processInfo.user, identity))
982
+ return false;
983
+ return commandMatchesAgent(processInfo.args, "cursor");
984
+ });
985
+ if (cursorProcesses.length === 0)
986
+ return [];
987
+ const withCwd = await Promise.all(cursorProcesses.map(async (processInfo) => ({
988
+ ...processInfo,
989
+ cwd: await listProcessCwd(processInfo.pid),
990
+ })));
991
+ return selectCursorProjectProcessPids(summary, withCwd, identity, requesterPid);
992
+ }
993
+ async function findGeminiProjectProcessPids(summary, identity, requesterPid) {
994
+ const projectKey = geminiProjectKeyFromTracePath(summary.path);
995
+ if (!projectKey)
996
+ return [];
997
+ const runningProcesses = await listRunningProcesses();
998
+ const geminiProcesses = runningProcesses.filter((processInfo) => {
999
+ if (processInfo.pid === requesterPid)
1000
+ return false;
1001
+ if (!matchesCurrentUser(processInfo.user, identity))
1002
+ return false;
1003
+ return commandMatchesAgent(processInfo.args, "gemini");
1004
+ });
1005
+ if (geminiProcesses.length === 0)
1006
+ return [];
1007
+ const withCwd = await Promise.all(geminiProcesses.map(async (processInfo) => ({
1008
+ ...processInfo,
1009
+ cwd: await listProcessCwd(processInfo.pid),
1010
+ })));
1011
+ return selectGeminiProjectProcessPids(summary, withCwd, identity, requesterPid);
1012
+ }
1013
+ function isOpenCodeLogPath(openPath) {
1014
+ const normalizedPath = openPath.replace(/\\/g, "/");
1015
+ return normalizedPath.includes("/.local/share/opencode/log/") && normalizedPath.endsWith(".log");
1016
+ }
1017
+ async function readTextFileTail(filePath, lines) {
1018
+ try {
1019
+ const { stdout } = await execFileAsync("tail", ["-n", String(Math.max(1, lines)), filePath], {
1020
+ maxBuffer: 512 * 1_024,
1021
+ });
1022
+ if (stdout.trim())
1023
+ return stdout;
1024
+ }
1025
+ catch {
1026
+ // Fall through to whole-file read.
1027
+ }
1028
+ try {
1029
+ return readFileSync(filePath, "utf8");
1030
+ }
1031
+ catch {
1032
+ return "";
1033
+ }
1034
+ }
1035
+ async function findCursorProcessPidsByChatStoreSession(summary, identity, requesterPid) {
1036
+ const normalizedSessionId = summary.sessionId.trim().toLowerCase();
1037
+ if (!normalizedSessionId)
1038
+ return [];
1039
+ const runningProcesses = await listRunningProcesses();
1040
+ const cursorCandidates = runningProcesses.filter((processInfo) => {
1041
+ if (processInfo.pid === requesterPid)
1042
+ return false;
1043
+ if (!matchesCurrentUser(processInfo.user, identity))
1044
+ return false;
1045
+ return commandMatchesAgent(processInfo.args, "cursor");
1046
+ });
1047
+ if (cursorCandidates.length === 0)
1048
+ return [];
1049
+ const matchedPids = [];
1050
+ await Promise.all(cursorCandidates.map(async (processInfo) => {
1051
+ const openPaths = await listProcessOpenFilePaths(processInfo.pid);
1052
+ const sessionIds = extractCursorSessionIdsFromOpenPaths(openPaths);
1053
+ if (sessionIds.includes(normalizedSessionId)) {
1054
+ matchedPids.push(processInfo.pid);
1055
+ }
1056
+ }));
1057
+ return uniquePids(matchedPids);
1058
+ }
1059
+ async function findOpenCodeProcessPidsByLogSession(summary, identity, requesterPid) {
1060
+ const sessionId = summary.sessionId.trim();
1061
+ if (!sessionId)
1062
+ return [];
1063
+ const runningProcesses = await listRunningProcesses();
1064
+ const openCodeCandidates = runningProcesses.filter((processInfo) => {
1065
+ if (processInfo.pid === requesterPid)
1066
+ return false;
1067
+ if (!matchesCurrentUser(processInfo.user, identity))
1068
+ return false;
1069
+ if (!commandMatchesAgent(processInfo.args, "opencode"))
1070
+ return false;
1071
+ if (isExcludedAgentCommand(processInfo.args, "opencode"))
1072
+ return false;
1073
+ return true;
1074
+ });
1075
+ if (openCodeCandidates.length === 0)
1076
+ return [];
1077
+ const matchedPids = [];
1078
+ await Promise.all(openCodeCandidates.map(async (processInfo) => {
1079
+ const openPaths = await listProcessOpenFilePaths(processInfo.pid);
1080
+ const logPaths = openPaths.filter((openPath) => isOpenCodeLogPath(openPath));
1081
+ if (logPaths.length === 0)
1082
+ return;
1083
+ for (const logPath of logPaths) {
1084
+ const logTail = await readTextFileTail(logPath, 800);
1085
+ if (!logTail)
1086
+ continue;
1087
+ if (extractOpenCodeSessionIdsFromLogContent(logTail).includes(sessionId)) {
1088
+ matchedPids.push(processInfo.pid);
1089
+ return;
1090
+ }
1091
+ let fullContent = "";
1092
+ try {
1093
+ fullContent = readFileSync(logPath, "utf8");
1094
+ }
1095
+ catch {
1096
+ fullContent = "";
1097
+ }
1098
+ if (fullContent && extractOpenCodeSessionIdsFromLogContent(fullContent).includes(sessionId)) {
1099
+ matchedPids.push(processInfo.pid);
1100
+ return;
1101
+ }
1102
+ }
1103
+ }));
1104
+ return uniquePids(matchedPids);
1105
+ }
1106
+ async function findGeminiProcessPidsByProjectLog(summary, identity, requesterPid) {
1107
+ const projectKey = geminiProjectKeyFromTracePath(summary.path);
1108
+ const sessionId = summary.sessionId.trim();
1109
+ if (!projectKey || !sessionId)
1110
+ return [];
1111
+ const logsPath = path.join(os.homedir(), ".gemini", "tmp", projectKey, "logs.json");
1112
+ if (!existsSync(logsPath))
1113
+ return [];
1114
+ let content = await readTextFileTail(logsPath, 500);
1115
+ if (!content || !geminiLogsContainSessionId(content, sessionId)) {
1116
+ try {
1117
+ content = readFileSync(logsPath, "utf8");
1118
+ }
1119
+ catch {
1120
+ content = "";
1121
+ }
1122
+ }
1123
+ if (!content || !geminiLogsContainSessionId(content, sessionId))
1124
+ return [];
1125
+ const runningProcesses = await listRunningProcesses();
1126
+ const geminiCandidates = runningProcesses.filter((processInfo) => {
1127
+ if (processInfo.pid === requesterPid)
1128
+ return false;
1129
+ if (!matchesCurrentUser(processInfo.user, identity))
1130
+ return false;
1131
+ return commandMatchesAgent(processInfo.args, "gemini");
1132
+ });
1133
+ if (geminiCandidates.length === 0)
1134
+ return [];
1135
+ const withCwd = await Promise.all(geminiCandidates.map(async (processInfo) => ({
1136
+ ...processInfo,
1137
+ cwd: await listProcessCwd(processInfo.pid),
1138
+ })));
1139
+ const projectCandidates = withCwd.filter((processInfo) => geminiProjectKeyMatchesCwd(projectKey, processInfo.cwd));
1140
+ if (projectCandidates.length === 0)
1141
+ return [];
1142
+ const normalizedSessionId = sessionId.toLowerCase();
1143
+ const sessionArgCandidates = projectCandidates.filter((processInfo) => normalizeCommand(processInfo.args).includes(normalizedSessionId));
1144
+ if (sessionArgCandidates.length > 0) {
1145
+ return uniquePids(sessionArgCandidates.map((processInfo) => processInfo.pid));
1146
+ }
1147
+ return uniquePids(projectCandidates.map((processInfo) => processInfo.pid));
1148
+ }
1149
+ async function excludeOpenCodeServePids(pids) {
1150
+ if (pids.length === 0)
1151
+ return [];
1152
+ try {
1153
+ const runningProcesses = await listRunningProcesses();
1154
+ const argsByPid = new Map();
1155
+ for (const processInfo of runningProcesses) {
1156
+ argsByPid.set(processInfo.pid, processInfo.args);
1157
+ }
1158
+ return pids.filter((pid) => !isOpenCodeServeCommand(argsByPid.get(pid) ?? ""));
1159
+ }
1160
+ catch {
1161
+ // If process listing fails, keep original candidates to avoid false negatives.
1162
+ return pids;
1163
+ }
1164
+ }
1165
+ export function selectPidGroupByNearestTimestamp(candidates, targetTimestampMs) {
1166
+ if (!Number.isFinite(targetTimestampMs) || targetTimestampMs <= 0)
1167
+ return [];
1168
+ const byTty = new Map();
1169
+ for (const candidate of candidates) {
1170
+ if (!candidate.tty || candidate.startedAtMs <= 0)
1171
+ continue;
1172
+ const current = byTty.get(candidate.tty) ?? [];
1173
+ current.push(candidate);
1174
+ byTty.set(candidate.tty, current);
1175
+ }
1176
+ if (byTty.size === 0)
1177
+ return [];
1178
+ const scored = Array.from(byTty.values()).map((group) => {
1179
+ const anchor = Math.min(...group.map((item) => item.startedAtMs));
1180
+ return {
1181
+ group,
1182
+ distance: Math.abs(anchor - targetTimestampMs),
1183
+ anchor,
1184
+ };
1185
+ });
1186
+ scored.sort((left, right) => {
1187
+ if (left.distance !== right.distance)
1188
+ return left.distance - right.distance;
1189
+ if (left.anchor !== right.anchor)
1190
+ return left.anchor - right.anchor;
1191
+ return left.group[0]?.tty.localeCompare(right.group[0]?.tty ?? "") ?? 0;
1192
+ });
1193
+ const best = scored[0];
1194
+ const second = scored[1];
1195
+ if (!best)
1196
+ return [];
1197
+ if (second && second.distance === best.distance)
1198
+ return [];
1199
+ return uniquePids(best.group.map((item) => item.pid));
1200
+ }
1201
+ function geminiSessionAnchorTimestampMs(tracePath) {
1202
+ try {
1203
+ const content = readFileSync(tracePath, "utf8");
1204
+ const parsed = JSON.parse(content);
1205
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
1206
+ return 0;
1207
+ const record = parsed;
1208
+ const parseCandidate = (value) => {
1209
+ if (typeof value !== "string")
1210
+ return 0;
1211
+ const parsedValue = Date.parse(value);
1212
+ return Number.isFinite(parsedValue) ? parsedValue : 0;
1213
+ };
1214
+ const startTimeMs = parseCandidate(record.startTime);
1215
+ if (startTimeMs > 0)
1216
+ return startTimeMs;
1217
+ const messages = Array.isArray(record.messages) ? record.messages : [];
1218
+ const firstMessage = (messages[0] ?? {});
1219
+ const firstMessageTimestampMs = parseCandidate(firstMessage.timestamp);
1220
+ if (firstMessageTimestampMs > 0)
1221
+ return firstMessageTimestampMs;
1222
+ return parseCandidate(record.lastUpdated);
1223
+ }
1224
+ catch {
1225
+ return 0;
1226
+ }
1227
+ }
1228
+ async function disambiguateGeminiMatchedPids(summary, pids) {
1229
+ const unique = uniquePids(pids);
1230
+ if (unique.length <= 1)
1231
+ return unique;
1232
+ const targetTimestampMs = geminiSessionAnchorTimestampMs(summary.path);
1233
+ if (targetTimestampMs <= 0)
1234
+ return unique;
1235
+ const timedCandidates = await Promise.all(unique.map(async (pid) => ({
1236
+ pid,
1237
+ tty: await listProcessTty(pid),
1238
+ startedAtMs: await listProcessStartMs(pid),
1239
+ })));
1240
+ const selected = selectPidGroupByNearestTimestamp(timedCandidates, targetTimestampMs);
1241
+ if (selected.length === 0)
1242
+ return unique;
1243
+ return selected;
1244
+ }
1245
+ async function disambiguateMatchedPidsByTty(pids) {
1246
+ const unique = uniquePids(pids);
1247
+ if (unique.length <= 1)
1248
+ return unique;
1249
+ const ttyPairs = await Promise.all(unique.map(async (pid) => ({
1250
+ pid,
1251
+ tty: await listProcessTty(pid),
1252
+ })));
1253
+ if (ttyPairs.some((pair) => !pair.tty)) {
1254
+ return [];
1255
+ }
1256
+ const uniqueTtys = new Set(ttyPairs.map((pair) => pair.tty));
1257
+ if (uniqueTtys.size !== 1) {
1258
+ return [];
1259
+ }
1260
+ return unique;
1261
+ }
1262
+ async function resolveSessionProcessPids(summary, requesterPid, sessionCwd = "") {
1263
+ const openFileProcesses = await listOpenFileProcesses(summary.path);
1264
+ const identity = currentUserIdentity();
1265
+ let argsByPid = new Map();
1266
+ if (openFileProcesses.length > 0) {
1267
+ try {
1268
+ const runningProcesses = await listRunningProcesses();
1269
+ argsByPid = new Map(runningProcesses.map((processInfo) => [processInfo.pid, processInfo.args]));
1270
+ }
1271
+ catch {
1272
+ argsByPid = new Map();
1273
+ }
1274
+ }
1275
+ let matchedPids = selectOpenFileProcessPids({
1276
+ summary,
1277
+ openFileProcesses,
1278
+ argsByPid,
1279
+ identity,
1280
+ requesterPid,
1281
+ });
1282
+ if (summary.agent === "opencode" && matchedPids.length > 0) {
1283
+ matchedPids = await excludeOpenCodeServePids(matchedPids);
1284
+ }
1285
+ if (matchedPids.length === 0 && summary.agent === "claude") {
1286
+ matchedPids = await findClaudeProcessPidByDebugLog(summary, identity, requesterPid);
1287
+ }
1288
+ if (matchedPids.length === 0 && summary.agent === "claude") {
1289
+ matchedPids = await findClaudeProjectProcessPids(summary, identity, requesterPid);
1290
+ }
1291
+ if (matchedPids.length === 0 && summary.agent === "cursor") {
1292
+ matchedPids = await findCursorProcessPidsByChatStoreSession(summary, identity, requesterPid);
1293
+ }
1294
+ if (matchedPids.length === 0 && summary.agent === "cursor") {
1295
+ matchedPids = await findCursorProjectProcessPids(summary, identity, requesterPid);
1296
+ }
1297
+ if (matchedPids.length === 0 && summary.agent === "cursor") {
1298
+ matchedPids = await findAgentProcessPidsBySessionId(summary.sessionId, "cursor", identity, requesterPid);
1299
+ }
1300
+ if (matchedPids.length === 0 && summary.agent === "gemini") {
1301
+ matchedPids = await findGeminiProcessPidsByProjectLog(summary, identity, requesterPid);
1302
+ }
1303
+ if (matchedPids.length === 0 && summary.agent === "gemini") {
1304
+ matchedPids = await findGeminiProjectProcessPids(summary, identity, requesterPid);
1305
+ }
1306
+ if (matchedPids.length === 0 && summary.agent === "gemini") {
1307
+ matchedPids = await findAgentProcessPidsBySessionId(summary.sessionId, "gemini", identity, requesterPid);
1308
+ }
1309
+ if (matchedPids.length === 0 && summary.agent === "opencode") {
1310
+ matchedPids = await findOpenCodeProcessPidsByLogSession(summary, identity, requesterPid);
1311
+ }
1312
+ if (matchedPids.length === 0 && summary.agent === "opencode") {
1313
+ matchedPids = await findAgentProcessPidsBySessionId(summary.sessionId, "opencode", identity, requesterPid);
1314
+ if (matchedPids.length > 0) {
1315
+ matchedPids = await excludeOpenCodeServePids(matchedPids);
1316
+ }
1317
+ }
1318
+ if (matchedPids.length === 0 && sessionCwd) {
1319
+ matchedPids = await findAgentProjectProcessPids(sessionCwd, summary.sessionId, summary.agent, identity, requesterPid);
1320
+ if (summary.agent === "opencode" && matchedPids.length > 0) {
1321
+ matchedPids = await excludeOpenCodeServePids(matchedPids);
1322
+ }
1323
+ }
1324
+ if (summary.agent === "gemini" && matchedPids.length > 1) {
1325
+ matchedPids = await disambiguateGeminiMatchedPids(summary, matchedPids);
1326
+ }
1327
+ if (matchedPids.length > 1) {
1328
+ matchedPids = await disambiguateMatchedPidsByTty(matchedPids);
1329
+ }
1330
+ const alivePids = matchedPids.filter((pid) => isProcessAlive(pid));
1331
+ return {
1332
+ matchedPids,
1333
+ alivePids,
1334
+ };
1335
+ }
1336
+ function uniquePids(values) {
1337
+ const unique = new Set();
1338
+ for (const value of values) {
1339
+ if (!Number.isInteger(value) || value <= 0)
1340
+ continue;
1341
+ unique.add(value);
1342
+ }
1343
+ return Array.from(unique.values());
1344
+ }
1345
+ function isProcessAlive(pid) {
1346
+ try {
1347
+ process.kill(pid, 0);
1348
+ return true;
1349
+ }
1350
+ catch {
1351
+ return false;
1352
+ }
1353
+ }
1354
+ async function waitForExit(pids, timeoutMs) {
1355
+ const startedAtMs = Date.now();
1356
+ let alive = pids.filter((pid) => isProcessAlive(pid));
1357
+ while (alive.length > 0 && Date.now() - startedAtMs < timeoutMs) {
1358
+ await delay(STOP_WAIT_POLL_MS);
1359
+ alive = alive.filter((pid) => isProcessAlive(pid));
1360
+ }
1361
+ return alive;
1362
+ }
1363
+ async function signalThenWait(pids, signal, timeoutMs) {
1364
+ const attempted = [];
1365
+ for (const pid of pids) {
1366
+ try {
1367
+ process.kill(pid, signal);
1368
+ attempted.push(pid);
1369
+ }
1370
+ catch {
1371
+ // Ignore dead/stale pid handles; exit state is checked below.
1372
+ }
1373
+ }
1374
+ if (attempted.length === 0) {
1375
+ return [];
1376
+ }
1377
+ return await waitForExit(attempted, timeoutMs);
1378
+ }
1379
+ async function stopTraceSessionProcess(summary, options) {
1380
+ const requesterPid = options.requesterPid ?? process.pid;
1381
+ const { matchedPids, alivePids: initiallyAlivePids } = await resolveSessionProcessPids(summary, requesterPid, options.sessionCwd ?? "");
1382
+ if (matchedPids.length === 0) {
1383
+ return {
1384
+ status: "not_running",
1385
+ reason: "no active session process found",
1386
+ signal: null,
1387
+ matchedPids: [],
1388
+ alivePids: [],
1389
+ };
1390
+ }
1391
+ let alivePids = initiallyAlivePids;
1392
+ if (alivePids.length === 0) {
1393
+ return {
1394
+ status: "not_running",
1395
+ reason: "session process already exited",
1396
+ signal: null,
1397
+ matchedPids,
1398
+ alivePids: [],
1399
+ };
1400
+ }
1401
+ alivePids = await signalThenWait(alivePids, "SIGINT", STOP_SIGNAL_WAIT_MS);
1402
+ if (alivePids.length === 0) {
1403
+ return {
1404
+ status: "terminated",
1405
+ reason: "session process terminated with SIGINT",
1406
+ signal: "SIGINT",
1407
+ matchedPids,
1408
+ alivePids: [],
1409
+ };
1410
+ }
1411
+ alivePids = await signalThenWait(alivePids, "SIGTERM", STOP_SIGNAL_WAIT_MS);
1412
+ if (alivePids.length === 0) {
1413
+ return {
1414
+ status: "terminated",
1415
+ reason: "session process terminated with SIGTERM",
1416
+ signal: "SIGTERM",
1417
+ matchedPids,
1418
+ alivePids: [],
1419
+ };
1420
+ }
1421
+ if (options.force) {
1422
+ alivePids = await signalThenWait(alivePids, "SIGKILL", STOP_FORCE_WAIT_MS);
1423
+ if (alivePids.length === 0) {
1424
+ return {
1425
+ status: "terminated",
1426
+ reason: "session process terminated with SIGKILL",
1427
+ signal: "SIGKILL",
1428
+ matchedPids,
1429
+ alivePids: [],
1430
+ };
1431
+ }
1432
+ }
1433
+ return {
1434
+ status: "failed",
1435
+ reason: options.force ? "session process did not exit after SIGKILL" : "session process did not exit after SIGTERM",
1436
+ signal: options.force ? "SIGKILL" : "SIGTERM",
1437
+ matchedPids,
1438
+ alivePids,
1439
+ };
1440
+ }
1441
+ async function openTraceSessionProcess(summary, options) {
1442
+ const requesterPid = options.requesterPid ?? process.pid;
1443
+ const { matchedPids, alivePids } = await resolveSessionProcessPids(summary, requesterPid, options.sessionCwd ?? "");
1444
+ if (matchedPids.length === 0) {
1445
+ return {
1446
+ status: "not_resolvable",
1447
+ reason: "no active session process found",
1448
+ pid: null,
1449
+ tty: "",
1450
+ target: null,
1451
+ matchedPids: [],
1452
+ alivePids: [],
1453
+ };
1454
+ }
1455
+ const pid = alivePids[0] ?? matchedPids[0] ?? null;
1456
+ if (!pid) {
1457
+ return {
1458
+ status: "not_resolvable",
1459
+ reason: "no session process target found",
1460
+ pid: null,
1461
+ tty: "",
1462
+ target: null,
1463
+ matchedPids,
1464
+ alivePids,
1465
+ };
1466
+ }
1467
+ const tty = await listProcessTty(pid);
1468
+ if (tty) {
1469
+ const tmuxLookup = await listTmuxPanes(currentUserIdentity());
1470
+ const paneMatch = tmuxLookup.panes.find((pane) => pane.paneTty === tty);
1471
+ if (paneMatch) {
1472
+ try {
1473
+ let preActivationNote = "";
1474
+ try {
1475
+ const preActivation = await activateGhostty();
1476
+ preActivationNote = `; pre-frontmost ${preActivation.frontmostApp} via ${preActivation.method}`;
1477
+ }
1478
+ catch (error) {
1479
+ preActivationNote = `; pre-activation failed: ${asErrorMessage(error)}`;
1480
+ }
1481
+ await delay(120);
1482
+ const { focusedClient, previousSession, switchedClients, preferredWasFocused } = await focusTmuxPane(paneMatch);
1483
+ let postActivationNote = "";
1484
+ try {
1485
+ const postActivation = await activateGhostty();
1486
+ postActivationNote = `; post-frontmost ${postActivation.frontmostApp} via ${postActivation.method}`;
1487
+ }
1488
+ catch (error) {
1489
+ postActivationNote = `; post-activation failed: ${asErrorMessage(error)}`;
1490
+ }
1491
+ return {
1492
+ status: "focused_pane",
1493
+ reason: `focused tmux pane via client ${focusedClient} (from session ${previousSession || "unknown"}; switched ${switchedClients.length} client${switchedClients.length === 1 ? "" : "s"}; preferred client ${preferredWasFocused ? "was" : "was not"} focused)${preActivationNote}${postActivationNote}`,
1494
+ pid,
1495
+ tty,
1496
+ target: {
1497
+ tmuxSession: paneMatch.tmuxSession,
1498
+ windowIndex: paneMatch.windowIndex,
1499
+ paneIndex: paneMatch.paneIndex,
1500
+ },
1501
+ matchedPids,
1502
+ alivePids,
1503
+ };
1504
+ }
1505
+ catch (error) {
1506
+ return {
1507
+ status: "not_resolvable",
1508
+ reason: `failed to focus tmux pane: ${asErrorMessage(error)}`,
1509
+ pid,
1510
+ tty,
1511
+ target: null,
1512
+ matchedPids,
1513
+ alivePids,
1514
+ };
1515
+ }
1516
+ }
1517
+ else {
1518
+ const scanned = tmuxLookup.scannedSockets.join(", ") || "default socket";
1519
+ return {
1520
+ status: "not_resolvable",
1521
+ reason: `pane focus unavailable: tty ${tty} not found in tmux sockets ${scanned}`,
1522
+ pid,
1523
+ tty,
1524
+ target: null,
1525
+ matchedPids,
1526
+ alivePids,
1527
+ };
1528
+ }
1529
+ }
1530
+ return {
1531
+ status: "not_resolvable",
1532
+ reason: "session process has no resolvable tmux tty",
1533
+ pid,
1534
+ tty,
1535
+ target: null,
1536
+ matchedPids,
1537
+ alivePids,
1538
+ };
1539
+ }
1540
+ async function sendTraceSessionInput(summary, options) {
1541
+ const requesterPid = options.requesterPid ?? process.pid;
1542
+ const text = normalizeTraceInputText(options.text);
1543
+ const submit = options.submit ?? true;
1544
+ const { matchedPids, alivePids } = await resolveSessionProcessPids(summary, requesterPid, options.sessionCwd ?? "");
1545
+ if (matchedPids.length === 0) {
1546
+ return {
1547
+ status: "not_resolvable",
1548
+ reason: "no active session process found",
1549
+ pid: null,
1550
+ tty: "",
1551
+ target: null,
1552
+ matchedPids: [],
1553
+ alivePids: [],
1554
+ };
1555
+ }
1556
+ const pid = alivePids[0] ?? matchedPids[0] ?? null;
1557
+ if (!pid) {
1558
+ return {
1559
+ status: "not_resolvable",
1560
+ reason: "no session process target found",
1561
+ pid: null,
1562
+ tty: "",
1563
+ target: null,
1564
+ matchedPids,
1565
+ alivePids,
1566
+ };
1567
+ }
1568
+ const tty = await listProcessTty(pid);
1569
+ if (tty) {
1570
+ const tmuxLookup = await listTmuxPanes(currentUserIdentity());
1571
+ const paneMatch = tmuxLookup.panes.find((pane) => pane.paneTty === tty);
1572
+ if (paneMatch) {
1573
+ const targetName = `${paneMatch.tmuxSession}:${paneMatch.windowIndex}.${paneMatch.paneIndex}`;
1574
+ try {
1575
+ await runTmux(paneMatch.socketPath, ["send-keys", "-t", targetName, "-l", text], 256 * 1_024);
1576
+ if (submit) {
1577
+ await runTmux(paneMatch.socketPath, ["send-keys", "-t", targetName, "Enter"]);
1578
+ }
1579
+ return {
1580
+ status: "sent_tmux",
1581
+ reason: `sent input via tmux send-keys to ${targetName}${submit ? " + Enter" : ""}`,
1582
+ pid,
1583
+ tty,
1584
+ target: {
1585
+ tmuxSession: paneMatch.tmuxSession,
1586
+ windowIndex: paneMatch.windowIndex,
1587
+ paneIndex: paneMatch.paneIndex,
1588
+ },
1589
+ matchedPids,
1590
+ alivePids,
1591
+ };
1592
+ }
1593
+ catch (error) {
1594
+ return {
1595
+ status: "failed",
1596
+ reason: `failed tmux input send: ${asErrorMessage(error)}`,
1597
+ pid,
1598
+ tty,
1599
+ target: {
1600
+ tmuxSession: paneMatch.tmuxSession,
1601
+ windowIndex: paneMatch.windowIndex,
1602
+ paneIndex: paneMatch.paneIndex,
1603
+ },
1604
+ matchedPids,
1605
+ alivePids,
1606
+ };
1607
+ }
1608
+ }
1609
+ const scanned = tmuxLookup.scannedSockets.join(", ") || "default socket";
1610
+ return {
1611
+ status: "not_resolvable",
1612
+ reason: `input requires tmux pane match; tty ${tty} not found in tmux sockets ${scanned}`,
1613
+ pid,
1614
+ tty,
1615
+ target: null,
1616
+ matchedPids,
1617
+ alivePids,
1618
+ };
1619
+ }
1620
+ return {
1621
+ status: "not_resolvable",
1622
+ reason: "input requires tmux pane targeting; session process has no resolvable tmux tty",
1623
+ pid,
1624
+ tty,
1625
+ target: null,
1626
+ matchedPids,
1627
+ alivePids,
1628
+ };
1629
+ }
1630
+ export function resolveDefaultWebDistPath(packagedWebDistPath, monorepoWebDistPath) {
1631
+ if (existsSync(monorepoWebDistPath)) {
1632
+ return monorepoWebDistPath;
1633
+ }
1634
+ if (existsSync(packagedWebDistPath)) {
1635
+ return packagedWebDistPath;
1636
+ }
1637
+ return monorepoWebDistPath;
1638
+ }
1639
+ export async function createServer(options) {
1640
+ const server = Fastify({ logger: false });
1641
+ const traceIndex = options.traceIndex;
1642
+ const configPath = options.configPath ?? DEFAULT_CONFIG_PATH;
1643
+ const stopTraceSession = options.stopTraceSession ?? stopTraceSessionProcess;
1644
+ const openTraceSession = options.openTraceSession ?? openTraceSessionProcess;
1645
+ const sendTraceInput = options.sendTraceInput ?? sendTraceSessionInput;
1646
+ const packagedWebDistPath = fileURLToPath(new URL("./web", import.meta.url));
1647
+ const monorepoWebDistPath = fileURLToPath(new URL("../../web/dist", import.meta.url));
1648
+ const defaultWebDistPath = resolveDefaultWebDistPath(packagedWebDistPath, monorepoWebDistPath);
1649
+ const webDistPath = options.webDistPath ?? defaultWebDistPath;
1650
+ if ((options.enableStatic ?? true) && existsSync(webDistPath)) {
1651
+ await server.register(fastifyStatic, {
1652
+ root: webDistPath,
1653
+ prefix: "/",
1654
+ });
1655
+ }
1656
+ server.get("/api/healthz", async () => ({ ok: true }));
1657
+ server.get("/api/overview", async () => ({ overview: traceIndex.getOverview() }));
1658
+ server.get("/api/perf", async () => ({ perf: traceIndex.getPerformanceStats() }));
1659
+ server.get("/api/traces", async (request) => {
1660
+ const query = request.query;
1661
+ const traces = listRecentTraceSummaries(traceIndex, query);
1662
+ return { traces };
1663
+ });
1664
+ server.get("/api/trace/:id", async (request, reply) => {
1665
+ const params = request.params;
1666
+ const query = request.query;
1667
+ try {
1668
+ const resolvedId = traceIndex.resolveId(params.id);
1669
+ const pageOptions = {};
1670
+ if (query.include_meta !== undefined) {
1671
+ pageOptions.includeMeta = query.include_meta === "1" || query.include_meta === "true";
1672
+ }
1673
+ if (query.limit) {
1674
+ pageOptions.limit = Number(query.limit);
1675
+ }
1676
+ if (query.before) {
1677
+ pageOptions.before = query.before;
1678
+ }
1679
+ const page = traceIndex.getTracePage(resolvedId, pageOptions);
1680
+ return page;
1681
+ }
1682
+ catch (error) {
1683
+ reply.code(404);
1684
+ return { error: error instanceof Error ? error.message : String(error) };
1685
+ }
1686
+ });
1687
+ server.post("/api/trace/:id/stop", async (request, reply) => {
1688
+ const params = request.params;
1689
+ const query = request.query;
1690
+ const force = query.force === "1" || query.force === "true";
1691
+ try {
1692
+ const resolvedId = traceIndex.resolveId(params.id);
1693
+ const detail = traceIndex.getSessionDetail(resolvedId);
1694
+ const summary = detail.summary;
1695
+ const sessionCwd = inferSessionCwd(detail);
1696
+ const result = await stopTraceSession(summary, { force, requesterPid: process.pid, sessionCwd });
1697
+ if (result.status === "terminated") {
1698
+ return {
1699
+ ok: true,
1700
+ status: result.status,
1701
+ traceId: summary.id,
1702
+ sessionId: summary.sessionId,
1703
+ signal: result.signal,
1704
+ pids: result.matchedPids,
1705
+ alivePids: result.alivePids,
1706
+ message: result.reason,
1707
+ };
1708
+ }
1709
+ if (result.status === "not_running") {
1710
+ reply.code(409);
1711
+ }
1712
+ else {
1713
+ reply.code(500);
1714
+ }
1715
+ return {
1716
+ ok: false,
1717
+ status: result.status,
1718
+ traceId: summary.id,
1719
+ sessionId: summary.sessionId,
1720
+ signal: result.signal,
1721
+ pids: result.matchedPids,
1722
+ alivePids: result.alivePids,
1723
+ error: result.reason,
1724
+ };
1725
+ }
1726
+ catch (error) {
1727
+ const message = asErrorMessage(error);
1728
+ if (message.startsWith("unknown trace/session:")) {
1729
+ reply.code(404);
1730
+ }
1731
+ else {
1732
+ reply.code(500);
1733
+ }
1734
+ return { ok: false, error: message };
1735
+ }
1736
+ });
1737
+ server.post("/api/trace/:id/open", async (request, reply) => {
1738
+ const params = request.params;
1739
+ try {
1740
+ const resolvedId = traceIndex.resolveId(params.id);
1741
+ const detail = traceIndex.getSessionDetail(resolvedId);
1742
+ const summary = detail.summary;
1743
+ const sessionCwd = inferSessionCwd(detail);
1744
+ const result = await openTraceSession(summary, { requesterPid: process.pid, sessionCwd });
1745
+ if (result.status === "focused_pane" || result.status === "ghostty_activated") {
1746
+ return {
1747
+ ok: true,
1748
+ status: result.status,
1749
+ traceId: summary.id,
1750
+ sessionId: summary.sessionId,
1751
+ pid: result.pid,
1752
+ tty: result.tty,
1753
+ target: result.target,
1754
+ pids: result.matchedPids,
1755
+ alivePids: result.alivePids,
1756
+ message: result.reason,
1757
+ };
1758
+ }
1759
+ if (result.status === "not_resolvable") {
1760
+ reply.code(409);
1761
+ }
1762
+ else {
1763
+ reply.code(500);
1764
+ }
1765
+ return {
1766
+ ok: false,
1767
+ status: result.status,
1768
+ traceId: summary.id,
1769
+ sessionId: summary.sessionId,
1770
+ pid: result.pid,
1771
+ tty: result.tty,
1772
+ target: result.target,
1773
+ pids: result.matchedPids,
1774
+ alivePids: result.alivePids,
1775
+ error: result.reason,
1776
+ };
1777
+ }
1778
+ catch (error) {
1779
+ const message = asErrorMessage(error);
1780
+ if (message.startsWith("unknown trace/session:")) {
1781
+ reply.code(404);
1782
+ }
1783
+ else {
1784
+ reply.code(500);
1785
+ }
1786
+ return { ok: false, error: message };
1787
+ }
1788
+ });
1789
+ server.post("/api/trace/:id/input", async (request, reply) => {
1790
+ const params = request.params;
1791
+ const body = (request.body ?? {});
1792
+ const textRaw = typeof body.text === "string" ? body.text : "";
1793
+ const text = normalizeTraceInputText(textRaw);
1794
+ const submit = body.submit === false ? false : true;
1795
+ if (!text.trim()) {
1796
+ reply.code(400);
1797
+ return { ok: false, error: "input text is required" };
1798
+ }
1799
+ if (text.length > MAX_TRACE_INPUT_TEXT_LENGTH) {
1800
+ reply.code(400);
1801
+ return {
1802
+ ok: false,
1803
+ error: `input text too long (max ${MAX_TRACE_INPUT_TEXT_LENGTH} chars)`,
1804
+ };
1805
+ }
1806
+ try {
1807
+ const resolvedId = traceIndex.resolveId(params.id);
1808
+ const detail = traceIndex.getSessionDetail(resolvedId);
1809
+ const summary = detail.summary;
1810
+ const sessionCwd = inferSessionCwd(detail);
1811
+ const result = await sendTraceInput(summary, {
1812
+ requesterPid: process.pid,
1813
+ sessionCwd,
1814
+ text,
1815
+ submit,
1816
+ });
1817
+ if (result.status === "sent_tmux") {
1818
+ return {
1819
+ ok: true,
1820
+ status: result.status,
1821
+ traceId: summary.id,
1822
+ sessionId: summary.sessionId,
1823
+ pid: result.pid,
1824
+ tty: result.tty,
1825
+ target: result.target,
1826
+ pids: result.matchedPids,
1827
+ alivePids: result.alivePids,
1828
+ message: result.reason,
1829
+ };
1830
+ }
1831
+ if (result.status === "not_resolvable") {
1832
+ reply.code(409);
1833
+ }
1834
+ else {
1835
+ reply.code(500);
1836
+ }
1837
+ return {
1838
+ ok: false,
1839
+ status: result.status,
1840
+ traceId: summary.id,
1841
+ sessionId: summary.sessionId,
1842
+ pid: result.pid,
1843
+ tty: result.tty,
1844
+ target: result.target,
1845
+ pids: result.matchedPids,
1846
+ alivePids: result.alivePids,
1847
+ error: result.reason,
1848
+ };
1849
+ }
1850
+ catch (error) {
1851
+ const message = asErrorMessage(error);
1852
+ if (message.startsWith("unknown trace/session:")) {
1853
+ reply.code(404);
1854
+ }
1855
+ else {
1856
+ reply.code(500);
1857
+ }
1858
+ return { ok: false, error: message };
1859
+ }
1860
+ });
1861
+ server.get("/api/config", async () => ({ config: traceIndex.getConfig() }));
1862
+ server.post("/api/config", async (request) => {
1863
+ const body = request.body;
1864
+ const mergedInput = deepMergeConfig(traceIndex.getConfig(), (body ?? {}));
1865
+ const merged = mergeConfig(mergedInput);
1866
+ await saveConfig(merged, configPath);
1867
+ traceIndex.setConfig(merged);
1868
+ await traceIndex.refresh();
1869
+ return { config: merged };
1870
+ });
1871
+ server.get("/api/stream", async (request, reply) => {
1872
+ const query = request.query;
1873
+ const traces = listRecentTraceSummaries(traceIndex, query);
1874
+ reply.raw.setHeader("Content-Type", "text/event-stream; charset=utf-8");
1875
+ reply.raw.setHeader("Cache-Control", "no-cache, no-transform");
1876
+ reply.raw.setHeader("Connection", "keep-alive");
1877
+ reply.raw.setHeader("X-Accel-Buffering", "no");
1878
+ reply.raw.write(`event: snapshot\ndata: ${JSON.stringify({
1879
+ id: "0",
1880
+ type: "snapshot",
1881
+ version: 0,
1882
+ payload: {
1883
+ traces,
1884
+ overview: traceIndex.getOverview(),
1885
+ },
1886
+ })}\n\n`);
1887
+ const onStream = ({ envelope }) => {
1888
+ reply.raw.write(`event: ${String(envelope.type ?? "message")}\ndata: ${JSON.stringify(envelope)}\n\n`);
1889
+ };
1890
+ const heartbeat = setInterval(() => {
1891
+ reply.raw.write(`event: heartbeat\ndata: ${JSON.stringify({ ts: Date.now() })}\n\n`);
1892
+ }, 15000);
1893
+ traceIndex.on("stream", onStream);
1894
+ request.raw.on("close", () => {
1895
+ clearInterval(heartbeat);
1896
+ traceIndex.off("stream", onStream);
1897
+ reply.raw.end();
1898
+ });
1899
+ });
1900
+ server.get("/", async (_request, reply) => {
1901
+ if (!existsSync(webDistPath)) {
1902
+ reply.type("text/html");
1903
+ return `<!doctype html>
1904
+ <html><body style="font-family: sans-serif; padding: 2rem;">
1905
+ <h1>AgentLens server running</h1>
1906
+ <p>Web app not built yet.</p>
1907
+ <p>Build once: <code>npm -w apps/web run build</code></p>
1908
+ <p>Or run dev UI: <code>npm -w apps/web run dev</code> then open <a href="http://127.0.0.1:5173">http://127.0.0.1:5173</a>.</p>
1909
+ <p>API: <a href="/api/overview">/api/overview</a></p>
1910
+ </body></html>`;
1911
+ }
1912
+ return reply.sendFile("index.html");
1913
+ });
1914
+ return server;
1915
+ }
1916
+ export async function runServer(options = {}) {
1917
+ const host = options.host ?? process.env.AGENTLENS_HOST ?? "127.0.0.1";
1918
+ const port = options.port ?? Number(process.env.AGENTLENS_PORT ?? "8787");
1919
+ const configPath = options.configPath ?? process.env.AGENTLENS_CONFIG ?? DEFAULT_CONFIG_PATH;
1920
+ const traceIndex = await TraceIndex.fromConfigPath(configPath);
1921
+ await traceIndex.start();
1922
+ const createOptions = {
1923
+ traceIndex,
1924
+ configPath,
1925
+ };
1926
+ if (options.enableStatic !== undefined) {
1927
+ createOptions.enableStatic = options.enableStatic;
1928
+ }
1929
+ const server = await createServer(createOptions);
1930
+ await server.listen({ host, port });
1931
+ process.on("SIGINT", async () => {
1932
+ traceIndex.stop();
1933
+ await server.close();
1934
+ process.exit(0);
1935
+ });
1936
+ // eslint-disable-next-line no-console
1937
+ console.log(`AgentLens server: http://${host}:${port}`);
1938
+ }
1939
+ //# sourceMappingURL=app.js.map