language-operator 0.1.81 → 0.1.82

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 (427) hide show
  1. checksums.yaml +4 -4
  2. data/.claude/agents/README.md +16 -0
  3. data/.claude/agents/changelog-writer.md +181 -0
  4. data/.claude/hooks/README.md +43 -0
  5. data/.claude/hooks/node_modules/.bin/esbuild +1 -0
  6. data/.claude/hooks/node_modules/.bin/tsc +1 -0
  7. data/.claude/hooks/node_modules/.bin/tsserver +1 -0
  8. data/.claude/hooks/node_modules/.bin/tsx +1 -0
  9. data/.claude/hooks/node_modules/.package-lock.json +136 -0
  10. data/.claude/hooks/node_modules/@esbuild/linux-x64/README.md +3 -0
  11. data/.claude/hooks/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  12. data/.claude/hooks/node_modules/@esbuild/linux-x64/package.json +20 -0
  13. data/.claude/hooks/node_modules/@types/node/LICENSE +21 -0
  14. data/.claude/hooks/node_modules/@types/node/README.md +15 -0
  15. data/.claude/hooks/node_modules/@types/node/assert/strict.d.ts +105 -0
  16. data/.claude/hooks/node_modules/@types/node/assert.d.ts +955 -0
  17. data/.claude/hooks/node_modules/@types/node/async_hooks.d.ts +623 -0
  18. data/.claude/hooks/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  19. data/.claude/hooks/node_modules/@types/node/buffer.d.ts +1810 -0
  20. data/.claude/hooks/node_modules/@types/node/child_process.d.ts +1428 -0
  21. data/.claude/hooks/node_modules/@types/node/cluster.d.ts +486 -0
  22. data/.claude/hooks/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  23. data/.claude/hooks/node_modules/@types/node/console.d.ts +151 -0
  24. data/.claude/hooks/node_modules/@types/node/constants.d.ts +20 -0
  25. data/.claude/hooks/node_modules/@types/node/crypto.d.ts +4065 -0
  26. data/.claude/hooks/node_modules/@types/node/dgram.d.ts +564 -0
  27. data/.claude/hooks/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  28. data/.claude/hooks/node_modules/@types/node/dns/promises.d.ts +503 -0
  29. data/.claude/hooks/node_modules/@types/node/dns.d.ts +922 -0
  30. data/.claude/hooks/node_modules/@types/node/domain.d.ts +166 -0
  31. data/.claude/hooks/node_modules/@types/node/events.d.ts +1054 -0
  32. data/.claude/hooks/node_modules/@types/node/fs/promises.d.ts +1316 -0
  33. data/.claude/hooks/node_modules/@types/node/fs.d.ts +4676 -0
  34. data/.claude/hooks/node_modules/@types/node/globals.d.ts +150 -0
  35. data/.claude/hooks/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  36. data/.claude/hooks/node_modules/@types/node/http.d.ts +2143 -0
  37. data/.claude/hooks/node_modules/@types/node/http2.d.ts +2480 -0
  38. data/.claude/hooks/node_modules/@types/node/https.d.ts +399 -0
  39. data/.claude/hooks/node_modules/@types/node/index.d.ts +115 -0
  40. data/.claude/hooks/node_modules/@types/node/inspector/promises.d.ts +41 -0
  41. data/.claude/hooks/node_modules/@types/node/inspector.d.ts +224 -0
  42. data/.claude/hooks/node_modules/@types/node/inspector.generated.d.ts +4226 -0
  43. data/.claude/hooks/node_modules/@types/node/module.d.ts +819 -0
  44. data/.claude/hooks/node_modules/@types/node/net.d.ts +933 -0
  45. data/.claude/hooks/node_modules/@types/node/os.d.ts +507 -0
  46. data/.claude/hooks/node_modules/@types/node/package.json +155 -0
  47. data/.claude/hooks/node_modules/@types/node/path/posix.d.ts +8 -0
  48. data/.claude/hooks/node_modules/@types/node/path/win32.d.ts +8 -0
  49. data/.claude/hooks/node_modules/@types/node/path.d.ts +187 -0
  50. data/.claude/hooks/node_modules/@types/node/perf_hooks.d.ts +621 -0
  51. data/.claude/hooks/node_modules/@types/node/process.d.ts +2097 -0
  52. data/.claude/hooks/node_modules/@types/node/punycode.d.ts +117 -0
  53. data/.claude/hooks/node_modules/@types/node/querystring.d.ts +152 -0
  54. data/.claude/hooks/node_modules/@types/node/quic.d.ts +910 -0
  55. data/.claude/hooks/node_modules/@types/node/readline/promises.d.ts +161 -0
  56. data/.claude/hooks/node_modules/@types/node/readline.d.ts +541 -0
  57. data/.claude/hooks/node_modules/@types/node/repl.d.ts +415 -0
  58. data/.claude/hooks/node_modules/@types/node/sea.d.ts +162 -0
  59. data/.claude/hooks/node_modules/@types/node/sqlite.d.ts +937 -0
  60. data/.claude/hooks/node_modules/@types/node/stream/consumers.d.ts +38 -0
  61. data/.claude/hooks/node_modules/@types/node/stream/promises.d.ts +211 -0
  62. data/.claude/hooks/node_modules/@types/node/stream/web.d.ts +296 -0
  63. data/.claude/hooks/node_modules/@types/node/stream.d.ts +1760 -0
  64. data/.claude/hooks/node_modules/@types/node/string_decoder.d.ts +67 -0
  65. data/.claude/hooks/node_modules/@types/node/test/reporters.d.ts +96 -0
  66. data/.claude/hooks/node_modules/@types/node/test.d.ts +2239 -0
  67. data/.claude/hooks/node_modules/@types/node/timers/promises.d.ts +108 -0
  68. data/.claude/hooks/node_modules/@types/node/timers.d.ts +159 -0
  69. data/.claude/hooks/node_modules/@types/node/tls.d.ts +1194 -0
  70. data/.claude/hooks/node_modules/@types/node/trace_events.d.ts +197 -0
  71. data/.claude/hooks/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  72. data/.claude/hooks/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  73. data/.claude/hooks/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  74. data/.claude/hooks/node_modules/@types/node/ts5.6/index.d.ts +117 -0
  75. data/.claude/hooks/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  76. data/.claude/hooks/node_modules/@types/node/ts5.7/index.d.ts +117 -0
  77. data/.claude/hooks/node_modules/@types/node/tty.d.ts +250 -0
  78. data/.claude/hooks/node_modules/@types/node/url.d.ts +519 -0
  79. data/.claude/hooks/node_modules/@types/node/util/types.d.ts +558 -0
  80. data/.claude/hooks/node_modules/@types/node/util.d.ts +1653 -0
  81. data/.claude/hooks/node_modules/@types/node/v8.d.ts +979 -0
  82. data/.claude/hooks/node_modules/@types/node/vm.d.ts +1180 -0
  83. data/.claude/hooks/node_modules/@types/node/wasi.d.ts +202 -0
  84. data/.claude/hooks/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  85. data/.claude/hooks/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  86. data/.claude/hooks/node_modules/@types/node/web-globals/console.d.ts +9 -0
  87. data/.claude/hooks/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  88. data/.claude/hooks/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  89. data/.claude/hooks/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  90. data/.claude/hooks/node_modules/@types/node/web-globals/events.d.ts +106 -0
  91. data/.claude/hooks/node_modules/@types/node/web-globals/fetch.d.ts +54 -0
  92. data/.claude/hooks/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  93. data/.claude/hooks/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  94. data/.claude/hooks/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  95. data/.claude/hooks/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  96. data/.claude/hooks/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  97. data/.claude/hooks/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  98. data/.claude/hooks/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  99. data/.claude/hooks/node_modules/@types/node/web-globals/url.d.ts +24 -0
  100. data/.claude/hooks/node_modules/@types/node/worker_threads.d.ts +714 -0
  101. data/.claude/hooks/node_modules/@types/node/zlib.d.ts +618 -0
  102. data/.claude/hooks/node_modules/esbuild/LICENSE.md +21 -0
  103. data/.claude/hooks/node_modules/esbuild/README.md +3 -0
  104. data/.claude/hooks/node_modules/esbuild/bin/esbuild +0 -0
  105. data/.claude/hooks/node_modules/esbuild/install.js +289 -0
  106. data/.claude/hooks/node_modules/esbuild/lib/main.d.ts +716 -0
  107. data/.claude/hooks/node_modules/esbuild/lib/main.js +2242 -0
  108. data/.claude/hooks/node_modules/esbuild/package.json +49 -0
  109. data/.claude/hooks/node_modules/get-tsconfig/LICENSE +21 -0
  110. data/.claude/hooks/node_modules/get-tsconfig/README.md +235 -0
  111. data/.claude/hooks/node_modules/get-tsconfig/dist/index.cjs +7 -0
  112. data/.claude/hooks/node_modules/get-tsconfig/dist/index.d.cts +2088 -0
  113. data/.claude/hooks/node_modules/get-tsconfig/dist/index.d.mts +2088 -0
  114. data/.claude/hooks/node_modules/get-tsconfig/dist/index.mjs +7 -0
  115. data/.claude/hooks/node_modules/get-tsconfig/package.json +46 -0
  116. data/.claude/hooks/node_modules/resolve-pkg-maps/LICENSE +21 -0
  117. data/.claude/hooks/node_modules/resolve-pkg-maps/README.md +216 -0
  118. data/.claude/hooks/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
  119. data/.claude/hooks/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
  120. data/.claude/hooks/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
  121. data/.claude/hooks/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
  122. data/.claude/hooks/node_modules/resolve-pkg-maps/package.json +42 -0
  123. data/.claude/hooks/node_modules/tsx/LICENSE +21 -0
  124. data/.claude/hooks/node_modules/tsx/README.md +32 -0
  125. data/.claude/hooks/node_modules/tsx/dist/cjs/api/index.cjs +1 -0
  126. data/.claude/hooks/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
  127. data/.claude/hooks/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
  128. data/.claude/hooks/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
  129. data/.claude/hooks/node_modules/tsx/dist/cjs/index.cjs +1 -0
  130. data/.claude/hooks/node_modules/tsx/dist/cjs/index.mjs +1 -0
  131. data/.claude/hooks/node_modules/tsx/dist/cli.cjs +54 -0
  132. data/.claude/hooks/node_modules/tsx/dist/cli.mjs +55 -0
  133. data/.claude/hooks/node_modules/tsx/dist/client-BQVF1NaW.mjs +1 -0
  134. data/.claude/hooks/node_modules/tsx/dist/client-D6NvIMSC.cjs +1 -0
  135. data/.claude/hooks/node_modules/tsx/dist/esm/api/index.cjs +1 -0
  136. data/.claude/hooks/node_modules/tsx/dist/esm/api/index.d.cts +35 -0
  137. data/.claude/hooks/node_modules/tsx/dist/esm/api/index.d.mts +35 -0
  138. data/.claude/hooks/node_modules/tsx/dist/esm/api/index.mjs +1 -0
  139. data/.claude/hooks/node_modules/tsx/dist/esm/index.cjs +2 -0
  140. data/.claude/hooks/node_modules/tsx/dist/esm/index.mjs +2 -0
  141. data/.claude/hooks/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +1 -0
  142. data/.claude/hooks/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +1 -0
  143. data/.claude/hooks/node_modules/tsx/dist/index-7AaEi15b.mjs +14 -0
  144. data/.claude/hooks/node_modules/tsx/dist/index-BWFBUo6r.cjs +1 -0
  145. data/.claude/hooks/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
  146. data/.claude/hooks/node_modules/tsx/dist/index-gckBtVBf.cjs +14 -0
  147. data/.claude/hooks/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
  148. data/.claude/hooks/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +3 -0
  149. data/.claude/hooks/node_modules/tsx/dist/loader.cjs +1 -0
  150. data/.claude/hooks/node_modules/tsx/dist/loader.mjs +1 -0
  151. data/.claude/hooks/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +1 -0
  152. data/.claude/hooks/node_modules/tsx/dist/node-features-roYmp9jK.cjs +1 -0
  153. data/.claude/hooks/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
  154. data/.claude/hooks/node_modules/tsx/dist/package-Dxt5kIHw.cjs +1 -0
  155. data/.claude/hooks/node_modules/tsx/dist/patch-repl.cjs +1 -0
  156. data/.claude/hooks/node_modules/tsx/dist/patch-repl.mjs +1 -0
  157. data/.claude/hooks/node_modules/tsx/dist/preflight.cjs +1 -0
  158. data/.claude/hooks/node_modules/tsx/dist/preflight.mjs +1 -0
  159. data/.claude/hooks/node_modules/tsx/dist/register-2sWVXuRQ.cjs +1 -0
  160. data/.claude/hooks/node_modules/tsx/dist/register-B7jrtLTO.mjs +1 -0
  161. data/.claude/hooks/node_modules/tsx/dist/register-CFH5oNdT.mjs +4 -0
  162. data/.claude/hooks/node_modules/tsx/dist/register-D46fvsV_.cjs +4 -0
  163. data/.claude/hooks/node_modules/tsx/dist/repl.cjs +3 -0
  164. data/.claude/hooks/node_modules/tsx/dist/repl.mjs +3 -0
  165. data/.claude/hooks/node_modules/tsx/dist/require-D4F1Lv60.cjs +1 -0
  166. data/.claude/hooks/node_modules/tsx/dist/require-DQxpCAr4.mjs +1 -0
  167. data/.claude/hooks/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
  168. data/.claude/hooks/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
  169. data/.claude/hooks/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +1 -0
  170. data/.claude/hooks/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +1 -0
  171. data/.claude/hooks/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
  172. data/.claude/hooks/node_modules/tsx/package.json +68 -0
  173. data/.claude/hooks/node_modules/typescript/LICENSE.txt +55 -0
  174. data/.claude/hooks/node_modules/typescript/README.md +50 -0
  175. data/.claude/hooks/node_modules/typescript/SECURITY.md +41 -0
  176. data/.claude/hooks/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  177. data/.claude/hooks/node_modules/typescript/bin/tsc +2 -0
  178. data/.claude/hooks/node_modules/typescript/bin/tsserver +2 -0
  179. data/.claude/hooks/node_modules/typescript/lib/_tsc.js +133818 -0
  180. data/.claude/hooks/node_modules/typescript/lib/_tsserver.js +659 -0
  181. data/.claude/hooks/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  182. data/.claude/hooks/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  183. data/.claude/hooks/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  184. data/.claude/hooks/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  185. data/.claude/hooks/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  186. data/.claude/hooks/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  187. data/.claude/hooks/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  188. data/.claude/hooks/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  189. data/.claude/hooks/node_modules/typescript/lib/lib.d.ts +22 -0
  190. data/.claude/hooks/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  191. data/.claude/hooks/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  192. data/.claude/hooks/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  193. data/.claude/hooks/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
  194. data/.claude/hooks/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
  195. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  196. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  197. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  198. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  199. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  200. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  201. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  202. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  203. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  204. data/.claude/hooks/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  205. data/.claude/hooks/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  206. data/.claude/hooks/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  207. data/.claude/hooks/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  208. data/.claude/hooks/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  209. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  210. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  211. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  212. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  213. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  214. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  215. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  216. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  217. data/.claude/hooks/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  218. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  219. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  220. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  221. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  222. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  223. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  224. data/.claude/hooks/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  225. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  226. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  227. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  228. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  229. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  230. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  231. data/.claude/hooks/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  232. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  233. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  234. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  235. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  236. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  237. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  238. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  239. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  240. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  241. data/.claude/hooks/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  242. data/.claude/hooks/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  243. data/.claude/hooks/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  244. data/.claude/hooks/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  245. data/.claude/hooks/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  246. data/.claude/hooks/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  247. data/.claude/hooks/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  248. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  249. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  250. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  251. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  252. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
  253. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  254. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  255. data/.claude/hooks/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  256. data/.claude/hooks/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  257. data/.claude/hooks/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  258. data/.claude/hooks/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  259. data/.claude/hooks/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  260. data/.claude/hooks/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  261. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  262. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  263. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  264. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  265. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  266. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  267. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  268. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  269. data/.claude/hooks/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  270. data/.claude/hooks/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
  271. data/.claude/hooks/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  272. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  273. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  274. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  275. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  276. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  277. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
  278. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
  279. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  280. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  281. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  282. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  283. data/.claude/hooks/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
  284. data/.claude/hooks/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  285. data/.claude/hooks/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  286. data/.claude/hooks/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
  287. data/.claude/hooks/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  288. data/.claude/hooks/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
  289. data/.claude/hooks/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  290. data/.claude/hooks/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  291. data/.claude/hooks/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  292. data/.claude/hooks/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  293. data/.claude/hooks/node_modules/typescript/lib/tsc.js +8 -0
  294. data/.claude/hooks/node_modules/typescript/lib/tsserver.js +8 -0
  295. data/.claude/hooks/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  296. data/.claude/hooks/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  297. data/.claude/hooks/node_modules/typescript/lib/typesMap.json +497 -0
  298. data/.claude/hooks/node_modules/typescript/lib/typescript.d.ts +11437 -0
  299. data/.claude/hooks/node_modules/typescript/lib/typescript.js +200276 -0
  300. data/.claude/hooks/node_modules/typescript/lib/typingsInstaller.js +8 -0
  301. data/.claude/hooks/node_modules/typescript/lib/watchGuard.js +53 -0
  302. data/.claude/hooks/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  303. data/.claude/hooks/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  304. data/.claude/hooks/node_modules/typescript/package.json +120 -0
  305. data/.claude/hooks/node_modules/undici-types/LICENSE +21 -0
  306. data/.claude/hooks/node_modules/undici-types/README.md +6 -0
  307. data/.claude/hooks/node_modules/undici-types/agent.d.ts +32 -0
  308. data/.claude/hooks/node_modules/undici-types/api.d.ts +43 -0
  309. data/.claude/hooks/node_modules/undici-types/balanced-pool.d.ts +29 -0
  310. data/.claude/hooks/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  311. data/.claude/hooks/node_modules/undici-types/cache.d.ts +36 -0
  312. data/.claude/hooks/node_modules/undici-types/client-stats.d.ts +15 -0
  313. data/.claude/hooks/node_modules/undici-types/client.d.ts +108 -0
  314. data/.claude/hooks/node_modules/undici-types/connector.d.ts +34 -0
  315. data/.claude/hooks/node_modules/undici-types/content-type.d.ts +21 -0
  316. data/.claude/hooks/node_modules/undici-types/cookies.d.ts +30 -0
  317. data/.claude/hooks/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  318. data/.claude/hooks/node_modules/undici-types/dispatcher.d.ts +276 -0
  319. data/.claude/hooks/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  320. data/.claude/hooks/node_modules/undici-types/errors.d.ts +161 -0
  321. data/.claude/hooks/node_modules/undici-types/eventsource.d.ts +66 -0
  322. data/.claude/hooks/node_modules/undici-types/fetch.d.ts +211 -0
  323. data/.claude/hooks/node_modules/undici-types/formdata.d.ts +108 -0
  324. data/.claude/hooks/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  325. data/.claude/hooks/node_modules/undici-types/global-origin.d.ts +7 -0
  326. data/.claude/hooks/node_modules/undici-types/h2c-client.d.ts +73 -0
  327. data/.claude/hooks/node_modules/undici-types/handlers.d.ts +15 -0
  328. data/.claude/hooks/node_modules/undici-types/header.d.ts +160 -0
  329. data/.claude/hooks/node_modules/undici-types/index.d.ts +80 -0
  330. data/.claude/hooks/node_modules/undici-types/interceptors.d.ts +39 -0
  331. data/.claude/hooks/node_modules/undici-types/mock-agent.d.ts +68 -0
  332. data/.claude/hooks/node_modules/undici-types/mock-call-history.d.ts +111 -0
  333. data/.claude/hooks/node_modules/undici-types/mock-client.d.ts +27 -0
  334. data/.claude/hooks/node_modules/undici-types/mock-errors.d.ts +12 -0
  335. data/.claude/hooks/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  336. data/.claude/hooks/node_modules/undici-types/mock-pool.d.ts +27 -0
  337. data/.claude/hooks/node_modules/undici-types/package.json +55 -0
  338. data/.claude/hooks/node_modules/undici-types/patch.d.ts +29 -0
  339. data/.claude/hooks/node_modules/undici-types/pool-stats.d.ts +19 -0
  340. data/.claude/hooks/node_modules/undici-types/pool.d.ts +41 -0
  341. data/.claude/hooks/node_modules/undici-types/proxy-agent.d.ts +29 -0
  342. data/.claude/hooks/node_modules/undici-types/readable.d.ts +68 -0
  343. data/.claude/hooks/node_modules/undici-types/retry-agent.d.ts +8 -0
  344. data/.claude/hooks/node_modules/undici-types/retry-handler.d.ts +125 -0
  345. data/.claude/hooks/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  346. data/.claude/hooks/node_modules/undici-types/util.d.ts +18 -0
  347. data/.claude/hooks/node_modules/undici-types/utility.d.ts +7 -0
  348. data/.claude/hooks/node_modules/undici-types/webidl.d.ts +341 -0
  349. data/.claude/hooks/node_modules/undici-types/websocket.d.ts +186 -0
  350. data/.claude/hooks/package-lock.json +562 -0
  351. data/.claude/hooks/package.json +19 -0
  352. data/.claude/hooks/skill-activation-prompt.sh +11 -0
  353. data/.claude/hooks/skill-activation-prompt.ts +185 -0
  354. data/.claude/hooks/tsconfig.json +12 -0
  355. data/.claude/settings.json +33 -0
  356. data/.claude/skills/README.md +29 -0
  357. data/.claude/skills/ruby-gem-development/SKILL.md +293 -0
  358. data/.claude/skills/skill-rules.json +117 -0
  359. data/.claude/skills/thor-cli-development/SKILL.md +431 -0
  360. data/CHANGELOG.md +7 -0
  361. data/Gemfile.lock +3 -1
  362. data/completions/{_aictl → _langop} +37 -37
  363. data/completions/{aictl.bash → langop.bash} +16 -16
  364. data/completions/langop.fish +114 -0
  365. data/components/agent/Gemfile +1 -1
  366. data/components/tool/Gemfile +1 -1
  367. data/docs/README.md +10 -10
  368. data/docs/agent-internals.md +1 -1
  369. data/docs/cheat-sheet.md +76 -76
  370. data/docs/cli-reference.md +71 -71
  371. data/docs/how-agents-work.md +1 -1
  372. data/docs/installation.md +30 -30
  373. data/docs/quickstart.md +30 -30
  374. data/docs/using-tools.md +11 -11
  375. data/docs/webhooks.md +6 -6
  376. data/examples/ux_helpers_demo.rb +4 -4
  377. data/lib/language_operator/agent/task_executor.rb +0 -37
  378. data/lib/language_operator/agent/web_server.rb +311 -323
  379. data/lib/language_operator/cli/commands/agent/base.rb +16 -15
  380. data/lib/language_operator/cli/commands/agent/code_operations.rb +6 -6
  381. data/lib/language_operator/cli/commands/agent/helpers/synthesis_watcher.rb +1 -1
  382. data/lib/language_operator/cli/commands/agent/lifecycle.rb +2 -2
  383. data/lib/language_operator/cli/commands/agent/logs.rb +2 -2
  384. data/lib/language_operator/cli/commands/agent/workspace.rb +8 -8
  385. data/lib/language_operator/cli/commands/cluster.rb +172 -158
  386. data/lib/language_operator/cli/commands/install.rb +878 -81
  387. data/lib/language_operator/cli/commands/model/base.rb +7 -6
  388. data/lib/language_operator/cli/commands/organization.rb +61 -0
  389. data/lib/language_operator/cli/commands/persona.rb +10 -8
  390. data/lib/language_operator/cli/commands/status.rb +83 -13
  391. data/lib/language_operator/cli/commands/system/exec.rb +10 -10
  392. data/lib/language_operator/cli/commands/system/schema.rb +6 -6
  393. data/lib/language_operator/cli/commands/system/synthesis_template.rb +6 -6
  394. data/lib/language_operator/cli/commands/system/synthesize.rb +14 -14
  395. data/lib/language_operator/cli/commands/system/validate_template.rb +4 -4
  396. data/lib/language_operator/cli/commands/tool/base.rb +1 -1
  397. data/lib/language_operator/cli/commands/tool/install.rb +2 -2
  398. data/lib/language_operator/cli/commands/tool/search.rb +3 -3
  399. data/lib/language_operator/cli/commands/ui.rb +173 -0
  400. data/lib/language_operator/cli/commands/use.rb +80 -9
  401. data/lib/language_operator/cli/errors/suggestions.rb +21 -21
  402. data/lib/language_operator/cli/formatters/progress_formatter.rb +2 -1
  403. data/lib/language_operator/cli/formatters/table_formatter.rb +21 -1
  404. data/lib/language_operator/cli/helpers/cluster_validator.rb +2 -2
  405. data/lib/language_operator/cli/helpers/health_checker.rb +263 -0
  406. data/lib/language_operator/cli/helpers/kubeconfig_validator.rb +3 -3
  407. data/lib/language_operator/cli/helpers/ux_helper.rb +4 -3
  408. data/lib/language_operator/cli/main.rb +30 -21
  409. data/lib/language_operator/cli/wizards/model_wizard.rb +7 -5
  410. data/lib/language_operator/config/cluster_config.rb +3 -3
  411. data/lib/language_operator/constants/kubernetes_labels.rb +1 -1
  412. data/lib/language_operator/kubernetes/client.rb +53 -109
  413. data/lib/language_operator/kubernetes/resource_builder.rb +46 -14
  414. data/lib/language_operator/templates/schema/agent_dsl_openapi.yaml +1 -1
  415. data/lib/language_operator/templates/schema/agent_dsl_schema.json +1 -1
  416. data/lib/language_operator/utils/org_context.rb +100 -0
  417. data/lib/language_operator/version.rb +1 -1
  418. data/synth/001/Makefile +1 -1
  419. data/synth/002/Makefile +1 -1
  420. data/synth/003/Makefile +1 -1
  421. data/synth/004/Makefile +1 -1
  422. metadata +384 -11
  423. data/completions/aictl.fish +0 -114
  424. data/lib/language_operator/agent/event_config.rb +0 -172
  425. data/lib/language_operator/cli/commands/quickstart.rb +0 -22
  426. data/lib/language_operator/cli/wizards/quickstart_wizard.rb +0 -561
  427. /data/bin/{aictl → langop} +0 -0
