langgraph-ui-components 0.0.27 → 0.0.28

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 (442) hide show
  1. package/README.md +103 -4
  2. package/dist/_virtual/index.cjs.js +1 -1
  3. package/dist/_virtual/index.cjs2.js +1 -1
  4. package/dist/_virtual/index.cjs3.js +1 -1
  5. package/dist/_virtual/index.es.js +5 -2
  6. package/dist/_virtual/index.es2.js +4 -2
  7. package/dist/_virtual/index.es2.js.map +1 -1
  8. package/dist/_virtual/index.es3.js +4 -4
  9. package/dist/components/ChatBody.cjs.js +2 -2
  10. package/dist/components/ChatBody.cjs.js.map +1 -1
  11. package/dist/components/ChatBody.d.ts.map +1 -1
  12. package/dist/components/ChatBody.es.js +191 -164
  13. package/dist/components/ChatBody.es.js.map +1 -1
  14. package/dist/components/TodoList.cjs.js +2 -0
  15. package/dist/components/TodoList.cjs.js.map +1 -0
  16. package/dist/components/TodoList.d.ts +5 -0
  17. package/dist/components/TodoList.d.ts.map +1 -0
  18. package/dist/components/TodoList.es.js +65 -0
  19. package/dist/components/TodoList.es.js.map +1 -0
  20. package/dist/components/messages/AgentMessage.cjs.js +2 -2
  21. package/dist/components/messages/AgentMessage.cjs.js.map +1 -1
  22. package/dist/components/messages/AgentMessage.d.ts +3 -1
  23. package/dist/components/messages/AgentMessage.d.ts.map +1 -1
  24. package/dist/components/messages/AgentMessage.es.js +107 -104
  25. package/dist/components/messages/AgentMessage.es.js.map +1 -1
  26. package/dist/components/messages/CustomComponentRender.cjs.js.map +1 -1
  27. package/dist/components/messages/CustomComponentRender.es.js.map +1 -1
  28. package/dist/components/ui/syntax-highlighter.cjs.js +1 -1
  29. package/dist/components/ui/syntax-highlighter.cjs.js.map +1 -1
  30. package/dist/components/ui/syntax-highlighter.es.js +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs.js +1 -1
  34. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.es.js +1 -1
  35. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js +1 -1
  36. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js.map +1 -1
  37. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.es.js +1 -1
  38. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js +1 -1
  39. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js.map +1 -1
  40. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.es.js +1 -1
  41. package/dist/pages/Chat/Chat.cjs.js +1 -1
  42. package/dist/pages/Chat/Chat.cjs.js.map +1 -1
  43. package/dist/pages/Chat/Chat.d.ts.map +1 -1
  44. package/dist/pages/Chat/Chat.es.js +41 -34
  45. package/dist/pages/Chat/Chat.es.js.map +1 -1
  46. package/dist/pages/Sidebar/sidebar.cjs.js +1 -1
  47. package/dist/pages/Sidebar/sidebar.cjs.js.map +1 -1
  48. package/dist/pages/Sidebar/sidebar.d.ts.map +1 -1
  49. package/dist/pages/Sidebar/sidebar.es.js +75 -70
  50. package/dist/pages/Sidebar/sidebar.es.js.map +1 -1
  51. package/dist/providers/Stream.cjs.js +1 -1
  52. package/dist/providers/Stream.cjs.js.map +1 -1
  53. package/dist/providers/Stream.d.ts +40 -8
  54. package/dist/providers/Stream.d.ts.map +1 -1
  55. package/dist/providers/Stream.es.js +136 -123
  56. package/dist/providers/Stream.es.js.map +1 -1
  57. package/package.json +17 -1
  58. package/src/App.tsx +4 -4
  59. package/src/components/ChatBody.tsx +158 -67
  60. package/src/components/TodoList.tsx +72 -0
  61. package/src/components/messages/AgentMessage.tsx +7 -1
  62. package/src/components/messages/CustomComponentRender.tsx +1 -1
  63. package/src/index.ts +1 -1
  64. package/src/pages/Chat/Chat.tsx +13 -3
  65. package/src/pages/Sidebar/sidebar.tsx +12 -3
  66. package/src/providers/Stream.tsx +76 -32
  67. package/dist/_virtual/index.cjs10.js +0 -2
  68. package/dist/_virtual/index.cjs10.js.map +0 -1
  69. package/dist/_virtual/index.cjs11.js +0 -2
  70. package/dist/_virtual/index.cjs11.js.map +0 -1
  71. package/dist/_virtual/index.cjs12.js +0 -2
  72. package/dist/_virtual/index.cjs12.js.map +0 -1
  73. package/dist/_virtual/index.cjs4.js +0 -2
  74. package/dist/_virtual/index.cjs4.js.map +0 -1
  75. package/dist/_virtual/index.cjs5.js +0 -2
  76. package/dist/_virtual/index.cjs5.js.map +0 -1
  77. package/dist/_virtual/index.cjs6.js +0 -2
  78. package/dist/_virtual/index.cjs6.js.map +0 -1
  79. package/dist/_virtual/index.cjs7.js +0 -2
  80. package/dist/_virtual/index.cjs7.js.map +0 -1
  81. package/dist/_virtual/index.cjs8.js +0 -2
  82. package/dist/_virtual/index.cjs8.js.map +0 -1
  83. package/dist/_virtual/index.cjs9.js +0 -2
  84. package/dist/_virtual/index.cjs9.js.map +0 -1
  85. package/dist/_virtual/index.es10.js +0 -8
  86. package/dist/_virtual/index.es10.js.map +0 -1
  87. package/dist/_virtual/index.es11.js +0 -5
  88. package/dist/_virtual/index.es11.js.map +0 -1
  89. package/dist/_virtual/index.es12.js +0 -8
  90. package/dist/_virtual/index.es12.js.map +0 -1
  91. package/dist/_virtual/index.es4.js +0 -6
  92. package/dist/_virtual/index.es4.js.map +0 -1
  93. package/dist/_virtual/index.es5.js +0 -5
  94. package/dist/_virtual/index.es5.js.map +0 -1
  95. package/dist/_virtual/index.es6.js +0 -5
  96. package/dist/_virtual/index.es6.js.map +0 -1
  97. package/dist/_virtual/index.es7.js +0 -5
  98. package/dist/_virtual/index.es7.js.map +0 -1
  99. package/dist/_virtual/index.es8.js +0 -5
  100. package/dist/_virtual/index.es8.js.map +0 -1
  101. package/dist/_virtual/index.es9.js +0 -5
  102. package/dist/_virtual/index.es9.js.map +0 -1
  103. package/dist/_virtual/lower-bound.cjs.js +0 -2
  104. package/dist/_virtual/lower-bound.cjs.js.map +0 -1
  105. package/dist/_virtual/lower-bound.es.js +0 -5
  106. package/dist/_virtual/lower-bound.es.js.map +0 -1
  107. package/dist/_virtual/priority-queue.cjs.js +0 -2
  108. package/dist/_virtual/priority-queue.cjs.js.map +0 -1
  109. package/dist/_virtual/priority-queue.es.js +0 -5
  110. package/dist/_virtual/priority-queue.es.js.map +0 -1
  111. package/dist/_virtual/re.cjs.js +0 -2
  112. package/dist/_virtual/re.cjs.js.map +0 -1
  113. package/dist/_virtual/re.es.js +0 -5
  114. package/dist/_virtual/re.es.js.map +0 -1
  115. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js +0 -2
  116. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js.map +0 -1
  117. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js +0 -12
  118. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js.map +0 -1
  119. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js +0 -2
  120. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js.map +0 -1
  121. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js +0 -66
  122. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js.map +0 -1
  123. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js +0 -2
  124. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js.map +0 -1
  125. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js +0 -283
  126. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js.map +0 -1
  127. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js +0 -2
  128. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js.map +0 -1
  129. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js +0 -219
  130. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js.map +0 -1
  131. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js +0 -2
  132. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js.map +0 -1
  133. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js +0 -42
  134. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js.map +0 -1
  135. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js +0 -2
  136. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js.map +0 -1
  137. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js +0 -31
  138. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js.map +0 -1
  139. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js +0 -2
  140. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js.map +0 -1
  141. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js +0 -77
  142. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js.map +0 -1
  143. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js +0 -2
  144. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js.map +0 -1
  145. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js +0 -78
  146. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js.map +0 -1
  147. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js +0 -2
  148. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js.map +0 -1
  149. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js +0 -75
  150. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js.map +0 -1
  151. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js +0 -2
  152. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js.map +0 -1
  153. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js +0 -51
  154. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js.map +0 -1
  155. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js +0 -2
  156. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js.map +0 -1
  157. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js +0 -23
  158. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js.map +0 -1
  159. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js +0 -2
  160. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js.map +0 -1
  161. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js +0 -31
  162. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js.map +0 -1
  163. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js +0 -2
  164. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js.map +0 -1
  165. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js +0 -241
  166. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js.map +0 -1
  167. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js +0 -2
  168. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js.map +0 -1
  169. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js +0 -37
  170. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js.map +0 -1
  171. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js +0 -2
  172. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js.map +0 -1
  173. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js +0 -42
  174. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js.map +0 -1
  175. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js +0 -2
  176. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js.map +0 -1
  177. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js +0 -16
  178. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js.map +0 -1
  179. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js +0 -2
  180. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js.map +0 -1
  181. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js +0 -9
  182. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js.map +0 -1
  183. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js +0 -2
  184. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js.map +0 -1
  185. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js +0 -3
  186. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js.map +0 -1
  187. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js +0 -2
  188. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js.map +0 -1
  189. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js +0 -230
  190. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js.map +0 -1
  191. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js +0 -3
  192. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js.map +0 -1
  193. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js +0 -87
  194. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js.map +0 -1
  195. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js +0 -3
  196. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js.map +0 -1
  197. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js +0 -133
  198. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js.map +0 -1
  199. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js +0 -2
  200. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js.map +0 -1
  201. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js +0 -29
  202. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js.map +0 -1
  203. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js +0 -10
  204. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js.map +0 -1
  205. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js +0 -795
  206. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js.map +0 -1
  207. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js +0 -2
  208. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js.map +0 -1
  209. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js +0 -111
  210. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js.map +0 -1
  211. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js +0 -2
  212. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js.map +0 -1
  213. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js +0 -30
  214. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js.map +0 -1
  215. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js +0 -2
  216. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js.map +0 -1
  217. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js +0 -112
  218. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js.map +0 -1
  219. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js +0 -2
  220. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js.map +0 -1
  221. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js +0 -3
  222. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js.map +0 -1
  223. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js +0 -2
  224. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js.map +0 -1
  225. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js +0 -6
  226. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js.map +0 -1
  227. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js +0 -2
  228. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js.map +0 -1
  229. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js +0 -14
  230. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js.map +0 -1
  231. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js +0 -2
  232. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js.map +0 -1
  233. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js +0 -3
  234. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js.map +0 -1
  235. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js +0 -2
  236. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js.map +0 -1
  237. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js +0 -200
  238. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js.map +0 -1
  239. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js +0 -2
  240. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js.map +0 -1
  241. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js +0 -22
  242. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js.map +0 -1
  243. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.js +0 -2
  244. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.js.map +0 -1
  245. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.es.js +0 -18
  246. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.es.js.map +0 -1
  247. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js +0 -2
  248. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js.map +0 -1
  249. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js +0 -198
  250. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js.map +0 -1
  251. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.js +0 -2
  252. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.js.map +0 -1
  253. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.es.js +0 -20
  254. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.es.js.map +0 -1
  255. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.js +0 -2
  256. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.js.map +0 -1
  257. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.es.js +0 -41
  258. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.es.js.map +0 -1
  259. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js +0 -2
  260. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js.map +0 -1
  261. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js +0 -45
  262. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js.map +0 -1
  263. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.cjs.js +0 -2
  264. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.cjs.js.map +0 -1
  265. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.es.js +0 -57
  266. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.es.js.map +0 -1
  267. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.cjs.js +0 -2
  268. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.cjs.js.map +0 -1
  269. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.es.js +0 -149
  270. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.es.js.map +0 -1
  271. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.cjs.js +0 -2
  272. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.cjs.js.map +0 -1
  273. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.es.js +0 -170
  274. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.es.js.map +0 -1
  275. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.cjs.js +0 -2
  276. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.cjs.js.map +0 -1
  277. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.es.js +0 -15
  278. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.es.js.map +0 -1
  279. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.cjs.js +0 -2
  280. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.cjs.js.map +0 -1
  281. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.es.js +0 -40
  282. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.es.js.map +0 -1
  283. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.cjs.js +0 -2
  284. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.cjs.js.map +0 -1
  285. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.es.js +0 -34
  286. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.es.js.map +0 -1
  287. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.cjs.js +0 -2
  288. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.cjs.js.map +0 -1
  289. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.es.js +0 -15
  290. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.es.js.map +0 -1
  291. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.cjs.js +0 -2
  292. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.cjs.js.map +0 -1
  293. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.es.js +0 -12
  294. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.es.js.map +0 -1
  295. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.cjs.js +0 -2
  296. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.cjs.js.map +0 -1
  297. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.es.js +0 -12
  298. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.es.js.map +0 -1
  299. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.cjs.js +0 -2
  300. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.cjs.js.map +0 -1
  301. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.es.js +0 -25
  302. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.es.js.map +0 -1
  303. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.cjs.js +0 -2
  304. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.cjs.js.map +0 -1
  305. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.es.js +0 -12
  306. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.es.js.map +0 -1
  307. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.cjs.js +0 -2
  308. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.cjs.js.map +0 -1
  309. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.es.js +0 -12
  310. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.es.js.map +0 -1
  311. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.cjs.js +0 -2
  312. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.cjs.js.map +0 -1
  313. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.es.js +0 -12
  314. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.es.js.map +0 -1
  315. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.cjs.js +0 -2
  316. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.cjs.js.map +0 -1
  317. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.es.js +0 -22
  318. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.es.js.map +0 -1
  319. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.cjs.js +0 -2
  320. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.cjs.js.map +0 -1
  321. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.es.js +0 -12
  322. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.es.js.map +0 -1
  323. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.cjs.js +0 -2
  324. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.cjs.js.map +0 -1
  325. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.es.js +0 -12
  326. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.es.js.map +0 -1
  327. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.cjs.js +0 -2
  328. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.cjs.js.map +0 -1
  329. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.es.js +0 -12
  330. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.es.js.map +0 -1
  331. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.cjs.js +0 -2
  332. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.cjs.js.map +0 -1
  333. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.es.js +0 -12
  334. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.es.js.map +0 -1
  335. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.cjs.js +0 -2
  336. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.cjs.js.map +0 -1
  337. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.es.js +0 -12
  338. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.es.js.map +0 -1
  339. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.cjs.js +0 -2
  340. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.cjs.js.map +0 -1
  341. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.es.js +0 -22
  342. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.es.js.map +0 -1
  343. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.cjs.js +0 -2
  344. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.cjs.js.map +0 -1
  345. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.es.js +0 -12
  346. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.es.js.map +0 -1
  347. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.cjs.js +0 -2
  348. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.cjs.js.map +0 -1
  349. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.es.js +0 -15
  350. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.es.js.map +0 -1
  351. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.cjs.js +0 -2
  352. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.cjs.js.map +0 -1
  353. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.es.js +0 -12
  354. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.es.js.map +0 -1
  355. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.cjs.js +0 -2
  356. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.cjs.js.map +0 -1
  357. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.es.js +0 -12
  358. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.es.js.map +0 -1
  359. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.cjs.js +0 -2
  360. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.cjs.js.map +0 -1
  361. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.es.js +0 -19
  362. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.es.js.map +0 -1
  363. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.cjs.js +0 -2
  364. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.cjs.js.map +0 -1
  365. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.es.js +0 -12
  366. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.es.js.map +0 -1
  367. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.cjs.js +0 -2
  368. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.cjs.js.map +0 -1
  369. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.es.js +0 -15
  370. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.es.js.map +0 -1
  371. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.cjs.js +0 -2
  372. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.cjs.js.map +0 -1
  373. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.es.js +0 -98
  374. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.es.js.map +0 -1
  375. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.cjs.js +0 -2
  376. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.cjs.js.map +0 -1
  377. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.es.js +0 -29
  378. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.es.js.map +0 -1
  379. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.cjs.js +0 -2
  380. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.cjs.js.map +0 -1
  381. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.es.js +0 -9
  382. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.es.js.map +0 -1
  383. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.cjs.js +0 -2
  384. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.cjs.js.map +0 -1
  385. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.es.js +0 -19
  386. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.es.js.map +0 -1
  387. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.cjs.js +0 -2
  388. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.cjs.js.map +0 -1
  389. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.es.js +0 -33
  390. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.es.js.map +0 -1
  391. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.cjs.js +0 -2
  392. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.cjs.js.map +0 -1
  393. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.es.js +0 -11
  394. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.es.js.map +0 -1
  395. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.cjs.js +0 -2
  396. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.cjs.js.map +0 -1
  397. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.es.js +0 -33
  398. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.es.js.map +0 -1
  399. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.cjs.js +0 -2
  400. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.cjs.js.map +0 -1
  401. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.es.js +0 -12
  402. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.es.js.map +0 -1
  403. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.cjs.js +0 -2
  404. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.cjs.js.map +0 -1
  405. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.es.js +0 -12
  406. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.es.js.map +0 -1
  407. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.cjs.js +0 -2
  408. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.cjs.js.map +0 -1
  409. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.es.js +0 -12
  410. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.es.js.map +0 -1
  411. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.cjs.js +0 -2
  412. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.cjs.js.map +0 -1
  413. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.es.js +0 -23
  414. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.es.js.map +0 -1
  415. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.cjs.js +0 -2
  416. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.cjs.js.map +0 -1
  417. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.es.js +0 -23
  418. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.es.js.map +0 -1
  419. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.cjs.js +0 -2
  420. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.cjs.js.map +0 -1
  421. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.es.js +0 -43
  422. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.es.js.map +0 -1
  423. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.cjs.js +0 -2
  424. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.cjs.js.map +0 -1
  425. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.es.js +0 -45
  426. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.es.js.map +0 -1
  427. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.cjs.js +0 -2
  428. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.cjs.js.map +0 -1
  429. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.es.js +0 -25
  430. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.es.js.map +0 -1
  431. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.cjs.js +0 -2
  432. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.cjs.js.map +0 -1
  433. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.es.js +0 -95
  434. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.es.js.map +0 -1
  435. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.cjs.js +0 -2
  436. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.cjs.js.map +0 -1
  437. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.es.js +0 -12
  438. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.es.js.map +0 -1
  439. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.cjs.js +0 -2
  440. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.cjs.js.map +0 -1
  441. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.es.js +0 -18
  442. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.es.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"_uuid.cjs.js","sources":["../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.js"],"sourcesContent":["// Relaxed UUID validation regex (allows any valid UUID format including nil UUIDs)\nconst UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;\nimport { v7 as uuidv7 } from \"uuid\";\nimport { warnOnce } from \"./warn.js\";\nimport { XXH3_128, xxh128ToBytes } from \"./xxhash/xxhash.js\";\nlet UUID7_WARNING_EMITTED = false;\nexport function assertUuid(str, which) {\n // Use relaxed regex validation instead of strict uuid.validate()\n // This allows edge cases like nil UUIDs or test UUIDs that might not pass strict validation\n if (!UUID_REGEX.test(str)) {\n const msg = which !== undefined\n ? `Invalid UUID for ${which}: ${str}`\n : `Invalid UUID: ${str}`;\n throw new Error(msg);\n }\n return str;\n}\n/**\n * Generate a UUID v7 from a timestamp.\n *\n * @param timestamp - The timestamp in milliseconds\n * @returns A UUID v7 string\n */\nexport function uuid7FromTime(timestamp) {\n const msecs = typeof timestamp === \"string\" ? Date.parse(timestamp) : timestamp;\n // Work around uuid@10 behavior where providing only { msecs }\n // may not set the internal timestamp used for stringification.\n // Providing a seq ensures the implementation updates its internal state\n // and encodes the provided milliseconds into the UUID bytes.\n return uuidv7({ msecs, seq: 0 });\n}\n/**\n * Get the version of a UUID string.\n * @param uuidStr - The UUID string to check\n * @returns The version number (1-7) or null if invalid\n */\nexport function getUuidVersion(uuidStr) {\n if (!UUID_REGEX.test(uuidStr)) {\n return null;\n }\n // Version is in bits 48-51\n // Format: xxxxxxxx-xxxx-Vxxx-xxxx-xxxxxxxxxxxx\n const versionChar = uuidStr[14];\n return parseInt(versionChar, 16);\n}\n/**\n * Warn if a UUID is not version 7.\n *\n * @param uuidStr - The UUID string to check\n * @param idType - The type of ID (e.g., \"run_id\", \"trace_id\") for the warning message\n */\nexport function warnIfNotUuidV7(uuidStr, _idType) {\n const version = getUuidVersion(uuidStr);\n if (version !== null && version !== 7 && !UUID7_WARNING_EMITTED) {\n UUID7_WARNING_EMITTED = true;\n warnOnce(`LangSmith now uses UUID v7 for run and trace identifiers. ` +\n `This warning appears when passing custom IDs. ` +\n `Please use: import { uuidv7 } from 'langsmith'; const id = uuidv7(); ` +\n `Future versions will require UUID v7.`);\n }\n}\n/**\n * Convert a UUID string to its 16-byte representation.\n * @param uuidStr - The UUID string (with or without dashes)\n * @returns A Uint8Array containing the 16 bytes of the UUID\n */\nfunction uuidToBytes(uuidStr) {\n const hex = uuidStr.replace(/-/g, \"\");\n const bytes = new Uint8Array(16);\n for (let i = 0; i < 16; i++) {\n bytes[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);\n }\n return bytes;\n}\n/**\n * Convert 16 bytes to a UUID string.\n * @param bytes - A Uint8Array containing 16 bytes\n * @returns A UUID string in standard format\n */\nfunction bytesToUuid(bytes) {\n const hex = Array.from(bytes)\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;\n}\n// Reuse TextEncoder instance for performance\nconst _textEncoder = new TextEncoder();\n/**\n * Generates a 16-byte fingerprint for deterministic UUID generation using XXH3-128.\n *\n * XXH3 is an extremely fast, non-cryptographic hash function that provides excellent\n * collision resistance. It's widely used in production systems and compatible with\n * xxHash implementations in other languages.\n *\n * See: https://github.com/Cyan4973/xxHash\n *\n * @param str - The input string to hash\n * @returns A Uint8Array containing 16 bytes of hash output\n */\nfunction _fastHash128(str) {\n const data = _textEncoder.encode(str);\n // Compute XXH3-128 hash and convert to bytes\n const hash128 = XXH3_128(data);\n return xxh128ToBytes(hash128);\n}\n/**\n * Generate a deterministic UUID v7 derived from an original UUID and a key.\n *\n * This function creates a new UUID that:\n * - Preserves the timestamp from the original UUID if it's UUID v7\n * - Uses current time if the original is not UUID v7\n * - Uses deterministic \"random\" bits derived from hashing the original + key\n * - Is valid UUID v7 format\n *\n * This is used for creating replica IDs that maintain time-ordering properties\n * while being deterministic across distributed systems.\n *\n * @param originalId - The source UUID string (ideally UUID v7 to preserve timestamp)\n * @param key - A string key used for deterministic derivation (e.g., project name)\n * @returns A new UUID v7 string with preserved timestamp (if original is v7) and\n * deterministic random bits\n *\n * @example\n * ```typescript\n * const original = uuidv7();\n * const replicaId = nonCryptographicUuid7Deterministic(original, \"replica-project\");\n * // Same inputs always produce same output\n * assert(nonCryptographicUuid7Deterministic(original, \"replica-project\") === replicaId);\n * ```\n */\nexport function nonCryptographicUuid7Deterministic(originalId, key) {\n // Generate deterministic bytes from hash of original + key\n const hashInput = `${originalId}:${key}`;\n const h = _fastHash128(hashInput);\n // Build new UUID7:\n // UUID7 structure (RFC 9562):\n // [0-5] 48 bits: unix_ts_ms (timestamp in milliseconds)\n // [6] 4 bits: version (0111 = 7) + 4 bits rand_a\n // [7] 8 bits: rand_a (continued)\n // [8] 2 bits: variant (10) + 6 bits rand_b\n // [9-15] 56 bits: rand_b (continued)\n const b = new Uint8Array(16);\n // Check if original is UUID v7 - if so, preserve its timestamp\n // If not, use current time to ensure the derived UUID has a valid timestamp\n const version = getUuidVersion(originalId);\n if (version === 7) {\n // Preserve timestamp from original UUID7 (bytes 0-5)\n const originalBytes = uuidToBytes(originalId);\n b.set(originalBytes.slice(0, 6), 0);\n }\n else {\n // Generate fresh timestamp for non-UUID7 inputs\n // This matches the uuid npm package's v7 implementation:\n // https://github.com/uuidjs/uuid/blob/main/src/v7.ts\n const msecs = Date.now();\n b[0] = (msecs / 0x10000000000) & 0xff;\n b[1] = (msecs / 0x100000000) & 0xff;\n b[2] = (msecs / 0x1000000) & 0xff;\n b[3] = (msecs / 0x10000) & 0xff;\n b[4] = (msecs / 0x100) & 0xff;\n b[5] = msecs & 0xff;\n }\n // Set version 7 (0111) in high nibble + 4 bits from hash\n b[6] = 0x70 | (h[0] & 0x0f);\n // rand_a continued (8 bits from hash)\n b[7] = h[1];\n // Set variant (10) in high 2 bits + 6 bits from hash\n b[8] = 0x80 | (h[2] & 0x3f);\n // rand_b (56 bits = 7 bytes from hash)\n b.set(h.slice(3, 10), 9);\n return bytesToUuid(b);\n}\n"],"names":[],"mappings":"+CAsFqB,IAAI","x_google_ignoreList":[0]}
