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,819 @@
1
+ /**
2
+ * @since v0.3.7
3
+ */
4
+ declare module "node:module" {
5
+ import { URL } from "node:url";
6
+ class Module {
7
+ constructor(id: string, parent?: Module);
8
+ }
9
+ interface Module extends NodeJS.Module {}
10
+ namespace Module {
11
+ export { Module };
12
+ }
13
+ namespace Module {
14
+ /**
15
+ * A list of the names of all modules provided by Node.js. Can be used to verify
16
+ * if a module is maintained by a third party or not.
17
+ *
18
+ * Note: the list doesn't contain prefix-only modules like `node:test`.
19
+ * @since v9.3.0, v8.10.0, v6.13.0
20
+ */
21
+ const builtinModules: readonly string[];
22
+ /**
23
+ * @since v12.2.0
24
+ * @param path Filename to be used to construct the require
25
+ * function. Must be a file URL object, file URL string, or absolute path
26
+ * string.
27
+ */
28
+ function createRequire(path: string | URL): NodeJS.Require;
29
+ namespace constants {
30
+ /**
31
+ * The following constants are returned as the `status` field in the object returned by
32
+ * {@link enableCompileCache} to indicate the result of the attempt to enable the
33
+ * [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache).
34
+ * @since v22.8.0
35
+ */
36
+ namespace compileCacheStatus {
37
+ /**
38
+ * Node.js has enabled the compile cache successfully. The directory used to store the
39
+ * compile cache will be returned in the `directory` field in the
40
+ * returned object.
41
+ */
42
+ const ENABLED: number;
43
+ /**
44
+ * The compile cache has already been enabled before, either by a previous call to
45
+ * {@link enableCompileCache}, or by the `NODE_COMPILE_CACHE=dir`
46
+ * environment variable. The directory used to store the
47
+ * compile cache will be returned in the `directory` field in the
48
+ * returned object.
49
+ */
50
+ const ALREADY_ENABLED: number;
51
+ /**
52
+ * Node.js fails to enable the compile cache. This can be caused by the lack of
53
+ * permission to use the specified directory, or various kinds of file system errors.
54
+ * The detail of the failure will be returned in the `message` field in the
55
+ * returned object.
56
+ */
57
+ const FAILED: number;
58
+ /**
59
+ * Node.js cannot enable the compile cache because the environment variable
60
+ * `NODE_DISABLE_COMPILE_CACHE=1` has been set.
61
+ */
62
+ const DISABLED: number;
63
+ }
64
+ }
65
+ interface EnableCompileCacheOptions {
66
+ /**
67
+ * Optional. Directory to store the compile cache. If not specified,
68
+ * the directory specified by the `NODE_COMPILE_CACHE=dir` environment variable
69
+ * will be used if it's set, or `path.join(os.tmpdir(), 'node-compile-cache')`
70
+ * otherwise.
71
+ * @since v25.0.0
72
+ */
73
+ directory?: string | undefined;
74
+ /**
75
+ * Optional. If `true`, enables portable compile cache so that
76
+ * the cache can be reused even if the project directory is moved. This is a best-effort
77
+ * feature. If not specified, it will depend on whether the environment variable
78
+ * `NODE_COMPILE_CACHE_PORTABLE=1` is set.
79
+ * @since v25.0.0
80
+ */
81
+ portable?: boolean | undefined;
82
+ }
83
+ interface EnableCompileCacheResult {
84
+ /**
85
+ * One of the {@link constants.compileCacheStatus}
86
+ */
87
+ status: number;
88
+ /**
89
+ * If Node.js cannot enable the compile cache, this contains
90
+ * the error message. Only set if `status` is `module.constants.compileCacheStatus.FAILED`.
91
+ */
92
+ message?: string;
93
+ /**
94
+ * If the compile cache is enabled, this contains the directory
95
+ * where the compile cache is stored. Only set if `status` is
96
+ * `module.constants.compileCacheStatus.ENABLED` or
97
+ * `module.constants.compileCacheStatus.ALREADY_ENABLED`.
98
+ */
99
+ directory?: string;
100
+ }
101
+ /**
102
+ * Enable [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache)
103
+ * in the current Node.js instance.
104
+ *
105
+ * For general use cases, it's recommended to call `module.enableCompileCache()` without
106
+ * specifying the `options.directory`, so that the directory can be overridden by the
107
+ * `NODE_COMPILE_CACHE` environment variable when necessary.
108
+ *
109
+ * Since compile cache is supposed to be a optimization that is not mission critical, this
110
+ * method is designed to not throw any exception when the compile cache cannot be enabled.
111
+ * Instead, it will return an object containing an error message in the `message` field to
112
+ * aid debugging. If compile cache is enabled successfully, the `directory` field in the
113
+ * returned object contains the path to the directory where the compile cache is stored. The
114
+ * `status` field in the returned object would be one of the `module.constants.compileCacheStatus`
115
+ * values to indicate the result of the attempt to enable the
116
+ * [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache).
117
+ *
118
+ * This method only affects the current Node.js instance. To enable it in child worker threads,
119
+ * either call this method in child worker threads too, or set the
120
+ * `process.env.NODE_COMPILE_CACHE` value to compile cache directory so the behavior can
121
+ * be inherited into the child workers. The directory can be obtained either from the
122
+ * `directory` field returned by this method, or with {@link getCompileCacheDir}.
123
+ * @since v22.8.0
124
+ * @param options Optional. If a string is passed, it is considered to be `options.directory`.
125
+ */
126
+ function enableCompileCache(options?: string | EnableCompileCacheOptions): EnableCompileCacheResult;
127
+ /**
128
+ * Flush the [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache)
129
+ * accumulated from modules already loaded
130
+ * in the current Node.js instance to disk. This returns after all the flushing
131
+ * file system operations come to an end, no matter they succeed or not. If there
132
+ * are any errors, this will fail silently, since compile cache misses should not
133
+ * interfere with the actual operation of the application.
134
+ * @since v22.10.0
135
+ */
136
+ function flushCompileCache(): void;
137
+ /**
138
+ * @since v22.8.0
139
+ * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache)
140
+ * directory if it is enabled, or `undefined` otherwise.
141
+ */
142
+ function getCompileCacheDir(): string | undefined;
143
+ /**
144
+ * ```text
145
+ * /path/to/project
146
+ * ├ packages/
147
+ * ├ bar/
148
+ * ├ bar.js
149
+ * └ package.json // name = '@foo/bar'
150
+ * └ qux/
151
+ * ├ node_modules/
152
+ * └ some-package/
153
+ * └ package.json // name = 'some-package'
154
+ * ├ qux.js
155
+ * └ package.json // name = '@foo/qux'
156
+ * ├ main.js
157
+ * └ package.json // name = '@foo'
158
+ * ```
159
+ * ```js
160
+ * // /path/to/project/packages/bar/bar.js
161
+ * import { findPackageJSON } from 'node:module';
162
+ *
163
+ * findPackageJSON('..', import.meta.url);
164
+ * // '/path/to/project/package.json'
165
+ * // Same result when passing an absolute specifier instead:
166
+ * findPackageJSON(new URL('../', import.meta.url));
167
+ * findPackageJSON(import.meta.resolve('../'));
168
+ *
169
+ * findPackageJSON('some-package', import.meta.url);
170
+ * // '/path/to/project/packages/bar/node_modules/some-package/package.json'
171
+ * // When passing an absolute specifier, you might get a different result if the
172
+ * // resolved module is inside a subfolder that has nested `package.json`.
173
+ * findPackageJSON(import.meta.resolve('some-package'));
174
+ * // '/path/to/project/packages/bar/node_modules/some-package/some-subfolder/package.json'
175
+ *
176
+ * findPackageJSON('@foo/qux', import.meta.url);
177
+ * // '/path/to/project/packages/qux/package.json'
178
+ * ```
179
+ * @since v22.14.0
180
+ * @param specifier The specifier for the module whose `package.json` to
181
+ * retrieve. When passing a _bare specifier_, the `package.json` at the root of
182
+ * the package is returned. When passing a _relative specifier_ or an _absolute specifier_,
183
+ * the closest parent `package.json` is returned.
184
+ * @param base The absolute location (`file:` URL string or FS path) of the
185
+ * containing module. For CJS, use `__filename` (not `__dirname`!); for ESM, use
186
+ * `import.meta.url`. You do not need to pass it if `specifier` is an _absolute specifier_.
187
+ * @returns A path if the `package.json` is found. When `startLocation`
188
+ * is a package, the package's root `package.json`; when a relative or unresolved, the closest
189
+ * `package.json` to the `startLocation`.
190
+ */
191
+ function findPackageJSON(specifier: string | URL, base?: string | URL): string | undefined;
192
+ /**
193
+ * @since v18.6.0, v16.17.0
194
+ */
195
+ function isBuiltin(moduleName: string): boolean;
196
+ interface RegisterOptions<Data> {
197
+ /**
198
+ * If you want to resolve `specifier` relative to a
199
+ * base URL, such as `import.meta.url`, you can pass that URL here. This
200
+ * property is ignored if the `parentURL` is supplied as the second argument.
201
+ * @default 'data:'
202
+ */
203
+ parentURL?: string | URL | undefined;
204
+ /**
205
+ * Any arbitrary, cloneable JavaScript value to pass into the
206
+ * {@link initialize} hook.
207
+ */
208
+ data?: Data | undefined;
209
+ /**
210
+ * [Transferable objects](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#portpostmessagevalue-transferlist)
211
+ * to be passed into the `initialize` hook.
212
+ */
213
+ transferList?: any[] | undefined;
214
+ }
215
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
216
+ /**
217
+ * Register a module that exports hooks that customize Node.js module
218
+ * resolution and loading behavior. See
219
+ * [Customization hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks).
220
+ *
221
+ * This feature requires `--allow-worker` if used with the
222
+ * [Permission Model](https://nodejs.org/docs/latest-v25.x/api/permissions.html#permission-model).
223
+ * @since v20.6.0, v18.19.0
224
+ * @param specifier Customization hooks to be registered; this should be
225
+ * the same string that would be passed to `import()`, except that if it is
226
+ * relative, it is resolved relative to `parentURL`.
227
+ * @param parentURL f you want to resolve `specifier` relative to a base
228
+ * URL, such as `import.meta.url`, you can pass that URL here.
229
+ */
230
+ function register<Data = any>(
231
+ specifier: string | URL,
232
+ parentURL?: string | URL,
233
+ options?: RegisterOptions<Data>,
234
+ ): void;
235
+ function register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
236
+ interface RegisterHooksOptions {
237
+ /**
238
+ * See [load hook](https://nodejs.org/docs/latest-v25.x/api/module.html#loadurl-context-nextload).
239
+ * @default undefined
240
+ */
241
+ load?: LoadHookSync | undefined;
242
+ /**
243
+ * See [resolve hook](https://nodejs.org/docs/latest-v25.x/api/module.html#resolvespecifier-context-nextresolve).
244
+ * @default undefined
245
+ */
246
+ resolve?: ResolveHookSync | undefined;
247
+ }
248
+ interface ModuleHooks {
249
+ /**
250
+ * Deregister the hook instance.
251
+ */
252
+ deregister(): void;
253
+ }
254
+ /**
255
+ * Register [hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks)
256
+ * that customize Node.js module resolution and loading behavior.
257
+ * @since v22.15.0
258
+ * @experimental
259
+ */
260
+ function registerHooks(options: RegisterHooksOptions): ModuleHooks;
261
+ interface StripTypeScriptTypesOptions {
262
+ /**
263
+ * Possible values are:
264
+ * * `'strip'` Only strip type annotations without performing the transformation of TypeScript features.
265
+ * * `'transform'` Strip type annotations and transform TypeScript features to JavaScript.
266
+ * @default 'strip'
267
+ */
268
+ mode?: "strip" | "transform" | undefined;
269
+ /**
270
+ * Only when `mode` is `'transform'`, if `true`, a source map
271
+ * will be generated for the transformed code.
272
+ * @default false
273
+ */
274
+ sourceMap?: boolean | undefined;
275
+ /**
276
+ * Specifies the source url used in the source map.
277
+ */
278
+ sourceUrl?: string | undefined;
279
+ }
280
+ /**
281
+ * `module.stripTypeScriptTypes()` removes type annotations from TypeScript code. It
282
+ * can be used to strip type annotations from TypeScript code before running it
283
+ * with `vm.runInContext()` or `vm.compileFunction()`.
284
+ * By default, it will throw an error if the code contains TypeScript features
285
+ * that require transformation such as `Enums`,
286
+ * see [type-stripping](https://nodejs.org/docs/latest-v25.x/api/typescript.md#type-stripping) for more information.
287
+ * When mode is `'transform'`, it also transforms TypeScript features to JavaScript,
288
+ * see [transform TypeScript features](https://nodejs.org/docs/latest-v25.x/api/typescript.md#typescript-features) for more information.
289
+ * When mode is `'strip'`, source maps are not generated, because locations are preserved.
290
+ * If `sourceMap` is provided, when mode is `'strip'`, an error will be thrown.
291
+ *
292
+ * _WARNING_: The output of this function should not be considered stable across Node.js versions,
293
+ * due to changes in the TypeScript parser.
294
+ *
295
+ * ```js
296
+ * import { stripTypeScriptTypes } from 'node:module';
297
+ * const code = 'const a: number = 1;';
298
+ * const strippedCode = stripTypeScriptTypes(code);
299
+ * console.log(strippedCode);
300
+ * // Prints: const a = 1;
301
+ * ```
302
+ *
303
+ * If `sourceUrl` is provided, it will be used appended as a comment at the end of the output:
304
+ *
305
+ * ```js
306
+ * import { stripTypeScriptTypes } from 'node:module';
307
+ * const code = 'const a: number = 1;';
308
+ * const strippedCode = stripTypeScriptTypes(code, { mode: 'strip', sourceUrl: 'source.ts' });
309
+ * console.log(strippedCode);
310
+ * // Prints: const a = 1\n\n//# sourceURL=source.ts;
311
+ * ```
312
+ *
313
+ * When `mode` is `'transform'`, the code is transformed to JavaScript:
314
+ *
315
+ * ```js
316
+ * import { stripTypeScriptTypes } from 'node:module';
317
+ * const code = `
318
+ * namespace MathUtil {
319
+ * export const add = (a: number, b: number) => a + b;
320
+ * }`;
321
+ * const strippedCode = stripTypeScriptTypes(code, { mode: 'transform', sourceMap: true });
322
+ * console.log(strippedCode);
323
+ * // Prints:
324
+ * // var MathUtil;
325
+ * // (function(MathUtil) {
326
+ * // MathUtil.add = (a, b)=>a + b;
327
+ * // })(MathUtil || (MathUtil = {}));
328
+ * // # sourceMappingURL=data:application/json;base64, ...
329
+ * ```
330
+ * @since v22.13.0
331
+ * @param code The code to strip type annotations from.
332
+ * @returns The code with type annotations stripped.
333
+ */
334
+ function stripTypeScriptTypes(code: string, options?: StripTypeScriptTypesOptions): string;
335
+ /* eslint-enable @definitelytyped/no-unnecessary-generics */
336
+ /**
337
+ * The `module.syncBuiltinESMExports()` method updates all the live bindings for
338
+ * builtin `ES Modules` to match the properties of the `CommonJS` exports. It
339
+ * does not add or remove exported names from the `ES Modules`.
340
+ *
341
+ * ```js
342
+ * import fs from 'node:fs';
343
+ * import assert from 'node:assert';
344
+ * import { syncBuiltinESMExports } from 'node:module';
345
+ *
346
+ * fs.readFile = newAPI;
347
+ *
348
+ * delete fs.readFileSync;
349
+ *
350
+ * function newAPI() {
351
+ * // ...
352
+ * }
353
+ *
354
+ * fs.newAPI = newAPI;
355
+ *
356
+ * syncBuiltinESMExports();
357
+ *
358
+ * import('node:fs').then((esmFS) => {
359
+ * // It syncs the existing readFile property with the new value
360
+ * assert.strictEqual(esmFS.readFile, newAPI);
361
+ * // readFileSync has been deleted from the required fs
362
+ * assert.strictEqual('readFileSync' in fs, false);
363
+ * // syncBuiltinESMExports() does not remove readFileSync from esmFS
364
+ * assert.strictEqual('readFileSync' in esmFS, true);
365
+ * // syncBuiltinESMExports() does not add names
366
+ * assert.strictEqual(esmFS.newAPI, undefined);
367
+ * });
368
+ * ```
369
+ * @since v12.12.0
370
+ */
371
+ function syncBuiltinESMExports(): void;
372
+ interface ImportAttributes extends NodeJS.Dict<string> {
373
+ type?: string | undefined;
374
+ }
375
+ type ImportPhase = "source" | "evaluation";
376
+ type ModuleFormat =
377
+ | "addon"
378
+ | "builtin"
379
+ | "commonjs"
380
+ | "commonjs-typescript"
381
+ | "json"
382
+ | "module"
383
+ | "module-typescript"
384
+ | "wasm";
385
+ type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
386
+ /**
387
+ * The `initialize` hook provides a way to define a custom function that runs in
388
+ * the hooks thread when the hooks module is initialized. Initialization happens
389
+ * when the hooks module is registered via {@link register}.
390
+ *
391
+ * This hook can receive data from a {@link register} invocation, including
392
+ * ports and other transferable objects. The return value of `initialize` can be a
393
+ * `Promise`, in which case it will be awaited before the main application thread
394
+ * execution resumes.
395
+ */
396
+ type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
397
+ interface ResolveHookContext {
398
+ /**
399
+ * Export conditions of the relevant `package.json`
400
+ */
401
+ conditions: string[];
402
+ /**
403
+ * An object whose key-value pairs represent the assertions for the module to import
404
+ */
405
+ importAttributes: ImportAttributes;
406
+ /**
407
+ * The module importing this one, or undefined if this is the Node.js entry point
408
+ */
409
+ parentURL: string | undefined;
410
+ }
411
+ interface ResolveFnOutput {
412
+ /**
413
+ * A hint to the load hook (it might be ignored); can be an intermediary value.
414
+ */
415
+ format?: string | null | undefined;
416
+ /**
417
+ * The import attributes to use when caching the module (optional; if excluded the input will be used)
418
+ */
419
+ importAttributes?: ImportAttributes | undefined;
420
+ /**
421
+ * A signal that this hook intends to terminate the chain of `resolve` hooks.
422
+ * @default false
423
+ */
424
+ shortCircuit?: boolean | undefined;
425
+ /**
426
+ * The absolute URL to which this input resolves
427
+ */
428
+ url: string;
429
+ }
430
+ /**
431
+ * The `resolve` hook chain is responsible for telling Node.js where to find and
432
+ * how to cache a given `import` statement or expression, or `require` call. It can
433
+ * optionally return a format (such as `'module'`) as a hint to the `load` hook. If
434
+ * a format is specified, the `load` hook is ultimately responsible for providing
435
+ * the final `format` value (and it is free to ignore the hint provided by
436
+ * `resolve`); if `resolve` provides a `format`, a custom `load` hook is required
437
+ * even if only to pass the value to the Node.js default `load` hook.
438
+ */
439
+ type ResolveHook = (
440
+ specifier: string,
441
+ context: ResolveHookContext,
442
+ nextResolve: (
443
+ specifier: string,
444
+ context?: Partial<ResolveHookContext>,
445
+ ) => ResolveFnOutput | Promise<ResolveFnOutput>,
446
+ ) => ResolveFnOutput | Promise<ResolveFnOutput>;
447
+ type ResolveHookSync = (
448
+ specifier: string,
449
+ context: ResolveHookContext,
450
+ nextResolve: (
451
+ specifier: string,
452
+ context?: Partial<ResolveHookContext>,
453
+ ) => ResolveFnOutput,
454
+ ) => ResolveFnOutput;
455
+ interface LoadHookContext {
456
+ /**
457
+ * Export conditions of the relevant `package.json`
458
+ */
459
+ conditions: string[];
460
+ /**
461
+ * The format optionally supplied by the `resolve` hook chain (can be an intermediary value).
462
+ */
463
+ format: string | null | undefined;
464
+ /**
465
+ * An object whose key-value pairs represent the assertions for the module to import
466
+ */
467
+ importAttributes: ImportAttributes;
468
+ }
469
+ interface LoadFnOutput {
470
+ format: string | null | undefined;
471
+ /**
472
+ * A signal that this hook intends to terminate the chain of `resolve` hooks.
473
+ * @default false
474
+ */
475
+ shortCircuit?: boolean | undefined;
476
+ /**
477
+ * The source for Node.js to evaluate
478
+ */
479
+ source?: ModuleSource | undefined;
480
+ }
481
+ /**
482
+ * The `load` hook provides a way to define a custom method of determining how a
483
+ * URL should be interpreted, retrieved, and parsed. It is also in charge of
484
+ * validating the import attributes.
485
+ */
486
+ type LoadHook = (
487
+ url: string,
488
+ context: LoadHookContext,
489
+ nextLoad: (
490
+ url: string,
491
+ context?: Partial<LoadHookContext>,
492
+ ) => LoadFnOutput | Promise<LoadFnOutput>,
493
+ ) => LoadFnOutput | Promise<LoadFnOutput>;
494
+ type LoadHookSync = (
495
+ url: string,
496
+ context: LoadHookContext,
497
+ nextLoad: (
498
+ url: string,
499
+ context?: Partial<LoadHookContext>,
500
+ ) => LoadFnOutput,
501
+ ) => LoadFnOutput;
502
+ interface SourceMapsSupport {
503
+ /**
504
+ * If the source maps support is enabled
505
+ */
506
+ enabled: boolean;
507
+ /**
508
+ * If the support is enabled for files in `node_modules`.
509
+ */
510
+ nodeModules: boolean;
511
+ /**
512
+ * If the support is enabled for generated code from `eval` or `new Function`.
513
+ */
514
+ generatedCode: boolean;
515
+ }
516
+ /**
517
+ * This method returns whether the [Source Map v3](https://tc39.es/ecma426/) support for stack
518
+ * traces is enabled.
519
+ * @since v23.7.0, v22.14.0
520
+ */
521
+ function getSourceMapsSupport(): SourceMapsSupport;
522
+ /**
523
+ * `path` is the resolved path for the file for which a corresponding source map
524
+ * should be fetched.
525
+ * @since v13.7.0, v12.17.0
526
+ * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
527
+ */
528
+ function findSourceMap(path: string): SourceMap | undefined;
529
+ interface SetSourceMapsSupportOptions {
530
+ /**
531
+ * If enabling the support for files in `node_modules`.
532
+ * @default false
533
+ */
534
+ nodeModules?: boolean | undefined;
535
+ /**
536
+ * If enabling the support for generated code from `eval` or `new Function`.
537
+ * @default false
538
+ */
539
+ generatedCode?: boolean | undefined;
540
+ }
541
+ /**
542
+ * This function enables or disables the [Source Map v3](https://tc39.es/ecma426/) support for
543
+ * stack traces.
544
+ *
545
+ * It provides same features as launching Node.js process with commandline options
546
+ * `--enable-source-maps`, with additional options to alter the support for files
547
+ * in `node_modules` or generated codes.
548
+ *
549
+ * Only source maps in JavaScript files that are loaded after source maps has been
550
+ * enabled will be parsed and loaded. Preferably, use the commandline options
551
+ * `--enable-source-maps` to avoid losing track of source maps of modules loaded
552
+ * before this API call.
553
+ * @since v23.7.0, v22.14.0
554
+ */
555
+ function setSourceMapsSupport(enabled: boolean, options?: SetSourceMapsSupportOptions): void;
556
+ interface SourceMapConstructorOptions {
557
+ /**
558
+ * @since v21.0.0, v20.5.0
559
+ */
560
+ lineLengths?: readonly number[] | undefined;
561
+ }
562
+ interface SourceMapPayload {
563
+ file: string;
564
+ version: number;
565
+ sources: string[];
566
+ sourcesContent: string[];
567
+ names: string[];
568
+ mappings: string;
569
+ sourceRoot: string;
570
+ }
571
+ interface SourceMapping {
572
+ generatedLine: number;
573
+ generatedColumn: number;
574
+ originalSource: string;
575
+ originalLine: number;
576
+ originalColumn: number;
577
+ }
578
+ interface SourceOrigin {
579
+ /**
580
+ * The name of the range in the source map, if one was provided
581
+ */
582
+ name: string | undefined;
583
+ /**
584
+ * The file name of the original source, as reported in the SourceMap
585
+ */
586
+ fileName: string;
587
+ /**
588
+ * The 1-indexed lineNumber of the corresponding call site in the original source
589
+ */
590
+ lineNumber: number;
591
+ /**
592
+ * The 1-indexed columnNumber of the corresponding call site in the original source
593
+ */
594
+ columnNumber: number;
595
+ }
596
+ /**
597
+ * @since v13.7.0, v12.17.0
598
+ */
599
+ class SourceMap {
600
+ constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions);
601
+ /**
602
+ * Getter for the payload used to construct the `SourceMap` instance.
603
+ */
604
+ readonly payload: SourceMapPayload;
605
+ /**
606
+ * Given a line offset and column offset in the generated source
607
+ * file, returns an object representing the SourceMap range in the
608
+ * original file if found, or an empty object if not.
609
+ *
610
+ * The object returned contains the following keys:
611
+ *
612
+ * The returned value represents the raw range as it appears in the
613
+ * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
614
+ * column numbers as they appear in Error messages and CallSite
615
+ * objects.
616
+ *
617
+ * To get the corresponding 1-indexed line and column numbers from a
618
+ * lineNumber and columnNumber as they are reported by Error stacks
619
+ * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
620
+ * @param lineOffset The zero-indexed line number offset in the generated source
621
+ * @param columnOffset The zero-indexed column number offset in the generated source
622
+ */
623
+ findEntry(lineOffset: number, columnOffset: number): SourceMapping | {};
624
+ /**
625
+ * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
626
+ * find the corresponding call site location in the original source.
627
+ *
628
+ * If the `lineNumber` and `columnNumber` provided are not found in any source map,
629
+ * then an empty object is returned.
630
+ * @param lineNumber The 1-indexed line number of the call site in the generated source
631
+ * @param columnNumber The 1-indexed column number of the call site in the generated source
632
+ */
633
+ findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
634
+ }
635
+ function runMain(main?: string): void;
636
+ function wrap(script: string): string;
637
+ }
638
+ global {
639
+ namespace NodeJS {
640
+ interface Module {
641
+ /**
642
+ * The module objects required for the first time by this one.
643
+ * @since v0.1.16
644
+ */
645
+ children: Module[];
646
+ /**
647
+ * The `module.exports` object is created by the `Module` system. Sometimes this is
648
+ * not acceptable; many want their module to be an instance of some class. To do
649
+ * this, assign the desired export object to `module.exports`.
650
+ * @since v0.1.16
651
+ */
652
+ exports: any;
653
+ /**
654
+ * The fully resolved filename of the module.
655
+ * @since v0.1.16
656
+ */
657
+ filename: string;
658
+ /**
659
+ * The identifier for the module. Typically this is the fully resolved
660
+ * filename.
661
+ * @since v0.1.16
662
+ */
663
+ id: string;
664
+ /**
665
+ * `true` if the module is running during the Node.js preload
666
+ * phase.
667
+ * @since v15.4.0, v14.17.0
668
+ */
669
+ isPreloading: boolean;
670
+ /**
671
+ * Whether or not the module is done loading, or is in the process of
672
+ * loading.
673
+ * @since v0.1.16
674
+ */
675
+ loaded: boolean;
676
+ /**
677
+ * The module that first required this one, or `null` if the current module is the
678
+ * entry point of the current process, or `undefined` if the module was loaded by
679
+ * something that is not a CommonJS module (e.g. REPL or `import`).
680
+ * @since v0.1.16
681
+ * @deprecated Please use `require.main` and `module.children` instead.
682
+ */
683
+ parent: Module | null | undefined;
684
+ /**
685
+ * The directory name of the module. This is usually the same as the
686
+ * `path.dirname()` of the `module.id`.
687
+ * @since v11.14.0
688
+ */
689
+ path: string;
690
+ /**
691
+ * The search paths for the module.
692
+ * @since v0.4.0
693
+ */
694
+ paths: string[];
695
+ /**
696
+ * The `module.require()` method provides a way to load a module as if
697
+ * `require()` was called from the original module.
698
+ * @since v0.5.1
699
+ */
700
+ require(id: string): any;
701
+ }
702
+ interface Require {
703
+ /**
704
+ * Used to import modules, `JSON`, and local files.
705
+ * @since v0.1.13
706
+ */
707
+ (id: string): any;
708
+ /**
709
+ * Modules are cached in this object when they are required. By deleting a key
710
+ * value from this object, the next `require` will reload the module.
711
+ * This does not apply to
712
+ * [native addons](https://nodejs.org/docs/latest-v25.x/api/addons.html),
713
+ * for which reloading will result in an error.
714
+ * @since v0.3.0
715
+ */
716
+ cache: Dict<Module>;
717
+ /**
718
+ * Instruct `require` on how to handle certain file extensions.
719
+ * @since v0.3.0
720
+ * @deprecated
721
+ */
722
+ extensions: RequireExtensions;
723
+ /**
724
+ * The `Module` object representing the entry script loaded when the Node.js
725
+ * process launched, or `undefined` if the entry point of the program is not a
726
+ * CommonJS module.
727
+ * @since v0.1.17
728
+ */
729
+ main: Module | undefined;
730
+ /**
731
+ * @since v0.3.0
732
+ */
733
+ resolve: RequireResolve;
734
+ }
735
+ /** @deprecated */
736
+ interface RequireExtensions extends Dict<(module: Module, filename: string) => any> {
737
+ ".js": (module: Module, filename: string) => any;
738
+ ".json": (module: Module, filename: string) => any;
739
+ ".node": (module: Module, filename: string) => any;
740
+ }
741
+ interface RequireResolveOptions {
742
+ /**
743
+ * Paths to resolve module location from. If present, these
744
+ * paths are used instead of the default resolution paths, with the exception
745
+ * of
746
+ * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v25.x/api/modules.html#loading-from-the-global-folders)
747
+ * like `$HOME/.node_modules`, which are
748
+ * always included. Each of these paths is used as a starting point for
749
+ * the module resolution algorithm, meaning that the `node_modules` hierarchy
750
+ * is checked from this location.
751
+ * @since v8.9.0
752
+ */
753
+ paths?: string[] | undefined;
754
+ }
755
+ interface RequireResolve {
756
+ /**
757
+ * Use the internal `require()` machinery to look up the location of a module,
758
+ * but rather than loading the module, just return the resolved filename.
759
+ *
760
+ * If the module can not be found, a `MODULE_NOT_FOUND` error is thrown.
761
+ * @since v0.3.0
762
+ * @param request The module path to resolve.
763
+ */
764
+ (request: string, options?: RequireResolveOptions): string;
765
+ /**
766
+ * Returns an array containing the paths searched during resolution of `request` or
767
+ * `null` if the `request` string references a core module, for example `http` or
768
+ * `fs`.
769
+ * @since v8.9.0
770
+ * @param request The module path whose lookup paths are being retrieved.
771
+ */
772
+ paths(request: string): string[] | null;
773
+ }
774
+ }
775
+ /**
776
+ * The directory name of the current module. This is the same as the
777
+ * `path.dirname()` of the `__filename`.
778
+ * @since v0.1.27
779
+ */
780
+ var __dirname: string;
781
+ /**
782
+ * The file name of the current module. This is the current module file's absolute
783
+ * path with symlinks resolved.
784
+ *
785
+ * For a main program this is not necessarily the same as the file name used in the
786
+ * command line.
787
+ * @since v0.0.1
788
+ */
789
+ var __filename: string;
790
+ /**
791
+ * The `exports` variable is available within a module's file-level scope, and is
792
+ * assigned the value of `module.exports` before the module is evaluated.
793
+ * @since v0.1.16
794
+ */
795
+ var exports: NodeJS.Module["exports"];
796
+ /**
797
+ * A reference to the current module.
798
+ * @since v0.1.16
799
+ */
800
+ var module: NodeJS.Module;
801
+ /**
802
+ * @since v0.1.13
803
+ */
804
+ var require: NodeJS.Require;
805
+ // Global-scope aliases for backwards compatibility with @types/node <13.0.x
806
+ // TODO: consider removing in a future major version update
807
+ /** @deprecated Use `NodeJS.Module` instead. */
808
+ interface NodeModule extends NodeJS.Module {}
809
+ /** @deprecated Use `NodeJS.Require` instead. */
810
+ interface NodeRequire extends NodeJS.Require {}
811
+ /** @deprecated Use `NodeJS.RequireResolve` instead. */
812
+ interface RequireResolve extends NodeJS.RequireResolve {}
813
+ }
814
+ export = Module;
815
+ }
816
+ declare module "module" {
817
+ import module = require("node:module");
818
+ export = module;
819
+ }