@@ -0,0 +1,955 @@
1
+ /**
2
+ * The `node:assert` module provides a set of assertion functions for verifying
3
+ * invariants.
4
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/assert.js)
5
+ */
6
+ declare module "node:assert" {
7
+ import strict = require("node:assert/strict");
8
+ /**
9
+ * An alias of {@link assert.ok}.
10
+ * @since v0.5.9
11
+ * @param value The input that is checked for being truthy.
12
+ */
13
+ function assert(value: unknown, message?: string | Error): asserts value;
14
+ const kOptions: unique symbol;
15
+ namespace assert {
16
+ type AssertMethodNames =
17
+ | "deepEqual"
18
+ | "deepStrictEqual"
19
+ | "doesNotMatch"
20
+ | "doesNotReject"
21
+ | "doesNotThrow"
22
+ | "equal"
23
+ | "fail"
24
+ | "ifError"
25
+ | "match"
26
+ | "notDeepEqual"
27
+ | "notDeepStrictEqual"
28
+ | "notEqual"
29
+ | "notStrictEqual"
30
+ | "ok"
31
+ | "partialDeepStrictEqual"
32
+ | "rejects"
33
+ | "strictEqual"
34
+ | "throws";
35
+ interface AssertOptions {
36
+ /**
37
+ * If set to `'full'`, shows the full diff in assertion errors.
38
+ * @default 'simple'
39
+ */
40
+ diff?: "simple" | "full" | undefined;
41
+ /**
42
+ * If set to `true`, non-strict methods behave like their
43
+ * corresponding strict methods.
44
+ * @default true
45
+ */
46
+ strict?: boolean | undefined;
47
+ /**
48
+ * If set to `true`, skips prototype and constructor
49
+ * comparison in deep equality checks.
50
+ * @since v24.9.0
51
+ * @default false
52
+ */
53
+ skipPrototype?: boolean | undefined;
54
+ }
55
+ interface Assert extends Pick<typeof assert, AssertMethodNames> {
56
+ readonly [kOptions]: AssertOptions & { strict: false };
57
+ }
58
+ interface AssertStrict extends Pick<typeof strict, AssertMethodNames> {
59
+ readonly [kOptions]: AssertOptions & { strict: true };
60
+ }
61
+ /**
62
+ * The `Assert` class allows creating independent assertion instances with custom options.
63
+ * @since v24.6.0
64
+ */
65
+ var Assert: {
66
+ /**
67
+ * Creates a new assertion instance. The `diff` option controls the verbosity of diffs in assertion error messages.
68
+ *
69
+ * ```js
70
+ * const { Assert } = require('node:assert');
71
+ * const assertInstance = new Assert({ diff: 'full' });
72
+ * assertInstance.deepStrictEqual({ a: 1 }, { a: 2 });
73
+ * // Shows a full diff in the error message.
74
+ * ```
75
+ *
76
+ * **Important**: When destructuring assertion methods from an `Assert` instance,
77
+ * the methods lose their connection to the instance's configuration options (such
78
+ * as `diff`, `strict`, and `skipPrototype` settings).
79
+ * The destructured methods will fall back to default behavior instead.
80
+ *
81
+ * ```js
82
+ * const myAssert = new Assert({ diff: 'full' });
83
+ *
84
+ * // This works as expected - uses 'full' diff
85
+ * myAssert.strictEqual({ a: 1 }, { b: { c: 1 } });
86
+ *
87
+ * // This loses the 'full' diff setting - falls back to default 'simple' diff
88
+ * const { strictEqual } = myAssert;
89
+ * strictEqual({ a: 1 }, { b: { c: 1 } });
90
+ * ```
91
+ *
92
+ * The `skipPrototype` option affects all deep equality methods:
93
+ *
94
+ * ```js
95
+ * class Foo {
96
+ * constructor(a) {
97
+ * this.a = a;
98
+ * }
99
+ * }
100
+ *
101
+ * class Bar {
102
+ * constructor(a) {
103
+ * this.a = a;
104
+ * }
105
+ * }
106
+ *
107
+ * const foo = new Foo(1);
108
+ * const bar = new Bar(1);
109
+ *
110
+ * // Default behavior - fails due to different constructors
111
+ * const assert1 = new Assert();
112
+ * assert1.deepStrictEqual(foo, bar); // AssertionError
113
+ *
114
+ * // Skip prototype comparison - passes if properties are equal
115
+ * const assert2 = new Assert({ skipPrototype: true });
116
+ * assert2.deepStrictEqual(foo, bar); // OK
117
+ * ```
118
+ *
119
+ * When destructured, methods lose access to the instance's `this` context and revert to default assertion behavior
120
+ * (diff: 'simple', non-strict mode).
121
+ * To maintain custom options when using destructured methods, avoid
122
+ * destructuring and call methods directly on the instance.
123
+ * @since v24.6.0
124
+ */
125
+ new(
126
+ options?: AssertOptions & { strict?: true | undefined },
127
+ ): AssertStrict;
128
+ new(
129
+ options: AssertOptions,
130
+ ): Assert;
131
+ };
132
+ interface AssertionErrorOptions {
133
+ /**
134
+ * If provided, the error message is set to this value.
135
+ */
136
+ message?: string | undefined;
137
+ /**
138
+ * The `actual` property on the error instance.
139
+ */
140
+ actual?: unknown;
141
+ /**
142
+ * The `expected` property on the error instance.
143
+ */
144
+ expected?: unknown;
145
+ /**
146
+ * The `operator` property on the error instance.
147
+ */
148
+ operator?: string | undefined;
149
+ /**
150
+ * If provided, the generated stack trace omits frames before this function.
151
+ */
152
+ stackStartFn?: Function | undefined;
153
+ /**
154
+ * If set to `'full'`, shows the full diff in assertion errors.
155
+ * @default 'simple'
156
+ */
157
+ diff?: "simple" | "full" | undefined;
158
+ }
159
+ /**
160
+ * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
161
+ */
162
+ class AssertionError extends Error {
163
+ constructor(options: AssertionErrorOptions);
164
+ /**
165
+ * Set to the `actual` argument for methods such as {@link assert.strictEqual()}.
166
+ */
167
+ actual: unknown;
168
+ /**
169
+ * Set to the `expected` argument for methods such as {@link assert.strictEqual()}.
170
+ */
171
+ expected: unknown;
172
+ /**
173
+ * Indicates if the message was auto-generated (`true`) or not.
174
+ */
175
+ generatedMessage: boolean;
176
+ /**
177
+ * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
178
+ */
179
+ code: "ERR_ASSERTION";
180
+ /**
181
+ * Set to the passed in operator value.
182
+ */
183
+ operator: string;
184
+ }
185
+ type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
186
+ /**
187
+ * Throws an `AssertionError` with the provided error message or a default
188
+ * error message. If the `message` parameter is an instance of an `Error` then
189
+ * it will be thrown instead of the `AssertionError`.
190
+ *
191
+ * ```js
192
+ * import assert from 'node:assert/strict';
193
+ *
194
+ * assert.fail();
195
+ * // AssertionError [ERR_ASSERTION]: Failed
196
+ *
197
+ * assert.fail('boom');
198
+ * // AssertionError [ERR_ASSERTION]: boom
199
+ *
200
+ * assert.fail(new TypeError('need array'));
201
+ * // TypeError: need array
202
+ * ```
203
+ * @since v0.1.21
204
+ * @param [message='Failed']
205
+ */
206
+ function fail(message?: string | Error): never;
207
+ /**
208
+ * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`.
209
+ *
210
+ * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default
211
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
212
+ * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
213
+ *
214
+ * Be aware that in the `repl` the error message will be different to the one
215
+ * thrown in a file! See below for further details.
216
+ *
217
+ * ```js
218
+ * import assert from 'node:assert/strict';
219
+ *
220
+ * assert.ok(true);
221
+ * // OK
222
+ * assert.ok(1);
223
+ * // OK
224
+ *
225
+ * assert.ok();
226
+ * // AssertionError: No value argument passed to `assert.ok()`
227
+ *
228
+ * assert.ok(false, 'it\'s false');
229
+ * // AssertionError: it's false
230
+ *
231
+ * // In the repl:
232
+ * assert.ok(typeof 123 === 'string');
233
+ * // AssertionError: false == true
234
+ *
235
+ * // In a file (e.g. test.js):
236
+ * assert.ok(typeof 123 === 'string');
237
+ * // AssertionError: The expression evaluated to a falsy value:
238
+ * //
239
+ * // assert.ok(typeof 123 === 'string')
240
+ *
241
+ * assert.ok(false);
242
+ * // AssertionError: The expression evaluated to a falsy value:
243
+ * //
244
+ * // assert.ok(false)
245
+ *
246
+ * assert.ok(0);
247
+ * // AssertionError: The expression evaluated to a falsy value:
248
+ * //
249
+ * // assert.ok(0)
250
+ * ```
251
+ *
252
+ * ```js
253
+ * import assert from 'node:assert/strict';
254
+ *
255
+ * // Using `assert()` works the same:
256
+ * assert(0);
257
+ * // AssertionError: The expression evaluated to a falsy value:
258
+ * //
259
+ * // assert(0)
260
+ * ```
261
+ * @since v0.1.21
262
+ */
263
+ function ok(value: unknown, message?: string | Error): asserts value;
264
+ /**
265
+ * **Strict assertion mode**
266
+ *
267
+ * An alias of {@link strictEqual}.
268
+ *
269
+ * **Legacy assertion mode**
270
+ *
271
+ * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
272
+ *
273
+ * Tests shallow, coercive equality between the `actual` and `expected` parameters
274
+ * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
275
+ * and treated as being identical if both sides are `NaN`.
276
+ *
277
+ * ```js
278
+ * import assert from 'node:assert';
279
+ *
280
+ * assert.equal(1, 1);
281
+ * // OK, 1 == 1
282
+ * assert.equal(1, '1');
283
+ * // OK, 1 == '1'
284
+ * assert.equal(NaN, NaN);
285
+ * // OK
286
+ *
287
+ * assert.equal(1, 2);
288
+ * // AssertionError: 1 == 2
289
+ * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
290
+ * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
291
+ * ```
292
+ *
293
+ * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
294
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
295
+ * @since v0.1.21
296
+ */
297
+ function equal(actual: unknown, expected: unknown, message?: string | Error): void;
298
+ /**
299
+ * **Strict assertion mode**
300
+ *
301
+ * An alias of {@link notStrictEqual}.
302
+ *
303
+ * **Legacy assertion mode**
304
+ *
305
+ * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
306
+ *
307
+ * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
308
+ * specially handled and treated as being identical if both sides are `NaN`.
309
+ *
310
+ * ```js
311
+ * import assert from 'node:assert';
312
+ *
313
+ * assert.notEqual(1, 2);
314
+ * // OK
315
+ *
316
+ * assert.notEqual(1, 1);
317
+ * // AssertionError: 1 != 1
318
+ *
319
+ * assert.notEqual(1, '1');
320
+ * // AssertionError: 1 != '1'
321
+ * ```
322
+ *
323
+ * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error
324
+ * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
325
+ * @since v0.1.21
326
+ */
327
+ function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
328
+ /**
329
+ * **Strict assertion mode**
330
+ *
331
+ * An alias of {@link deepStrictEqual}.
332
+ *
333
+ * **Legacy assertion mode**
334
+ *
335
+ * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
336
+ *
337
+ * Tests for deep equality between the `actual` and `expected` parameters. Consider
338
+ * using {@link deepStrictEqual} instead. {@link deepEqual} can have
339
+ * surprising results.
340
+ *
341
+ * _Deep equality_ means that the enumerable "own" properties of child objects
342
+ * are also recursively evaluated by the following rules.
343
+ * @since v0.1.21
344
+ */
345
+ function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
346
+ /**
347
+ * **Strict assertion mode**
348
+ *
349
+ * An alias of {@link notDeepStrictEqual}.
350
+ *
351
+ * **Legacy assertion mode**
352
+ *
353
+ * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
354
+ *
355
+ * Tests for any deep inequality. Opposite of {@link deepEqual}.
356
+ *
357
+ * ```js
358
+ * import assert from 'node:assert';
359
+ *
360
+ * const obj1 = {
361
+ * a: {
362
+ * b: 1,
363
+ * },
364
+ * };
365
+ * const obj2 = {
366
+ * a: {
367
+ * b: 2,
368
+ * },
369
+ * };
370
+ * const obj3 = {
371
+ * a: {
372
+ * b: 1,
373
+ * },
374
+ * };
375
+ * const obj4 = { __proto__: obj1 };
376
+ *
377
+ * assert.notDeepEqual(obj1, obj1);
378
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
379
+ *
380
+ * assert.notDeepEqual(obj1, obj2);
381
+ * // OK
382
+ *
383
+ * assert.notDeepEqual(obj1, obj3);
384
+ * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
385
+ *
386
+ * assert.notDeepEqual(obj1, obj4);
387
+ * // OK
388
+ * ```
389
+ *
390
+ * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
391
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
392
+ * instead of the `AssertionError`.
393
+ * @since v0.1.21
394
+ */
395
+ function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
396
+ /**
397
+ * Tests strict equality between the `actual` and `expected` parameters as
398
+ * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
399
+ *
400
+ * ```js
401
+ * import assert from 'node:assert/strict';
402
+ *
403
+ * assert.strictEqual(1, 2);
404
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
405
+ * //
406
+ * // 1 !== 2
407
+ *
408
+ * assert.strictEqual(1, 1);
409
+ * // OK
410
+ *
411
+ * assert.strictEqual('Hello foobar', 'Hello World!');
412
+ * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
413
+ * // + actual - expected
414
+ * //
415
+ * // + 'Hello foobar'
416
+ * // - 'Hello World!'
417
+ * // ^
418
+ *
419
+ * const apples = 1;
420
+ * const oranges = 2;
421
+ * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
422
+ * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
423
+ *
424
+ * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
425
+ * // TypeError: Inputs are not identical
426
+ * ```
427
+ *
428
+ * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
429
+ * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
430
+ * instead of the `AssertionError`.
431
+ * @since v0.1.21
432
+ */
433
+ function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
434
+ /**
435
+ * Tests strict inequality between the `actual` and `expected` parameters as
436
+ * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
437
+ *
438
+ * ```js
439
+ * import assert from 'node:assert/strict';
440
+ *
441
+ * assert.notStrictEqual(1, 2);
442
+ * // OK
443
+ *
444
+ * assert.notStrictEqual(1, 1);
445
+ * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
446
+ * //
447
+ * // 1
448
+ *
449
+ * assert.notStrictEqual(1, '1');
450
+ * // OK
451
+ * ```
452
+ *
453
+ * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
454
+ * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
455
+ * instead of the `AssertionError`.
456
+ * @since v0.1.21
457
+ */
458
+ function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
459
+ /**
460
+ * Tests for deep equality between the `actual` and `expected` parameters.
461
+ * "Deep" equality means that the enumerable "own" properties of child objects
462
+ * are recursively evaluated also by the following rules.
463
+ * @since v1.2.0
464
+ */
465
+ function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
466
+ /**
467
+ * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
468
+ *
469
+ * ```js
470
+ * import assert from 'node:assert/strict';
471
+ *
472
+ * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
473
+ * // OK
474
+ * ```
475
+ *
476
+ * If the values are deeply and strictly equal, an `AssertionError` is thrown
477
+ * with a `message` property set equal to the value of the `message` parameter. If
478
+ * the `message` parameter is undefined, a default error message is assigned. If
479
+ * the `message` parameter is an instance of an `Error` then it will be thrown
480
+ * instead of the `AssertionError`.
481
+ * @since v1.2.0
482
+ */
483
+ function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
484
+ /**
485
+ * Expects the function `fn` to throw an error.
486
+ *
487
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
488
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
489
+ * a validation object where each property will be tested for strict deep equality,
490
+ * or an instance of error where each property will be tested for strict deep
491
+ * equality including the non-enumerable `message` and `name` properties. When
492
+ * using an object, it is also possible to use a regular expression, when
493
+ * validating against a string property. See below for examples.
494
+ *
495
+ * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation
496
+ * fails.
497
+ *
498
+ * Custom validation object/error instance:
499
+ *
500
+ * ```js
501
+ * import assert from 'node:assert/strict';
502
+ *
503
+ * const err = new TypeError('Wrong value');
504
+ * err.code = 404;
505
+ * err.foo = 'bar';
506
+ * err.info = {
507
+ * nested: true,
508
+ * baz: 'text',
509
+ * };
510
+ * err.reg = /abc/i;
511
+ *
512
+ * assert.throws(
513
+ * () => {
514
+ * throw err;
515
+ * },
516
+ * {
517
+ * name: 'TypeError',
518
+ * message: 'Wrong value',
519
+ * info: {
520
+ * nested: true,
521
+ * baz: 'text',
522
+ * },
523
+ * // Only properties on the validation object will be tested for.
524
+ * // Using nested objects requires all properties to be present. Otherwise
525
+ * // the validation is going to fail.
526
+ * },
527
+ * );
528
+ *
529
+ * // Using regular expressions to validate error properties:
530
+ * assert.throws(
531
+ * () => {
532
+ * throw err;
533
+ * },
534
+ * {
535
+ * // The `name` and `message` properties are strings and using regular
536
+ * // expressions on those will match against the string. If they fail, an
537
+ * // error is thrown.
538
+ * name: /^TypeError$/,
539
+ * message: /Wrong/,
540
+ * foo: 'bar',
541
+ * info: {
542
+ * nested: true,
543
+ * // It is not possible to use regular expressions for nested properties!
544
+ * baz: 'text',
545
+ * },
546
+ * // The `reg` property contains a regular expression and only if the
547
+ * // validation object contains an identical regular expression, it is going
548
+ * // to pass.
549
+ * reg: /abc/i,
550
+ * },
551
+ * );
552
+ *
553
+ * // Fails due to the different `message` and `name` properties:
554
+ * assert.throws(
555
+ * () => {
556
+ * const otherErr = new Error('Not found');
557
+ * // Copy all enumerable properties from `err` to `otherErr`.
558
+ * for (const [key, value] of Object.entries(err)) {
559
+ * otherErr[key] = value;
560
+ * }
561
+ * throw otherErr;
562
+ * },
563
+ * // The error's `message` and `name` properties will also be checked when using
564
+ * // an error as validation object.
565
+ * err,
566
+ * );
567
+ * ```
568
+ *
569
+ * Validate instanceof using constructor:
570
+ *
571
+ * ```js
572
+ * import assert from 'node:assert/strict';
573
+ *
574
+ * assert.throws(
575
+ * () => {
576
+ * throw new Error('Wrong value');
577
+ * },
578
+ * Error,
579
+ * );
580
+ * ```
581
+ *
582
+ * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
583
+ *
584
+ * Using a regular expression runs `.toString` on the error object, and will
585
+ * therefore also include the error name.
586
+ *
587
+ * ```js
588
+ * import assert from 'node:assert/strict';
589
+ *
590
+ * assert.throws(
591
+ * () => {
592
+ * throw new Error('Wrong value');
593
+ * },
594
+ * /^Error: Wrong value$/,
595
+ * );
596
+ * ```
597
+ *
598
+ * Custom error validation:
599
+ *
600
+ * The function must return `true` to indicate all internal validations passed.
601
+ * It will otherwise fail with an `AssertionError`.
602
+ *
603
+ * ```js
604
+ * import assert from 'node:assert/strict';
605
+ *
606
+ * assert.throws(
607
+ * () => {
608
+ * throw new Error('Wrong value');
609
+ * },
610
+ * (err) => {
611
+ * assert(err instanceof Error);
612
+ * assert(/value/.test(err));
613
+ * // Avoid returning anything from validation functions besides `true`.
614
+ * // Otherwise, it's not clear what part of the validation failed. Instead,
615
+ * // throw an error about the specific validation that failed (as done in this
616
+ * // example) and add as much helpful debugging information to that error as
617
+ * // possible.
618
+ * return true;
619
+ * },
620
+ * 'unexpected error',
621
+ * );
622
+ * ```
623
+ *
624
+ * `error` cannot be a string. If a string is provided as the second
625
+ * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same
626
+ * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
627
+ * a string as the second argument gets considered:
628
+ *
629
+ * ```js
630
+ * import assert from 'node:assert/strict';
631
+ *
632
+ * function throwingFirst() {
633
+ * throw new Error('First');
634
+ * }
635
+ *
636
+ * function throwingSecond() {
637
+ * throw new Error('Second');
638
+ * }
639
+ *
640
+ * function notThrowing() {}
641
+ *
642
+ * // The second argument is a string and the input function threw an Error.
643
+ * // The first case will not throw as it does not match for the error message
644
+ * // thrown by the input function!
645
+ * assert.throws(throwingFirst, 'Second');
646
+ * // In the next example the message has no benefit over the message from the
647
+ * // error and since it is not clear if the user intended to actually match
648
+ * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
649
+ * assert.throws(throwingSecond, 'Second');
650
+ * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
651
+ *
652
+ * // The string is only used (as message) in case the function does not throw:
653
+ * assert.throws(notThrowing, 'Second');
654
+ * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
655
+ *
656
+ * // If it was intended to match for the error message do this instead:
657
+ * // It does not throw because the error messages match.
658
+ * assert.throws(throwingSecond, /Second$/);
659
+ *
660
+ * // If the error message does not match, an AssertionError is thrown.
661
+ * assert.throws(throwingFirst, /Second$/);
662
+ * // AssertionError [ERR_ASSERTION]
663
+ * ```
664
+ *
665
+ * Due to the confusing error-prone notation, avoid a string as the second
666
+ * argument.
667
+ * @since v0.1.21
668
+ */
669
+ function throws(block: () => unknown, message?: string | Error): void;
670
+ function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
671
+ /**
672
+ * Asserts that the function `fn` does not throw an error.
673
+ *
674
+ * Using `assert.doesNotThrow()` is actually not useful because there
675
+ * is no benefit in catching an error and then rethrowing it. Instead, consider
676
+ * adding a comment next to the specific code path that should not throw and keep
677
+ * error messages as expressive as possible.
678
+ *
679
+ * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function.
680
+ *
681
+ * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a
682
+ * different type, or if the `error` parameter is undefined, the error is
683
+ * propagated back to the caller.
684
+ *
685
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
686
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
687
+ * function. See {@link throws} for more details.
688
+ *
689
+ * The following, for instance, will throw the `TypeError` because there is no
690
+ * matching error type in the assertion:
691
+ *
692
+ * ```js
693
+ * import assert from 'node:assert/strict';
694
+ *
695
+ * assert.doesNotThrow(
696
+ * () => {
697
+ * throw new TypeError('Wrong value');
698
+ * },
699
+ * SyntaxError,
700
+ * );
701
+ * ```
702
+ *
703
+ * However, the following will result in an `AssertionError` with the message
704
+ * 'Got unwanted exception...':
705
+ *
706
+ * ```js
707
+ * import assert from 'node:assert/strict';
708
+ *
709
+ * assert.doesNotThrow(
710
+ * () => {
711
+ * throw new TypeError('Wrong value');
712
+ * },
713
+ * TypeError,
714
+ * );
715
+ * ```
716
+ *
717
+ * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message:
718
+ *
719
+ * ```js
720
+ * import assert from 'node:assert/strict';
721
+ *
722
+ * assert.doesNotThrow(
723
+ * () => {
724
+ * throw new TypeError('Wrong value');
725
+ * },
726
+ * /Wrong value/,
727
+ * 'Whoops',
728
+ * );
729
+ * // Throws: AssertionError: Got unwanted exception: Whoops
730
+ * ```
731
+ * @since v0.1.21
732
+ */
733
+ function doesNotThrow(block: () => unknown, message?: string | Error): void;
734
+ function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
735
+ /**
736
+ * Throws `value` if `value` is not `undefined` or `null`. This is useful when
737
+ * testing the `error` argument in callbacks. The stack trace contains all frames
738
+ * from the error passed to `ifError()` including the potential new frames for `ifError()` itself.
739
+ *
740
+ * ```js
741
+ * import assert from 'node:assert/strict';
742
+ *
743
+ * assert.ifError(null);
744
+ * // OK
745
+ * assert.ifError(0);
746
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
747
+ * assert.ifError('error');
748
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
749
+ * assert.ifError(new Error());
750
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
751
+ *
752
+ * // Create some random error frames.
753
+ * let err;
754
+ * (function errorFrame() {
755
+ * err = new Error('test error');
756
+ * })();
757
+ *
758
+ * (function ifErrorFrame() {
759
+ * assert.ifError(err);
760
+ * })();
761
+ * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
762
+ * // at ifErrorFrame
763
+ * // at errorFrame
764
+ * ```
765
+ * @since v0.1.97
766
+ */
767
+ function ifError(value: unknown): asserts value is null | undefined;
768
+ /**
769
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
770
+ * calls the function and awaits the returned promise to complete. It will then
771
+ * check that the promise is rejected.
772
+ *
773
+ * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
774
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value)
775
+ * error. In both cases the error handler is skipped.
776
+ *
777
+ * Besides the async nature to await the completion behaves identically to {@link throws}.
778
+ *
779
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
780
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
781
+ * an object where each property will be tested for, or an instance of error where
782
+ * each property will be tested for including the non-enumerable `message` and `name` properties.
783
+ *
784
+ * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject.
785
+ *
786
+ * ```js
787
+ * import assert from 'node:assert/strict';
788
+ *
789
+ * await assert.rejects(
790
+ * async () => {
791
+ * throw new TypeError('Wrong value');
792
+ * },
793
+ * {
794
+ * name: 'TypeError',
795
+ * message: 'Wrong value',
796
+ * },
797
+ * );
798
+ * ```
799
+ *
800
+ * ```js
801
+ * import assert from 'node:assert/strict';
802
+ *
803
+ * await assert.rejects(
804
+ * async () => {
805
+ * throw new TypeError('Wrong value');
806
+ * },
807
+ * (err) => {
808
+ * assert.strictEqual(err.name, 'TypeError');
809
+ * assert.strictEqual(err.message, 'Wrong value');
810
+ * return true;
811
+ * },
812
+ * );
813
+ * ```
814
+ *
815
+ * ```js
816
+ * import assert from 'node:assert/strict';
817
+ *
818
+ * assert.rejects(
819
+ * Promise.reject(new Error('Wrong value')),
820
+ * Error,
821
+ * ).then(() => {
822
+ * // ...
823
+ * });
824
+ * ```
825
+ *
826
+ * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to
827
+ * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the
828
+ * example in {@link throws} carefully if using a string as the second argument gets considered.
829
+ * @since v10.0.0
830
+ */
831
+ function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
832
+ function rejects(
833
+ block: (() => Promise<unknown>) | Promise<unknown>,
834
+ error: AssertPredicate,
835
+ message?: string | Error,
836
+ ): Promise<void>;
837
+ /**
838
+ * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
839
+ * calls the function and awaits the returned promise to complete. It will then
840
+ * check that the promise is not rejected.
841
+ *
842
+ * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
843
+ * the function does not return a promise, `assert.doesNotReject()` will return a
844
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value) error. In both cases
845
+ * the error handler is skipped.
846
+ *
847
+ * Using `assert.doesNotReject()` is actually not useful because there is little
848
+ * benefit in catching a rejection and then rejecting it again. Instead, consider
849
+ * adding a comment next to the specific code path that should not reject and keep
850
+ * error messages as expressive as possible.
851
+ *
852
+ * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
853
+ * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
854
+ * function. See {@link throws} for more details.
855
+ *
856
+ * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
857
+ *
858
+ * ```js
859
+ * import assert from 'node:assert/strict';
860
+ *
861
+ * await assert.doesNotReject(
862
+ * async () => {
863
+ * throw new TypeError('Wrong value');
864
+ * },
865
+ * SyntaxError,
866
+ * );
867
+ * ```
868
+ *
869
+ * ```js
870
+ * import assert from 'node:assert/strict';
871
+ *
872
+ * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
873
+ * .then(() => {
874
+ * // ...
875
+ * });
876
+ * ```
877
+ * @since v10.0.0
878
+ */
879
+ function doesNotReject(
880
+ block: (() => Promise<unknown>) | Promise<unknown>,
881
+ message?: string | Error,
882
+ ): Promise<void>;
883
+ function doesNotReject(
884
+ block: (() => Promise<unknown>) | Promise<unknown>,
885
+ error: AssertPredicate,
886
+ message?: string | Error,
887
+ ): Promise<void>;
888
+ /**
889
+ * Expects the `string` input to match the regular expression.
890
+ *
891
+ * ```js
892
+ * import assert from 'node:assert/strict';
893
+ *
894
+ * assert.match('I will fail', /pass/);
895
+ * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
896
+ *
897
+ * assert.match(123, /pass/);
898
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
899
+ *
900
+ * assert.match('I will pass', /pass/);
901
+ * // OK
902
+ * ```
903
+ *
904
+ * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
905
+ * to the value of the `message` parameter. If the `message` parameter is
906
+ * undefined, a default error message is assigned. If the `message` parameter is an
907
+ * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
908
+ * @since v13.6.0, v12.16.0
909
+ */
910
+ function match(value: string, regExp: RegExp, message?: string | Error): void;
911
+ /**
912
+ * Expects the `string` input not to match the regular expression.
913
+ *
914
+ * ```js
915
+ * import assert from 'node:assert/strict';
916
+ *
917
+ * assert.doesNotMatch('I will fail', /fail/);
918
+ * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
919
+ *
920
+ * assert.doesNotMatch(123, /pass/);
921
+ * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
922
+ *
923
+ * assert.doesNotMatch('I will pass', /different/);
924
+ * // OK
925
+ * ```
926
+ *
927
+ * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
928
+ * to the value of the `message` parameter. If the `message` parameter is
929
+ * undefined, a default error message is assigned. If the `message` parameter is an
930
+ * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
931
+ * @since v13.6.0, v12.16.0
932
+ */
933
+ function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
934
+ /**
935
+ * Tests for partial deep equality between the `actual` and `expected` parameters.
936
+ * "Deep" equality means that the enumerable "own" properties of child objects
937
+ * are recursively evaluated also by the following rules. "Partial" equality means
938
+ * that only properties that exist on the `expected` parameter are going to be
939
+ * compared.
940
+ *
941
+ * This method always passes the same test cases as `assert.deepStrictEqual()`,
942
+ * behaving as a super set of it.
943
+ * @since v22.13.0
944
+ */
945
+ function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
946
+ }
947
+ namespace assert {
948
+ export { strict };
949
+ }
950
+ export = assert;
951
+ }
952
+ declare module "assert" {
953
+ import assert = require("node:assert");
954
+ export = assert;
955
+ }