@@ -1,3 +0,0 @@
1
- import "./xxhash/xxhash.es.js";
2
- new TextEncoder();
3
- //# sourceMappingURL=_uuid.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_uuid.es.js","sources":["../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.js"],"sourcesContent":["// Relaxed UUID validation regex (allows any valid UUID format including nil UUIDs)\nconst UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;\nimport { v7 as uuidv7 } from \"uuid\";\nimport { warnOnce } from \"./warn.js\";\nimport { XXH3_128, xxh128ToBytes } from \"./xxhash/xxhash.js\";\nlet UUID7_WARNING_EMITTED = false;\nexport function assertUuid(str, which) {\n // Use relaxed regex validation instead of strict uuid.validate()\n // This allows edge cases like nil UUIDs or test UUIDs that might not pass strict validation\n if (!UUID_REGEX.test(str)) {\n const msg = which !== undefined\n ? `Invalid UUID for ${which}: ${str}`\n : `Invalid UUID: ${str}`;\n throw new Error(msg);\n }\n return str;\n}\n/**\n * Generate a UUID v7 from a timestamp.\n *\n * @param timestamp - The timestamp in milliseconds\n * @returns A UUID v7 string\n */\nexport function uuid7FromTime(timestamp) {\n const msecs = typeof timestamp === \"string\" ? Date.parse(timestamp) : timestamp;\n // Work around uuid@10 behavior where providing only { msecs }\n // may not set the internal timestamp used for stringification.\n // Providing a seq ensures the implementation updates its internal state\n // and encodes the provided milliseconds into the UUID bytes.\n return uuidv7({ msecs, seq: 0 });\n}\n/**\n * Get the version of a UUID string.\n * @param uuidStr - The UUID string to check\n * @returns The version number (1-7) or null if invalid\n */\nexport function getUuidVersion(uuidStr) {\n if (!UUID_REGEX.test(uuidStr)) {\n return null;\n }\n // Version is in bits 48-51\n // Format: xxxxxxxx-xxxx-Vxxx-xxxx-xxxxxxxxxxxx\n const versionChar = uuidStr[14];\n return parseInt(versionChar, 16);\n}\n/**\n * Warn if a UUID is not version 7.\n *\n * @param uuidStr - The UUID string to check\n * @param idType - The type of ID (e.g., \"run_id\", \"trace_id\") for the warning message\n */\nexport function warnIfNotUuidV7(uuidStr, _idType) {\n const version = getUuidVersion(uuidStr);\n if (version !== null && version !== 7 && !UUID7_WARNING_EMITTED) {\n UUID7_WARNING_EMITTED = true;\n warnOnce(`LangSmith now uses UUID v7 for run and trace identifiers. ` +\n `This warning appears when passing custom IDs. ` +\n `Please use: import { uuidv7 } from 'langsmith'; const id = uuidv7(); ` +\n `Future versions will require UUID v7.`);\n }\n}\n/**\n * Convert a UUID string to its 16-byte representation.\n * @param uuidStr - The UUID string (with or without dashes)\n * @returns A Uint8Array containing the 16 bytes of the UUID\n */\nfunction uuidToBytes(uuidStr) {\n const hex = uuidStr.replace(/-/g, \"\");\n const bytes = new Uint8Array(16);\n for (let i = 0; i < 16; i++) {\n bytes[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);\n }\n return bytes;\n}\n/**\n * Convert 16 bytes to a UUID string.\n * @param bytes - A Uint8Array containing 16 bytes\n * @returns A UUID string in standard format\n */\nfunction bytesToUuid(bytes) {\n const hex = Array.from(bytes)\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;\n}\n// Reuse TextEncoder instance for performance\nconst _textEncoder = new TextEncoder();\n/**\n * Generates a 16-byte fingerprint for deterministic UUID generation using XXH3-128.\n *\n * XXH3 is an extremely fast, non-cryptographic hash function that provides excellent\n * collision resistance. It's widely used in production systems and compatible with\n * xxHash implementations in other languages.\n *\n * See: https://github.com/Cyan4973/xxHash\n *\n * @param str - The input string to hash\n * @returns A Uint8Array containing 16 bytes of hash output\n */\nfunction _fastHash128(str) {\n const data = _textEncoder.encode(str);\n // Compute XXH3-128 hash and convert to bytes\n const hash128 = XXH3_128(data);\n return xxh128ToBytes(hash128);\n}\n/**\n * Generate a deterministic UUID v7 derived from an original UUID and a key.\n *\n * This function creates a new UUID that:\n * - Preserves the timestamp from the original UUID if it's UUID v7\n * - Uses current time if the original is not UUID v7\n * - Uses deterministic \"random\" bits derived from hashing the original + key\n * - Is valid UUID v7 format\n *\n * This is used for creating replica IDs that maintain time-ordering properties\n * while being deterministic across distributed systems.\n *\n * @param originalId - The source UUID string (ideally UUID v7 to preserve timestamp)\n * @param key - A string key used for deterministic derivation (e.g., project name)\n * @returns A new UUID v7 string with preserved timestamp (if original is v7) and\n * deterministic random bits\n *\n * @example\n * ```typescript\n * const original = uuidv7();\n * const replicaId = nonCryptographicUuid7Deterministic(original, \"replica-project\");\n * // Same inputs always produce same output\n * assert(nonCryptographicUuid7Deterministic(original, \"replica-project\") === replicaId);\n * ```\n */\nexport function nonCryptographicUuid7Deterministic(originalId, key) {\n // Generate deterministic bytes from hash of original + key\n const hashInput = `${originalId}:${key}`;\n const h = _fastHash128(hashInput);\n // Build new UUID7:\n // UUID7 structure (RFC 9562):\n // [0-5] 48 bits: unix_ts_ms (timestamp in milliseconds)\n // [6] 4 bits: version (0111 = 7) + 4 bits rand_a\n // [7] 8 bits: rand_a (continued)\n // [8] 2 bits: variant (10) + 6 bits rand_b\n // [9-15] 56 bits: rand_b (continued)\n const b = new Uint8Array(16);\n // Check if original is UUID v7 - if so, preserve its timestamp\n // If not, use current time to ensure the derived UUID has a valid timestamp\n const version = getUuidVersion(originalId);\n if (version === 7) {\n // Preserve timestamp from original UUID7 (bytes 0-5)\n const originalBytes = uuidToBytes(originalId);\n b.set(originalBytes.slice(0, 6), 0);\n }\n else {\n // Generate fresh timestamp for non-UUID7 inputs\n // This matches the uuid npm package's v7 implementation:\n // https://github.com/uuidjs/uuid/blob/main/src/v7.ts\n const msecs = Date.now();\n b[0] = (msecs / 0x10000000000) & 0xff;\n b[1] = (msecs / 0x100000000) & 0xff;\n b[2] = (msecs / 0x1000000) & 0xff;\n b[3] = (msecs / 0x10000) & 0xff;\n b[4] = (msecs / 0x100) & 0xff;\n b[5] = msecs & 0xff;\n }\n // Set version 7 (0111) in high nibble + 4 bits from hash\n b[6] = 0x70 | (h[0] & 0x0f);\n // rand_a continued (8 bits from hash)\n b[7] = h[1];\n // Set variant (10) in high 2 bits + 6 bits from hash\n b[8] = 0x80 | (h[2] & 0x3f);\n // rand_b (56 bits = 7 bytes from hash)\n b.set(h.slice(3, 10), 9);\n return bytesToUuid(b);\n}\n"],"names":[],"mappings":";AAsFqB,IAAI,YAAW;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";require("../p-queue.cjs.js");require("../_uuid.cjs.js");require("../../../../../../../../_virtual/index.cjs2.js");require("../prompt_cache/index.cjs.js");new TextEncoder;
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js"],"sourcesContent":["/* eslint-disable */\n// @ts-nocheck\nimport { getLangSmithEnvironmentVariable } from \"../../utils/env.js\";\nvar LIMIT_REPLACE_NODE = \"[...]\";\nvar CIRCULAR_REPLACE_NODE = { result: \"[Circular]\" };\nvar arr = [];\nvar replacerStack = [];\nconst encoder = new TextEncoder();\nfunction defaultOptions() {\n return {\n depthLimit: Number.MAX_SAFE_INTEGER,\n edgesLimit: Number.MAX_SAFE_INTEGER,\n };\n}\nfunction encodeString(str) {\n return encoder.encode(str);\n}\n// Shared function to handle well-known types\nfunction serializeWellKnownTypes(val) {\n if (val && typeof val === \"object\" && val !== null) {\n if (val instanceof Map) {\n return Object.fromEntries(val);\n }\n else if (val instanceof Set) {\n return Array.from(val);\n }\n else if (val instanceof Date) {\n return val.toISOString();\n }\n else if (val instanceof RegExp) {\n return val.toString();\n }\n else if (val instanceof Error) {\n return {\n name: val.name,\n message: val.message,\n };\n }\n }\n else if (typeof val === \"bigint\") {\n return val.toString();\n }\n return val;\n}\n// Default replacer function to handle well-known types\nfunction createDefaultReplacer(userReplacer) {\n return function (key, val) {\n // Apply user replacer first if provided\n if (userReplacer) {\n const userResult = userReplacer.call(this, key, val);\n // If user replacer returned undefined, fall back to our serialization\n if (userResult !== undefined) {\n return userResult;\n }\n }\n // Fall back to our well-known type handling\n return serializeWellKnownTypes(val);\n };\n}\n// Regular stringify\nexport function serialize(obj, errorContext, replacer, spacer, options) {\n try {\n const str = JSON.stringify(obj, createDefaultReplacer(replacer), spacer);\n return encodeString(str);\n }\n catch (e) {\n // Fall back to more complex stringify if circular reference\n if (!e.message?.includes(\"Converting circular structure to JSON\")) {\n console.warn(`[WARNING]: LangSmith received unserializable value.${errorContext ? `\\nContext: ${errorContext}` : \"\"}`);\n return encodeString(\"[Unserializable]\");\n }\n getLangSmithEnvironmentVariable(\"SUPPRESS_CIRCULAR_JSON_WARNINGS\") !==\n \"true\" &&\n console.warn(`[WARNING]: LangSmith received circular JSON. This will decrease tracer performance. ${errorContext ? `\\nContext: ${errorContext}` : \"\"}`);\n if (typeof options === \"undefined\") {\n options = defaultOptions();\n }\n decirc(obj, \"\", 0, [], undefined, 0, options);\n let res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer);\n }\n else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer);\n }\n }\n catch (_) {\n return encodeString(\"[unable to serialize, circular reference is too complex to analyze]\");\n }\n finally {\n while (arr.length !== 0) {\n const part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n }\n else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return encodeString(res);\n }\n}\nfunction setReplace(replace, val, k, parent) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: replace });\n arr.push([parent, k, val, propertyDescriptor]);\n }\n else {\n replacerStack.push([val, k, replace]);\n }\n }\n else {\n parent[k] = replace;\n arr.push([parent, k, val]);\n }\n}\nfunction decirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (typeof val === \"object\" && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n if (typeof options.depthLimit !== \"undefined\" &&\n depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== \"undefined\" &&\n edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, i, stack, val, depth, options);\n }\n }\n else {\n // Handle well-known types before Object.keys iteration\n val = serializeWellKnownTypes(val);\n var keys = Object.keys(val);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n decirc(val[key], key, i, stack, val, depth, options);\n }\n }\n stack.pop();\n }\n}\n// Stable-stringify\nfunction compareFunction(a, b) {\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n}\nfunction deterministicStringify(obj, replacer, spacer, options) {\n if (typeof options === \"undefined\") {\n options = defaultOptions();\n }\n var tmp = deterministicDecirc(obj, \"\", 0, [], undefined, 0, options) || obj;\n var res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer);\n }\n else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer);\n }\n }\n catch (_) {\n return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\");\n }\n finally {\n // Ensure that we restore the object as it was.\n while (arr.length !== 0) {\n var part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n }\n else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return res;\n}\nfunction deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (typeof val === \"object\" && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n try {\n if (typeof val.toJSON === \"function\") {\n return;\n }\n }\n catch (_) {\n return;\n }\n if (typeof options.depthLimit !== \"undefined\" &&\n depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== \"undefined\" &&\n edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, i, stack, val, depth, options);\n }\n }\n else {\n // Handle well-known types before Object.keys iteration\n val = serializeWellKnownTypes(val);\n // Create a temporary object in the required way\n var tmp = {};\n var keys = Object.keys(val).sort(compareFunction);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n deterministicDecirc(val[key], key, i, stack, val, depth, options);\n tmp[key] = val[key];\n }\n if (typeof parent !== \"undefined\") {\n arr.push([parent, k, val]);\n parent[k] = tmp;\n }\n else {\n return tmp;\n }\n }\n stack.pop();\n }\n}\n// wraps replacer function to handle values we couldn't replace\n// and mark them as replaced value\nfunction replaceGetterValues(replacer) {\n replacer =\n typeof replacer !== \"undefined\"\n ? replacer\n : function (k, v) {\n return v;\n };\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i];\n if (part[1] === key && part[0] === val) {\n val = part[2];\n replacerStack.splice(i, 1);\n break;\n }\n }\n }\n return replacer.call(this, key, val);\n };\n}\n"],"names":[],"mappings":"uKAOgB,IAAI","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- import "../p-queue.es.js";
2
- import "../_uuid.es.js";
3
- import "../../../../../../../../_virtual/index.es2.js";
4
- import "../prompt_cache/index.es.js";
5
- new TextEncoder();
6
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js"],"sourcesContent":["/* eslint-disable */\n// @ts-nocheck\nimport { getLangSmithEnvironmentVariable } from \"../../utils/env.js\";\nvar LIMIT_REPLACE_NODE = \"[...]\";\nvar CIRCULAR_REPLACE_NODE = { result: \"[Circular]\" };\nvar arr = [];\nvar replacerStack = [];\nconst encoder = new TextEncoder();\nfunction defaultOptions() {\n return {\n depthLimit: Number.MAX_SAFE_INTEGER,\n edgesLimit: Number.MAX_SAFE_INTEGER,\n };\n}\nfunction encodeString(str) {\n return encoder.encode(str);\n}\n// Shared function to handle well-known types\nfunction serializeWellKnownTypes(val) {\n if (val && typeof val === \"object\" && val !== null) {\n if (val instanceof Map) {\n return Object.fromEntries(val);\n }\n else if (val instanceof Set) {\n return Array.from(val);\n }\n else if (val instanceof Date) {\n return val.toISOString();\n }\n else if (val instanceof RegExp) {\n return val.toString();\n }\n else if (val instanceof Error) {\n return {\n name: val.name,\n message: val.message,\n };\n }\n }\n else if (typeof val === \"bigint\") {\n return val.toString();\n }\n return val;\n}\n// Default replacer function to handle well-known types\nfunction createDefaultReplacer(userReplacer) {\n return function (key, val) {\n // Apply user replacer first if provided\n if (userReplacer) {\n const userResult = userReplacer.call(this, key, val);\n // If user replacer returned undefined, fall back to our serialization\n if (userResult !== undefined) {\n return userResult;\n }\n }\n // Fall back to our well-known type handling\n return serializeWellKnownTypes(val);\n };\n}\n// Regular stringify\nexport function serialize(obj, errorContext, replacer, spacer, options) {\n try {\n const str = JSON.stringify(obj, createDefaultReplacer(replacer), spacer);\n return encodeString(str);\n }\n catch (e) {\n // Fall back to more complex stringify if circular reference\n if (!e.message?.includes(\"Converting circular structure to JSON\")) {\n console.warn(`[WARNING]: LangSmith received unserializable value.${errorContext ? `\\nContext: ${errorContext}` : \"\"}`);\n return encodeString(\"[Unserializable]\");\n }\n getLangSmithEnvironmentVariable(\"SUPPRESS_CIRCULAR_JSON_WARNINGS\") !==\n \"true\" &&\n console.warn(`[WARNING]: LangSmith received circular JSON. This will decrease tracer performance. ${errorContext ? `\\nContext: ${errorContext}` : \"\"}`);\n if (typeof options === \"undefined\") {\n options = defaultOptions();\n }\n decirc(obj, \"\", 0, [], undefined, 0, options);\n let res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer);\n }\n else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer);\n }\n }\n catch (_) {\n return encodeString(\"[unable to serialize, circular reference is too complex to analyze]\");\n }\n finally {\n while (arr.length !== 0) {\n const part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n }\n else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return encodeString(res);\n }\n}\nfunction setReplace(replace, val, k, parent) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: replace });\n arr.push([parent, k, val, propertyDescriptor]);\n }\n else {\n replacerStack.push([val, k, replace]);\n }\n }\n else {\n parent[k] = replace;\n arr.push([parent, k, val]);\n }\n}\nfunction decirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (typeof val === \"object\" && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n if (typeof options.depthLimit !== \"undefined\" &&\n depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== \"undefined\" &&\n edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, i, stack, val, depth, options);\n }\n }\n else {\n // Handle well-known types before Object.keys iteration\n val = serializeWellKnownTypes(val);\n var keys = Object.keys(val);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n decirc(val[key], key, i, stack, val, depth, options);\n }\n }\n stack.pop();\n }\n}\n// Stable-stringify\nfunction compareFunction(a, b) {\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n}\nfunction deterministicStringify(obj, replacer, spacer, options) {\n if (typeof options === \"undefined\") {\n options = defaultOptions();\n }\n var tmp = deterministicDecirc(obj, \"\", 0, [], undefined, 0, options) || obj;\n var res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer);\n }\n else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer);\n }\n }\n catch (_) {\n return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\");\n }\n finally {\n // Ensure that we restore the object as it was.\n while (arr.length !== 0) {\n var part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n }\n else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return res;\n}\nfunction deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (typeof val === \"object\" && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n try {\n if (typeof val.toJSON === \"function\") {\n return;\n }\n }\n catch (_) {\n return;\n }\n if (typeof options.depthLimit !== \"undefined\" &&\n depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== \"undefined\" &&\n edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, i, stack, val, depth, options);\n }\n }\n else {\n // Handle well-known types before Object.keys iteration\n val = serializeWellKnownTypes(val);\n // Create a temporary object in the required way\n var tmp = {};\n var keys = Object.keys(val).sort(compareFunction);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n deterministicDecirc(val[key], key, i, stack, val, depth, options);\n tmp[key] = val[key];\n }\n if (typeof parent !== \"undefined\") {\n arr.push([parent, k, val]);\n parent[k] = tmp;\n }\n else {\n return tmp;\n }\n }\n stack.pop();\n }\n}\n// wraps replacer function to handle values we couldn't replace\n// and mark them as replaced value\nfunction replaceGetterValues(replacer) {\n replacer =\n typeof replacer !== \"undefined\"\n ? replacer\n : function (k, v) {\n return v;\n };\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i];\n if (part[1] === key && part[0] === val) {\n val = part[2];\n replacerStack.splice(i, 1);\n break;\n }\n }\n }\n return replacer.call(this, key, val);\n };\n}\n"],"names":[],"mappings":";;;;AAOgB,IAAI,YAAW;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={join:(...e)=>e.join("/"),dirname:e=>e.split("/").slice(0,-1).join("/")};function i(e,n){}function o(e,n){}exports.path=t;exports.renameSync=o;exports.writeFileSync=i;
2
- //# sourceMappingURL=fs.browser.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.browser.cjs.js","sources":["../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.js"],"sourcesContent":["/**\n * File system abstraction (browser stub).\n *\n * This stub is used in browser/bundler builds via the package.json browser\n * field. Async operations are no-ops; sync operations are no-ops that return\n * safe defaults. Higher-level consumers (e.g. prompt_cache/fs.browser.ts) may\n * still throw on their own if browser use is unsupported at that layer.\n */\nexport const path = {\n join: (...parts) => parts.join(\"/\"),\n dirname: (p) => p.split(\"/\").slice(0, -1).join(\"/\"),\n};\n// ---------------------------------------------------------------------------\n// Async operations – no-op in browser\n// ---------------------------------------------------------------------------\nexport async function mkdir(_dir) { }\nexport async function writeFileAtomic(_filePath, _content) { }\nexport async function readdir(_dir) {\n return [];\n}\nexport async function stat(_filePath) {\n return { size: 0 };\n}\nexport async function unlink(_filePath) { }\n// ---------------------------------------------------------------------------\n// Sync operations – no-op / safe defaults in browser\n// ---------------------------------------------------------------------------\nexport function existsSync(_p) {\n return false;\n}\nexport function mkdirSync(_dir) { }\nexport function writeFileSync(_filePath, _content) { }\nexport function renameSync(_oldPath, _newPath) { }\nexport function unlinkSync(_filePath) { }\nexport function readFileSync(_filePath) {\n return \"\";\n}\n"],"names":["path","parts","p","writeFileSync","_filePath","_content","renameSync","_oldPath","_newPath"],"mappings":"gFAQY,MAACA,EAAO,CAChB,KAAM,IAAIC,IAAUA,EAAM,KAAK,GAAG,EAClC,QAAUC,GAAMA,EAAE,MAAM,GAAG,EAAE,MAAM,EAAG,EAAE,EAAE,KAAK,GAAG,CACtD,EAoBO,SAASC,EAAcC,EAAWC,EAAU,CAAE,CAC9C,SAASC,EAAWC,EAAUC,EAAU,CAAE","x_google_ignoreList":[0]}
@@ -1,14 +0,0 @@
1
- const i = {
2
- join: (...n) => n.join("/"),
3
- dirname: (n) => n.split("/").slice(0, -1).join("/")
4
- };
5
- function e(n, t) {
6
- }
7
- function o(n, t) {
8
- }
9
- export {
10
- i as path,
11
- o as renameSync,
12
- e as writeFileSync
13
- };
14
- //# sourceMappingURL=fs.browser.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.browser.es.js","sources":["../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.js"],"sourcesContent":["/**\n * File system abstraction (browser stub).\n *\n * This stub is used in browser/bundler builds via the package.json browser\n * field. Async operations are no-ops; sync operations are no-ops that return\n * safe defaults. Higher-level consumers (e.g. prompt_cache/fs.browser.ts) may\n * still throw on their own if browser use is unsupported at that layer.\n */\nexport const path = {\n join: (...parts) => parts.join(\"/\"),\n dirname: (p) => p.split(\"/\").slice(0, -1).join(\"/\"),\n};\n// ---------------------------------------------------------------------------\n// Async operations – no-op in browser\n// ---------------------------------------------------------------------------\nexport async function mkdir(_dir) { }\nexport async function writeFileAtomic(_filePath, _content) { }\nexport async function readdir(_dir) {\n return [];\n}\nexport async function stat(_filePath) {\n return { size: 0 };\n}\nexport async function unlink(_filePath) { }\n// ---------------------------------------------------------------------------\n// Sync operations – no-op / safe defaults in browser\n// ---------------------------------------------------------------------------\nexport function existsSync(_p) {\n return false;\n}\nexport function mkdirSync(_dir) { }\nexport function writeFileSync(_filePath, _content) { }\nexport function renameSync(_oldPath, _newPath) { }\nexport function unlinkSync(_filePath) { }\nexport function readFileSync(_filePath) {\n return \"\";\n}\n"],"names":["path","parts","p","writeFileSync","_filePath","_content","renameSync","_oldPath","_newPath"],"mappings":"AAQY,MAACA,IAAO;AAAA,EAChB,MAAM,IAAIC,MAAUA,EAAM,KAAK,GAAG;AAAA,EAClC,SAAS,CAACC,MAAMA,EAAE,MAAM,GAAG,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,GAAG;AACtD;AAoBO,SAASC,EAAcC,GAAWC,GAAU;AAAE;AAC9C,SAASC,EAAWC,GAAUC,GAAU;AAAE;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("../../../../../../../_virtual/index.cjs3.js");"default"in e&&e.default;
2
- //# sourceMappingURL=p-queue.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"p-queue.cjs.js","sources":["../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.js"],"sourcesContent":["import PQueueMod from \"p-queue\";\n// Helper to handle both default and named exports of p-queue\nexport const PQueue = (\"default\" in PQueueMod ? PQueueMod.default : PQueueMod);\n"],"names":["PQueueMod"],"mappings":"4EAEuB,YAAaA,GAAYA,EAAU","x_google_ignoreList":[0]}
@@ -1,3 +0,0 @@
1
- import e from "../../../../../../../_virtual/index.es3.js";
2
- "default" in e ? e.default : e;
3
- //# sourceMappingURL=p-queue.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"p-queue.es.js","sources":["../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.js"],"sourcesContent":["import PQueueMod from \"p-queue\";\n// Helper to handle both default and named exports of p-queue\nexport const PQueue = (\"default\" in PQueueMod ? PQueueMod.default : PQueueMod);\n"],"names":["PQueueMod"],"mappings":";AAEuB,aAAaA,IAAYA,EAAU,UAAUA;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../fs.browser.cjs.js");function a(h,e){return e===null?!1:Date.now()-h.createdAt>e*1e3}class c{constructor(e={}){Object.defineProperty(this,"cache",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ttlSeconds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"refreshIntervalSeconds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"refreshTimer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_metrics",{enumerable:!0,configurable:!0,writable:!0,value:{hits:0,misses:0,refreshes:0,refreshErrors:0}}),this.configure(e)}get metrics(){return{...this._metrics}}get totalRequests(){return this._metrics.hits+this._metrics.misses}get hitRate(){const e=this.totalRequests;return e>0?this._metrics.hits/e:0}resetMetrics(){this._metrics={hits:0,misses:0,refreshes:0,refreshErrors:0}}get(e,r){if(this.maxSize===0)return;const t=this.cache.get(e);if(!t){this._metrics.misses+=1;return}return this.cache.delete(e),this.cache.set(e,{...t,refreshFunc:r}),this._metrics.hits+=1,t.value}set(e,r,t){if(this.maxSize===0)return;if(this.refreshTimer===void 0&&this.startRefreshLoop(),!this.cache.has(e)&&this.cache.size>=this.maxSize){const i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}const s={value:r,createdAt:Date.now(),refreshFunc:t};this.cache.delete(e),this.cache.set(e,s)}invalidate(e){this.cache.delete(e)}clear(){this.cache.clear()}get size(){return this.cache.size}stop(){this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=void 0)}dump(e){const r={};for(const[s,i]of this.cache.entries())r[s]=i.value;n.path.dirname(e);const t=`${e}.tmp`;try{n.writeFileSync(t,JSON.stringify({entries:r},null,2)),n.renameSync(t,e)}catch(s){throw s}}load(e){return 0}startRefreshLoop(){this.stop(),this.ttlSeconds!==null&&(this.refreshTimer=setInterval(()=>{this.refreshStaleEntries().catch(e=>{console.warn("Unexpected error in cache refresh loop:",e)})},this.refreshIntervalSeconds*1e3),this.refreshTimer.unref&&this.refreshTimer.unref())}getStaleEntries(){const e=[];for(const[r,t]of this.cache.entries())a(t,this.ttlSeconds)&&e.push([r,t]);return e}async refreshStaleEntries(){const e=this.getStaleEntries();if(e.length!==0){for(const[r,t]of e)if(t.refreshFunc!==void 0)try{const s=await t.refreshFunc();this.set(r,s,t.refreshFunc),this._metrics.refreshes+=1}catch(s){this._metrics.refreshErrors+=1,console.warn(`Failed to refresh cache entry ${r}:`,s)}}}configure(e){this.stop(),this.refreshIntervalSeconds=e.refreshIntervalSeconds??60,this.maxSize=e.maxSize??100,this.ttlSeconds=e.ttlSeconds??300}}new c;exports.PromptCache=c;
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.js"],"sourcesContent":["/**\n * Prompt caching module for LangSmith SDK.\n *\n * Provides an LRU cache with background refresh for prompt caching.\n * Uses stale-while-revalidate pattern for optimal performance.\n *\n * Works in all environments. File operations (dump/load) use the shared\n * fs abstraction which is swapped for browser builds via package.json\n * browser field (no-ops in browser — cache just doesn't persist).\n */\nimport { path, existsSync, mkdirSync, writeFileSync, renameSync, unlinkSync, readFileSync, } from \"../fs.js\";\n/**\n * Check if a cache entry is stale based on TTL.\n */\nfunction isStale(entry, ttlSeconds) {\n if (ttlSeconds === null) {\n return false; // Infinite TTL, never stale\n }\n const ageMs = Date.now() - entry.createdAt;\n return ageMs > ttlSeconds * 1000;\n}\n/**\n * LRU cache with background refresh for prompts.\n *\n * Features:\n * - In-memory LRU cache with configurable max size\n * - Background refresh using setInterval\n * - Stale-while-revalidate: returns stale data while refresh happens\n * - Uses the most recently used client for a key for refreshes\n * - JSON dump/load for offline use\n *\n * @example\n * ```typescript\n * const cache = new Cache({\n * maxSize: 100,\n * ttlSeconds: 3600,\n * });\n *\n * // Use the cache\n * cache.set(\"my-prompt:latest\", promptCommit);\n * const cached = cache.get(\"my-prompt:latest\");\n *\n * // Cleanup\n * cache.stop();\n * ```\n */\nexport class PromptCache {\n constructor(config = {}) {\n Object.defineProperty(this, \"cache\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: new Map()\n });\n Object.defineProperty(this, \"maxSize\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"ttlSeconds\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"refreshIntervalSeconds\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"refreshTimer\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"_metrics\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: {\n hits: 0,\n misses: 0,\n refreshes: 0,\n refreshErrors: 0,\n }\n });\n this.configure(config);\n }\n /**\n * Get cache performance metrics.\n */\n get metrics() {\n return { ...this._metrics };\n }\n /**\n * Get total cache requests (hits + misses).\n */\n get totalRequests() {\n return this._metrics.hits + this._metrics.misses;\n }\n /**\n * Get cache hit rate (0.0 to 1.0).\n */\n get hitRate() {\n const total = this.totalRequests;\n return total > 0 ? this._metrics.hits / total : 0;\n }\n /**\n * Reset all metrics to zero.\n */\n resetMetrics() {\n this._metrics = {\n hits: 0,\n misses: 0,\n refreshes: 0,\n refreshErrors: 0,\n };\n }\n /**\n * Get a value from cache.\n *\n * Returns the cached value or undefined if not found.\n * Stale entries are still returned (background refresh handles updates).\n */\n get(key, refreshFunc) {\n // If max_size is 0, cache is disabled\n if (this.maxSize === 0) {\n return undefined;\n }\n const entry = this.cache.get(key);\n if (!entry) {\n this._metrics.misses += 1;\n return undefined;\n }\n // Move to end for LRU (delete and re-add)\n this.cache.delete(key);\n this.cache.set(key, { ...entry, refreshFunc });\n this._metrics.hits += 1;\n return entry.value;\n }\n /**\n * Set a value in the cache.\n */\n set(key, value, refreshFunc) {\n // If max_size is 0, cache is disabled - do nothing\n if (this.maxSize === 0) {\n return;\n }\n if (this.refreshTimer === undefined) {\n this.startRefreshLoop();\n }\n // Check if we need to evict (and key is new)\n if (!this.cache.has(key) && this.cache.size >= this.maxSize) {\n // Evict oldest (first item in Map)\n const oldestKey = this.cache.keys().next().value;\n if (oldestKey !== undefined) {\n this.cache.delete(oldestKey);\n }\n }\n const entry = {\n value,\n createdAt: Date.now(),\n refreshFunc,\n };\n // Delete first to ensure it's at the end\n this.cache.delete(key);\n this.cache.set(key, entry);\n }\n /**\n * Remove a specific entry from cache.\n */\n invalidate(key) {\n this.cache.delete(key);\n }\n /**\n * Clear all cache entries.\n */\n clear() {\n this.cache.clear();\n }\n /**\n * Get the number of entries in the cache.\n */\n get size() {\n return this.cache.size;\n }\n /**\n * Stop background refresh.\n * Should be called when the client is being cleaned up.\n */\n stop() {\n if (this.refreshTimer) {\n clearInterval(this.refreshTimer);\n this.refreshTimer = undefined;\n }\n }\n /**\n * Dump cache contents to a JSON file for offline use.\n */\n dump(filePath) {\n const entries = {};\n for (const [key, entry] of this.cache.entries()) {\n entries[key] = entry.value;\n }\n const dir = path.dirname(filePath);\n if (!existsSync(dir)) {\n mkdirSync(dir);\n }\n const tempPath = `${filePath}.tmp`;\n try {\n writeFileSync(tempPath, JSON.stringify({ entries }, null, 2));\n renameSync(tempPath, filePath);\n }\n catch (e) {\n if (existsSync(tempPath)) {\n unlinkSync(tempPath);\n }\n throw e;\n }\n }\n /**\n * Load cache contents from a JSON file.\n *\n * Loaded entries get a fresh TTL starting from load time.\n *\n * @returns Number of entries loaded.\n */\n load(filePath) {\n if (!existsSync(filePath)) {\n return 0;\n }\n let entries;\n try {\n const content = readFileSync(filePath);\n const data = JSON.parse(content);\n entries = data.entries ?? null;\n }\n catch {\n return 0;\n }\n if (!entries) {\n return 0;\n }\n let loaded = 0;\n const now = Date.now();\n for (const [key, value] of Object.entries(entries)) {\n if (this.cache.size >= this.maxSize) {\n break;\n }\n const entry = {\n value: value,\n createdAt: now, // Fresh TTL from load time\n };\n this.cache.set(key, entry);\n loaded += 1;\n }\n return loaded;\n }\n /**\n * Start the background refresh loop.\n */\n startRefreshLoop() {\n this.stop();\n if (this.ttlSeconds !== null) {\n this.refreshTimer = setInterval(() => {\n this.refreshStaleEntries().catch((e) => {\n // Log but don't die - keep the refresh loop running\n console.warn(\"Unexpected error in cache refresh loop:\", e);\n });\n }, this.refreshIntervalSeconds * 1000);\n // Don't block Node.js from exiting\n if (this.refreshTimer.unref) {\n this.refreshTimer.unref();\n }\n }\n }\n /**\n * Get list of stale cache keys.\n */\n getStaleEntries() {\n const staleEntries = [];\n for (const [key, value] of this.cache.entries()) {\n if (isStale(value, this.ttlSeconds)) {\n staleEntries.push([key, value]);\n }\n }\n return staleEntries;\n }\n /**\n * Check for stale entries and refresh them.\n */\n async refreshStaleEntries() {\n const staleEntries = this.getStaleEntries();\n if (staleEntries.length === 0) {\n return;\n }\n for (const [key, value] of staleEntries) {\n if (value.refreshFunc !== undefined) {\n try {\n const newValue = await value.refreshFunc();\n this.set(key, newValue, value.refreshFunc);\n this._metrics.refreshes += 1;\n }\n catch (e) {\n // Keep stale data on refresh failure\n this._metrics.refreshErrors += 1;\n console.warn(`Failed to refresh cache entry ${key}:`, e);\n }\n }\n }\n }\n configure(config) {\n this.stop();\n this.refreshIntervalSeconds = config.refreshIntervalSeconds ?? 60;\n this.maxSize = config.maxSize ?? 100;\n this.ttlSeconds = config.ttlSeconds ?? 5 * 60;\n }\n}\n/**\n * Global singleton instance of PromptCache.\n * Use configureGlobalPromptCache(), enableGlobalPromptCache(), or disableGlobalPromptCache() instead.\n */\nexport const promptCacheSingleton = new PromptCache();\n/**\n * Configure the global prompt cache.\n *\n * This should be called before any cache instances are created.\n *\n * @param config - Cache configuration options\n *\n * @example\n * ```typescript\n * import { configureGlobalPromptCache } from 'langsmith';\n *\n * configureGlobalPromptCache({ maxSize: 200, ttlSeconds: 7200 });\n * ```\n */\nexport function configureGlobalPromptCache(config) {\n promptCacheSingleton.configure(config);\n}\n/**\n * @deprecated Use `PromptCache` instead. This is a deprecated alias.\n *\n * Deprecated alias for PromptCache. Use PromptCache instead.\n */\nexport class Cache extends PromptCache {\n constructor(config = {}) {\n console.warn(\"The 'Cache' class is deprecated and will be removed in a future version. \" +\n \"Use 'PromptCache' instead.\");\n super(config);\n }\n}\n"],"names":["isStale","entry","ttlSeconds","PromptCache","config","total","key","refreshFunc","value","oldestKey","filePath","entries","path","tempPath","writeFileSync","renameSync","e","staleEntries","newValue"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,200 +0,0 @@
1
- import { path as h, writeFileSync as c, renameSync as a } from "../fs.browser.es.js";
2
- function u(n, e) {
3
- return e === null ? !1 : Date.now() - n.createdAt > e * 1e3;
4
- }
5
- class o {
6
- constructor(e = {}) {
7
- Object.defineProperty(this, "cache", {
8
- enumerable: !0,
9
- configurable: !0,
10
- writable: !0,
11
- value: /* @__PURE__ */ new Map()
12
- }), Object.defineProperty(this, "maxSize", {
13
- enumerable: !0,
14
- configurable: !0,
15
- writable: !0,
16
- value: void 0
17
- }), Object.defineProperty(this, "ttlSeconds", {
18
- enumerable: !0,
19
- configurable: !0,
20
- writable: !0,
21
- value: void 0
22
- }), Object.defineProperty(this, "refreshIntervalSeconds", {
23
- enumerable: !0,
24
- configurable: !0,
25
- writable: !0,
26
- value: void 0
27
- }), Object.defineProperty(this, "refreshTimer", {
28
- enumerable: !0,
29
- configurable: !0,
30
- writable: !0,
31
- value: void 0
32
- }), Object.defineProperty(this, "_metrics", {
33
- enumerable: !0,
34
- configurable: !0,
35
- writable: !0,
36
- value: {
37
- hits: 0,
38
- misses: 0,
39
- refreshes: 0,
40
- refreshErrors: 0
41
- }
42
- }), this.configure(e);
43
- }
44
- /**
45
- * Get cache performance metrics.
46
- */
47
- get metrics() {
48
- return { ...this._metrics };
49
- }
50
- /**
51
- * Get total cache requests (hits + misses).
52
- */
53
- get totalRequests() {
54
- return this._metrics.hits + this._metrics.misses;
55
- }
56
- /**
57
- * Get cache hit rate (0.0 to 1.0).
58
- */
59
- get hitRate() {
60
- const e = this.totalRequests;
61
- return e > 0 ? this._metrics.hits / e : 0;
62
- }
63
- /**
64
- * Reset all metrics to zero.
65
- */
66
- resetMetrics() {
67
- this._metrics = {
68
- hits: 0,
69
- misses: 0,
70
- refreshes: 0,
71
- refreshErrors: 0
72
- };
73
- }
74
- /**
75
- * Get a value from cache.
76
- *
77
- * Returns the cached value or undefined if not found.
78
- * Stale entries are still returned (background refresh handles updates).
79
- */
80
- get(e, r) {
81
- if (this.maxSize === 0)
82
- return;
83
- const t = this.cache.get(e);
84
- if (!t) {
85
- this._metrics.misses += 1;
86
- return;
87
- }
88
- return this.cache.delete(e), this.cache.set(e, { ...t, refreshFunc: r }), this._metrics.hits += 1, t.value;
89
- }
90
- /**
91
- * Set a value in the cache.
92
- */
93
- set(e, r, t) {
94
- if (this.maxSize === 0)
95
- return;
96
- if (this.refreshTimer === void 0 && this.startRefreshLoop(), !this.cache.has(e) && this.cache.size >= this.maxSize) {
97
- const i = this.cache.keys().next().value;
98
- i !== void 0 && this.cache.delete(i);
99
- }
100
- const s = {
101
- value: r,
102
- createdAt: Date.now(),
103
- refreshFunc: t
104
- };
105
- this.cache.delete(e), this.cache.set(e, s);
106
- }
107
- /**
108
- * Remove a specific entry from cache.
109
- */
110
- invalidate(e) {
111
- this.cache.delete(e);
112
- }
113
- /**
114
- * Clear all cache entries.
115
- */
116
- clear() {
117
- this.cache.clear();
118
- }
119
- /**
120
- * Get the number of entries in the cache.
121
- */
122
- get size() {
123
- return this.cache.size;
124
- }
125
- /**
126
- * Stop background refresh.
127
- * Should be called when the client is being cleaned up.
128
- */
129
- stop() {
130
- this.refreshTimer && (clearInterval(this.refreshTimer), this.refreshTimer = void 0);
131
- }
132
- /**
133
- * Dump cache contents to a JSON file for offline use.
134
- */
135
- dump(e) {
136
- const r = {};
137
- for (const [s, i] of this.cache.entries())
138
- r[s] = i.value;
139
- h.dirname(e);
140
- const t = `${e}.tmp`;
141
- try {
142
- c(t, JSON.stringify({ entries: r }, null, 2)), a(t, e);
143
- } catch (s) {
144
- throw s;
145
- }
146
- }
147
- /**
148
- * Load cache contents from a JSON file.
149
- *
150
- * Loaded entries get a fresh TTL starting from load time.
151
- *
152
- * @returns Number of entries loaded.
153
- */
154
- load(e) {
155
- return 0;
156
- }
157
- /**
158
- * Start the background refresh loop.
159
- */
160
- startRefreshLoop() {
161
- this.stop(), this.ttlSeconds !== null && (this.refreshTimer = setInterval(() => {
162
- this.refreshStaleEntries().catch((e) => {
163
- console.warn("Unexpected error in cache refresh loop:", e);
164
- });
165
- }, this.refreshIntervalSeconds * 1e3), this.refreshTimer.unref && this.refreshTimer.unref());
166
- }
167
- /**
168
- * Get list of stale cache keys.
169
- */
170
- getStaleEntries() {
171
- const e = [];
172
- for (const [r, t] of this.cache.entries())
173
- u(t, this.ttlSeconds) && e.push([r, t]);
174
- return e;
175
- }
176
- /**
177
- * Check for stale entries and refresh them.
178
- */
179
- async refreshStaleEntries() {
180
- const e = this.getStaleEntries();
181
- if (e.length !== 0) {
182
- for (const [r, t] of e)
183
- if (t.refreshFunc !== void 0)
184
- try {
185
- const s = await t.refreshFunc();
186
- this.set(r, s, t.refreshFunc), this._metrics.refreshes += 1;
187
- } catch (s) {
188
- this._metrics.refreshErrors += 1, console.warn(`Failed to refresh cache entry ${r}:`, s);
189
- }
190
- }
191
- }
192
- configure(e) {
193
- this.stop(), this.refreshIntervalSeconds = e.refreshIntervalSeconds ?? 60, this.maxSize = e.maxSize ?? 100, this.ttlSeconds = e.ttlSeconds ?? 300;
194
- }
195
- }
196
- new o();
197
- export {
198
- o as PromptCache
199
- };
200
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.js"],"sourcesContent":["/**\n * Prompt caching module for LangSmith SDK.\n *\n * Provides an LRU cache with background refresh for prompt caching.\n * Uses stale-while-revalidate pattern for optimal performance.\n *\n * Works in all environments. File operations (dump/load) use the shared\n * fs abstraction which is swapped for browser builds via package.json\n * browser field (no-ops in browser — cache just doesn't persist).\n */\nimport { path, existsSync, mkdirSync, writeFileSync, renameSync, unlinkSync, readFileSync, } from \"../fs.js\";\n/**\n * Check if a cache entry is stale based on TTL.\n */\nfunction isStale(entry, ttlSeconds) {\n if (ttlSeconds === null) {\n return false; // Infinite TTL, never stale\n }\n const ageMs = Date.now() - entry.createdAt;\n return ageMs > ttlSeconds * 1000;\n}\n/**\n * LRU cache with background refresh for prompts.\n *\n * Features:\n * - In-memory LRU cache with configurable max size\n * - Background refresh using setInterval\n * - Stale-while-revalidate: returns stale data while refresh happens\n * - Uses the most recently used client for a key for refreshes\n * - JSON dump/load for offline use\n *\n * @example\n * ```typescript\n * const cache = new Cache({\n * maxSize: 100,\n * ttlSeconds: 3600,\n * });\n *\n * // Use the cache\n * cache.set(\"my-prompt:latest\", promptCommit);\n * const cached = cache.get(\"my-prompt:latest\");\n *\n * // Cleanup\n * cache.stop();\n * ```\n */\nexport class PromptCache {\n constructor(config = {}) {\n Object.defineProperty(this, \"cache\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: new Map()\n });\n Object.defineProperty(this, \"maxSize\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"ttlSeconds\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"refreshIntervalSeconds\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"refreshTimer\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"_metrics\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: {\n hits: 0,\n misses: 0,\n refreshes: 0,\n refreshErrors: 0,\n }\n });\n this.configure(config);\n }\n /**\n * Get cache performance metrics.\n */\n get metrics() {\n return { ...this._metrics };\n }\n /**\n * Get total cache requests (hits + misses).\n */\n get totalRequests() {\n return this._metrics.hits + this._metrics.misses;\n }\n /**\n * Get cache hit rate (0.0 to 1.0).\n */\n get hitRate() {\n const total = this.totalRequests;\n return total > 0 ? this._metrics.hits / total : 0;\n }\n /**\n * Reset all metrics to zero.\n */\n resetMetrics() {\n this._metrics = {\n hits: 0,\n misses: 0,\n refreshes: 0,\n refreshErrors: 0,\n };\n }\n /**\n * Get a value from cache.\n *\n * Returns the cached value or undefined if not found.\n * Stale entries are still returned (background refresh handles updates).\n */\n get(key, refreshFunc) {\n // If max_size is 0, cache is disabled\n if (this.maxSize === 0) {\n return undefined;\n }\n const entry = this.cache.get(key);\n if (!entry) {\n this._metrics.misses += 1;\n return undefined;\n }\n // Move to end for LRU (delete and re-add)\n this.cache.delete(key);\n this.cache.set(key, { ...entry, refreshFunc });\n this._metrics.hits += 1;\n return entry.value;\n }\n /**\n * Set a value in the cache.\n */\n set(key, value, refreshFunc) {\n // If max_size is 0, cache is disabled - do nothing\n if (this.maxSize === 0) {\n return;\n }\n if (this.refreshTimer === undefined) {\n this.startRefreshLoop();\n }\n // Check if we need to evict (and key is new)\n if (!this.cache.has(key) && this.cache.size >= this.maxSize) {\n // Evict oldest (first item in Map)\n const oldestKey = this.cache.keys().next().value;\n if (oldestKey !== undefined) {\n this.cache.delete(oldestKey);\n }\n }\n const entry = {\n value,\n createdAt: Date.now(),\n refreshFunc,\n };\n // Delete first to ensure it's at the end\n this.cache.delete(key);\n this.cache.set(key, entry);\n }\n /**\n * Remove a specific entry from cache.\n */\n invalidate(key) {\n this.cache.delete(key);\n }\n /**\n * Clear all cache entries.\n */\n clear() {\n this.cache.clear();\n }\n /**\n * Get the number of entries in the cache.\n */\n get size() {\n return this.cache.size;\n }\n /**\n * Stop background refresh.\n * Should be called when the client is being cleaned up.\n */\n stop() {\n if (this.refreshTimer) {\n clearInterval(this.refreshTimer);\n this.refreshTimer = undefined;\n }\n }\n /**\n * Dump cache contents to a JSON file for offline use.\n */\n dump(filePath) {\n const entries = {};\n for (const [key, entry] of this.cache.entries()) {\n entries[key] = entry.value;\n }\n const dir = path.dirname(filePath);\n if (!existsSync(dir)) {\n mkdirSync(dir);\n }\n const tempPath = `${filePath}.tmp`;\n try {\n writeFileSync(tempPath, JSON.stringify({ entries }, null, 2));\n renameSync(tempPath, filePath);\n }\n catch (e) {\n if (existsSync(tempPath)) {\n unlinkSync(tempPath);\n }\n throw e;\n }\n }\n /**\n * Load cache contents from a JSON file.\n *\n * Loaded entries get a fresh TTL starting from load time.\n *\n * @returns Number of entries loaded.\n */\n load(filePath) {\n if (!existsSync(filePath)) {\n return 0;\n }\n let entries;\n try {\n const content = readFileSync(filePath);\n const data = JSON.parse(content);\n entries = data.entries ?? null;\n }\n catch {\n return 0;\n }\n if (!entries) {\n return 0;\n }\n let loaded = 0;\n const now = Date.now();\n for (const [key, value] of Object.entries(entries)) {\n if (this.cache.size >= this.maxSize) {\n break;\n }\n const entry = {\n value: value,\n createdAt: now, // Fresh TTL from load time\n };\n this.cache.set(key, entry);\n loaded += 1;\n }\n return loaded;\n }\n /**\n * Start the background refresh loop.\n */\n startRefreshLoop() {\n this.stop();\n if (this.ttlSeconds !== null) {\n this.refreshTimer = setInterval(() => {\n this.refreshStaleEntries().catch((e) => {\n // Log but don't die - keep the refresh loop running\n console.warn(\"Unexpected error in cache refresh loop:\", e);\n });\n }, this.refreshIntervalSeconds * 1000);\n // Don't block Node.js from exiting\n if (this.refreshTimer.unref) {\n this.refreshTimer.unref();\n }\n }\n }\n /**\n * Get list of stale cache keys.\n */\n getStaleEntries() {\n const staleEntries = [];\n for (const [key, value] of this.cache.entries()) {\n if (isStale(value, this.ttlSeconds)) {\n staleEntries.push([key, value]);\n }\n }\n return staleEntries;\n }\n /**\n * Check for stale entries and refresh them.\n */\n async refreshStaleEntries() {\n const staleEntries = this.getStaleEntries();\n if (staleEntries.length === 0) {\n return;\n }\n for (const [key, value] of staleEntries) {\n if (value.refreshFunc !== undefined) {\n try {\n const newValue = await value.refreshFunc();\n this.set(key, newValue, value.refreshFunc);\n this._metrics.refreshes += 1;\n }\n catch (e) {\n // Keep stale data on refresh failure\n this._metrics.refreshErrors += 1;\n console.warn(`Failed to refresh cache entry ${key}:`, e);\n }\n }\n }\n }\n configure(config) {\n this.stop();\n this.refreshIntervalSeconds = config.refreshIntervalSeconds ?? 60;\n this.maxSize = config.maxSize ?? 100;\n this.ttlSeconds = config.ttlSeconds ?? 5 * 60;\n }\n}\n/**\n * Global singleton instance of PromptCache.\n * Use configureGlobalPromptCache(), enableGlobalPromptCache(), or disableGlobalPromptCache() instead.\n */\nexport const promptCacheSingleton = new PromptCache();\n/**\n * Configure the global prompt cache.\n *\n * This should be called before any cache instances are created.\n *\n * @param config - Cache configuration options\n *\n * @example\n * ```typescript\n * import { configureGlobalPromptCache } from 'langsmith';\n *\n * configureGlobalPromptCache({ maxSize: 200, ttlSeconds: 7200 });\n * ```\n */\nexport function configureGlobalPromptCache(config) {\n promptCacheSingleton.configure(config);\n}\n/**\n * @deprecated Use `PromptCache` instead. This is a deprecated alias.\n *\n * Deprecated alias for PromptCache. Use PromptCache instead.\n */\nexport class Cache extends PromptCache {\n constructor(config = {}) {\n console.warn(\"The 'Cache' class is deprecated and will be removed in a future version. \" +\n \"Use 'PromptCache' instead.\");\n super(config);\n }\n}\n"],"names":["isStale","entry","ttlSeconds","PromptCache","config","total","key","refreshFunc","value","oldestKey","filePath","entries","path","tempPath","writeFileSync","renameSync","e","staleEntries","newValue"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const c=e=>BigInt(e);c("0x9E3779B1");c("0x85EBCA77");c("0xC2B2AE3D");c("0x9E3779B185EBCA87");c("0xC2B2AE3D27D4EB4F");c("0x165667B19E3779F9");c("0x85EBCA77C2B2AE63");c("0x27D4EB2F165667C5");c("0x165667919E3779F9");c("0x9FB21C651E98DF25");function f(e){const d=new Uint8Array(e.length/2);for(let b=0;b<e.length;b+=2)d[b/2]=parseInt(e.substring(b,b+2),16);return d}f("b8fe6c3923a44bbe7c01812cf721ad1cded46de9839097db7240a4a4b7b3671fcb79e64eccc0e578825ad07dccff7221b8084674f743248ee03590e6813a264c3c2852bb91c300cb88d0658b1b532ea371644897a20df94e3819ef46a9deacd8a8fa763fe39c343ff9dcbbc7c70b4f1d8a51e04bcdb45931c89f7ec9d9787364eac5ac8334d3ebc3c581a0fffa1363eb170ddd51b7f0da49d316552629d4689e2b16be587d47a1fc8ff8b8d17ad031ce45cb3a8f95160428afd7fbcabb4b407e");(c(1)<<c(128))-c(1);(c(1)<<c(64))-c(1);(c(1)<<c(32))-c(1);
2
- //# sourceMappingURL=xxhash.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash.cjs.js","sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.js"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\n// Original from: https://github.com/i404788/xxh3-ts\n// Vendored for compatibility (remove Buffer use in favor of Uint8Array)\nconst n = (n) => BigInt(n);\nconst PRIME32_1 = n(\"0x9E3779B1\"); // 0b10011110001101110111100110110001\nconst PRIME32_2 = n(\"0x85EBCA77\"); // 0b10000101111010111100101001110111\nconst PRIME32_3 = n(\"0xC2B2AE3D\"); // 0b11000010101100101010111000111101\nconst PRIME64_1 = n(\"0x9E3779B185EBCA87\"); // 0b1001111000110111011110011011000110000101111010111100101010000111\nconst PRIME64_2 = n(\"0xC2B2AE3D27D4EB4F\"); // 0b1100001010110010101011100011110100100111110101001110101101001111\nconst PRIME64_3 = n(\"0x165667B19E3779F9\"); // 0b0001011001010110011001111011000110011110001101110111100111111001\nconst PRIME64_4 = n(\"0x85EBCA77C2B2AE63\"); // 0b1000010111101011110010100111011111000010101100101010111001100011\nconst PRIME64_5 = n(\"0x27D4EB2F165667C5\"); // 0b0010011111010100111010110010111100010110010101100110011111000101\nconst PRIME_MX1 = n(\"0x165667919E3779F9\"); // 0b0001011001010110011001111001000110011110001101110111100111111001\nconst PRIME_MX2 = n(\"0x9FB21C651E98DF25\"); // 0b1001111110110010000111000110010100011110100110001101111100100101\n// Convert hex string to Uint8Array\nfunction hexToBytes(hex) {\n const bytes = new Uint8Array(hex.length / 2);\n for (let i = 0; i < hex.length; i += 2) {\n bytes[i / 2] = parseInt(hex.substring(i, i + 2), 16);\n }\n return bytes;\n}\nconst kkey = hexToBytes(\"b8fe6c3923a44bbe7c01812cf721ad1cded46de9839097db7240a4a4b7b3671fcb79e64eccc0e578825ad07dccff7221b8084674f743248ee03590e6813a264c3c2852bb91c300cb88d0658b1b532ea371644897a20df94e3819ef46a9deacd8a8fa763fe39c343ff9dcbbc7c70b4f1d8a51e04bcdb45931c89f7ec9d9787364eac5ac8334d3ebc3c581a0fffa1363eb170ddd51b7f0da49d316552629d4689e2b16be587d47a1fc8ff8b8d17ad031ce45cb3a8f95160428afd7fbcabb4b407e\");\nconst mask128 = (n(1) << n(128)) - n(1);\nconst mask64 = (n(1) << n(64)) - n(1);\nconst mask32 = (n(1) << n(32)) - n(1);\nconst STRIPE_LEN = 64;\nconst ACC_NB = STRIPE_LEN / 8;\nconst _U64 = 8;\nconst _U32 = 4;\n// Create a view into a Uint8Array at an offset\nfunction getView(buf, offset = 0) {\n return new Uint8Array(buf.buffer, buf.byteOffset + offset, buf.length - offset);\n}\n// Read BigInt from Uint8Array in little-endian\nfunction readBigUInt64LE(buf, offset = 0) {\n const view = new DataView(buf.buffer, buf.byteOffset + offset);\n return view.getBigUint64(0, true);\n}\n// Read UInt32 from Uint8Array in little-endian\nfunction readUInt32LE(buf, offset = 0) {\n const view = new DataView(buf.buffer, buf.byteOffset + offset);\n return view.getUint32(0, true);\n}\n// Read UInt8 from Uint8Array\nfunction readUInt8(buf, offset = 0) {\n return buf[offset];\n}\nconst bswap64 = (a) => {\n return (((a & n(0xff)) << n(56)) |\n ((a & n(0xff00)) << n(40)) |\n ((a & n(0xff0000)) << n(24)) |\n ((a & n(0xff000000)) << n(8)) |\n ((a & n(0xff00000000)) >> n(8)) |\n ((a & n(0xff0000000000)) >> n(24)) |\n ((a & n(0xff000000000000)) >> n(40)) |\n ((a & n(0xff00000000000000)) >> n(56)));\n};\nconst bswap32 = (a) => {\n a = ((a & n(0x0000ffff)) << n(16)) | ((a & n(0xffff0000)) >> n(16));\n a = ((a & n(0x00ff00ff)) << n(8)) | ((a & n(0xff00ff00)) >> n(8));\n return a;\n};\nconst XXH_mult32to64 = (a, b) => ((a & mask32) * (b & mask32)) & mask64;\nconst assert = (a) => {\n if (!a)\n throw new Error(\"Assert failed\");\n};\nfunction rotl32(a, b) {\n return ((a << b) | (a >> (n(32) - b))) & mask32;\n}\nfunction XXH3_accumulate_512(acc, data, key) {\n for (let i = 0; i < ACC_NB; i++) {\n const data_val = readBigUInt64LE(data, i * 8);\n const data_key = data_val ^ readBigUInt64LE(key, i * 8);\n acc[i ^ 1] += data_val;\n acc[i] += XXH_mult32to64(data_key, data_key >> n(32));\n }\n return acc;\n}\nfunction XXH3_accumulate(acc, data, key, nbStripes) {\n for (let n = 0; n < nbStripes; n++) {\n XXH3_accumulate_512(acc, getView(data, n * STRIPE_LEN), getView(key, n * 8));\n }\n return acc;\n}\nfunction XXH3_scrambleAcc(acc, key) {\n for (let i = 0; i < ACC_NB; i++) {\n const key64 = readBigUInt64LE(key, i * 8);\n let acc64 = acc[i];\n acc64 = xorshift64(acc64, n(47));\n acc64 ^= key64;\n acc64 *= PRIME32_1;\n acc[i] = acc64 & mask64;\n }\n return acc;\n}\nfunction XXH3_mix2Accs(acc, key) {\n return XXH3_mul128_fold64(acc[0] ^ readBigUInt64LE(key, 0), acc[1] ^ readBigUInt64LE(key, _U64));\n}\nfunction XXH3_mergeAccs(acc, key, start) {\n let result64 = start;\n result64 += XXH3_mix2Accs(acc.slice(0), getView(key, 0 * _U32));\n result64 += XXH3_mix2Accs(acc.slice(2), getView(key, 4 * _U32));\n result64 += XXH3_mix2Accs(acc.slice(4), getView(key, 8 * _U32));\n result64 += XXH3_mix2Accs(acc.slice(6), getView(key, 12 * _U32));\n return XXH3_avalanche(result64 & mask64);\n}\nfunction XXH3_hashLong(acc, data, secret, f_acc, f_scramble) {\n const nbStripesPerBlock = Math.floor((secret.byteLength - STRIPE_LEN) / 8);\n const block_len = STRIPE_LEN * nbStripesPerBlock;\n const nb_blocks = Math.floor((data.byteLength - 1) / block_len);\n for (let n = 0; n < nb_blocks; n++) {\n acc = XXH3_accumulate(acc, getView(data, n * block_len), secret, nbStripesPerBlock);\n acc = f_scramble(acc, getView(secret, secret.byteLength - STRIPE_LEN));\n }\n {\n // Partial block\n const nbStripes = Math.floor((data.byteLength - 1 - block_len * nb_blocks) / STRIPE_LEN);\n acc = XXH3_accumulate(acc, getView(data, nb_blocks * block_len), secret, nbStripes);\n // Last Stripe\n acc = f_acc(acc, getView(data, data.byteLength - STRIPE_LEN), getView(secret, secret.byteLength - STRIPE_LEN - 7));\n }\n return acc;\n}\nfunction XXH3_hashLong_128b(data, secret, seed) {\n let acc = new BigUint64Array([\n PRIME32_3,\n PRIME64_1,\n PRIME64_2,\n PRIME64_3,\n PRIME64_4,\n PRIME32_2,\n PRIME64_5,\n PRIME32_1,\n ]);\n assert(data.length > 128);\n acc = XXH3_hashLong(acc, data, secret, XXH3_accumulate_512, XXH3_scrambleAcc);\n /* converge into final hash */\n assert(acc.length * 8 == 64);\n {\n const low64 = XXH3_mergeAccs(acc, getView(secret, 11), (n(data.byteLength) * PRIME64_1) & mask64);\n const high64 = XXH3_mergeAccs(acc, getView(secret, secret.byteLength - STRIPE_LEN - 11), ~(n(data.byteLength) * PRIME64_2) & mask64);\n return (high64 << n(64)) | low64;\n }\n}\nfunction XXH3_mul128_fold64(a, b) {\n const lll = (a * b) & mask128;\n return (lll & mask64) ^ (lll >> n(64));\n}\nfunction XXH3_mix16B(data, key, seed) {\n return XXH3_mul128_fold64((readBigUInt64LE(data, 0) ^ (readBigUInt64LE(key, 0) + seed)) & mask64, (readBigUInt64LE(data, 8) ^ (readBigUInt64LE(key, 8) - seed)) & mask64);\n}\nfunction XXH3_mix32B(acc, data1, data2, key, seed) {\n let accl = acc & mask64;\n let acch = (acc >> n(64)) & mask64;\n accl += XXH3_mix16B(data1, key, seed);\n accl ^= readBigUInt64LE(data2, 0) + readBigUInt64LE(data2, 8);\n accl &= mask64;\n acch += XXH3_mix16B(data2, getView(key, 16), seed);\n acch ^= readBigUInt64LE(data1, 0) + readBigUInt64LE(data1, 8);\n acch &= mask64;\n return (acch << n(64)) | accl;\n}\nfunction XXH3_avalanche(h64) {\n h64 ^= h64 >> n(37);\n h64 *= PRIME_MX1;\n h64 &= mask64;\n h64 ^= h64 >> n(32);\n return h64;\n}\nfunction XXH3_avalanche64(h64) {\n h64 ^= h64 >> n(33);\n h64 *= PRIME64_2;\n h64 &= mask64;\n h64 ^= h64 >> n(29);\n h64 *= PRIME64_3;\n h64 &= mask64;\n h64 ^= h64 >> n(32);\n return h64;\n}\nfunction XXH3_len_1to3_128b(data, key32, seed) {\n const len = data.byteLength;\n assert(len > 0 && len <= 3);\n const combined = n(readUInt8(data, len - 1)) |\n n(len << 8) |\n n(readUInt8(data, 0) << 16) |\n n(readUInt8(data, len >> 1) << 24);\n const blow = (n(readUInt32LE(key32, 0)) ^ n(readUInt32LE(key32, 4))) + seed;\n const low = (combined ^ blow) & mask64;\n const bhigh = (n(readUInt32LE(key32, 8)) ^ n(readUInt32LE(key32, 12))) - seed;\n const high = (rotl32(bswap32(combined), n(13)) ^ bhigh) & mask64;\n return ((XXH3_avalanche64(high) & mask64) << n(64)) | XXH3_avalanche64(low);\n}\nfunction xorshift64(b, shift) {\n return b ^ (b >> shift);\n}\nfunction XXH3_len_4to8_128b(data, key32, seed) {\n const len = data.byteLength;\n assert(len >= 4 && len <= 8);\n {\n const l1 = readUInt32LE(data, 0);\n const l2 = readUInt32LE(data, len - 4);\n const l64 = n(l1) | (n(l2) << n(32));\n const bitflip = ((readBigUInt64LE(key32, 16) ^ readBigUInt64LE(key32, 24)) + seed) &\n mask64;\n const keyed = l64 ^ bitflip;\n let m128 = (keyed * (PRIME64_1 + (n(len) << n(2)))) & mask128;\n m128 += (m128 & mask64) << n(65);\n m128 &= mask128;\n m128 ^= m128 >> n(67);\n return (xorshift64((xorshift64(m128 & mask64, n(35)) * PRIME_MX2) & mask64, n(28)) |\n (XXH3_avalanche(m128 >> n(64)) << n(64)));\n }\n}\nfunction XXH3_len_9to16_128b(data, key64, seed) {\n const len = data.byteLength;\n assert(len >= 9 && len <= 16);\n {\n const bitflipl = ((readBigUInt64LE(key64, 32) ^ readBigUInt64LE(key64, 40)) + seed) &\n mask64;\n const bitfliph = ((readBigUInt64LE(key64, 48) ^ readBigUInt64LE(key64, 56)) - seed) &\n mask64;\n const ll1 = readBigUInt64LE(data);\n let ll2 = readBigUInt64LE(data, len - 8);\n let m128 = (ll1 ^ ll2 ^ bitflipl) * PRIME64_1;\n const m128_l = (m128 & mask64) + (n(len - 1) << n(54));\n m128 = (m128 & (mask128 ^ mask64)) | m128_l; // eqv. to adding only to lower 64b\n ll2 ^= bitfliph;\n m128 += (ll2 + (ll2 & mask32) * (PRIME32_2 - n(1))) << n(64);\n m128 &= mask128;\n m128 ^= bswap64(m128 >> n(64));\n let h128 = (m128 & mask64) * PRIME64_2;\n h128 += ((m128 >> n(64)) * PRIME64_2) << n(64);\n h128 &= mask128;\n return (XXH3_avalanche(h128 & mask64) | (XXH3_avalanche(h128 >> n(64)) << n(64)));\n }\n}\nfunction XXH3_len_0to16_128b(data, seed) {\n const len = data.byteLength;\n assert(len <= 16);\n if (len > 8)\n return XXH3_len_9to16_128b(data, kkey, seed);\n if (len >= 4)\n return XXH3_len_4to8_128b(data, kkey, seed);\n if (len > 0)\n return XXH3_len_1to3_128b(data, kkey, seed);\n return (XXH3_avalanche64(seed ^ readBigUInt64LE(kkey, 64) ^ readBigUInt64LE(kkey, 72)) |\n (XXH3_avalanche64(seed ^ readBigUInt64LE(kkey, 80) ^ readBigUInt64LE(kkey, 88)) <<\n n(64)));\n}\nfunction inv64(x) {\n // NOTE: `AND` fixes signedness (but because of 2's complement we need to re-add 1)\n return (~x + n(1)) & mask64;\n}\nfunction XXH3_len_17to128_128b(data, secret, seed) {\n let acc = (n(data.byteLength) * PRIME64_1) & mask64;\n let i = n(data.byteLength - 1) / n(32);\n while (i >= 0) {\n const ni = Number(i);\n acc = XXH3_mix32B(acc, getView(data, 16 * ni), getView(data, data.byteLength - 16 * (ni + 1)), getView(secret, 32 * ni), seed);\n i--;\n }\n let h128l = (acc + (acc >> n(64))) & mask64;\n h128l = XXH3_avalanche(h128l);\n let h128h = (acc & mask64) * PRIME64_1 +\n (acc >> n(64)) * PRIME64_4 +\n ((n(data.byteLength) - seed) & mask64) * PRIME64_2;\n h128h &= mask64;\n h128h = inv64(XXH3_avalanche(h128h));\n return h128l | (h128h << n(64));\n}\nfunction XXH3_len_129to240_128b(data, secret, seed) {\n let acc = (n(data.byteLength) * PRIME64_1) & mask64;\n for (let i = 32; i < 160; i += 32) {\n acc = XXH3_mix32B(acc, getView(data, i - 32), getView(data, i - 16), getView(secret, i - 32), seed);\n }\n acc = XXH3_avalanche(acc & mask64) | (XXH3_avalanche(acc >> n(64)) << n(64));\n for (let i = 160; i <= data.byteLength; i += 32) {\n acc = XXH3_mix32B(acc, getView(data, i - 32), getView(data, i - 16), getView(secret, 3 + i - 160), seed);\n }\n acc = XXH3_mix32B(acc, getView(data, data.byteLength - 16), getView(data, data.byteLength - 32), getView(secret, 136 - 17 - 16), inv64(seed));\n let h128l = (acc + (acc >> n(64))) & mask64;\n h128l = XXH3_avalanche(h128l);\n let h128h = (acc & mask64) * PRIME64_1 +\n (acc >> n(64)) * PRIME64_4 +\n ((n(data.byteLength) - seed) & mask64) * PRIME64_2;\n h128h &= mask64;\n h128h = inv64(XXH3_avalanche(h128h));\n return h128l | (h128h << n(64));\n}\n/**\n * Compute XXH3 128-bit hash of the input data.\n *\n * @param data - Input data as Uint8Array\n * @param seed - Optional seed value (default: 0)\n * @returns 128-bit hash as a single BigInt (high 64 bits << 64 | low 64 bits)\n */\nexport function XXH3_128(data, seed = n(0)) {\n const len = data.byteLength;\n if (len <= 16)\n return XXH3_len_0to16_128b(data, seed);\n if (len <= 128)\n return XXH3_len_17to128_128b(data, kkey, seed);\n if (len <= 240)\n return XXH3_len_129to240_128b(data, kkey, seed);\n return XXH3_hashLong_128b(data, kkey, seed);\n}\n/**\n * Convert a 128-bit hash (BigInt) to a 16-byte Uint8Array.\n *\n * @param hash128 - 128-bit hash as BigInt\n * @returns 16-byte Uint8Array in little-endian byte order\n */\nexport function xxh128ToBytes(hash128) {\n const result = new Uint8Array(16);\n const view = new DataView(result.buffer);\n // Extract low and high 64-bit values\n const low64 = hash128 & mask64;\n const high64 = hash128 >> n(64);\n // Write in big-endian order to match Python's xxhash.digest() output\n // Python outputs: [high64 bytes][low64 bytes], each in big-endian\n view.setBigUint64(0, high64, false); // high 64 bits, big-endian\n view.setBigUint64(8, low64, false); // low 64 bits, big-endian\n return result;\n}\n"],"names":["n","hexToBytes","hex","bytes","i"],"mappings":"aAIA,MAAMA,EAAKA,GAAM,OAAOA,CAAC,EACPA,EAAE,YAAY,EACdA,EAAE,YAAY,EACdA,EAAE,YAAY,EACdA,EAAE,oBAAoB,EACtBA,EAAE,oBAAoB,EACtBA,EAAE,oBAAoB,EACtBA,EAAE,oBAAoB,EACtBA,EAAE,oBAAoB,EACtBA,EAAE,oBAAoB,EACtBA,EAAE,oBAAoB,EAExC,SAASC,EAAWC,EAAK,CACrB,MAAMC,EAAQ,IAAI,WAAWD,EAAI,OAAS,CAAC,EAC3C,QAASE,EAAI,EAAGA,EAAIF,EAAI,OAAQE,GAAK,EACjCD,EAAMC,EAAI,CAAC,EAAI,SAASF,EAAI,UAAUE,EAAGA,EAAI,CAAC,EAAG,EAAE,EAEvD,OAAOD,CACX,CACaF,EAAW,kYAAkY,GACzYD,EAAE,CAAC,GAAKA,EAAE,GAAG,GAAKA,EAAE,CAAC,GACtBA,EAAE,CAAC,GAAKA,EAAE,EAAE,GAAKA,EAAE,CAAC,GACpBA,EAAE,CAAC,GAAKA,EAAE,EAAE,GAAKA,EAAE,CAAC","x_google_ignoreList":[0]}
@@ -1,22 +0,0 @@
1
- const c = (b) => BigInt(b);
2
- c("0x9E3779B1");
3
- c("0x85EBCA77");
4
- c("0xC2B2AE3D");
5
- c("0x9E3779B185EBCA87");
6
- c("0xC2B2AE3D27D4EB4F");
7
- c("0x165667B19E3779F9");
8
- c("0x85EBCA77C2B2AE63");
9
- c("0x27D4EB2F165667C5");
10
- c("0x165667919E3779F9");
11
- c("0x9FB21C651E98DF25");
12
- function f(b) {
13
- const d = new Uint8Array(b.length / 2);
14
- for (let e = 0; e < b.length; e += 2)
15
- d[e / 2] = parseInt(b.substring(e, e + 2), 16);
16
- return d;
17
- }
18
- f("b8fe6c3923a44bbe7c01812cf721ad1cded46de9839097db7240a4a4b7b3671fcb79e64eccc0e578825ad07dccff7221b8084674f743248ee03590e6813a264c3c2852bb91c300cb88d0658b1b532ea371644897a20df94e3819ef46a9deacd8a8fa763fe39c343ff9dcbbc7c70b4f1d8a51e04bcdb45931c89f7ec9d9787364eac5ac8334d3ebc3c581a0fffa1363eb170ddd51b7f0da49d316552629d4689e2b16be587d47a1fc8ff8b8d17ad031ce45cb3a8f95160428afd7fbcabb4b407e");
19
- (c(1) << c(128)) - c(1);
20
- (c(1) << c(64)) - c(1);
21
- (c(1) << c(32)) - c(1);
22
- //# sourceMappingURL=xxhash.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash.es.js","sources":["../../../../../../../../../node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.js"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\n// Original from: https://github.com/i404788/xxh3-ts\n// Vendored for compatibility (remove Buffer use in favor of Uint8Array)\nconst n = (n) => BigInt(n);\nconst PRIME32_1 = n(\"0x9E3779B1\"); // 0b10011110001101110111100110110001\nconst PRIME32_2 = n(\"0x85EBCA77\"); // 0b10000101111010111100101001110111\nconst PRIME32_3 = n(\"0xC2B2AE3D\"); // 0b11000010101100101010111000111101\nconst PRIME64_1 = n(\"0x9E3779B185EBCA87\"); // 0b1001111000110111011110011011000110000101111010111100101010000111\nconst PRIME64_2 = n(\"0xC2B2AE3D27D4EB4F\"); // 0b1100001010110010101011100011110100100111110101001110101101001111\nconst PRIME64_3 = n(\"0x165667B19E3779F9\"); // 0b0001011001010110011001111011000110011110001101110111100111111001\nconst PRIME64_4 = n(\"0x85EBCA77C2B2AE63\"); // 0b1000010111101011110010100111011111000010101100101010111001100011\nconst PRIME64_5 = n(\"0x27D4EB2F165667C5\"); // 0b0010011111010100111010110010111100010110010101100110011111000101\nconst PRIME_MX1 = n(\"0x165667919E3779F9\"); // 0b0001011001010110011001111001000110011110001101110111100111111001\nconst PRIME_MX2 = n(\"0x9FB21C651E98DF25\"); // 0b1001111110110010000111000110010100011110100110001101111100100101\n// Convert hex string to Uint8Array\nfunction hexToBytes(hex) {\n const bytes = new Uint8Array(hex.length / 2);\n for (let i = 0; i < hex.length; i += 2) {\n bytes[i / 2] = parseInt(hex.substring(i, i + 2), 16);\n }\n return bytes;\n}\nconst kkey = hexToBytes(\"b8fe6c3923a44bbe7c01812cf721ad1cded46de9839097db7240a4a4b7b3671fcb79e64eccc0e578825ad07dccff7221b8084674f743248ee03590e6813a264c3c2852bb91c300cb88d0658b1b532ea371644897a20df94e3819ef46a9deacd8a8fa763fe39c343ff9dcbbc7c70b4f1d8a51e04bcdb45931c89f7ec9d9787364eac5ac8334d3ebc3c581a0fffa1363eb170ddd51b7f0da49d316552629d4689e2b16be587d47a1fc8ff8b8d17ad031ce45cb3a8f95160428afd7fbcabb4b407e\");\nconst mask128 = (n(1) << n(128)) - n(1);\nconst mask64 = (n(1) << n(64)) - n(1);\nconst mask32 = (n(1) << n(32)) - n(1);\nconst STRIPE_LEN = 64;\nconst ACC_NB = STRIPE_LEN / 8;\nconst _U64 = 8;\nconst _U32 = 4;\n// Create a view into a Uint8Array at an offset\nfunction getView(buf, offset = 0) {\n return new Uint8Array(buf.buffer, buf.byteOffset + offset, buf.length - offset);\n}\n// Read BigInt from Uint8Array in little-endian\nfunction readBigUInt64LE(buf, offset = 0) {\n const view = new DataView(buf.buffer, buf.byteOffset + offset);\n return view.getBigUint64(0, true);\n}\n// Read UInt32 from Uint8Array in little-endian\nfunction readUInt32LE(buf, offset = 0) {\n const view = new DataView(buf.buffer, buf.byteOffset + offset);\n return view.getUint32(0, true);\n}\n// Read UInt8 from Uint8Array\nfunction readUInt8(buf, offset = 0) {\n return buf[offset];\n}\nconst bswap64 = (a) => {\n return (((a & n(0xff)) << n(56)) |\n ((a & n(0xff00)) << n(40)) |\n ((a & n(0xff0000)) << n(24)) |\n ((a & n(0xff000000)) << n(8)) |\n ((a & n(0xff00000000)) >> n(8)) |\n ((a & n(0xff0000000000)) >> n(24)) |\n ((a & n(0xff000000000000)) >> n(40)) |\n ((a & n(0xff00000000000000)) >> n(56)));\n};\nconst bswap32 = (a) => {\n a = ((a & n(0x0000ffff)) << n(16)) | ((a & n(0xffff0000)) >> n(16));\n a = ((a & n(0x00ff00ff)) << n(8)) | ((a & n(0xff00ff00)) >> n(8));\n return a;\n};\nconst XXH_mult32to64 = (a, b) => ((a & mask32) * (b & mask32)) & mask64;\nconst assert = (a) => {\n if (!a)\n throw new Error(\"Assert failed\");\n};\nfunction rotl32(a, b) {\n return ((a << b) | (a >> (n(32) - b))) & mask32;\n}\nfunction XXH3_accumulate_512(acc, data, key) {\n for (let i = 0; i < ACC_NB; i++) {\n const data_val = readBigUInt64LE(data, i * 8);\n const data_key = data_val ^ readBigUInt64LE(key, i * 8);\n acc[i ^ 1] += data_val;\n acc[i] += XXH_mult32to64(data_key, data_key >> n(32));\n }\n return acc;\n}\nfunction XXH3_accumulate(acc, data, key, nbStripes) {\n for (let n = 0; n < nbStripes; n++) {\n XXH3_accumulate_512(acc, getView(data, n * STRIPE_LEN), getView(key, n * 8));\n }\n return acc;\n}\nfunction XXH3_scrambleAcc(acc, key) {\n for (let i = 0; i < ACC_NB; i++) {\n const key64 = readBigUInt64LE(key, i * 8);\n let acc64 = acc[i];\n acc64 = xorshift64(acc64, n(47));\n acc64 ^= key64;\n acc64 *= PRIME32_1;\n acc[i] = acc64 & mask64;\n }\n return acc;\n}\nfunction XXH3_mix2Accs(acc, key) {\n return XXH3_mul128_fold64(acc[0] ^ readBigUInt64LE(key, 0), acc[1] ^ readBigUInt64LE(key, _U64));\n}\nfunction XXH3_mergeAccs(acc, key, start) {\n let result64 = start;\n result64 += XXH3_mix2Accs(acc.slice(0), getView(key, 0 * _U32));\n result64 += XXH3_mix2Accs(acc.slice(2), getView(key, 4 * _U32));\n result64 += XXH3_mix2Accs(acc.slice(4), getView(key, 8 * _U32));\n result64 += XXH3_mix2Accs(acc.slice(6), getView(key, 12 * _U32));\n return XXH3_avalanche(result64 & mask64);\n}\nfunction XXH3_hashLong(acc, data, secret, f_acc, f_scramble) {\n const nbStripesPerBlock = Math.floor((secret.byteLength - STRIPE_LEN) / 8);\n const block_len = STRIPE_LEN * nbStripesPerBlock;\n const nb_blocks = Math.floor((data.byteLength - 1) / block_len);\n for (let n = 0; n < nb_blocks; n++) {\n acc = XXH3_accumulate(acc, getView(data, n * block_len), secret, nbStripesPerBlock);\n acc = f_scramble(acc, getView(secret, secret.byteLength - STRIPE_LEN));\n }\n {\n // Partial block\n const nbStripes = Math.floor((data.byteLength - 1 - block_len * nb_blocks) / STRIPE_LEN);\n acc = XXH3_accumulate(acc, getView(data, nb_blocks * block_len), secret, nbStripes);\n // Last Stripe\n acc = f_acc(acc, getView(data, data.byteLength - STRIPE_LEN), getView(secret, secret.byteLength - STRIPE_LEN - 7));\n }\n return acc;\n}\nfunction XXH3_hashLong_128b(data, secret, seed) {\n let acc = new BigUint64Array([\n PRIME32_3,\n PRIME64_1,\n PRIME64_2,\n PRIME64_3,\n PRIME64_4,\n PRIME32_2,\n PRIME64_5,\n PRIME32_1,\n ]);\n assert(data.length > 128);\n acc = XXH3_hashLong(acc, data, secret, XXH3_accumulate_512, XXH3_scrambleAcc);\n /* converge into final hash */\n assert(acc.length * 8 == 64);\n {\n const low64 = XXH3_mergeAccs(acc, getView(secret, 11), (n(data.byteLength) * PRIME64_1) & mask64);\n const high64 = XXH3_mergeAccs(acc, getView(secret, secret.byteLength - STRIPE_LEN - 11), ~(n(data.byteLength) * PRIME64_2) & mask64);\n return (high64 << n(64)) | low64;\n }\n}\nfunction XXH3_mul128_fold64(a, b) {\n const lll = (a * b) & mask128;\n return (lll & mask64) ^ (lll >> n(64));\n}\nfunction XXH3_mix16B(data, key, seed) {\n return XXH3_mul128_fold64((readBigUInt64LE(data, 0) ^ (readBigUInt64LE(key, 0) + seed)) & mask64, (readBigUInt64LE(data, 8) ^ (readBigUInt64LE(key, 8) - seed)) & mask64);\n}\nfunction XXH3_mix32B(acc, data1, data2, key, seed) {\n let accl = acc & mask64;\n let acch = (acc >> n(64)) & mask64;\n accl += XXH3_mix16B(data1, key, seed);\n accl ^= readBigUInt64LE(data2, 0) + readBigUInt64LE(data2, 8);\n accl &= mask64;\n acch += XXH3_mix16B(data2, getView(key, 16), seed);\n acch ^= readBigUInt64LE(data1, 0) + readBigUInt64LE(data1, 8);\n acch &= mask64;\n return (acch << n(64)) | accl;\n}\nfunction XXH3_avalanche(h64) {\n h64 ^= h64 >> n(37);\n h64 *= PRIME_MX1;\n h64 &= mask64;\n h64 ^= h64 >> n(32);\n return h64;\n}\nfunction XXH3_avalanche64(h64) {\n h64 ^= h64 >> n(33);\n h64 *= PRIME64_2;\n h64 &= mask64;\n h64 ^= h64 >> n(29);\n h64 *= PRIME64_3;\n h64 &= mask64;\n h64 ^= h64 >> n(32);\n return h64;\n}\nfunction XXH3_len_1to3_128b(data, key32, seed) {\n const len = data.byteLength;\n assert(len > 0 && len <= 3);\n const combined = n(readUInt8(data, len - 1)) |\n n(len << 8) |\n n(readUInt8(data, 0) << 16) |\n n(readUInt8(data, len >> 1) << 24);\n const blow = (n(readUInt32LE(key32, 0)) ^ n(readUInt32LE(key32, 4))) + seed;\n const low = (combined ^ blow) & mask64;\n const bhigh = (n(readUInt32LE(key32, 8)) ^ n(readUInt32LE(key32, 12))) - seed;\n const high = (rotl32(bswap32(combined), n(13)) ^ bhigh) & mask64;\n return ((XXH3_avalanche64(high) & mask64) << n(64)) | XXH3_avalanche64(low);\n}\nfunction xorshift64(b, shift) {\n return b ^ (b >> shift);\n}\nfunction XXH3_len_4to8_128b(data, key32, seed) {\n const len = data.byteLength;\n assert(len >= 4 && len <= 8);\n {\n const l1 = readUInt32LE(data, 0);\n const l2 = readUInt32LE(data, len - 4);\n const l64 = n(l1) | (n(l2) << n(32));\n const bitflip = ((readBigUInt64LE(key32, 16) ^ readBigUInt64LE(key32, 24)) + seed) &\n mask64;\n const keyed = l64 ^ bitflip;\n let m128 = (keyed * (PRIME64_1 + (n(len) << n(2)))) & mask128;\n m128 += (m128 & mask64) << n(65);\n m128 &= mask128;\n m128 ^= m128 >> n(67);\n return (xorshift64((xorshift64(m128 & mask64, n(35)) * PRIME_MX2) & mask64, n(28)) |\n (XXH3_avalanche(m128 >> n(64)) << n(64)));\n }\n}\nfunction XXH3_len_9to16_128b(data, key64, seed) {\n const len = data.byteLength;\n assert(len >= 9 && len <= 16);\n {\n const bitflipl = ((readBigUInt64LE(key64, 32) ^ readBigUInt64LE(key64, 40)) + seed) &\n mask64;\n const bitfliph = ((readBigUInt64LE(key64, 48) ^ readBigUInt64LE(key64, 56)) - seed) &\n mask64;\n const ll1 = readBigUInt64LE(data);\n let ll2 = readBigUInt64LE(data, len - 8);\n let m128 = (ll1 ^ ll2 ^ bitflipl) * PRIME64_1;\n const m128_l = (m128 & mask64) + (n(len - 1) << n(54));\n m128 = (m128 & (mask128 ^ mask64)) | m128_l; // eqv. to adding only to lower 64b\n ll2 ^= bitfliph;\n m128 += (ll2 + (ll2 & mask32) * (PRIME32_2 - n(1))) << n(64);\n m128 &= mask128;\n m128 ^= bswap64(m128 >> n(64));\n let h128 = (m128 & mask64) * PRIME64_2;\n h128 += ((m128 >> n(64)) * PRIME64_2) << n(64);\n h128 &= mask128;\n return (XXH3_avalanche(h128 & mask64) | (XXH3_avalanche(h128 >> n(64)) << n(64)));\n }\n}\nfunction XXH3_len_0to16_128b(data, seed) {\n const len = data.byteLength;\n assert(len <= 16);\n if (len > 8)\n return XXH3_len_9to16_128b(data, kkey, seed);\n if (len >= 4)\n return XXH3_len_4to8_128b(data, kkey, seed);\n if (len > 0)\n return XXH3_len_1to3_128b(data, kkey, seed);\n return (XXH3_avalanche64(seed ^ readBigUInt64LE(kkey, 64) ^ readBigUInt64LE(kkey, 72)) |\n (XXH3_avalanche64(seed ^ readBigUInt64LE(kkey, 80) ^ readBigUInt64LE(kkey, 88)) <<\n n(64)));\n}\nfunction inv64(x) {\n // NOTE: `AND` fixes signedness (but because of 2's complement we need to re-add 1)\n return (~x + n(1)) & mask64;\n}\nfunction XXH3_len_17to128_128b(data, secret, seed) {\n let acc = (n(data.byteLength) * PRIME64_1) & mask64;\n let i = n(data.byteLength - 1) / n(32);\n while (i >= 0) {\n const ni = Number(i);\n acc = XXH3_mix32B(acc, getView(data, 16 * ni), getView(data, data.byteLength - 16 * (ni + 1)), getView(secret, 32 * ni), seed);\n i--;\n }\n let h128l = (acc + (acc >> n(64))) & mask64;\n h128l = XXH3_avalanche(h128l);\n let h128h = (acc & mask64) * PRIME64_1 +\n (acc >> n(64)) * PRIME64_4 +\n ((n(data.byteLength) - seed) & mask64) * PRIME64_2;\n h128h &= mask64;\n h128h = inv64(XXH3_avalanche(h128h));\n return h128l | (h128h << n(64));\n}\nfunction XXH3_len_129to240_128b(data, secret, seed) {\n let acc = (n(data.byteLength) * PRIME64_1) & mask64;\n for (let i = 32; i < 160; i += 32) {\n acc = XXH3_mix32B(acc, getView(data, i - 32), getView(data, i - 16), getView(secret, i - 32), seed);\n }\n acc = XXH3_avalanche(acc & mask64) | (XXH3_avalanche(acc >> n(64)) << n(64));\n for (let i = 160; i <= data.byteLength; i += 32) {\n acc = XXH3_mix32B(acc, getView(data, i - 32), getView(data, i - 16), getView(secret, 3 + i - 160), seed);\n }\n acc = XXH3_mix32B(acc, getView(data, data.byteLength - 16), getView(data, data.byteLength - 32), getView(secret, 136 - 17 - 16), inv64(seed));\n let h128l = (acc + (acc >> n(64))) & mask64;\n h128l = XXH3_avalanche(h128l);\n let h128h = (acc & mask64) * PRIME64_1 +\n (acc >> n(64)) * PRIME64_4 +\n ((n(data.byteLength) - seed) & mask64) * PRIME64_2;\n h128h &= mask64;\n h128h = inv64(XXH3_avalanche(h128h));\n return h128l | (h128h << n(64));\n}\n/**\n * Compute XXH3 128-bit hash of the input data.\n *\n * @param data - Input data as Uint8Array\n * @param seed - Optional seed value (default: 0)\n * @returns 128-bit hash as a single BigInt (high 64 bits << 64 | low 64 bits)\n */\nexport function XXH3_128(data, seed = n(0)) {\n const len = data.byteLength;\n if (len <= 16)\n return XXH3_len_0to16_128b(data, seed);\n if (len <= 128)\n return XXH3_len_17to128_128b(data, kkey, seed);\n if (len <= 240)\n return XXH3_len_129to240_128b(data, kkey, seed);\n return XXH3_hashLong_128b(data, kkey, seed);\n}\n/**\n * Convert a 128-bit hash (BigInt) to a 16-byte Uint8Array.\n *\n * @param hash128 - 128-bit hash as BigInt\n * @returns 16-byte Uint8Array in little-endian byte order\n */\nexport function xxh128ToBytes(hash128) {\n const result = new Uint8Array(16);\n const view = new DataView(result.buffer);\n // Extract low and high 64-bit values\n const low64 = hash128 & mask64;\n const high64 = hash128 >> n(64);\n // Write in big-endian order to match Python's xxhash.digest() output\n // Python outputs: [high64 bytes][low64 bytes], each in big-endian\n view.setBigUint64(0, high64, false); // high 64 bits, big-endian\n view.setBigUint64(8, low64, false); // low 64 bits, big-endian\n return result;\n}\n"],"names":["n","hexToBytes","hex","bytes","i"],"mappings":"AAIA,MAAMA,IAAI,CAACA,MAAM,OAAOA,CAAC;AACPA,EAAE,YAAY;AACdA,EAAE,YAAY;AACdA,EAAE,YAAY;AACdA,EAAE,oBAAoB;AACtBA,EAAE,oBAAoB;AACtBA,EAAE,oBAAoB;AACtBA,EAAE,oBAAoB;AACtBA,EAAE,oBAAoB;AACtBA,EAAE,oBAAoB;AACtBA,EAAE,oBAAoB;AAExC,SAASC,EAAWC,GAAK;AACrB,QAAMC,IAAQ,IAAI,WAAWD,EAAI,SAAS,CAAC;AAC3C,WAASE,IAAI,GAAGA,IAAIF,EAAI,QAAQE,KAAK;AACjC,IAAAD,EAAMC,IAAI,CAAC,IAAI,SAASF,EAAI,UAAUE,GAAGA,IAAI,CAAC,GAAG,EAAE;AAEvD,SAAOD;AACX;AACaF,EAAW,kYAAkY;AAAA,CACzYD,EAAE,CAAC,KAAKA,EAAE,GAAG,KAAKA,EAAE,CAAC;AAAA,CACtBA,EAAE,CAAC,KAAKA,EAAE,EAAE,KAAKA,EAAE,CAAC;AAAA,CACpBA,EAAE,CAAC,KAAKA,EAAE,EAAE,KAAKA,EAAE,CAAC;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i,u;function a(){return u||(u=1,i=(n,e)=>(e=e||(()=>{}),n.then(r=>new Promise(t=>{t(e())}).then(()=>r),r=>new Promise(t=>{t(e())}).then(()=>{throw r})))),i}exports.__require=a;
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js"],"sourcesContent":["'use strict';\nmodule.exports = (promise, onFinally) => {\n\tonFinally = onFinally || (() => {});\n\n\treturn promise.then(\n\t\tval => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => val),\n\t\terr => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => {\n\t\t\tthrow err;\n\t\t})\n\t);\n};\n"],"names":["pFinally","promise","onFinally","val","resolve","err"],"mappings":"oHACAA,EAAiB,CAACC,EAASC,KAC1BA,EAAYA,IAAc,IAAM,IAEzBD,EAAQ,KACdE,GAAO,IAAI,QAAQC,GAAW,CAC7BA,EAAQF,EAAS,CAAE,CACtB,CAAG,EAAE,KAAK,IAAMC,CAAG,EACjBE,GAAO,IAAI,QAAQD,GAAW,CAC7BA,EAAQF,EAAS,CAAE,CACtB,CAAG,EAAE,KAAK,IAAM,CACb,MAAMG,CACT,CAAG","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- var i, n;
2
- function h() {
3
- return n || (n = 1, i = (u, e) => (e = e || (() => {
4
- }), u.then(
5
- (r) => new Promise((t) => {
6
- t(e());
7
- }).then(() => r),
8
- (r) => new Promise((t) => {
9
- t(e());
10
- }).then(() => {
11
- throw r;
12
- })
13
- ))), i;
14
- }
15
- export {
16
- h as __require
17
- };
18
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js"],"sourcesContent":["'use strict';\nmodule.exports = (promise, onFinally) => {\n\tonFinally = onFinally || (() => {});\n\n\treturn promise.then(\n\t\tval => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => val),\n\t\terr => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => {\n\t\t\tthrow err;\n\t\t})\n\t);\n};\n"],"names":["pFinally","promise","onFinally","val","resolve","err"],"mappings":";;sBACAA,IAAiB,CAACC,GAASC,OAC1BA,IAAYA,MAAc,MAAM;AAAA,MAEzBD,EAAQ;AAAA,IACd,CAAAE,MAAO,IAAI,QAAQ,CAAAC,MAAW;AAC7B,MAAAA,EAAQF,EAAS,CAAE;AAAA,IACtB,CAAG,EAAE,KAAK,MAAMC,CAAG;AAAA,IACjB,CAAAE,MAAO,IAAI,QAAQ,CAAAD,MAAW;AAC7B,MAAAA,EAAQF,EAAS,CAAE;AAAA,IACtB,CAAG,EAAE,KAAK,MAAM;AACb,YAAMG;AAAA,IACT,CAAG;AAAA;;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../../../_virtual/index.cjs5.js"),c=require("../../../../eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js"),f=require("../../../../p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js"),m=require("./priority-queue.cjs.js");var l;function y(){if(l)return u.__exports;l=1,Object.defineProperty(u.__exports,"__esModule",{value:!0});const _=c.__require(),o=f.__require(),h=m.__require(),s=()=>{},d=new o.TimeoutError;class v extends _{constructor(e){var t,r,i,n;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=s,this._resolveIdle=s,e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},e),!(typeof e.intervalCap=="number"&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(r=(t=e.intervalCap)===null||t===void 0?void 0:t.toString())!==null&&r!==void 0?r:""}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(n=(i=e.interval)===null||i===void 0?void 0:i.toString())!==null&&n!==void 0?n:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||e.interval===0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=e.throwOnTimeout===!0,this._isPaused=e.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=s,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=s,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(this._intervalId===void 0){const t=this._intervalEnd-e;if(t<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return t?(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!(typeof e=="number"&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise((r,i)=>{const n=async()=>{this._pendingCount++,this._intervalCount++;try{const a=this._timeout===void 0&&t.timeout===void 0?e():o.default(Promise.resolve(e()),t.timeout===void 0?this._timeout:t.timeout,()=>{(t.throwOnTimeout===void 0?this._throwOnTimeout:t.throwOnTimeout)&&i(d)});r(await a)}catch(a){i(a)}this._next()};this._queue.enqueue(n,t),this._tryToStartAnother(),this.emit("add")})}async addAll(e,t){return Promise.all(e.map(async r=>this.add(r,t)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}return u.__exports.default=v,u.__exports}exports.__require=y;
2
- //# sourceMappingURL=index.cjs.js.map