langchain 1.0.1 → 1.0.2
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.
- package/CHANGELOG.md +7 -0
- package/dist/_virtual/rolldown_runtime.cjs +0 -4
- package/dist/_virtual/rolldown_runtime.js +1 -10
- package/dist/agents/index.cjs.map +1 -1
- package/dist/agents/index.d.cts +11 -11
- package/dist/agents/index.d.cts.map +1 -1
- package/dist/agents/index.d.ts +11 -11
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/middleware/callLimit.d.cts.map +1 -1
- package/dist/agents/middleware/callLimit.d.ts.map +1 -1
- package/dist/agents/middleware/contextEditing.d.cts.map +1 -1
- package/dist/agents/middleware/contextEditing.d.ts.map +1 -1
- package/dist/agents/middleware/dynamicSystemPrompt.d.ts.map +1 -1
- package/dist/agents/middleware/hitl.d.ts.map +1 -1
- package/dist/agents/middleware/promptCaching.d.cts.map +1 -1
- package/dist/agents/middleware/promptCaching.d.ts.map +1 -1
- package/dist/agents/middleware/todoListMiddleware.d.cts.map +1 -1
- package/dist/agents/middleware/todoListMiddleware.d.ts.map +1 -1
- package/dist/agents/middleware/toolCallLimit.d.cts.map +1 -1
- package/dist/agents/middleware/toolCallLimit.d.ts.map +1 -1
- package/dist/agents/middleware/utils.d.cts.map +1 -1
- package/dist/agents/middleware/utils.d.ts.map +1 -1
- package/dist/chat_models/universal.cjs +2 -1
- package/dist/chat_models/universal.cjs.map +1 -1
- package/dist/chat_models/universal.js +2 -1
- package/dist/chat_models/universal.js.map +1 -1
- package/dist/hub/base.cjs +4 -17
- package/dist/hub/base.cjs.map +1 -1
- package/dist/hub/base.js +2 -15
- package/dist/hub/base.js.map +1 -1
- package/package.json +5 -8
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +0 -248
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -244
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +0 -3096
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +0 -3095
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs +0 -71
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js +0 -38
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs +0 -703
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js +0 -702
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs +0 -7
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs +0 -29
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js +0 -28
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs +0 -115
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js +0 -113
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs +0 -14
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs +0 -95
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js +0 -95
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs +0 -136
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js +0 -131
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs +0 -102
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js +0 -99
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs +0 -18
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js +0 -16
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +0 -6
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +0 -27
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +0 -23
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +0 -267
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +0 -263
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +0 -32
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +0 -28
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +0 -49
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +0 -45
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +0 -1
- package/dist/node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.cjs +0 -83
- package/dist/node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.js +0 -79
- package/dist/node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +0 -52
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +0 -48
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +0 -1
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.cjs +0 -16
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js +0 -13
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js.map +0 -1
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.cjs +0 -77
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.cjs.map +0 -1
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js +0 -74
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js.map +0 -1
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.cjs +0 -115
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.cjs.map +0 -1
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js +0 -112
- package/dist/node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +0 -86
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +0 -294
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +0 -290
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +0 -191
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +0 -187
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +0 -39
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +0 -29
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +0 -146
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +0 -142
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +0 -94
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +0 -55
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +0 -74
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +0 -70
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +0 -112
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +0 -108
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +0 -27
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/langsmith@0.3.74_@opentelemetry+api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js
|
|
2
|
-
const warnedMessages = {};
|
|
3
|
-
function warnOnce(message) {
|
|
4
|
-
if (!warnedMessages[message]) {
|
|
5
|
-
console.warn(message);
|
|
6
|
-
warnedMessages[message] = true;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { warnOnce };
|
|
12
|
-
//# sourceMappingURL=warn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warn.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/langsmith@0.3.74_@opentelemetry+api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js"],"sourcesContent":["const warnedMessages = {};\nexport function warnOnce(message) {\n if (!warnedMessages[message]) {\n console.warn(message);\n warnedMessages[message] = true;\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAM,iBAAiB,CAAE;AACzB,SAAgB,SAAS,SAAS;AAC9B,KAAI,CAAC,eAAe,UAAU;EAC1B,QAAQ,KAAK,QAAQ;EACrB,eAAe,WAAW;CAC7B;AACJ"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const require_client = require('./dist/client.cjs');
|
|
2
|
-
const require_project = require('./dist/utils/project.cjs');
|
|
3
|
-
const require_run_trees = require('./dist/run_trees.cjs');
|
|
4
|
-
const require_index = require('./dist/index.cjs');
|
|
5
|
-
|
|
6
|
-
exports.Client = require_client.Client;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js
|
|
7
|
-
var require_p_finally = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js": ((exports, module) => {
|
|
8
|
-
module.exports = (promise, onFinally) => {
|
|
9
|
-
onFinally = onFinally || (() => {});
|
|
10
|
-
return promise.then((val) => new Promise((resolve) => {
|
|
11
|
-
resolve(onFinally());
|
|
12
|
-
}).then(() => val), (err) => new Promise((resolve) => {
|
|
13
|
-
resolve(onFinally());
|
|
14
|
-
}).then(() => {
|
|
15
|
-
throw err;
|
|
16
|
-
}));
|
|
17
|
-
};
|
|
18
|
-
}) });
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
Object.defineProperty(exports, 'default', {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return require_p_finally();
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"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"],"x_google_ignoreList":[0],"mappings":";;;;;;;CACA,OAAO,UAAU,CAAC,SAAS,cAAc;EACxC,YAAY,cAAc,MAAM,CAAE;AAElC,SAAO,QAAQ,KACd,SAAO,IAAI,QAAQ,aAAW;GAC7B,QAAQ,WAAW,CAAC;EACpB,GAAE,KAAK,MAAM,IAAI,EAClB,SAAO,IAAI,QAAQ,aAAW;GAC7B,QAAQ,WAAW,CAAC;EACpB,GAAE,KAAK,MAAM;AACb,SAAM;EACN,EAAC,CACF;CACD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js
|
|
6
|
-
var require_p_finally = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js": ((exports, module) => {
|
|
7
|
-
module.exports = (promise, onFinally) => {
|
|
8
|
-
onFinally = onFinally || (() => {});
|
|
9
|
-
return promise.then((val) => new Promise((resolve) => {
|
|
10
|
-
resolve(onFinally());
|
|
11
|
-
}).then(() => val), (err) => new Promise((resolve) => {
|
|
12
|
-
resolve(onFinally());
|
|
13
|
-
}).then(() => {
|
|
14
|
-
throw err;
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
}) });
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export default require_p_finally();
|
|
21
|
-
|
|
22
|
-
export { require_p_finally };
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"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"],"x_google_ignoreList":[0],"mappings":";;;;;;CACA,OAAO,UAAU,CAAC,SAAS,cAAc;EACxC,YAAY,cAAc,MAAM,CAAE;AAElC,SAAO,QAAQ,KACd,SAAO,IAAI,QAAQ,aAAW;GAC7B,QAAQ,WAAW,CAAC;EACpB,GAAE,KAAK,MAAM,IAAI,EAClB,SAAO,IAAI,QAAQ,aAAW;GAC7B,QAAQ,WAAW,CAAC;EACpB,GAAE,KAAK,MAAM;AACb,SAAM;EACN,EAAC,CACF;CACD"}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_index = require('../../../../eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs');
|
|
6
|
-
const require_index$1 = require('../../../../p-timeout@3.2.0/node_modules/p-timeout/index.cjs');
|
|
7
|
-
const require_priority_queue$1 = require('./priority-queue.cjs');
|
|
8
|
-
|
|
9
|
-
//#region ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js
|
|
10
|
-
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js": ((exports) => {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const EventEmitter = require_index.require_eventemitter3();
|
|
13
|
-
const p_timeout_1 = require_index$1.require_p_timeout();
|
|
14
|
-
const priority_queue_1 = require_priority_queue$1.require_priority_queue();
|
|
15
|
-
const empty = () => {};
|
|
16
|
-
const timeoutError = new p_timeout_1.TimeoutError();
|
|
17
|
-
/**
|
|
18
|
-
Promise queue with concurrency control.
|
|
19
|
-
*/
|
|
20
|
-
var PQueue = class extends EventEmitter {
|
|
21
|
-
constructor(options) {
|
|
22
|
-
var _a, _b, _c, _d;
|
|
23
|
-
super();
|
|
24
|
-
this._intervalCount = 0;
|
|
25
|
-
this._intervalEnd = 0;
|
|
26
|
-
this._pendingCount = 0;
|
|
27
|
-
this._resolveEmpty = empty;
|
|
28
|
-
this._resolveIdle = empty;
|
|
29
|
-
options = Object.assign({
|
|
30
|
-
carryoverConcurrencyCount: false,
|
|
31
|
-
intervalCap: Infinity,
|
|
32
|
-
interval: 0,
|
|
33
|
-
concurrency: Infinity,
|
|
34
|
-
autoStart: true,
|
|
35
|
-
queueClass: priority_queue_1.default
|
|
36
|
-
}, options);
|
|
37
|
-
if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ""}\` (${typeof options.intervalCap})`);
|
|
38
|
-
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ""}\` (${typeof options.interval})`);
|
|
39
|
-
this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;
|
|
40
|
-
this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;
|
|
41
|
-
this._intervalCap = options.intervalCap;
|
|
42
|
-
this._interval = options.interval;
|
|
43
|
-
this._queue = new options.queueClass();
|
|
44
|
-
this._queueClass = options.queueClass;
|
|
45
|
-
this.concurrency = options.concurrency;
|
|
46
|
-
this._timeout = options.timeout;
|
|
47
|
-
this._throwOnTimeout = options.throwOnTimeout === true;
|
|
48
|
-
this._isPaused = options.autoStart === false;
|
|
49
|
-
}
|
|
50
|
-
get _doesIntervalAllowAnother() {
|
|
51
|
-
return this._isIntervalIgnored || this._intervalCount < this._intervalCap;
|
|
52
|
-
}
|
|
53
|
-
get _doesConcurrentAllowAnother() {
|
|
54
|
-
return this._pendingCount < this._concurrency;
|
|
55
|
-
}
|
|
56
|
-
_next() {
|
|
57
|
-
this._pendingCount--;
|
|
58
|
-
this._tryToStartAnother();
|
|
59
|
-
this.emit("next");
|
|
60
|
-
}
|
|
61
|
-
_resolvePromises() {
|
|
62
|
-
this._resolveEmpty();
|
|
63
|
-
this._resolveEmpty = empty;
|
|
64
|
-
if (this._pendingCount === 0) {
|
|
65
|
-
this._resolveIdle();
|
|
66
|
-
this._resolveIdle = empty;
|
|
67
|
-
this.emit("idle");
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
_onResumeInterval() {
|
|
71
|
-
this._onInterval();
|
|
72
|
-
this._initializeIntervalIfNeeded();
|
|
73
|
-
this._timeoutId = void 0;
|
|
74
|
-
}
|
|
75
|
-
_isIntervalPaused() {
|
|
76
|
-
const now = Date.now();
|
|
77
|
-
if (this._intervalId === void 0) {
|
|
78
|
-
const delay = this._intervalEnd - now;
|
|
79
|
-
if (delay < 0) this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
80
|
-
else {
|
|
81
|
-
if (this._timeoutId === void 0) this._timeoutId = setTimeout(() => {
|
|
82
|
-
this._onResumeInterval();
|
|
83
|
-
}, delay);
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
_tryToStartAnother() {
|
|
90
|
-
if (this._queue.size === 0) {
|
|
91
|
-
if (this._intervalId) clearInterval(this._intervalId);
|
|
92
|
-
this._intervalId = void 0;
|
|
93
|
-
this._resolvePromises();
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
if (!this._isPaused) {
|
|
97
|
-
const canInitializeInterval = !this._isIntervalPaused();
|
|
98
|
-
if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {
|
|
99
|
-
const job = this._queue.dequeue();
|
|
100
|
-
if (!job) return false;
|
|
101
|
-
this.emit("active");
|
|
102
|
-
job();
|
|
103
|
-
if (canInitializeInterval) this._initializeIntervalIfNeeded();
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
_initializeIntervalIfNeeded() {
|
|
110
|
-
if (this._isIntervalIgnored || this._intervalId !== void 0) return;
|
|
111
|
-
this._intervalId = setInterval(() => {
|
|
112
|
-
this._onInterval();
|
|
113
|
-
}, this._interval);
|
|
114
|
-
this._intervalEnd = Date.now() + this._interval;
|
|
115
|
-
}
|
|
116
|
-
_onInterval() {
|
|
117
|
-
if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {
|
|
118
|
-
clearInterval(this._intervalId);
|
|
119
|
-
this._intervalId = void 0;
|
|
120
|
-
}
|
|
121
|
-
this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
122
|
-
this._processQueue();
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
Executes all queued functions until it reaches the limit.
|
|
126
|
-
*/
|
|
127
|
-
_processQueue() {
|
|
128
|
-
while (this._tryToStartAnother());
|
|
129
|
-
}
|
|
130
|
-
get concurrency() {
|
|
131
|
-
return this._concurrency;
|
|
132
|
-
}
|
|
133
|
-
set concurrency(newConcurrency) {
|
|
134
|
-
if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
|
|
135
|
-
this._concurrency = newConcurrency;
|
|
136
|
-
this._processQueue();
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
Adds a sync or async task to the queue. Always returns a promise.
|
|
140
|
-
*/
|
|
141
|
-
async add(fn, options = {}) {
|
|
142
|
-
return new Promise((resolve, reject) => {
|
|
143
|
-
const run = async () => {
|
|
144
|
-
this._pendingCount++;
|
|
145
|
-
this._intervalCount++;
|
|
146
|
-
try {
|
|
147
|
-
const operation = this._timeout === void 0 && options.timeout === void 0 ? fn() : p_timeout_1.default(Promise.resolve(fn()), options.timeout === void 0 ? this._timeout : options.timeout, () => {
|
|
148
|
-
if (options.throwOnTimeout === void 0 ? this._throwOnTimeout : options.throwOnTimeout) reject(timeoutError);
|
|
149
|
-
return void 0;
|
|
150
|
-
});
|
|
151
|
-
resolve(await operation);
|
|
152
|
-
} catch (error) {
|
|
153
|
-
reject(error);
|
|
154
|
-
}
|
|
155
|
-
this._next();
|
|
156
|
-
};
|
|
157
|
-
this._queue.enqueue(run, options);
|
|
158
|
-
this._tryToStartAnother();
|
|
159
|
-
this.emit("add");
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
Same as `.add()`, but accepts an array of sync or async functions.
|
|
164
|
-
|
|
165
|
-
@returns A promise that resolves when all functions are resolved.
|
|
166
|
-
*/
|
|
167
|
-
async addAll(functions, options) {
|
|
168
|
-
return Promise.all(functions.map(async (function_) => this.add(function_, options)));
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
|
|
172
|
-
*/
|
|
173
|
-
start() {
|
|
174
|
-
if (!this._isPaused) return this;
|
|
175
|
-
this._isPaused = false;
|
|
176
|
-
this._processQueue();
|
|
177
|
-
return this;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
Put queue execution on hold.
|
|
181
|
-
*/
|
|
182
|
-
pause() {
|
|
183
|
-
this._isPaused = true;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
Clear the queue.
|
|
187
|
-
*/
|
|
188
|
-
clear() {
|
|
189
|
-
this._queue = new this._queueClass();
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
Can be called multiple times. Useful if you for example add additional items at a later time.
|
|
193
|
-
|
|
194
|
-
@returns A promise that settles when the queue becomes empty.
|
|
195
|
-
*/
|
|
196
|
-
async onEmpty() {
|
|
197
|
-
if (this._queue.size === 0) return;
|
|
198
|
-
return new Promise((resolve) => {
|
|
199
|
-
const existingResolve = this._resolveEmpty;
|
|
200
|
-
this._resolveEmpty = () => {
|
|
201
|
-
existingResolve();
|
|
202
|
-
resolve();
|
|
203
|
-
};
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
|
|
208
|
-
|
|
209
|
-
@returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
|
|
210
|
-
*/
|
|
211
|
-
async onIdle() {
|
|
212
|
-
if (this._pendingCount === 0 && this._queue.size === 0) return;
|
|
213
|
-
return new Promise((resolve) => {
|
|
214
|
-
const existingResolve = this._resolveIdle;
|
|
215
|
-
this._resolveIdle = () => {
|
|
216
|
-
existingResolve();
|
|
217
|
-
resolve();
|
|
218
|
-
};
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
Size of the queue.
|
|
223
|
-
*/
|
|
224
|
-
get size() {
|
|
225
|
-
return this._queue.size;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
Size of the queue, filtered by the given options.
|
|
229
|
-
|
|
230
|
-
For example, this can be used to find the number of items remaining in the queue with a specific priority level.
|
|
231
|
-
*/
|
|
232
|
-
sizeBy(options) {
|
|
233
|
-
return this._queue.filter(options).length;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
Number of pending promises.
|
|
237
|
-
*/
|
|
238
|
-
get pending() {
|
|
239
|
-
return this._pendingCount;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
Whether the queue is currently paused.
|
|
243
|
-
*/
|
|
244
|
-
get isPaused() {
|
|
245
|
-
return this._isPaused;
|
|
246
|
-
}
|
|
247
|
-
get timeout() {
|
|
248
|
-
return this._timeout;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
Set the timeout for future operations.
|
|
252
|
-
*/
|
|
253
|
-
set timeout(milliseconds) {
|
|
254
|
-
this._timeout = milliseconds;
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
exports.default = PQueue;
|
|
258
|
-
}) });
|
|
259
|
-
|
|
260
|
-
//#endregion
|
|
261
|
-
Object.defineProperty(exports, 'default', {
|
|
262
|
-
enumerable: true,
|
|
263
|
-
get: function () {
|
|
264
|
-
return require_dist();
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst EventEmitter = require(\"eventemitter3\");\nconst p_timeout_1 = require(\"p-timeout\");\nconst priority_queue_1 = require(\"./priority-queue\");\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst empty = () => { };\nconst timeoutError = new p_timeout_1.TimeoutError();\n/**\nPromise queue with concurrency control.\n*/\nclass PQueue extends EventEmitter {\n constructor(options) {\n var _a, _b, _c, _d;\n super();\n this._intervalCount = 0;\n this._intervalEnd = 0;\n this._pendingCount = 0;\n this._resolveEmpty = empty;\n this._resolveIdle = empty;\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n options = Object.assign({ carryoverConcurrencyCount: false, intervalCap: Infinity, interval: 0, concurrency: Infinity, autoStart: true, queueClass: priority_queue_1.default }, options);\n if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) {\n throw new TypeError(`Expected \\`intervalCap\\` to be a number from 1 and up, got \\`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ''}\\` (${typeof options.intervalCap})`);\n }\n if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) {\n throw new TypeError(`Expected \\`interval\\` to be a finite number >= 0, got \\`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ''}\\` (${typeof options.interval})`);\n }\n this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;\n this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;\n this._intervalCap = options.intervalCap;\n this._interval = options.interval;\n this._queue = new options.queueClass();\n this._queueClass = options.queueClass;\n this.concurrency = options.concurrency;\n this._timeout = options.timeout;\n this._throwOnTimeout = options.throwOnTimeout === true;\n this._isPaused = options.autoStart === false;\n }\n get _doesIntervalAllowAnother() {\n return this._isIntervalIgnored || this._intervalCount < this._intervalCap;\n }\n get _doesConcurrentAllowAnother() {\n return this._pendingCount < this._concurrency;\n }\n _next() {\n this._pendingCount--;\n this._tryToStartAnother();\n this.emit('next');\n }\n _resolvePromises() {\n this._resolveEmpty();\n this._resolveEmpty = empty;\n if (this._pendingCount === 0) {\n this._resolveIdle();\n this._resolveIdle = empty;\n this.emit('idle');\n }\n }\n _onResumeInterval() {\n this._onInterval();\n this._initializeIntervalIfNeeded();\n this._timeoutId = undefined;\n }\n _isIntervalPaused() {\n const now = Date.now();\n if (this._intervalId === undefined) {\n const delay = this._intervalEnd - now;\n if (delay < 0) {\n // Act as the interval was done\n // We don't need to resume it here because it will be resumed on line 160\n this._intervalCount = (this._carryoverConcurrencyCount) ? this._pendingCount : 0;\n }\n else {\n // Act as the interval is pending\n if (this._timeoutId === undefined) {\n this._timeoutId = setTimeout(() => {\n this._onResumeInterval();\n }, delay);\n }\n return true;\n }\n }\n return false;\n }\n _tryToStartAnother() {\n if (this._queue.size === 0) {\n // We can clear the interval (\"pause\")\n // Because we can redo it later (\"resume\")\n if (this._intervalId) {\n clearInterval(this._intervalId);\n }\n this._intervalId = undefined;\n this._resolvePromises();\n return false;\n }\n if (!this._isPaused) {\n const canInitializeInterval = !this._isIntervalPaused();\n if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {\n const job = this._queue.dequeue();\n if (!job) {\n return false;\n }\n this.emit('active');\n job();\n if (canInitializeInterval) {\n this._initializeIntervalIfNeeded();\n }\n return true;\n }\n }\n return false;\n }\n _initializeIntervalIfNeeded() {\n if (this._isIntervalIgnored || this._intervalId !== undefined) {\n return;\n }\n this._intervalId = setInterval(() => {\n this._onInterval();\n }, this._interval);\n this._intervalEnd = Date.now() + this._interval;\n }\n _onInterval() {\n if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {\n clearInterval(this._intervalId);\n this._intervalId = undefined;\n }\n this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;\n this._processQueue();\n }\n /**\n Executes all queued functions until it reaches the limit.\n */\n _processQueue() {\n // eslint-disable-next-line no-empty\n while (this._tryToStartAnother()) { }\n }\n get concurrency() {\n return this._concurrency;\n }\n set concurrency(newConcurrency) {\n if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) {\n throw new TypeError(`Expected \\`concurrency\\` to be a number from 1 and up, got \\`${newConcurrency}\\` (${typeof newConcurrency})`);\n }\n this._concurrency = newConcurrency;\n this._processQueue();\n }\n /**\n Adds a sync or async task to the queue. Always returns a promise.\n */\n async add(fn, options = {}) {\n return new Promise((resolve, reject) => {\n const run = async () => {\n this._pendingCount++;\n this._intervalCount++;\n try {\n const operation = (this._timeout === undefined && options.timeout === undefined) ? fn() : p_timeout_1.default(Promise.resolve(fn()), (options.timeout === undefined ? this._timeout : options.timeout), () => {\n if (options.throwOnTimeout === undefined ? this._throwOnTimeout : options.throwOnTimeout) {\n reject(timeoutError);\n }\n return undefined;\n });\n resolve(await operation);\n }\n catch (error) {\n reject(error);\n }\n this._next();\n };\n this._queue.enqueue(run, options);\n this._tryToStartAnother();\n this.emit('add');\n });\n }\n /**\n Same as `.add()`, but accepts an array of sync or async functions.\n\n @returns A promise that resolves when all functions are resolved.\n */\n async addAll(functions, options) {\n return Promise.all(functions.map(async (function_) => this.add(function_, options)));\n }\n /**\n Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)\n */\n start() {\n if (!this._isPaused) {\n return this;\n }\n this._isPaused = false;\n this._processQueue();\n return this;\n }\n /**\n Put queue execution on hold.\n */\n pause() {\n this._isPaused = true;\n }\n /**\n Clear the queue.\n */\n clear() {\n this._queue = new this._queueClass();\n }\n /**\n Can be called multiple times. Useful if you for example add additional items at a later time.\n\n @returns A promise that settles when the queue becomes empty.\n */\n async onEmpty() {\n // Instantly resolve if the queue is empty\n if (this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveEmpty;\n this._resolveEmpty = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.\n\n @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.\n */\n async onIdle() {\n // Instantly resolve if none pending and if nothing else is queued\n if (this._pendingCount === 0 && this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveIdle;\n this._resolveIdle = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n Size of the queue.\n */\n get size() {\n return this._queue.size;\n }\n /**\n Size of the queue, filtered by the given options.\n\n For example, this can be used to find the number of items remaining in the queue with a specific priority level.\n */\n sizeBy(options) {\n // eslint-disable-next-line unicorn/no-fn-reference-in-iterator\n return this._queue.filter(options).length;\n }\n /**\n Number of pending promises.\n */\n get pending() {\n return this._pendingCount;\n }\n /**\n Whether the queue is currently paused.\n */\n get isPaused() {\n return this._isPaused;\n }\n get timeout() {\n return this._timeout;\n }\n /**\n Set the timeout for future operations.\n */\n set timeout(milliseconds) {\n this._timeout = milliseconds;\n }\n}\nexports.default = PQueue;\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
4
|
-
import { require_eventemitter3 } from "../../../../eventemitter3@4.0.7/node_modules/eventemitter3/index.js";
|
|
5
|
-
import { require_p_timeout } from "../../../../p-timeout@3.2.0/node_modules/p-timeout/index.js";
|
|
6
|
-
import { require_priority_queue } from "./priority-queue.js";
|
|
7
|
-
|
|
8
|
-
//#region ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js
|
|
9
|
-
var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js": ((exports) => {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
const EventEmitter = require_eventemitter3();
|
|
12
|
-
const p_timeout_1 = require_p_timeout();
|
|
13
|
-
const priority_queue_1 = require_priority_queue();
|
|
14
|
-
const empty = () => {};
|
|
15
|
-
const timeoutError = new p_timeout_1.TimeoutError();
|
|
16
|
-
/**
|
|
17
|
-
Promise queue with concurrency control.
|
|
18
|
-
*/
|
|
19
|
-
var PQueue = class extends EventEmitter {
|
|
20
|
-
constructor(options) {
|
|
21
|
-
var _a, _b, _c, _d;
|
|
22
|
-
super();
|
|
23
|
-
this._intervalCount = 0;
|
|
24
|
-
this._intervalEnd = 0;
|
|
25
|
-
this._pendingCount = 0;
|
|
26
|
-
this._resolveEmpty = empty;
|
|
27
|
-
this._resolveIdle = empty;
|
|
28
|
-
options = Object.assign({
|
|
29
|
-
carryoverConcurrencyCount: false,
|
|
30
|
-
intervalCap: Infinity,
|
|
31
|
-
interval: 0,
|
|
32
|
-
concurrency: Infinity,
|
|
33
|
-
autoStart: true,
|
|
34
|
-
queueClass: priority_queue_1.default
|
|
35
|
-
}, options);
|
|
36
|
-
if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ""}\` (${typeof options.intervalCap})`);
|
|
37
|
-
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ""}\` (${typeof options.interval})`);
|
|
38
|
-
this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;
|
|
39
|
-
this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;
|
|
40
|
-
this._intervalCap = options.intervalCap;
|
|
41
|
-
this._interval = options.interval;
|
|
42
|
-
this._queue = new options.queueClass();
|
|
43
|
-
this._queueClass = options.queueClass;
|
|
44
|
-
this.concurrency = options.concurrency;
|
|
45
|
-
this._timeout = options.timeout;
|
|
46
|
-
this._throwOnTimeout = options.throwOnTimeout === true;
|
|
47
|
-
this._isPaused = options.autoStart === false;
|
|
48
|
-
}
|
|
49
|
-
get _doesIntervalAllowAnother() {
|
|
50
|
-
return this._isIntervalIgnored || this._intervalCount < this._intervalCap;
|
|
51
|
-
}
|
|
52
|
-
get _doesConcurrentAllowAnother() {
|
|
53
|
-
return this._pendingCount < this._concurrency;
|
|
54
|
-
}
|
|
55
|
-
_next() {
|
|
56
|
-
this._pendingCount--;
|
|
57
|
-
this._tryToStartAnother();
|
|
58
|
-
this.emit("next");
|
|
59
|
-
}
|
|
60
|
-
_resolvePromises() {
|
|
61
|
-
this._resolveEmpty();
|
|
62
|
-
this._resolveEmpty = empty;
|
|
63
|
-
if (this._pendingCount === 0) {
|
|
64
|
-
this._resolveIdle();
|
|
65
|
-
this._resolveIdle = empty;
|
|
66
|
-
this.emit("idle");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
_onResumeInterval() {
|
|
70
|
-
this._onInterval();
|
|
71
|
-
this._initializeIntervalIfNeeded();
|
|
72
|
-
this._timeoutId = void 0;
|
|
73
|
-
}
|
|
74
|
-
_isIntervalPaused() {
|
|
75
|
-
const now = Date.now();
|
|
76
|
-
if (this._intervalId === void 0) {
|
|
77
|
-
const delay = this._intervalEnd - now;
|
|
78
|
-
if (delay < 0) this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
79
|
-
else {
|
|
80
|
-
if (this._timeoutId === void 0) this._timeoutId = setTimeout(() => {
|
|
81
|
-
this._onResumeInterval();
|
|
82
|
-
}, delay);
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
_tryToStartAnother() {
|
|
89
|
-
if (this._queue.size === 0) {
|
|
90
|
-
if (this._intervalId) clearInterval(this._intervalId);
|
|
91
|
-
this._intervalId = void 0;
|
|
92
|
-
this._resolvePromises();
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
if (!this._isPaused) {
|
|
96
|
-
const canInitializeInterval = !this._isIntervalPaused();
|
|
97
|
-
if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {
|
|
98
|
-
const job = this._queue.dequeue();
|
|
99
|
-
if (!job) return false;
|
|
100
|
-
this.emit("active");
|
|
101
|
-
job();
|
|
102
|
-
if (canInitializeInterval) this._initializeIntervalIfNeeded();
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
_initializeIntervalIfNeeded() {
|
|
109
|
-
if (this._isIntervalIgnored || this._intervalId !== void 0) return;
|
|
110
|
-
this._intervalId = setInterval(() => {
|
|
111
|
-
this._onInterval();
|
|
112
|
-
}, this._interval);
|
|
113
|
-
this._intervalEnd = Date.now() + this._interval;
|
|
114
|
-
}
|
|
115
|
-
_onInterval() {
|
|
116
|
-
if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {
|
|
117
|
-
clearInterval(this._intervalId);
|
|
118
|
-
this._intervalId = void 0;
|
|
119
|
-
}
|
|
120
|
-
this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
121
|
-
this._processQueue();
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
Executes all queued functions until it reaches the limit.
|
|
125
|
-
*/
|
|
126
|
-
_processQueue() {
|
|
127
|
-
while (this._tryToStartAnother());
|
|
128
|
-
}
|
|
129
|
-
get concurrency() {
|
|
130
|
-
return this._concurrency;
|
|
131
|
-
}
|
|
132
|
-
set concurrency(newConcurrency) {
|
|
133
|
-
if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
|
|
134
|
-
this._concurrency = newConcurrency;
|
|
135
|
-
this._processQueue();
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
Adds a sync or async task to the queue. Always returns a promise.
|
|
139
|
-
*/
|
|
140
|
-
async add(fn, options = {}) {
|
|
141
|
-
return new Promise((resolve, reject) => {
|
|
142
|
-
const run = async () => {
|
|
143
|
-
this._pendingCount++;
|
|
144
|
-
this._intervalCount++;
|
|
145
|
-
try {
|
|
146
|
-
const operation = this._timeout === void 0 && options.timeout === void 0 ? fn() : p_timeout_1.default(Promise.resolve(fn()), options.timeout === void 0 ? this._timeout : options.timeout, () => {
|
|
147
|
-
if (options.throwOnTimeout === void 0 ? this._throwOnTimeout : options.throwOnTimeout) reject(timeoutError);
|
|
148
|
-
return void 0;
|
|
149
|
-
});
|
|
150
|
-
resolve(await operation);
|
|
151
|
-
} catch (error) {
|
|
152
|
-
reject(error);
|
|
153
|
-
}
|
|
154
|
-
this._next();
|
|
155
|
-
};
|
|
156
|
-
this._queue.enqueue(run, options);
|
|
157
|
-
this._tryToStartAnother();
|
|
158
|
-
this.emit("add");
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
Same as `.add()`, but accepts an array of sync or async functions.
|
|
163
|
-
|
|
164
|
-
@returns A promise that resolves when all functions are resolved.
|
|
165
|
-
*/
|
|
166
|
-
async addAll(functions, options) {
|
|
167
|
-
return Promise.all(functions.map(async (function_) => this.add(function_, options)));
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
|
|
171
|
-
*/
|
|
172
|
-
start() {
|
|
173
|
-
if (!this._isPaused) return this;
|
|
174
|
-
this._isPaused = false;
|
|
175
|
-
this._processQueue();
|
|
176
|
-
return this;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
Put queue execution on hold.
|
|
180
|
-
*/
|
|
181
|
-
pause() {
|
|
182
|
-
this._isPaused = true;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
Clear the queue.
|
|
186
|
-
*/
|
|
187
|
-
clear() {
|
|
188
|
-
this._queue = new this._queueClass();
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
Can be called multiple times. Useful if you for example add additional items at a later time.
|
|
192
|
-
|
|
193
|
-
@returns A promise that settles when the queue becomes empty.
|
|
194
|
-
*/
|
|
195
|
-
async onEmpty() {
|
|
196
|
-
if (this._queue.size === 0) return;
|
|
197
|
-
return new Promise((resolve) => {
|
|
198
|
-
const existingResolve = this._resolveEmpty;
|
|
199
|
-
this._resolveEmpty = () => {
|
|
200
|
-
existingResolve();
|
|
201
|
-
resolve();
|
|
202
|
-
};
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
|
|
207
|
-
|
|
208
|
-
@returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
|
|
209
|
-
*/
|
|
210
|
-
async onIdle() {
|
|
211
|
-
if (this._pendingCount === 0 && this._queue.size === 0) return;
|
|
212
|
-
return new Promise((resolve) => {
|
|
213
|
-
const existingResolve = this._resolveIdle;
|
|
214
|
-
this._resolveIdle = () => {
|
|
215
|
-
existingResolve();
|
|
216
|
-
resolve();
|
|
217
|
-
};
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
Size of the queue.
|
|
222
|
-
*/
|
|
223
|
-
get size() {
|
|
224
|
-
return this._queue.size;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
Size of the queue, filtered by the given options.
|
|
228
|
-
|
|
229
|
-
For example, this can be used to find the number of items remaining in the queue with a specific priority level.
|
|
230
|
-
*/
|
|
231
|
-
sizeBy(options) {
|
|
232
|
-
return this._queue.filter(options).length;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
Number of pending promises.
|
|
236
|
-
*/
|
|
237
|
-
get pending() {
|
|
238
|
-
return this._pendingCount;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
Whether the queue is currently paused.
|
|
242
|
-
*/
|
|
243
|
-
get isPaused() {
|
|
244
|
-
return this._isPaused;
|
|
245
|
-
}
|
|
246
|
-
get timeout() {
|
|
247
|
-
return this._timeout;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
Set the timeout for future operations.
|
|
251
|
-
*/
|
|
252
|
-
set timeout(milliseconds) {
|
|
253
|
-
this._timeout = milliseconds;
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
exports.default = PQueue;
|
|
257
|
-
}) });
|
|
258
|
-
|
|
259
|
-
//#endregion
|
|
260
|
-
export default require_dist();
|
|
261
|
-
|
|
262
|
-
export { require_dist };
|
|
263
|
-
//# sourceMappingURL=index.js.map
|