langsmith 0.10.9 → 0.10.10
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 +30 -0
- package/LICENSE +7 -0
- package/README.md +503 -128
- package/anonymizer.d.mts +2 -0
- package/anonymizer.d.mts.map +1 -0
- package/anonymizer.d.ts +2 -1
- package/anonymizer.d.ts.map +1 -0
- package/anonymizer.js +6 -1
- package/anonymizer.js.map +1 -0
- package/anonymizer.mjs +3 -0
- package/anonymizer.mjs.map +1 -0
- package/api-promise.d.mts +3 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +3 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +3 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +244 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +244 -1
- package/client.d.ts.map +1 -0
- package/client.js +755 -1
- package/client.js.map +1 -0
- package/client.mjs +751 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +90 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +86 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +134 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +118 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +169 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +169 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +392 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +378 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +17 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +13 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +3 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +3 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +3 -0
- package/error.mjs.map +1 -0
- package/evaluation.d.mts +2 -0
- package/evaluation.d.mts.map +1 -0
- package/evaluation.d.ts +2 -1
- package/evaluation.d.ts.map +1 -0
- package/evaluation.js +6 -1
- package/evaluation.js.map +1 -0
- package/evaluation.mjs +3 -0
- package/evaluation.mjs.map +1 -0
- package/experimental/anthropic.d.mts +2 -0
- package/experimental/anthropic.d.mts.map +1 -0
- package/experimental/anthropic.d.ts +2 -1
- package/experimental/anthropic.d.ts.map +1 -0
- package/experimental/anthropic.js +6 -1
- package/experimental/anthropic.js.map +1 -0
- package/experimental/anthropic.mjs +3 -0
- package/experimental/anthropic.mjs.map +1 -0
- package/experimental/otel/exporter.d.mts +2 -0
- package/experimental/otel/exporter.d.mts.map +1 -0
- package/experimental/otel/exporter.d.ts +2 -1
- package/experimental/otel/exporter.d.ts.map +1 -0
- package/experimental/otel/exporter.js +6 -1
- package/experimental/otel/exporter.js.map +1 -0
- package/experimental/otel/exporter.mjs +3 -0
- package/experimental/otel/exporter.mjs.map +1 -0
- package/experimental/otel/processor.d.mts +2 -0
- package/experimental/otel/processor.d.mts.map +1 -0
- package/experimental/otel/processor.d.ts +2 -1
- package/experimental/otel/processor.d.ts.map +1 -0
- package/experimental/otel/processor.js +6 -1
- package/experimental/otel/processor.js.map +1 -0
- package/experimental/otel/processor.mjs +3 -0
- package/experimental/otel/processor.mjs.map +1 -0
- package/experimental/otel/setup.d.mts +2 -0
- package/experimental/otel/setup.d.mts.map +1 -0
- package/experimental/otel/setup.d.ts +2 -1
- package/experimental/otel/setup.d.ts.map +1 -0
- package/experimental/otel/setup.js +6 -1
- package/experimental/otel/setup.js.map +1 -0
- package/experimental/otel/setup.mjs +3 -0
- package/experimental/otel/setup.mjs.map +1 -0
- package/experimental/sandbox.d.mts +2 -0
- package/experimental/sandbox.d.mts.map +1 -0
- package/experimental/sandbox.d.ts +2 -1
- package/experimental/sandbox.d.ts.map +1 -0
- package/experimental/sandbox.js +6 -1
- package/experimental/sandbox.js.map +1 -0
- package/experimental/sandbox.mjs +3 -0
- package/experimental/sandbox.mjs.map +1 -0
- package/experimental/vercel.d.mts +2 -0
- package/experimental/vercel.d.mts.map +1 -0
- package/experimental/vercel.d.ts +2 -1
- package/experimental/vercel.d.ts.map +1 -0
- package/experimental/vercel.js +6 -1
- package/experimental/vercel.js.map +1 -0
- package/experimental/vercel.mjs +3 -0
- package/experimental/vercel.mjs.map +1 -0
- package/index.d.mts +8 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +8 -1
- package/index.d.ts.map +1 -0
- package/index.js +35 -1
- package/index.js.map +1 -0
- package/index.mjs +10 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +6 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +6 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +26 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +26 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +85 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +88 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +82 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/jest/reporter.d.mts +3 -0
- package/jest/reporter.d.mts.map +1 -0
- package/jest/reporter.d.ts +3 -1
- package/jest/reporter.d.ts.map +1 -0
- package/jest/reporter.js +9 -1
- package/jest/reporter.js.map +1 -0
- package/jest/reporter.mjs +4 -0
- package/jest/reporter.mjs.map +1 -0
- package/jest.d.mts +2 -0
- package/jest.d.mts.map +1 -0
- package/jest.d.ts +2 -1
- package/jest.d.ts.map +1 -0
- package/jest.js +6 -1
- package/jest.js.map +1 -0
- package/jest.mjs +3 -0
- package/jest.mjs.map +1 -0
- package/langchain.d.mts +2 -0
- package/langchain.d.mts.map +1 -0
- package/langchain.d.ts +2 -1
- package/langchain.d.ts.map +1 -0
- package/langchain.js +6 -1
- package/langchain.js.map +1 -0
- package/langchain.mjs +3 -0
- package/langchain.mjs.map +1 -0
- package/lib/address.d.mts +69 -0
- package/lib/address.d.mts.map +1 -0
- package/lib/address.d.ts +69 -0
- package/lib/address.d.ts.map +1 -0
- package/lib/address.js +211 -0
- package/lib/address.js.map +1 -0
- package/lib/address.mjs +201 -0
- package/lib/address.mjs.map +1 -0
- package/lib/anonymizer/index.d.mts +62 -0
- package/lib/anonymizer/index.d.mts.map +1 -0
- package/lib/anonymizer/index.d.ts +62 -0
- package/lib/anonymizer/index.d.ts.map +1 -0
- package/lib/anonymizer/index.js +270 -0
- package/lib/anonymizer/index.js.map +1 -0
- package/lib/anonymizer/index.mjs +265 -0
- package/lib/anonymizer/index.mjs.map +1 -0
- package/lib/client.d.mts +1756 -0
- package/lib/client.d.mts.map +1 -0
- package/lib/client.d.ts +1756 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +5767 -0
- package/lib/client.js.map +1 -0
- package/lib/client.mjs +5759 -0
- package/lib/client.mjs.map +1 -0
- package/lib/env.d.mts +11 -0
- package/lib/env.d.mts.map +1 -0
- package/lib/env.d.ts +11 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +26 -0
- package/lib/env.js.map +1 -0
- package/lib/env.mjs +21 -0
- package/lib/env.mjs.map +1 -0
- package/lib/evaluation/_random_name.d.mts +6 -0
- package/lib/evaluation/_random_name.d.mts.map +1 -0
- package/lib/evaluation/_random_name.d.ts +6 -0
- package/lib/evaluation/_random_name.d.ts.map +1 -0
- package/lib/evaluation/_random_name.js +730 -0
- package/lib/evaluation/_random_name.js.map +1 -0
- package/lib/evaluation/_random_name.mjs +727 -0
- package/lib/evaluation/_random_name.mjs.map +1 -0
- package/lib/evaluation/_runner.d.mts +289 -0
- package/lib/evaluation/_runner.d.mts.map +1 -0
- package/lib/evaluation/_runner.d.ts +289 -0
- package/lib/evaluation/_runner.d.ts.map +1 -0
- package/lib/evaluation/_runner.js +1174 -0
- package/lib/evaluation/_runner.js.map +1 -0
- package/lib/evaluation/_runner.mjs +1132 -0
- package/lib/evaluation/_runner.mjs.map +1 -0
- package/lib/evaluation/evaluate_comparative.d.mts +72 -0
- package/lib/evaluation/evaluate_comparative.d.mts.map +1 -0
- package/lib/evaluation/evaluate_comparative.d.ts +72 -0
- package/lib/evaluation/evaluate_comparative.d.ts.map +1 -0
- package/lib/evaluation/evaluate_comparative.js +242 -0
- package/lib/evaluation/evaluate_comparative.js.map +1 -0
- package/lib/evaluation/evaluate_comparative.mjs +237 -0
- package/lib/evaluation/evaluate_comparative.mjs.map +1 -0
- package/lib/evaluation/evaluator.d.mts +106 -0
- package/lib/evaluation/evaluator.d.mts.map +1 -0
- package/lib/evaluation/evaluator.d.ts +106 -0
- package/lib/evaluation/evaluator.d.ts.map +1 -0
- package/lib/evaluation/evaluator.js +117 -0
- package/lib/evaluation/evaluator.js.map +1 -0
- package/lib/evaluation/evaluator.mjs +112 -0
- package/lib/evaluation/evaluator.mjs.map +1 -0
- package/lib/evaluation/index.d.mts +5 -0
- package/lib/evaluation/index.d.mts.map +1 -0
- package/lib/evaluation/index.d.ts +5 -0
- package/lib/evaluation/index.d.ts.map +1 -0
- package/lib/evaluation/index.js +10 -0
- package/lib/evaluation/index.js.map +1 -0
- package/lib/evaluation/index.mjs +4 -0
- package/lib/evaluation/index.mjs.map +1 -0
- package/lib/evaluation/string_evaluator.d.mts +31 -0
- package/lib/evaluation/string_evaluator.d.mts.map +1 -0
- package/lib/evaluation/string_evaluator.d.ts +31 -0
- package/lib/evaluation/string_evaluator.d.ts.map +1 -0
- package/lib/evaluation/string_evaluator.js +67 -0
- package/lib/evaluation/string_evaluator.js.map +1 -0
- package/lib/evaluation/string_evaluator.mjs +63 -0
- package/lib/evaluation/string_evaluator.mjs.map +1 -0
- package/lib/experimental/anthropic/context.d.mts +6 -0
- package/lib/experimental/anthropic/context.d.mts.map +1 -0
- package/lib/experimental/anthropic/context.d.ts +6 -0
- package/lib/experimental/anthropic/context.d.ts.map +1 -0
- package/lib/experimental/anthropic/context.js +594 -0
- package/lib/experimental/anthropic/context.js.map +1 -0
- package/lib/experimental/anthropic/context.mjs +590 -0
- package/lib/experimental/anthropic/context.mjs.map +1 -0
- package/lib/experimental/anthropic/index.d.mts +31 -0
- package/lib/experimental/anthropic/index.d.mts.map +1 -0
- package/lib/experimental/anthropic/index.d.ts +31 -0
- package/lib/experimental/anthropic/index.d.ts.map +1 -0
- package/lib/experimental/anthropic/index.js +261 -0
- package/lib/experimental/anthropic/index.js.map +1 -0
- package/lib/experimental/anthropic/index.mjs +258 -0
- package/lib/experimental/anthropic/index.mjs.map +1 -0
- package/lib/experimental/anthropic/messages.d.mts +13 -0
- package/lib/experimental/anthropic/messages.d.mts.map +1 -0
- package/lib/experimental/anthropic/messages.d.ts +13 -0
- package/lib/experimental/anthropic/messages.d.ts.map +1 -0
- package/lib/experimental/anthropic/messages.js +156 -0
- package/lib/experimental/anthropic/messages.js.map +1 -0
- package/lib/experimental/anthropic/messages.mjs +149 -0
- package/lib/experimental/anthropic/messages.mjs.map +1 -0
- package/lib/experimental/anthropic/transcripts.d.mts +23 -0
- package/lib/experimental/anthropic/transcripts.d.mts.map +1 -0
- package/lib/experimental/anthropic/transcripts.d.ts +23 -0
- package/lib/experimental/anthropic/transcripts.d.ts.map +1 -0
- package/lib/experimental/anthropic/transcripts.js +145 -0
- package/lib/experimental/anthropic/transcripts.js.map +1 -0
- package/lib/experimental/anthropic/transcripts.mjs +142 -0
- package/lib/experimental/anthropic/transcripts.mjs.map +1 -0
- package/lib/experimental/anthropic/types.d.mts +52 -0
- package/lib/experimental/anthropic/types.d.mts.map +1 -0
- package/lib/experimental/anthropic/types.d.ts +52 -0
- package/lib/experimental/anthropic/types.d.ts.map +1 -0
- package/lib/experimental/anthropic/types.js +4 -0
- package/lib/experimental/anthropic/types.js.map +1 -0
- package/lib/experimental/anthropic/types.mjs +3 -0
- package/lib/experimental/anthropic/types.mjs.map +1 -0
- package/lib/experimental/anthropic/usage.d.mts +3 -0
- package/lib/experimental/anthropic/usage.d.mts.map +1 -0
- package/lib/experimental/anthropic/usage.d.ts +3 -0
- package/lib/experimental/anthropic/usage.d.ts.map +1 -0
- package/lib/experimental/anthropic/usage.js +182 -0
- package/lib/experimental/anthropic/usage.js.map +1 -0
- package/lib/experimental/anthropic/usage.mjs +176 -0
- package/lib/experimental/anthropic/usage.mjs.map +1 -0
- package/lib/experimental/anthropic/utils.d.mts +2 -0
- package/lib/experimental/anthropic/utils.d.mts.map +1 -0
- package/lib/experimental/anthropic/utils.d.ts +2 -0
- package/lib/experimental/anthropic/utils.d.ts.map +1 -0
- package/lib/experimental/anthropic/utils.js +25 -0
- package/lib/experimental/anthropic/utils.js.map +1 -0
- package/lib/experimental/anthropic/utils.mjs +21 -0
- package/lib/experimental/anthropic/utils.mjs.map +1 -0
- package/lib/experimental/otel/constants.d.mts +53 -0
- package/lib/experimental/otel/constants.d.mts.map +1 -0
- package/lib/experimental/otel/constants.d.ts +53 -0
- package/lib/experimental/otel/constants.d.ts.map +1 -0
- package/lib/experimental/otel/constants.js +65 -0
- package/lib/experimental/otel/constants.js.map +1 -0
- package/lib/experimental/otel/constants.mjs +61 -0
- package/lib/experimental/otel/constants.mjs.map +1 -0
- package/lib/experimental/otel/exporter.d.mts +63 -0
- package/lib/experimental/otel/exporter.d.mts.map +1 -0
- package/lib/experimental/otel/exporter.d.ts +63 -0
- package/lib/experimental/otel/exporter.d.ts.map +1 -0
- package/lib/experimental/otel/exporter.js +208 -0
- package/lib/experimental/otel/exporter.js.map +1 -0
- package/lib/experimental/otel/exporter.mjs +203 -0
- package/lib/experimental/otel/exporter.mjs.map +1 -0
- package/lib/experimental/otel/processor.d.mts +14 -0
- package/lib/experimental/otel/processor.d.mts.map +1 -0
- package/lib/experimental/otel/processor.d.ts +14 -0
- package/lib/experimental/otel/processor.d.ts.map +1 -0
- package/lib/experimental/otel/processor.js +91 -0
- package/lib/experimental/otel/processor.js.map +1 -0
- package/lib/experimental/otel/processor.mjs +86 -0
- package/lib/experimental/otel/processor.mjs.map +1 -0
- package/lib/experimental/otel/setup.d.mts +67 -0
- package/lib/experimental/otel/setup.d.mts.map +1 -0
- package/lib/experimental/otel/setup.d.ts +67 -0
- package/lib/experimental/otel/setup.d.ts.map +1 -0
- package/lib/experimental/otel/setup.js +95 -0
- package/lib/experimental/otel/setup.js.map +1 -0
- package/lib/experimental/otel/setup.mjs +91 -0
- package/lib/experimental/otel/setup.mjs.map +1 -0
- package/lib/experimental/otel/translator.d.mts +23 -0
- package/lib/experimental/otel/translator.d.mts.map +1 -0
- package/lib/experimental/otel/translator.d.ts +23 -0
- package/lib/experimental/otel/translator.d.ts.map +1 -0
- package/lib/experimental/otel/translator.js +444 -0
- package/lib/experimental/otel/translator.js.map +1 -0
- package/lib/experimental/otel/translator.mjs +439 -0
- package/lib/experimental/otel/translator.mjs.map +1 -0
- package/lib/experimental/otel/types.d.mts +30 -0
- package/lib/experimental/otel/types.d.mts.map +1 -0
- package/lib/experimental/otel/types.d.ts +30 -0
- package/lib/experimental/otel/types.d.ts.map +1 -0
- package/lib/experimental/otel/types.js +6 -0
- package/lib/experimental/otel/types.js.map +1 -0
- package/lib/experimental/otel/types.mjs +5 -0
- package/lib/experimental/otel/types.mjs.map +1 -0
- package/lib/experimental/otel/utils.d.mts +13 -0
- package/lib/experimental/otel/utils.d.mts.map +1 -0
- package/lib/experimental/otel/utils.d.ts +13 -0
- package/lib/experimental/otel/utils.d.ts.map +1 -0
- package/lib/experimental/otel/utils.js +24 -0
- package/lib/experimental/otel/utils.js.map +1 -0
- package/lib/experimental/otel/utils.mjs +20 -0
- package/lib/experimental/otel/utils.mjs.map +1 -0
- package/lib/experimental/vercel/_agent_type.d.mts +6 -0
- package/lib/experimental/vercel/_agent_type.d.mts.map +1 -0
- package/lib/experimental/vercel/_agent_type.d.ts +6 -0
- package/lib/experimental/vercel/_agent_type.d.ts.map +1 -0
- package/lib/experimental/vercel/_agent_type.js +31 -0
- package/lib/experimental/vercel/_agent_type.js.map +1 -0
- package/lib/experimental/vercel/_agent_type.mjs +27 -0
- package/lib/experimental/vercel/_agent_type.mjs.map +1 -0
- package/lib/experimental/vercel/index.d.mts +4 -0
- package/lib/experimental/vercel/index.d.mts.map +1 -0
- package/lib/experimental/vercel/index.d.ts +4 -0
- package/lib/experimental/vercel/index.d.ts.map +1 -0
- package/lib/experimental/vercel/index.js +8 -0
- package/lib/experimental/vercel/index.js.map +1 -0
- package/lib/experimental/vercel/index.mjs +3 -0
- package/lib/experimental/vercel/index.mjs.map +1 -0
- package/lib/experimental/vercel/middleware.d.mts +39 -0
- package/lib/experimental/vercel/middleware.d.mts.map +1 -0
- package/lib/experimental/vercel/middleware.d.ts +39 -0
- package/lib/experimental/vercel/middleware.d.ts.map +1 -0
- package/lib/experimental/vercel/middleware.js +241 -0
- package/lib/experimental/vercel/middleware.js.map +1 -0
- package/lib/experimental/vercel/middleware.mjs +238 -0
- package/lib/experimental/vercel/middleware.mjs.map +1 -0
- package/lib/experimental/vercel/telemetry.d.mts +90 -0
- package/lib/experimental/vercel/telemetry.d.mts.map +1 -0
- package/lib/experimental/vercel/telemetry.d.ts +90 -0
- package/lib/experimental/vercel/telemetry.d.ts.map +1 -0
- package/lib/experimental/vercel/telemetry.js +600 -0
- package/lib/experimental/vercel/telemetry.js.map +1 -0
- package/lib/experimental/vercel/telemetry.mjs +597 -0
- package/lib/experimental/vercel/telemetry.mjs.map +1 -0
- package/lib/experimental/vercel/utils.d.mts +29 -0
- package/lib/experimental/vercel/utils.d.mts.map +1 -0
- package/lib/experimental/vercel/utils.d.ts +29 -0
- package/lib/experimental/vercel/utils.d.ts.map +1 -0
- package/lib/experimental/vercel/utils.js +287 -0
- package/lib/experimental/vercel/utils.js.map +1 -0
- package/lib/experimental/vercel/utils.mjs +281 -0
- package/lib/experimental/vercel/utils.mjs.map +1 -0
- package/lib/experimental/vercel/wrap.d.mts +258 -0
- package/lib/experimental/vercel/wrap.d.mts.map +1 -0
- package/lib/experimental/vercel/wrap.d.ts +258 -0
- package/lib/experimental/vercel/wrap.d.ts.map +1 -0
- package/lib/experimental/vercel/wrap.js +634 -0
- package/lib/experimental/vercel/wrap.js.map +1 -0
- package/lib/experimental/vercel/wrap.mjs +630 -0
- package/lib/experimental/vercel/wrap.mjs.map +1 -0
- package/lib/index.d.mts +13 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +46 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +13 -0
- package/lib/index.mjs.map +1 -0
- package/lib/jest/index.d.mts +560 -0
- package/lib/jest/index.d.mts.map +1 -0
- package/lib/jest/index.d.ts +560 -0
- package/lib/jest/index.d.ts.map +1 -0
- package/lib/jest/index.js +98 -0
- package/lib/jest/index.js.map +1 -0
- package/lib/jest/index.mjs +388 -0
- package/lib/jest/index.mjs.map +1 -0
- package/lib/jest/reporter.d.mts +6 -0
- package/lib/jest/reporter.d.mts.map +1 -0
- package/lib/jest/reporter.d.ts +6 -0
- package/lib/jest/reporter.d.ts.map +1 -0
- package/lib/jest/reporter.js +37 -0
- package/lib/jest/reporter.js.map +1 -0
- package/lib/jest/reporter.mjs +35 -0
- package/lib/jest/reporter.mjs.map +1 -0
- package/lib/langchain.d.mts +32 -0
- package/lib/langchain.d.mts.map +1 -0
- package/lib/langchain.d.ts +32 -0
- package/lib/langchain.d.ts.map +1 -0
- package/lib/langchain.js +141 -0
- package/lib/langchain.js.map +1 -0
- package/lib/langchain.mjs +136 -0
- package/lib/langchain.mjs.map +1 -0
- package/lib/run_trees.d.mts +181 -0
- package/lib/run_trees.d.mts.map +1 -0
- package/lib/run_trees.d.ts +181 -0
- package/lib/run_trees.d.ts.map +1 -0
- package/lib/run_trees.js +1212 -0
- package/lib/run_trees.js.map +1 -0
- package/lib/run_trees.mjs +1205 -0
- package/lib/run_trees.mjs.map +1 -0
- package/lib/sandbox/access_delegation.d.mts +16 -0
- package/lib/sandbox/access_delegation.d.mts.map +1 -0
- package/lib/sandbox/access_delegation.d.ts +16 -0
- package/lib/sandbox/access_delegation.d.ts.map +1 -0
- package/lib/sandbox/access_delegation.js +25 -0
- package/lib/sandbox/access_delegation.js.map +1 -0
- package/lib/sandbox/access_delegation.mjs +22 -0
- package/lib/sandbox/access_delegation.mjs.map +1 -0
- package/lib/sandbox/client.d.mts +339 -0
- package/lib/sandbox/client.d.mts.map +1 -0
- package/lib/sandbox/client.d.ts +339 -0
- package/lib/sandbox/client.d.ts.map +1 -0
- package/lib/sandbox/client.js +1110 -0
- package/lib/sandbox/client.js.map +1 -0
- package/lib/sandbox/client.mjs +1073 -0
- package/lib/sandbox/client.mjs.map +1 -0
- package/lib/sandbox/command_handle.d.mts +112 -0
- package/lib/sandbox/command_handle.d.mts.map +1 -0
- package/lib/sandbox/command_handle.d.ts +112 -0
- package/lib/sandbox/command_handle.d.ts.map +1 -0
- package/lib/sandbox/command_handle.js +411 -0
- package/lib/sandbox/command_handle.js.map +1 -0
- package/lib/sandbox/command_handle.mjs +407 -0
- package/lib/sandbox/command_handle.mjs.map +1 -0
- package/lib/sandbox/errors.d.mts +202 -0
- package/lib/sandbox/errors.d.mts.map +1 -0
- package/lib/sandbox/errors.d.ts +202 -0
- package/lib/sandbox/errors.d.ts.map +1 -0
- package/lib/sandbox/errors.js +431 -0
- package/lib/sandbox/errors.js.map +1 -0
- package/lib/sandbox/errors.mjs +406 -0
- package/lib/sandbox/errors.mjs.map +1 -0
- package/lib/sandbox/helpers.d.mts +109 -0
- package/lib/sandbox/helpers.d.mts.map +1 -0
- package/lib/sandbox/helpers.d.ts +109 -0
- package/lib/sandbox/helpers.d.ts.map +1 -0
- package/lib/sandbox/helpers.js +400 -0
- package/lib/sandbox/helpers.js.map +1 -0
- package/lib/sandbox/helpers.mjs +384 -0
- package/lib/sandbox/helpers.mjs.map +1 -0
- package/lib/sandbox/index.d.mts +43 -0
- package/lib/sandbox/index.d.mts.map +1 -0
- package/lib/sandbox/index.d.ts +43 -0
- package/lib/sandbox/index.d.ts.map +1 -0
- package/lib/sandbox/index.js +90 -0
- package/lib/sandbox/index.js.map +1 -0
- package/lib/sandbox/index.mjs +51 -0
- package/lib/sandbox/index.mjs.map +1 -0
- package/lib/sandbox/mounts.d.mts +50 -0
- package/lib/sandbox/mounts.d.mts.map +1 -0
- package/lib/sandbox/mounts.d.ts +50 -0
- package/lib/sandbox/mounts.d.ts.map +1 -0
- package/lib/sandbox/mounts.js +295 -0
- package/lib/sandbox/mounts.js.map +1 -0
- package/lib/sandbox/mounts.mjs +287 -0
- package/lib/sandbox/mounts.mjs.map +1 -0
- package/lib/sandbox/proxy_config.d.mts +55 -0
- package/lib/sandbox/proxy_config.d.mts.map +1 -0
- package/lib/sandbox/proxy_config.d.ts +55 -0
- package/lib/sandbox/proxy_config.d.ts.map +1 -0
- package/lib/sandbox/proxy_config.js +163 -0
- package/lib/sandbox/proxy_config.js.map +1 -0
- package/lib/sandbox/proxy_config.mjs +155 -0
- package/lib/sandbox/proxy_config.mjs.map +1 -0
- package/lib/sandbox/sandbox.d.mts +287 -0
- package/lib/sandbox/sandbox.d.mts.map +1 -0
- package/lib/sandbox/sandbox.d.ts +287 -0
- package/lib/sandbox/sandbox.d.ts.map +1 -0
- package/lib/sandbox/sandbox.js +654 -0
- package/lib/sandbox/sandbox.js.map +1 -0
- package/lib/sandbox/sandbox.mjs +650 -0
- package/lib/sandbox/sandbox.mjs.map +1 -0
- package/lib/sandbox/service_url.d.mts +52 -0
- package/lib/sandbox/service_url.d.mts.map +1 -0
- package/lib/sandbox/service_url.d.ts +52 -0
- package/lib/sandbox/service_url.d.ts.map +1 -0
- package/lib/sandbox/service_url.js +134 -0
- package/lib/sandbox/service_url.js.map +1 -0
- package/lib/sandbox/service_url.mjs +129 -0
- package/lib/sandbox/service_url.mjs.map +1 -0
- package/lib/sandbox/tracing.d.mts +2 -0
- package/lib/sandbox/tracing.d.mts.map +1 -0
- package/lib/sandbox/tracing.d.ts +2 -0
- package/lib/sandbox/tracing.d.ts.map +1 -0
- package/lib/sandbox/tracing.js +14 -0
- package/lib/sandbox/tracing.js.map +1 -0
- package/lib/sandbox/tracing.mjs +11 -0
- package/lib/sandbox/tracing.mjs.map +1 -0
- package/lib/sandbox/types.d.mts +934 -0
- package/lib/sandbox/types.d.mts.map +1 -0
- package/lib/sandbox/types.d.ts +934 -0
- package/lib/sandbox/types.d.ts.map +1 -0
- package/lib/sandbox/types.js +8 -0
- package/lib/sandbox/types.js.map +1 -0
- package/lib/sandbox/types.mjs +7 -0
- package/lib/sandbox/types.mjs.map +1 -0
- package/lib/sandbox/verify.d.mts +123 -0
- package/lib/sandbox/verify.d.mts.map +1 -0
- package/lib/sandbox/verify.d.ts +123 -0
- package/lib/sandbox/verify.d.ts.map +1 -0
- package/lib/sandbox/verify.js +301 -0
- package/lib/sandbox/verify.js.map +1 -0
- package/lib/sandbox/verify.mjs +297 -0
- package/lib/sandbox/verify.mjs.map +1 -0
- package/lib/sandbox/ws_execute.d.mts +93 -0
- package/lib/sandbox/ws_execute.d.mts.map +1 -0
- package/lib/sandbox/ws_execute.d.ts +93 -0
- package/lib/sandbox/ws_execute.d.ts.map +1 -0
- package/lib/sandbox/ws_execute.js +510 -0
- package/lib/sandbox/ws_execute.js.map +1 -0
- package/lib/sandbox/ws_execute.mjs +464 -0
- package/lib/sandbox/ws_execute.mjs.map +1 -0
- package/lib/schemas.d.mts +667 -0
- package/lib/schemas.d.mts.map +1 -0
- package/lib/schemas.d.ts +667 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +3 -0
- package/lib/schemas.js.map +1 -0
- package/lib/schemas.mjs +2 -0
- package/lib/schemas.mjs.map +1 -0
- package/lib/singletons/constants.d.mts +7 -0
- package/lib/singletons/constants.d.mts.map +1 -0
- package/lib/singletons/constants.d.ts +7 -0
- package/lib/singletons/constants.d.ts.map +1 -0
- package/lib/singletons/constants.js +13 -0
- package/lib/singletons/constants.js.map +1 -0
- package/lib/singletons/constants.mjs +9 -0
- package/lib/singletons/constants.mjs.map +1 -0
- package/lib/singletons/fetch.d.mts +10 -0
- package/lib/singletons/fetch.d.mts.map +1 -0
- package/lib/singletons/fetch.d.ts +10 -0
- package/lib/singletons/fetch.d.ts.map +1 -0
- package/lib/singletons/fetch.js +54 -0
- package/lib/singletons/fetch.js.map +1 -0
- package/lib/singletons/fetch.mjs +47 -0
- package/lib/singletons/fetch.mjs.map +1 -0
- package/lib/singletons/otel.d.mts +64 -0
- package/lib/singletons/otel.d.mts.map +1 -0
- package/lib/singletons/otel.d.ts +64 -0
- package/lib/singletons/otel.d.ts.map +1 -0
- package/lib/singletons/otel.js +157 -0
- package/lib/singletons/otel.js.map +1 -0
- package/lib/singletons/otel.mjs +149 -0
- package/lib/singletons/otel.mjs.map +1 -0
- package/lib/singletons/traceable.d.mts +25 -0
- package/lib/singletons/traceable.d.mts.map +1 -0
- package/lib/singletons/traceable.d.ts +25 -0
- package/lib/singletons/traceable.d.ts.map +1 -0
- package/lib/singletons/traceable.js +49 -0
- package/lib/singletons/traceable.js.map +1 -0
- package/lib/singletons/traceable.mjs +43 -0
- package/lib/singletons/traceable.mjs.map +1 -0
- package/lib/singletons/types.d.mts +48 -0
- package/lib/singletons/types.d.mts.map +1 -0
- package/lib/singletons/types.d.ts +48 -0
- package/lib/singletons/types.d.ts.map +1 -0
- package/lib/singletons/types.js +4 -0
- package/lib/singletons/types.js.map +1 -0
- package/lib/singletons/types.mjs +2 -0
- package/lib/singletons/types.mjs.map +1 -0
- package/lib/traceable.d.mts +90 -0
- package/lib/traceable.d.mts.map +1 -0
- package/lib/traceable.d.ts +90 -0
- package/lib/traceable.d.ts.map +1 -0
- package/lib/traceable.js +918 -0
- package/lib/traceable.js.map +1 -0
- package/lib/traceable.mjs +910 -0
- package/lib/traceable.mjs.map +1 -0
- package/lib/utils/_git.d.mts +15 -0
- package/lib/utils/_git.d.mts.map +1 -0
- package/lib/utils/_git.d.ts +15 -0
- package/lib/utils/_git.d.ts.map +1 -0
- package/lib/utils/_git.js +133 -0
- package/lib/utils/_git.js.map +1 -0
- package/lib/utils/_git.mjs +95 -0
- package/lib/utils/_git.mjs.map +1 -0
- package/lib/utils/_uuid.d.mts +48 -0
- package/lib/utils/_uuid.d.mts.map +1 -0
- package/lib/utils/_uuid.d.ts +48 -0
- package/lib/utils/_uuid.d.ts.map +1 -0
- package/lib/utils/_uuid.js +172 -0
- package/lib/utils/_uuid.js.map +1 -0
- package/lib/utils/_uuid.mjs +165 -0
- package/lib/utils/_uuid.mjs.map +1 -0
- package/lib/utils/addressing.d.mts +28 -0
- package/lib/utils/addressing.d.mts.map +1 -0
- package/lib/utils/addressing.d.ts +28 -0
- package/lib/utils/addressing.d.ts.map +1 -0
- package/lib/utils/addressing.js +100 -0
- package/lib/utils/addressing.js.map +1 -0
- package/lib/utils/addressing.mjs +92 -0
- package/lib/utils/addressing.mjs.map +1 -0
- package/lib/utils/asserts.d.mts +8 -0
- package/lib/utils/asserts.d.mts.map +1 -0
- package/lib/utils/asserts.d.ts +8 -0
- package/lib/utils/asserts.d.ts.map +1 -0
- package/lib/utils/asserts.js +46 -0
- package/lib/utils/asserts.js.map +1 -0
- package/lib/utils/asserts.mjs +36 -0
- package/lib/utils/asserts.mjs.map +1 -0
- package/lib/utils/async_caller.d.mts +56 -0
- package/lib/utils/async_caller.d.mts.map +1 -0
- package/lib/utils/async_caller.d.ts +56 -0
- package/lib/utils/async_caller.d.ts.map +1 -0
- package/lib/utils/async_caller.js +158 -0
- package/lib/utils/async_caller.js.map +1 -0
- package/lib/utils/async_caller.mjs +153 -0
- package/lib/utils/async_caller.mjs.map +1 -0
- package/lib/utils/atee.d.mts +2 -0
- package/lib/utils/atee.d.mts.map +1 -0
- package/lib/utils/atee.d.ts +2 -0
- package/lib/utils/atee.d.ts.map +1 -0
- package/lib/utils/atee.js +24 -0
- package/lib/utils/atee.js.map +1 -0
- package/lib/utils/atee.mjs +21 -0
- package/lib/utils/atee.mjs.map +1 -0
- package/lib/utils/chalk/source/index.d.mts +20 -0
- package/lib/utils/chalk/source/index.d.mts.map +1 -0
- package/lib/utils/chalk/source/index.d.ts +20 -0
- package/lib/utils/chalk/source/index.d.ts.map +1 -0
- package/lib/utils/chalk/source/index.js +186 -0
- package/lib/utils/chalk/source/index.js.map +1 -0
- package/lib/utils/chalk/source/index.mjs +173 -0
- package/lib/utils/chalk/source/index.mjs.map +1 -0
- package/lib/utils/chalk/source/utilities.d.mts +3 -0
- package/lib/utils/chalk/source/utilities.d.mts.map +1 -0
- package/lib/utils/chalk/source/utilities.d.ts +3 -0
- package/lib/utils/chalk/source/utilities.d.ts.map +1 -0
- package/lib/utils/chalk/source/utilities.js +36 -0
- package/lib/utils/chalk/source/utilities.js.map +1 -0
- package/lib/utils/chalk/source/utilities.mjs +32 -0
- package/lib/utils/chalk/source/utilities.mjs.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.mts +59 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.mts.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.ts +59 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.ts.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.js +194 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.js.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.mjs +191 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.mjs.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.mts +16 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.mts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.ts +16 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.ts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.js +32 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.js.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.mjs +30 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.mjs.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.mts +22 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.mts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.ts +22 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.ts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.js +154 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.js.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.mjs +150 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.mjs.map +1 -0
- package/lib/utils/console-table-printer/index.d.mts +5 -0
- package/lib/utils/console-table-printer/index.d.mts.map +1 -0
- package/lib/utils/console-table-printer/index.d.ts +5 -0
- package/lib/utils/console-table-printer/index.d.ts.map +1 -0
- package/lib/utils/console-table-printer/index.js +10 -0
- package/lib/utils/console-table-printer/index.js.map +1 -0
- package/lib/utils/console-table-printer/index.mjs +4 -0
- package/lib/utils/console-table-printer/index.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.mts +15 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.ts +15 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.js +41 -0
- package/lib/utils/console-table-printer/src/console-table-printer.js.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.mjs +37 -0
- package/lib/utils/console-table-printer/src/console-table-printer.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.mts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.ts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.js +26 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.mjs +21 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.mts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.ts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.js +141 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.mjs +134 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.mts +32 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.ts +32 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.js +187 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.mjs +185 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.mts +4 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.ts +4 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.js +54 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.mjs +49 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.d.mts +15 -0
- package/lib/utils/console-table-printer/src/models/common.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.d.ts +15 -0
- package/lib/utils/console-table-printer/src/models/common.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.js +3 -0
- package/lib/utils/console-table-printer/src/models/common.js.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.mjs +2 -0
- package/lib/utils/console-table-printer/src/models/common.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.mts +100 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.ts +100 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.js +3 -0
- package/lib/utils/console-table-printer/src/models/external-table.js.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.mjs +2 -0
- package/lib/utils/console-table-printer/src/models/external-table.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.mts +25 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.ts +25 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.js +3 -0
- package/lib/utils/console-table-printer/src/models/internal-table.js.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.mjs +2 -0
- package/lib/utils/console-table-printer/src/models/internal-table.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.mts +13 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.ts +13 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.js +44 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.mjs +40 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.mts +4 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.ts +4 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.js +24 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.mjs +19 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.mts +5 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.ts +5 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.js +69 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.mjs +63 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.mts +12 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.ts +12 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.js +56 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.mjs +53 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.mts +30 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.ts +30 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.js +102 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.mjs +89 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.mjs.map +1 -0
- package/lib/utils/context_vars.d.mts +9 -0
- package/lib/utils/context_vars.d.mts.map +1 -0
- package/lib/utils/context_vars.d.ts +9 -0
- package/lib/utils/context_vars.d.ts.map +1 -0
- package/lib/utils/context_vars.js +32 -0
- package/lib/utils/context_vars.js.map +1 -0
- package/lib/utils/context_vars.mjs +28 -0
- package/lib/utils/context_vars.mjs.map +1 -0
- package/lib/utils/env.d.mts +54 -0
- package/lib/utils/env.d.mts.map +1 -0
- package/lib/utils/env.d.ts +54 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +270 -0
- package/lib/utils/env.js.map +1 -0
- package/lib/utils/env.mjs +252 -0
- package/lib/utils/env.mjs.map +1 -0
- package/lib/utils/error.d.mts +73 -0
- package/lib/utils/error.d.mts.map +1 -0
- package/lib/utils/error.d.ts +73 -0
- package/lib/utils/error.d.ts.map +1 -0
- package/lib/utils/error.js +198 -0
- package/lib/utils/error.js.map +1 -0
- package/lib/utils/error.mjs +186 -0
- package/lib/utils/error.mjs.map +1 -0
- package/lib/utils/fast-safe-stringify/index.d.mts +48 -0
- package/lib/utils/fast-safe-stringify/index.d.mts.map +1 -0
- package/lib/utils/fast-safe-stringify/index.d.ts +48 -0
- package/lib/utils/fast-safe-stringify/index.d.ts.map +1 -0
- package/lib/utils/fast-safe-stringify/index.js +487 -0
- package/lib/utils/fast-safe-stringify/index.js.map +1 -0
- package/lib/utils/fast-safe-stringify/index.mjs +483 -0
- package/lib/utils/fast-safe-stringify/index.mjs.map +1 -0
- package/lib/utils/fs.browser.d.mts +29 -0
- package/lib/utils/fs.browser.d.mts.map +1 -0
- package/lib/utils/fs.browser.d.ts +29 -0
- package/lib/utils/fs.browser.d.ts.map +1 -0
- package/lib/utils/fs.browser.js +63 -0
- package/lib/utils/fs.browser.js.map +1 -0
- package/lib/utils/fs.browser.mjs +46 -0
- package/lib/utils/fs.browser.mjs.map +1 -0
- package/lib/utils/fs.d.mts +25 -0
- package/lib/utils/fs.d.mts.map +1 -0
- package/lib/utils/fs.d.ts +25 -0
- package/lib/utils/fs.d.ts.map +1 -0
- package/lib/utils/fs.js +92 -0
- package/lib/utils/fs.js.map +1 -0
- package/lib/utils/fs.mjs +74 -0
- package/lib/utils/fs.mjs.map +1 -0
- package/lib/utils/guard.d.mts +7 -0
- package/lib/utils/guard.d.mts.map +1 -0
- package/lib/utils/guard.d.ts +7 -0
- package/lib/utils/guard.d.ts.map +1 -0
- package/lib/utils/guard.js +14 -0
- package/lib/utils/guard.js.map +1 -0
- package/lib/utils/guard.mjs +11 -0
- package/lib/utils/guard.mjs.map +1 -0
- package/lib/utils/is-network-error/index.d.mts +2 -0
- package/lib/utils/is-network-error/index.d.mts.map +1 -0
- package/lib/utils/is-network-error/index.d.ts +2 -0
- package/lib/utils/is-network-error/index.d.ts.map +1 -0
- package/lib/utils/is-network-error/index.js +43 -0
- package/lib/utils/is-network-error/index.js.map +1 -0
- package/lib/utils/is-network-error/index.mjs +40 -0
- package/lib/utils/is-network-error/index.mjs.map +1 -0
- package/lib/utils/jestlike/constants.d.mts +4 -0
- package/lib/utils/jestlike/constants.d.mts.map +1 -0
- package/lib/utils/jestlike/constants.d.ts +4 -0
- package/lib/utils/jestlike/constants.d.ts.map +1 -0
- package/lib/utils/jestlike/constants.js +10 -0
- package/lib/utils/jestlike/constants.js.map +1 -0
- package/lib/utils/jestlike/constants.mjs +7 -0
- package/lib/utils/jestlike/constants.mjs.map +1 -0
- package/lib/utils/jestlike/globals.d.mts +36 -0
- package/lib/utils/jestlike/globals.d.mts.map +1 -0
- package/lib/utils/jestlike/globals.d.ts +36 -0
- package/lib/utils/jestlike/globals.d.ts.map +1 -0
- package/lib/utils/jestlike/globals.js +48 -0
- package/lib/utils/jestlike/globals.js.map +1 -0
- package/lib/utils/jestlike/globals.mjs +43 -0
- package/lib/utils/jestlike/globals.mjs.map +1 -0
- package/lib/utils/jestlike/index.d.mts +108 -0
- package/lib/utils/jestlike/index.d.mts.map +1 -0
- package/lib/utils/jestlike/index.d.ts +108 -0
- package/lib/utils/jestlike/index.d.ts.map +1 -0
- package/lib/utils/jestlike/index.js +665 -0
- package/lib/utils/jestlike/index.js.map +1 -0
- package/lib/utils/jestlike/index.mjs +655 -0
- package/lib/utils/jestlike/index.mjs.map +1 -0
- package/lib/utils/jestlike/matchers.d.mts +28 -0
- package/lib/utils/jestlike/matchers.d.mts.map +1 -0
- package/lib/utils/jestlike/matchers.d.ts +28 -0
- package/lib/utils/jestlike/matchers.d.ts.map +1 -0
- package/lib/utils/jestlike/matchers.js +104 -0
- package/lib/utils/jestlike/matchers.js.map +1 -0
- package/lib/utils/jestlike/matchers.mjs +99 -0
- package/lib/utils/jestlike/matchers.mjs.map +1 -0
- package/lib/utils/jestlike/reporter.d.mts +6 -0
- package/lib/utils/jestlike/reporter.d.mts.map +1 -0
- package/lib/utils/jestlike/reporter.d.ts +6 -0
- package/lib/utils/jestlike/reporter.d.ts.map +1 -0
- package/lib/utils/jestlike/reporter.js +261 -0
- package/lib/utils/jestlike/reporter.js.map +1 -0
- package/lib/utils/jestlike/reporter.mjs +257 -0
- package/lib/utils/jestlike/reporter.mjs.map +1 -0
- package/lib/utils/jestlike/types.d.mts +40 -0
- package/lib/utils/jestlike/types.d.mts.map +1 -0
- package/lib/utils/jestlike/types.d.ts +40 -0
- package/lib/utils/jestlike/types.d.ts.map +1 -0
- package/lib/utils/jestlike/types.js +3 -0
- package/lib/utils/jestlike/types.js.map +1 -0
- package/lib/utils/jestlike/types.mjs +2 -0
- package/lib/utils/jestlike/types.mjs.map +1 -0
- package/lib/utils/jestlike/vendor/chain.d.mts +2 -0
- package/lib/utils/jestlike/vendor/chain.d.mts.map +1 -0
- package/lib/utils/jestlike/vendor/chain.d.ts +2 -0
- package/lib/utils/jestlike/vendor/chain.d.ts.map +1 -0
- package/lib/utils/jestlike/vendor/chain.js +92 -0
- package/lib/utils/jestlike/vendor/chain.js.map +1 -0
- package/lib/utils/jestlike/vendor/chain.mjs +89 -0
- package/lib/utils/jestlike/vendor/chain.mjs.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.mts +13 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.mts.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.ts +13 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.ts.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.js +97 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.js.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.mjs +93 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.mjs.map +1 -0
- package/lib/utils/ls_agent_type.d.mts +10 -0
- package/lib/utils/ls_agent_type.d.mts.map +1 -0
- package/lib/utils/ls_agent_type.d.ts +10 -0
- package/lib/utils/ls_agent_type.d.ts.map +1 -0
- package/lib/utils/ls_agent_type.js +32 -0
- package/lib/utils/ls_agent_type.js.map +1 -0
- package/lib/utils/ls_agent_type.mjs +26 -0
- package/lib/utils/ls_agent_type.mjs.map +1 -0
- package/lib/utils/messages.d.mts +12 -0
- package/lib/utils/messages.d.mts.map +1 -0
- package/lib/utils/messages.d.ts +12 -0
- package/lib/utils/messages.d.ts.map +1 -0
- package/lib/utils/messages.js +22 -0
- package/lib/utils/messages.js.map +1 -0
- package/lib/utils/messages.mjs +18 -0
- package/lib/utils/messages.mjs.map +1 -0
- package/lib/utils/p-queue.d.mts +3 -0
- package/lib/utils/p-queue.d.mts.map +1 -0
- package/lib/utils/p-queue.d.ts +3 -0
- package/lib/utils/p-queue.d.ts.map +1 -0
- package/lib/utils/p-queue.js +8 -0
- package/lib/utils/p-queue.js.map +1 -0
- package/lib/utils/p-queue.mjs +4 -0
- package/lib/utils/p-queue.mjs.map +1 -0
- package/lib/utils/p-retry/index.d.mts +6 -0
- package/lib/utils/p-retry/index.d.mts.map +1 -0
- package/lib/utils/p-retry/index.d.ts +6 -0
- package/lib/utils/p-retry/index.d.ts.map +1 -0
- package/lib/utils/p-retry/index.js +199 -0
- package/lib/utils/p-retry/index.js.map +1 -0
- package/lib/utils/p-retry/index.mjs +192 -0
- package/lib/utils/p-retry/index.mjs.map +1 -0
- package/lib/utils/profile-lock.d.mts +21 -0
- package/lib/utils/profile-lock.d.mts.map +1 -0
- package/lib/utils/profile-lock.d.ts +21 -0
- package/lib/utils/profile-lock.d.ts.map +1 -0
- package/lib/utils/profile-lock.js +109 -0
- package/lib/utils/profile-lock.js.map +1 -0
- package/lib/utils/profile-lock.mjs +104 -0
- package/lib/utils/profile-lock.mjs.map +1 -0
- package/lib/utils/profiles.d.mts +56 -0
- package/lib/utils/profiles.d.mts.map +1 -0
- package/lib/utils/profiles.d.ts +56 -0
- package/lib/utils/profiles.d.ts.map +1 -0
- package/lib/utils/profiles.js +412 -0
- package/lib/utils/profiles.js.map +1 -0
- package/lib/utils/profiles.mjs +404 -0
- package/lib/utils/profiles.mjs.map +1 -0
- package/lib/utils/project.d.mts +2 -0
- package/lib/utils/project.d.mts.map +1 -0
- package/lib/utils/project.d.ts +2 -0
- package/lib/utils/project.d.ts.map +1 -0
- package/lib/utils/project.js +11 -0
- package/lib/utils/project.js.map +1 -0
- package/lib/utils/project.mjs +7 -0
- package/lib/utils/project.mjs.map +1 -0
- package/lib/utils/prompt_cache/index.d.mts +171 -0
- package/lib/utils/prompt_cache/index.d.mts.map +1 -0
- package/lib/utils/prompt_cache/index.d.ts +171 -0
- package/lib/utils/prompt_cache/index.d.ts.map +1 -0
- package/lib/utils/prompt_cache/index.js +362 -0
- package/lib/utils/prompt_cache/index.js.map +1 -0
- package/lib/utils/prompt_cache/index.mjs +356 -0
- package/lib/utils/prompt_cache/index.mjs.map +1 -0
- package/lib/utils/prompts.d.mts +7 -0
- package/lib/utils/prompts.d.mts.map +1 -0
- package/lib/utils/prompts.d.ts +7 -0
- package/lib/utils/prompts.d.ts.map +1 -0
- package/lib/utils/prompts.js +34 -0
- package/lib/utils/prompts.js.map +1 -0
- package/lib/utils/prompts.mjs +31 -0
- package/lib/utils/prompts.mjs.map +1 -0
- package/lib/utils/redaction.d.mts +11 -0
- package/lib/utils/redaction.d.mts.map +1 -0
- package/lib/utils/redaction.d.ts +11 -0
- package/lib/utils/redaction.d.ts.map +1 -0
- package/lib/utils/redaction.js +39 -0
- package/lib/utils/redaction.js.map +1 -0
- package/lib/utils/redaction.mjs +34 -0
- package/lib/utils/redaction.mjs.map +1 -0
- package/lib/utils/sampling.d.mts +11 -0
- package/lib/utils/sampling.d.mts.map +1 -0
- package/lib/utils/sampling.d.ts +11 -0
- package/lib/utils/sampling.d.ts.map +1 -0
- package/lib/utils/sampling.js +35 -0
- package/lib/utils/sampling.js.map +1 -0
- package/lib/utils/sampling.mjs +31 -0
- package/lib/utils/sampling.mjs.map +1 -0
- package/lib/utils/serialize_worker.d.mts +67 -0
- package/lib/utils/serialize_worker.d.mts.map +1 -0
- package/lib/utils/serialize_worker.d.ts +67 -0
- package/lib/utils/serialize_worker.d.ts.map +1 -0
- package/lib/utils/serialize_worker.js +387 -0
- package/lib/utils/serialize_worker.js.map +1 -0
- package/lib/utils/serialize_worker.mjs +381 -0
- package/lib/utils/serialize_worker.mjs.map +1 -0
- package/lib/utils/shuffle.d.mts +2 -0
- package/lib/utils/shuffle.d.mts.map +1 -0
- package/lib/utils/shuffle.d.ts +2 -0
- package/lib/utils/shuffle.d.ts.map +1 -0
- package/lib/utils/shuffle.js +15 -0
- package/lib/utils/shuffle.js.map +1 -0
- package/lib/utils/shuffle.mjs +12 -0
- package/lib/utils/shuffle.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/index.d.mts +4 -0
- package/lib/utils/simple-wcswidth/index.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/index.d.ts +4 -0
- package/lib/utils/simple-wcswidth/index.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/index.js +9 -0
- package/lib/utils/simple-wcswidth/index.js.map +1 -0
- package/lib/utils/simple-wcswidth/index.mjs +4 -0
- package/lib/utils/simple-wcswidth/index.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.mts +4 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.ts +4 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.js +25 -0
- package/lib/utils/simple-wcswidth/src/binary-search.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.mjs +23 -0
- package/lib/utils/simple-wcswidth/src/binary-search.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.d.mts +5 -0
- package/lib/utils/simple-wcswidth/src/models.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.d.ts +5 -0
- package/lib/utils/simple-wcswidth/src/models.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.js +3 -0
- package/lib/utils/simple-wcswidth/src/models.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.mjs +2 -0
- package/lib/utils/simple-wcswidth/src/models.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.mts +4 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.ts +4 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.js +150 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.mjs +148 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.mts +3 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.ts +3 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.js +19 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.mjs +16 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.mts +3 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.ts +3 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.js +66 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.mjs +63 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.mjs.map +1 -0
- package/lib/utils/types.d.mts +3 -0
- package/lib/utils/types.d.mts.map +1 -0
- package/lib/utils/types.d.ts +3 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/types.js +14 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/types.mjs +9 -0
- package/lib/utils/types.mjs.map +1 -0
- package/lib/utils/url.d.mts +9 -0
- package/lib/utils/url.d.mts.map +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/utils/url.d.ts.map +1 -0
- package/lib/utils/url.js +33 -0
- package/lib/utils/url.js.map +1 -0
- package/lib/utils/url.mjs +30 -0
- package/lib/utils/url.mjs.map +1 -0
- package/lib/utils/usage.d.mts +2 -0
- package/lib/utils/usage.d.mts.map +1 -0
- package/lib/utils/usage.d.ts +2 -0
- package/lib/utils/usage.d.ts.map +1 -0
- package/lib/utils/usage.js +29 -0
- package/lib/utils/usage.js.map +1 -0
- package/lib/utils/usage.mjs +25 -0
- package/lib/utils/usage.mjs.map +1 -0
- package/lib/utils/uuid/src/index.d.mts +11 -0
- package/lib/utils/uuid/src/index.d.mts.map +1 -0
- package/lib/utils/uuid/src/index.d.ts +11 -0
- package/lib/utils/uuid/src/index.d.ts.map +1 -0
- package/lib/utils/uuid/src/index.js +23 -0
- package/lib/utils/uuid/src/index.js.map +1 -0
- package/lib/utils/uuid/src/index.mjs +10 -0
- package/lib/utils/uuid/src/index.mjs.map +1 -0
- package/lib/utils/uuid/src/max.d.mts +3 -0
- package/lib/utils/uuid/src/max.d.mts.map +1 -0
- package/lib/utils/uuid/src/max.d.ts +3 -0
- package/lib/utils/uuid/src/max.d.ts.map +1 -0
- package/lib/utils/uuid/src/max.js +4 -0
- package/lib/utils/uuid/src/max.js.map +1 -0
- package/lib/utils/uuid/src/max.mjs +2 -0
- package/lib/utils/uuid/src/max.mjs.map +1 -0
- package/lib/utils/uuid/src/nil.d.mts +3 -0
- package/lib/utils/uuid/src/nil.d.mts.map +1 -0
- package/lib/utils/uuid/src/nil.d.ts +3 -0
- package/lib/utils/uuid/src/nil.d.ts.map +1 -0
- package/lib/utils/uuid/src/nil.js +4 -0
- package/lib/utils/uuid/src/nil.js.map +1 -0
- package/lib/utils/uuid/src/nil.mjs +2 -0
- package/lib/utils/uuid/src/nil.mjs.map +1 -0
- package/lib/utils/uuid/src/parse.d.mts +4 -0
- package/lib/utils/uuid/src/parse.d.mts.map +1 -0
- package/lib/utils/uuid/src/parse.d.ts +4 -0
- package/lib/utils/uuid/src/parse.d.ts.map +1 -0
- package/lib/utils/uuid/src/parse.js +22 -0
- package/lib/utils/uuid/src/parse.js.map +1 -0
- package/lib/utils/uuid/src/parse.mjs +19 -0
- package/lib/utils/uuid/src/parse.mjs.map +1 -0
- package/lib/utils/uuid/src/regex.d.mts +3 -0
- package/lib/utils/uuid/src/regex.d.mts.map +1 -0
- package/lib/utils/uuid/src/regex.d.ts +3 -0
- package/lib/utils/uuid/src/regex.d.ts.map +1 -0
- package/lib/utils/uuid/src/regex.js +4 -0
- package/lib/utils/uuid/src/regex.js.map +1 -0
- package/lib/utils/uuid/src/regex.mjs +2 -0
- package/lib/utils/uuid/src/regex.mjs.map +1 -0
- package/lib/utils/uuid/src/rng.d.mts +2 -0
- package/lib/utils/uuid/src/rng.d.mts.map +1 -0
- package/lib/utils/uuid/src/rng.d.ts +2 -0
- package/lib/utils/uuid/src/rng.d.ts.map +1 -0
- package/lib/utils/uuid/src/rng.js +11 -0
- package/lib/utils/uuid/src/rng.js.map +1 -0
- package/lib/utils/uuid/src/rng.mjs +8 -0
- package/lib/utils/uuid/src/rng.mjs.map +1 -0
- package/lib/utils/uuid/src/sha1.d.mts +3 -0
- package/lib/utils/uuid/src/sha1.d.mts.map +1 -0
- package/lib/utils/uuid/src/sha1.d.ts +3 -0
- package/lib/utils/uuid/src/sha1.d.ts.map +1 -0
- package/lib/utils/uuid/src/sha1.js +76 -0
- package/lib/utils/uuid/src/sha1.js.map +1 -0
- package/lib/utils/uuid/src/sha1.mjs +74 -0
- package/lib/utils/uuid/src/sha1.mjs.map +1 -0
- package/lib/utils/uuid/src/stringify.d.mts +4 -0
- package/lib/utils/uuid/src/stringify.d.mts.map +1 -0
- package/lib/utils/uuid/src/stringify.d.ts +4 -0
- package/lib/utils/uuid/src/stringify.d.ts.map +1 -0
- package/lib/utils/uuid/src/stringify.js +54 -0
- package/lib/utils/uuid/src/stringify.js.map +1 -0
- package/lib/utils/uuid/src/stringify.mjs +50 -0
- package/lib/utils/uuid/src/stringify.mjs.map +1 -0
- package/lib/utils/uuid/src/types.d.mts +23 -0
- package/lib/utils/uuid/src/types.d.mts.map +1 -0
- package/lib/utils/uuid/src/types.d.ts +23 -0
- package/lib/utils/uuid/src/types.d.ts.map +1 -0
- package/lib/utils/uuid/src/types.js +3 -0
- package/lib/utils/uuid/src/types.js.map +1 -0
- package/lib/utils/uuid/src/types.mjs +2 -0
- package/lib/utils/uuid/src/types.mjs.map +1 -0
- package/lib/utils/uuid/src/v35.d.mts +8 -0
- package/lib/utils/uuid/src/v35.d.mts.map +1 -0
- package/lib/utils/uuid/src/v35.d.ts +8 -0
- package/lib/utils/uuid/src/v35.d.ts.map +1 -0
- package/lib/utils/uuid/src/v35.js +51 -0
- package/lib/utils/uuid/src/v35.js.map +1 -0
- package/lib/utils/uuid/src/v35.mjs +45 -0
- package/lib/utils/uuid/src/v35.mjs.map +1 -0
- package/lib/utils/uuid/src/v4.d.mts +5 -0
- package/lib/utils/uuid/src/v4.d.mts.map +1 -0
- package/lib/utils/uuid/src/v4.d.ts +5 -0
- package/lib/utils/uuid/src/v4.d.ts.map +1 -0
- package/lib/utils/uuid/src/v4.js +39 -0
- package/lib/utils/uuid/src/v4.js.map +1 -0
- package/lib/utils/uuid/src/v4.mjs +36 -0
- package/lib/utils/uuid/src/v4.mjs.map +1 -0
- package/lib/utils/uuid/src/v5.d.mts +10 -0
- package/lib/utils/uuid/src/v5.d.mts.map +1 -0
- package/lib/utils/uuid/src/v5.d.ts +10 -0
- package/lib/utils/uuid/src/v5.d.ts.map +1 -0
- package/lib/utils/uuid/src/v5.js +16 -0
- package/lib/utils/uuid/src/v5.js.map +1 -0
- package/lib/utils/uuid/src/v5.mjs +10 -0
- package/lib/utils/uuid/src/v5.mjs.map +1 -0
- package/lib/utils/uuid/src/v7.d.mts +10 -0
- package/lib/utils/uuid/src/v7.d.mts.map +1 -0
- package/lib/utils/uuid/src/v7.d.ts +10 -0
- package/lib/utils/uuid/src/v7.d.ts.map +1 -0
- package/lib/utils/uuid/src/v7.js +87 -0
- package/lib/utils/uuid/src/v7.js.map +1 -0
- package/lib/utils/uuid/src/v7.mjs +83 -0
- package/lib/utils/uuid/src/v7.mjs.map +1 -0
- package/lib/utils/uuid/src/validate.d.mts +3 -0
- package/lib/utils/uuid/src/validate.d.mts.map +1 -0
- package/lib/utils/uuid/src/validate.d.ts +3 -0
- package/lib/utils/uuid/src/validate.d.ts.map +1 -0
- package/lib/utils/uuid/src/validate.js +9 -0
- package/lib/utils/uuid/src/validate.js.map +1 -0
- package/lib/utils/uuid/src/validate.mjs +6 -0
- package/lib/utils/uuid/src/validate.mjs.map +1 -0
- package/lib/utils/uuid/src/version.d.mts +3 -0
- package/lib/utils/uuid/src/version.d.mts.map +1 -0
- package/lib/utils/uuid/src/version.d.ts +3 -0
- package/lib/utils/uuid/src/version.d.ts.map +1 -0
- package/lib/utils/uuid/src/version.js +12 -0
- package/lib/utils/uuid/src/version.js.map +1 -0
- package/lib/utils/uuid/src/version.mjs +9 -0
- package/lib/utils/uuid/src/version.mjs.map +1 -0
- package/lib/utils/v2_migration.d.mts +16 -0
- package/lib/utils/v2_migration.d.mts.map +1 -0
- package/lib/utils/v2_migration.d.ts +16 -0
- package/lib/utils/v2_migration.d.ts.map +1 -0
- package/lib/utils/v2_migration.js +75 -0
- package/lib/utils/v2_migration.js.map +1 -0
- package/lib/utils/v2_migration.mjs +69 -0
- package/lib/utils/v2_migration.mjs.map +1 -0
- package/lib/utils/vercel.d.mts +26 -0
- package/lib/utils/vercel.d.mts.map +1 -0
- package/lib/utils/vercel.d.ts +26 -0
- package/lib/utils/vercel.d.ts.map +1 -0
- package/lib/utils/vercel.js +284 -0
- package/lib/utils/vercel.js.map +1 -0
- package/lib/utils/vercel.mjs +279 -0
- package/lib/utils/vercel.mjs.map +1 -0
- package/lib/utils/warn.d.mts +5 -0
- package/lib/utils/warn.d.mts.map +1 -0
- package/lib/utils/warn.d.ts +5 -0
- package/lib/utils/warn.d.ts.map +1 -0
- package/lib/utils/warn.js +37 -0
- package/lib/utils/warn.js.map +1 -0
- package/lib/utils/warn.mjs +33 -0
- package/lib/utils/warn.mjs.map +1 -0
- package/lib/utils/worker_threads.browser.d.mts +15 -0
- package/lib/utils/worker_threads.browser.d.mts.map +1 -0
- package/lib/utils/worker_threads.browser.d.ts +15 -0
- package/lib/utils/worker_threads.browser.d.ts.map +1 -0
- package/lib/utils/worker_threads.browser.js +17 -0
- package/lib/utils/worker_threads.browser.js.map +1 -0
- package/lib/utils/worker_threads.browser.mjs +14 -0
- package/lib/utils/worker_threads.browser.mjs.map +1 -0
- package/lib/utils/worker_threads.d.mts +14 -0
- package/lib/utils/worker_threads.d.mts.map +1 -0
- package/lib/utils/worker_threads.d.ts +14 -0
- package/lib/utils/worker_threads.d.ts.map +1 -0
- package/lib/utils/worker_threads.js +16 -0
- package/lib/utils/worker_threads.js.map +1 -0
- package/lib/utils/worker_threads.mjs +13 -0
- package/lib/utils/worker_threads.mjs.map +1 -0
- package/lib/utils/xxhash/xxhash.d.mts +16 -0
- package/lib/utils/xxhash/xxhash.d.mts.map +1 -0
- package/lib/utils/xxhash/xxhash.d.ts +16 -0
- package/lib/utils/xxhash/xxhash.d.ts.map +1 -0
- package/lib/utils/xxhash/xxhash.js +332 -0
- package/lib/utils/xxhash/xxhash.js.map +1 -0
- package/lib/utils/xxhash/xxhash.mjs +328 -0
- package/lib/utils/xxhash/xxhash.mjs.map +1 -0
- package/lib/uuid.d.mts +14 -0
- package/lib/uuid.d.mts.map +1 -0
- package/lib/uuid.d.ts +14 -0
- package/lib/uuid.d.ts.map +1 -0
- package/lib/uuid.js +34 -0
- package/lib/uuid.js.map +1 -0
- package/lib/uuid.mjs +28 -0
- package/lib/uuid.mjs.map +1 -0
- package/lib/vitest/index.d.mts +393 -0
- package/lib/vitest/index.d.mts.map +1 -0
- package/lib/vitest/index.d.ts +393 -0
- package/lib/vitest/index.d.ts.map +1 -0
- package/lib/vitest/index.js +33 -0
- package/lib/vitest/index.js.map +1 -0
- package/lib/vitest/index.mjs +323 -0
- package/lib/vitest/index.mjs.map +1 -0
- package/lib/vitest/reporter.d.mts +9 -0
- package/lib/vitest/reporter.d.mts.map +1 -0
- package/lib/vitest/reporter.d.ts +9 -0
- package/lib/vitest/reporter.d.ts.map +1 -0
- package/lib/vitest/reporter.js +31 -0
- package/lib/vitest/reporter.js.map +1 -0
- package/lib/vitest/reporter.mjs +29 -0
- package/lib/vitest/reporter.mjs.map +1 -0
- package/lib/vitest/utils/esm.d.mts +9 -0
- package/lib/vitest/utils/esm.d.mts.map +1 -0
- package/lib/vitest/utils/esm.mjs +38 -0
- package/lib/vitest/utils/esm.mjs.map +1 -0
- package/lib/vitest/utils/reporter.d.mts +18 -0
- package/lib/vitest/utils/reporter.d.mts.map +1 -0
- package/lib/vitest/utils/reporter.d.ts +18 -0
- package/lib/vitest/utils/reporter.d.ts.map +1 -0
- package/lib/vitest/utils/reporter.js +40 -0
- package/lib/vitest/utils/reporter.js.map +1 -0
- package/lib/vitest/utils/reporter.mjs +35 -0
- package/lib/vitest/utils/reporter.mjs.map +1 -0
- package/lib/vitest/utils/wrapper.d.mts +168 -0
- package/lib/vitest/utils/wrapper.d.mts.map +1 -0
- package/lib/vitest/utils/wrapper.d.ts +168 -0
- package/lib/vitest/utils/wrapper.d.ts.map +1 -0
- package/lib/vitest/utils/wrapper.js +64 -0
- package/lib/vitest/utils/wrapper.js.map +1 -0
- package/lib/vitest/utils/wrapper.mjs +60 -0
- package/lib/vitest/utils/wrapper.mjs.map +1 -0
- package/lib/wrappers/anthropic.d.mts +83 -0
- package/lib/wrappers/anthropic.d.mts.map +1 -0
- package/lib/wrappers/anthropic.d.ts +83 -0
- package/lib/wrappers/anthropic.d.ts.map +1 -0
- package/lib/wrappers/anthropic.js +393 -0
- package/lib/wrappers/anthropic.js.map +1 -0
- package/lib/wrappers/anthropic.mjs +388 -0
- package/lib/wrappers/anthropic.mjs.map +1 -0
- package/lib/wrappers/gemini.d.mts +47 -0
- package/lib/wrappers/gemini.d.mts.map +1 -0
- package/lib/wrappers/gemini.d.ts +47 -0
- package/lib/wrappers/gemini.d.ts.map +1 -0
- package/lib/wrappers/gemini.js +409 -0
- package/lib/wrappers/gemini.js.map +1 -0
- package/lib/wrappers/gemini.mjs +406 -0
- package/lib/wrappers/gemini.mjs.map +1 -0
- package/lib/wrappers/gemini.utils.d.mts +4 -0
- package/lib/wrappers/gemini.utils.d.mts.map +1 -0
- package/lib/wrappers/gemini.utils.d.ts +4 -0
- package/lib/wrappers/gemini.utils.d.ts.map +1 -0
- package/lib/wrappers/gemini.utils.js +42 -0
- package/lib/wrappers/gemini.utils.js.map +1 -0
- package/lib/wrappers/gemini.utils.mjs +38 -0
- package/lib/wrappers/gemini.utils.mjs.map +1 -0
- package/lib/wrappers/generic.d.mts +22 -0
- package/lib/wrappers/generic.d.mts.map +1 -0
- package/lib/wrappers/generic.d.ts +22 -0
- package/lib/wrappers/generic.d.ts.map +1 -0
- package/lib/wrappers/generic.js +49 -0
- package/lib/wrappers/generic.js.map +1 -0
- package/lib/wrappers/generic.mjs +44 -0
- package/lib/wrappers/generic.mjs.map +1 -0
- package/lib/wrappers/index.d.mts +3 -0
- package/lib/wrappers/index.d.mts.map +1 -0
- package/lib/wrappers/index.d.ts +3 -0
- package/lib/wrappers/index.d.ts.map +1 -0
- package/lib/wrappers/index.js +8 -0
- package/lib/wrappers/index.js.map +1 -0
- package/lib/wrappers/index.mjs +3 -0
- package/lib/wrappers/index.mjs.map +1 -0
- package/lib/wrappers/openai.d.mts +81 -0
- package/lib/wrappers/openai.d.mts.map +1 -0
- package/lib/wrappers/openai.d.ts +81 -0
- package/lib/wrappers/openai.d.ts.map +1 -0
- package/lib/wrappers/openai.js +477 -0
- package/lib/wrappers/openai.js.map +1 -0
- package/lib/wrappers/openai.mjs +473 -0
- package/lib/wrappers/openai.mjs.map +1 -0
- package/lib/wrappers/openai_agents.d.mts +92 -0
- package/lib/wrappers/openai_agents.d.mts.map +1 -0
- package/lib/wrappers/openai_agents.d.ts +92 -0
- package/lib/wrappers/openai_agents.d.ts.map +1 -0
- package/lib/wrappers/openai_agents.js +863 -0
- package/lib/wrappers/openai_agents.js.map +1 -0
- package/lib/wrappers/openai_agents.mjs +859 -0
- package/lib/wrappers/openai_agents.mjs.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.d.mts +8 -0
- package/lib/wrappers/utils/anthropic_managed.d.mts.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.d.ts +8 -0
- package/lib/wrappers/utils/anthropic_managed.d.ts.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.js +649 -0
- package/lib/wrappers/utils/anthropic_managed.js.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.mjs +646 -0
- package/lib/wrappers/utils/anthropic_managed.mjs.map +1 -0
- package/package.json +380 -467
- package/pagination.d.mts +3 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +3 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +3 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +3 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +3 -0
- package/resource.mjs.map +1 -0
- package/resources/annotation-queues/annotation-queues.d.mts +385 -0
- package/resources/annotation-queues/annotation-queues.d.mts.map +1 -0
- package/resources/annotation-queues/annotation-queues.d.ts +385 -0
- package/resources/annotation-queues/annotation-queues.d.ts.map +1 -0
- package/resources/annotation-queues/annotation-queues.js +125 -0
- package/resources/annotation-queues/annotation-queues.js.map +1 -0
- package/resources/annotation-queues/annotation-queues.mjs +120 -0
- package/resources/annotation-queues/annotation-queues.mjs.map +1 -0
- package/resources/annotation-queues/index.d.mts +4 -0
- package/resources/annotation-queues/index.d.mts.map +1 -0
- package/resources/annotation-queues/index.d.ts +4 -0
- package/resources/annotation-queues/index.d.ts.map +1 -0
- package/resources/annotation-queues/index.js +11 -0
- package/resources/annotation-queues/index.js.map +1 -0
- package/resources/annotation-queues/index.mjs +5 -0
- package/resources/annotation-queues/index.mjs.map +1 -0
- package/resources/annotation-queues/items.d.mts +233 -0
- package/resources/annotation-queues/items.d.mts.map +1 -0
- package/resources/annotation-queues/items.d.ts +233 -0
- package/resources/annotation-queues/items.d.ts.map +1 -0
- package/resources/annotation-queues/items.js +91 -0
- package/resources/annotation-queues/items.js.map +1 -0
- package/resources/annotation-queues/items.mjs +87 -0
- package/resources/annotation-queues/items.mjs.map +1 -0
- package/resources/annotation-queues/runs.d.mts +198 -0
- package/resources/annotation-queues/runs.d.mts.map +1 -0
- package/resources/annotation-queues/runs.d.ts +198 -0
- package/resources/annotation-queues/runs.d.ts.map +1 -0
- package/resources/annotation-queues/runs.js +73 -0
- package/resources/annotation-queues/runs.js.map +1 -0
- package/resources/annotation-queues/runs.mjs +69 -0
- package/resources/annotation-queues/runs.mjs.map +1 -0
- package/resources/annotation-queues.d.mts +2 -0
- package/resources/annotation-queues.d.mts.map +1 -0
- package/resources/annotation-queues.d.ts +2 -0
- package/resources/annotation-queues.d.ts.map +1 -0
- package/resources/annotation-queues.js +6 -0
- package/resources/annotation-queues.js.map +1 -0
- package/resources/annotation-queues.mjs +3 -0
- package/resources/annotation-queues.mjs.map +1 -0
- package/resources/datasets/datasets.d.mts +155 -0
- package/resources/datasets/datasets.d.mts.map +1 -0
- package/resources/datasets/datasets.d.ts +155 -0
- package/resources/datasets/datasets.d.ts.map +1 -0
- package/resources/datasets/datasets.js +31 -0
- package/resources/datasets/datasets.js.map +1 -0
- package/resources/datasets/datasets.mjs +26 -0
- package/resources/datasets/datasets.mjs.map +1 -0
- package/resources/datasets/examples.d.mts +24 -0
- package/resources/datasets/examples.d.mts.map +1 -0
- package/resources/datasets/examples.d.ts +24 -0
- package/resources/datasets/examples.d.ts.map +1 -0
- package/resources/datasets/examples.js +26 -0
- package/resources/datasets/examples.js.map +1 -0
- package/resources/datasets/examples.mjs +22 -0
- package/resources/datasets/examples.mjs.map +1 -0
- package/resources/datasets/experiment-runs.d.mts +112 -0
- package/resources/datasets/experiment-runs.d.mts.map +1 -0
- package/resources/datasets/experiment-runs.d.ts +112 -0
- package/resources/datasets/experiment-runs.d.ts.map +1 -0
- package/resources/datasets/experiment-runs.js +20 -0
- package/resources/datasets/experiment-runs.js.map +1 -0
- package/resources/datasets/experiment-runs.mjs +16 -0
- package/resources/datasets/experiment-runs.mjs.map +1 -0
- package/resources/datasets/index.d.mts +4 -0
- package/resources/datasets/index.d.mts.map +1 -0
- package/resources/datasets/index.d.ts +4 -0
- package/resources/datasets/index.d.ts.map +1 -0
- package/resources/datasets/index.js +11 -0
- package/resources/datasets/index.js.map +1 -0
- package/resources/datasets/index.mjs +5 -0
- package/resources/datasets/index.mjs.map +1 -0
- package/resources/datasets.d.mts +2 -0
- package/resources/datasets.d.mts.map +1 -0
- package/resources/datasets.d.ts +2 -0
- package/resources/datasets.d.ts.map +1 -0
- package/resources/datasets.js +6 -0
- package/resources/datasets.js.map +1 -0
- package/resources/datasets.mjs +3 -0
- package/resources/datasets.mjs.map +1 -0
- package/resources/fleet/fleet.d.mts +10 -0
- package/resources/fleet/fleet.d.mts.map +1 -0
- package/resources/fleet/fleet.d.ts +10 -0
- package/resources/fleet/fleet.d.ts.map +1 -0
- package/resources/fleet/fleet.js +22 -0
- package/resources/fleet/fleet.js.map +1 -0
- package/resources/fleet/fleet.mjs +17 -0
- package/resources/fleet/fleet.mjs.map +1 -0
- package/resources/fleet/index.d.mts +3 -0
- package/resources/fleet/index.d.mts.map +1 -0
- package/resources/fleet/index.d.ts +3 -0
- package/resources/fleet/index.d.ts.map +1 -0
- package/resources/fleet/index.js +9 -0
- package/resources/fleet/index.js.map +1 -0
- package/resources/fleet/index.mjs +4 -0
- package/resources/fleet/index.mjs.map +1 -0
- package/resources/fleet/threads.d.mts +20 -0
- package/resources/fleet/threads.d.mts.map +1 -0
- package/resources/fleet/threads.d.ts +20 -0
- package/resources/fleet/threads.d.ts.map +1 -0
- package/resources/fleet/threads.js +18 -0
- package/resources/fleet/threads.js.map +1 -0
- package/resources/fleet/threads.mjs +14 -0
- package/resources/fleet/threads.mjs.map +1 -0
- package/resources/fleet.d.mts +2 -0
- package/resources/fleet.d.mts.map +1 -0
- package/resources/fleet.d.ts +2 -0
- package/resources/fleet.d.ts.map +1 -0
- package/resources/fleet.js +6 -0
- package/resources/fleet.js.map +1 -0
- package/resources/fleet.mjs +3 -0
- package/resources/fleet.mjs.map +1 -0
- package/resources/index.d.mts +14 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +14 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +31 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +15 -0
- package/resources/index.mjs.map +1 -0
- package/resources/info.d.mts +52 -0
- package/resources/info.d.mts.map +1 -0
- package/resources/info.d.ts +52 -0
- package/resources/info.d.ts.map +1 -0
- package/resources/info.js +17 -0
- package/resources/info.js.map +1 -0
- package/resources/info.mjs +13 -0
- package/resources/info.mjs.map +1 -0
- package/resources/issues.d.mts +292 -0
- package/resources/issues.d.mts.map +1 -0
- package/resources/issues.d.ts +292 -0
- package/resources/issues.d.ts.map +1 -0
- package/resources/issues.js +31 -0
- package/resources/issues.js.map +1 -0
- package/resources/issues.mjs +27 -0
- package/resources/issues.mjs.map +1 -0
- package/resources/online-evaluators.d.mts +376 -0
- package/resources/online-evaluators.d.mts.map +1 -0
- package/resources/online-evaluators.d.ts +376 -0
- package/resources/online-evaluators.d.ts.map +1 -0
- package/resources/online-evaluators.js +73 -0
- package/resources/online-evaluators.js.map +1 -0
- package/resources/online-evaluators.mjs +69 -0
- package/resources/online-evaluators.mjs.map +1 -0
- package/resources/product-feedback.d.mts +78 -0
- package/resources/product-feedback.d.mts.map +1 -0
- package/resources/product-feedback.d.ts +78 -0
- package/resources/product-feedback.d.ts.map +1 -0
- package/resources/product-feedback.js +33 -0
- package/resources/product-feedback.js.map +1 -0
- package/resources/product-feedback.mjs +29 -0
- package/resources/product-feedback.mjs.map +1 -0
- package/resources/public/index.d.mts +3 -0
- package/resources/public/index.d.mts.map +1 -0
- package/resources/public/index.d.ts +3 -0
- package/resources/public/index.d.ts.map +1 -0
- package/resources/public/index.js +9 -0
- package/resources/public/index.js.map +1 -0
- package/resources/public/index.mjs +4 -0
- package/resources/public/index.mjs.map +1 -0
- package/resources/public/public.d.mts +10 -0
- package/resources/public/public.d.mts.map +1 -0
- package/resources/public/public.d.ts +10 -0
- package/resources/public/public.d.ts.map +1 -0
- package/resources/public/public.js +22 -0
- package/resources/public/public.js.map +1 -0
- package/resources/public/public.mjs +17 -0
- package/resources/public/public.mjs.map +1 -0
- package/resources/public/runs.d.mts +79 -0
- package/resources/public/runs.d.mts.map +1 -0
- package/resources/public/runs.d.ts +79 -0
- package/resources/public/runs.d.ts.map +1 -0
- package/resources/public/runs.js +58 -0
- package/resources/public/runs.js.map +1 -0
- package/resources/public/runs.mjs +54 -0
- package/resources/public/runs.mjs.map +1 -0
- package/resources/public.d.mts +2 -0
- package/resources/public.d.mts.map +1 -0
- package/resources/public.d.ts +2 -0
- package/resources/public.d.ts.map +1 -0
- package/resources/public.js +6 -0
- package/resources/public.js.map +1 -0
- package/resources/public.mjs +3 -0
- package/resources/public.mjs.map +1 -0
- package/resources/runs/index.d.mts +3 -0
- package/resources/runs/index.d.mts.map +1 -0
- package/resources/runs/index.d.ts +3 -0
- package/resources/runs/index.d.ts.map +1 -0
- package/resources/runs/index.js +9 -0
- package/resources/runs/index.js.map +1 -0
- package/resources/runs/index.mjs +4 -0
- package/resources/runs/index.mjs.map +1 -0
- package/resources/runs/runs.d.mts +763 -0
- package/resources/runs/runs.d.mts.map +1 -0
- package/resources/runs/runs.d.ts +763 -0
- package/resources/runs/runs.d.ts.map +1 -0
- package/resources/runs/runs.js +101 -0
- package/resources/runs/runs.js.map +1 -0
- package/resources/runs/runs.mjs +96 -0
- package/resources/runs/runs.mjs.map +1 -0
- package/resources/runs/share.d.mts +55 -0
- package/resources/runs/share.d.mts.map +1 -0
- package/resources/runs/share.d.ts +55 -0
- package/resources/runs/share.d.ts.map +1 -0
- package/resources/runs/share.js +46 -0
- package/resources/runs/share.js.map +1 -0
- package/resources/runs/share.mjs +42 -0
- package/resources/runs/share.mjs.map +1 -0
- package/resources/runs.d.mts +2 -0
- package/resources/runs.d.mts.map +1 -0
- package/resources/runs.d.ts +2 -0
- package/resources/runs.d.ts.map +1 -0
- package/resources/runs.js +6 -0
- package/resources/runs.js.map +1 -0
- package/resources/runs.mjs +3 -0
- package/resources/runs.mjs.map +1 -0
- package/resources/sandboxes/boxes.d.mts +898 -0
- package/resources/sandboxes/boxes.d.mts.map +1 -0
- package/resources/sandboxes/boxes.d.ts +898 -0
- package/resources/sandboxes/boxes.d.ts.map +1 -0
- package/resources/sandboxes/boxes.js +144 -0
- package/resources/sandboxes/boxes.js.map +1 -0
- package/resources/sandboxes/boxes.mjs +140 -0
- package/resources/sandboxes/boxes.mjs.map +1 -0
- package/resources/sandboxes/index.d.mts +5 -0
- package/resources/sandboxes/index.d.mts.map +1 -0
- package/resources/sandboxes/index.d.ts +5 -0
- package/resources/sandboxes/index.d.ts.map +1 -0
- package/resources/sandboxes/index.js +13 -0
- package/resources/sandboxes/index.js.map +1 -0
- package/resources/sandboxes/index.mjs +6 -0
- package/resources/sandboxes/index.mjs.map +1 -0
- package/resources/sandboxes/registries.d.mts +76 -0
- package/resources/sandboxes/registries.d.mts.map +1 -0
- package/resources/sandboxes/registries.d.ts +76 -0
- package/resources/sandboxes/registries.d.ts.map +1 -0
- package/resources/sandboxes/registries.js +44 -0
- package/resources/sandboxes/registries.js.map +1 -0
- package/resources/sandboxes/registries.mjs +40 -0
- package/resources/sandboxes/registries.mjs.map +1 -0
- package/resources/sandboxes/sandboxes.d.mts +625 -0
- package/resources/sandboxes/sandboxes.d.mts.map +1 -0
- package/resources/sandboxes/sandboxes.d.ts +625 -0
- package/resources/sandboxes/sandboxes.d.ts.map +1 -0
- package/resources/sandboxes/sandboxes.js +53 -0
- package/resources/sandboxes/sandboxes.js.map +1 -0
- package/resources/sandboxes/sandboxes.mjs +48 -0
- package/resources/sandboxes/sandboxes.mjs.map +1 -0
- package/resources/sandboxes/snapshots.d.mts +138 -0
- package/resources/sandboxes/snapshots.d.mts.map +1 -0
- package/resources/sandboxes/snapshots.d.ts +138 -0
- package/resources/sandboxes/snapshots.d.ts.map +1 -0
- package/resources/sandboxes/snapshots.js +57 -0
- package/resources/sandboxes/snapshots.js.map +1 -0
- package/resources/sandboxes/snapshots.mjs +53 -0
- package/resources/sandboxes/snapshots.mjs.map +1 -0
- package/resources/sandboxes.d.mts +2 -0
- package/resources/sandboxes.d.mts.map +1 -0
- package/resources/sandboxes.d.ts +2 -0
- package/resources/sandboxes.d.ts.map +1 -0
- package/resources/sandboxes.js +6 -0
- package/resources/sandboxes.js.map +1 -0
- package/resources/sandboxes.mjs +3 -0
- package/resources/sandboxes.mjs.map +1 -0
- package/resources/sessions.d.mts +733 -0
- package/resources/sessions.d.mts.map +1 -0
- package/resources/sessions.d.ts +733 -0
- package/resources/sessions.d.ts.map +1 -0
- package/resources/sessions.js +23 -0
- package/resources/sessions.js.map +1 -0
- package/resources/sessions.mjs +19 -0
- package/resources/sessions.mjs.map +1 -0
- package/resources/threads/index.d.mts +3 -0
- package/resources/threads/index.d.mts.map +1 -0
- package/resources/threads/index.d.ts +3 -0
- package/resources/threads/index.d.ts.map +1 -0
- package/resources/threads/index.js +9 -0
- package/resources/threads/index.js.map +1 -0
- package/resources/threads/index.mjs +4 -0
- package/resources/threads/index.mjs.map +1 -0
- package/resources/threads/share.d.mts +72 -0
- package/resources/threads/share.d.mts.map +1 -0
- package/resources/threads/share.d.ts +72 -0
- package/resources/threads/share.d.ts.map +1 -0
- package/resources/threads/share.js +61 -0
- package/resources/threads/share.js.map +1 -0
- package/resources/threads/share.mjs +57 -0
- package/resources/threads/share.mjs.map +1 -0
- package/resources/threads/threads.d.mts +974 -0
- package/resources/threads/threads.d.mts.map +1 -0
- package/resources/threads/threads.d.ts +974 -0
- package/resources/threads/threads.d.ts.map +1 -0
- package/resources/threads/threads.js +111 -0
- package/resources/threads/threads.js.map +1 -0
- package/resources/threads/threads.mjs +106 -0
- package/resources/threads/threads.mjs.map +1 -0
- package/resources/threads.d.mts +2 -0
- package/resources/threads.d.mts.map +1 -0
- package/resources/threads.d.ts +2 -0
- package/resources/threads.d.ts.map +1 -0
- package/resources/threads.js +6 -0
- package/resources/threads.js.map +1 -0
- package/resources/threads.mjs +3 -0
- package/resources/threads.mjs.map +1 -0
- package/resources/traces.d.mts +172 -0
- package/resources/traces.d.mts.map +1 -0
- package/resources/traces.d.ts +172 -0
- package/resources/traces.d.ts.map +1 -0
- package/resources/traces.js +64 -0
- package/resources/traces.js.map +1 -0
- package/resources/traces.mjs +60 -0
- package/resources/traces.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/run_trees.d.mts +2 -0
- package/run_trees.d.mts.map +1 -0
- package/run_trees.d.ts +2 -1
- package/run_trees.d.ts.map +1 -0
- package/run_trees.js +6 -1
- package/run_trees.js.map +1 -0
- package/run_trees.mjs +3 -0
- package/run_trees.mjs.map +1 -0
- package/sandbox.d.mts +2 -0
- package/sandbox.d.mts.map +1 -0
- package/sandbox.d.ts +2 -1
- package/sandbox.d.ts.map +1 -0
- package/sandbox.js +6 -1
- package/sandbox.js.map +1 -0
- package/sandbox.mjs +3 -0
- package/sandbox.mjs.map +1 -0
- package/schemas.d.mts +2 -0
- package/schemas.d.mts.map +1 -0
- package/schemas.d.ts +2 -1
- package/schemas.d.ts.map +1 -0
- package/schemas.js +6 -1
- package/schemas.js.map +1 -0
- package/schemas.mjs +3 -0
- package/schemas.mjs.map +1 -0
- package/singletons/traceable.d.mts +2 -0
- package/singletons/traceable.d.mts.map +1 -0
- package/singletons/traceable.d.ts +2 -1
- package/singletons/traceable.d.ts.map +1 -0
- package/singletons/traceable.js +6 -1
- package/singletons/traceable.js.map +1 -0
- package/singletons/traceable.mjs +3 -0
- package/singletons/traceable.mjs.map +1 -0
- package/src/anonymizer.ts +2 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1196 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +548 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/evaluation.ts +2 -0
- package/src/experimental/anthropic.ts +2 -0
- package/src/experimental/otel/exporter.ts +2 -0
- package/src/experimental/otel/processor.ts +2 -0
- package/src/experimental/otel/setup.ts +2 -0
- package/src/experimental/sandbox.ts +2 -0
- package/src/experimental/vercel.ts +2 -0
- package/src/index.ts +26 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +93 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +129 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/jest/reporter.ts +3 -0
- package/src/jest.ts +2 -0
- package/src/langchain.ts +2 -0
- package/src/lib/.keep +4 -0
- package/src/lib/address.ts +252 -0
- package/src/lib/anonymizer/index.ts +326 -0
- package/src/lib/client.ts +8168 -0
- package/src/lib/env.ts +24 -0
- package/src/lib/evaluation/_random_name.ts +728 -0
- package/src/lib/evaluation/_runner.ts +1555 -0
- package/src/lib/evaluation/evaluate_comparative.ts +431 -0
- package/src/lib/evaluation/evaluator.ts +275 -0
- package/src/lib/evaluation/index.ts +17 -0
- package/src/lib/evaluation/string_evaluator.ts +69 -0
- package/src/lib/experimental/anthropic/context.ts +656 -0
- package/src/lib/experimental/anthropic/index.ts +391 -0
- package/src/lib/experimental/anthropic/messages.ts +205 -0
- package/src/lib/experimental/anthropic/transcripts.ts +188 -0
- package/src/lib/experimental/anthropic/types.ts +65 -0
- package/src/lib/experimental/anthropic/usage.ts +253 -0
- package/src/lib/experimental/anthropic/utils.ts +28 -0
- package/src/lib/experimental/otel/constants.ts +71 -0
- package/src/lib/experimental/otel/exporter.ts +271 -0
- package/src/lib/experimental/otel/processor.ts +111 -0
- package/src/lib/experimental/otel/setup.ts +150 -0
- package/src/lib/experimental/otel/translator.ts +622 -0
- package/src/lib/experimental/otel/types.ts +36 -0
- package/src/lib/experimental/otel/utils.ts +29 -0
- package/src/lib/experimental/vercel/_agent_type.ts +34 -0
- package/src/lib/experimental/vercel/middleware.ts +316 -0
- package/src/lib/experimental/vercel/telemetry.ts +848 -0
- package/src/lib/experimental/vercel/utils.ts +384 -0
- package/src/lib/experimental/vercel/wrap.ts +1068 -0
- package/src/lib/index.ts +69 -0
- package/src/lib/jest/index.ts +504 -0
- package/src/lib/jest/reporter.ts +42 -0
- package/src/lib/langchain.ts +173 -0
- package/src/lib/run_trees.ts +1418 -0
- package/src/lib/sandbox/README.md +998 -0
- package/src/lib/sandbox/access_delegation.ts +54 -0
- package/src/lib/sandbox/client.ts +1467 -0
- package/src/lib/sandbox/command_handle.ts +372 -0
- package/src/lib/sandbox/errors.ts +368 -0
- package/src/lib/sandbox/helpers.ts +506 -0
- package/src/lib/sandbox/index.ts +161 -0
- package/src/lib/sandbox/mounts.ts +408 -0
- package/src/lib/sandbox/proxy_config.ts +249 -0
- package/src/lib/sandbox/sandbox.ts +776 -0
- package/src/lib/sandbox/service_url.ts +112 -0
- package/src/lib/sandbox/tracing.ts +10 -0
- package/src/lib/sandbox/types.ts +1005 -0
- package/src/lib/sandbox/verify.ts +407 -0
- package/src/lib/sandbox/ws_execute.ts +585 -0
- package/src/lib/schemas.ts +818 -0
- package/src/lib/singletons/constants.ts +18 -0
- package/src/lib/singletons/fetch.ts +66 -0
- package/src/lib/singletons/otel.ts +201 -0
- package/src/lib/singletons/traceable.ts +93 -0
- package/src/lib/singletons/types.ts +86 -0
- package/src/lib/traceable.ts +1333 -0
- package/src/lib/utils/_git.ts +135 -0
- package/src/lib/utils/_uuid.ts +195 -0
- package/src/lib/utils/addressing.ts +120 -0
- package/src/lib/utils/asserts.ts +50 -0
- package/src/lib/utils/async_caller.ts +206 -0
- package/src/lib/utils/atee.ts +24 -0
- package/src/lib/utils/chalk/license +9 -0
- package/src/lib/utils/chalk/source/index.ts +227 -0
- package/src/lib/utils/chalk/source/utilities.ts +35 -0
- package/src/lib/utils/chalk/source/vendor/ansi-styles/index.ts +225 -0
- package/src/lib/utils/chalk/source/vendor/supports-color/browser.ts +36 -0
- package/src/lib/utils/chalk/source/vendor/supports-color/index.ts +192 -0
- package/src/lib/utils/console-table-printer/LICENSE +21 -0
- package/src/lib/utils/console-table-printer/index.ts +9 -0
- package/src/lib/utils/console-table-printer/src/console-table-printer.ts +47 -0
- package/src/lib/utils/console-table-printer/src/internalTable/input-converter.ts +42 -0
- package/src/lib/utils/console-table-printer/src/internalTable/internal-table-printer.ts +268 -0
- package/src/lib/utils/console-table-printer/src/internalTable/internal-table.ts +180 -0
- package/src/lib/utils/console-table-printer/src/internalTable/table-pre-processors.ts +70 -0
- package/src/lib/utils/console-table-printer/src/models/common.ts +17 -0
- package/src/lib/utils/console-table-printer/src/models/external-table.ts +110 -0
- package/src/lib/utils/console-table-printer/src/models/internal-table.ts +33 -0
- package/src/lib/utils/console-table-printer/src/utils/colored-console-line.ts +40 -0
- package/src/lib/utils/console-table-printer/src/utils/console-utils.ts +25 -0
- package/src/lib/utils/console-table-printer/src/utils/string-utils.ts +84 -0
- package/src/lib/utils/console-table-printer/src/utils/table-constants.ts +61 -0
- package/src/lib/utils/console-table-printer/src/utils/table-helpers.ts +184 -0
- package/src/lib/utils/context_vars.ts +34 -0
- package/src/lib/utils/env.ts +305 -0
- package/src/lib/utils/error.ts +205 -0
- package/src/lib/utils/fast-safe-stringify/LICENSE +23 -0
- package/src/lib/utils/fast-safe-stringify/index.ts +556 -0
- package/src/lib/utils/fs.browser.ts +66 -0
- package/src/lib/utils/fs.ts +94 -0
- package/src/lib/utils/guard.ts +11 -0
- package/src/lib/utils/is-network-error/index.ts +50 -0
- package/src/lib/utils/is-network-error/license +9 -0
- package/src/lib/utils/jestlike/constants.ts +8 -0
- package/src/lib/utils/jestlike/globals.ts +84 -0
- package/src/lib/utils/jestlike/index.ts +867 -0
- package/src/lib/utils/jestlike/matchers.ts +160 -0
- package/src/lib/utils/jestlike/reporter.ts +293 -0
- package/src/lib/utils/jestlike/types.ts +60 -0
- package/src/lib/utils/jestlike/vendor/LICENSE +21 -0
- package/src/lib/utils/jestlike/vendor/chain.ts +124 -0
- package/src/lib/utils/jestlike/vendor/evaluatedBy.ts +129 -0
- package/src/lib/utils/ls_agent_type.ts +38 -0
- package/src/lib/utils/messages.ts +32 -0
- package/src/lib/utils/p-queue.ts +8 -0
- package/src/lib/utils/p-retry/index.ts +267 -0
- package/src/lib/utils/p-retry/license +9 -0
- package/src/lib/utils/profile-lock.ts +125 -0
- package/src/lib/utils/profiles.ts +512 -0
- package/src/lib/utils/project.ts +12 -0
- package/src/lib/utils/prompt_cache/index.ts +407 -0
- package/src/lib/utils/prompts.ts +36 -0
- package/src/lib/utils/redaction.ts +49 -0
- package/src/lib/utils/sampling.ts +38 -0
- package/src/lib/utils/serialize_worker.ts +374 -0
- package/src/lib/utils/shuffle.ts +13 -0
- package/src/lib/utils/simple-wcswidth/LICENSE +21 -0
- package/src/lib/utils/simple-wcswidth/index.ts +4 -0
- package/src/lib/utils/simple-wcswidth/src/binary-search.ts +29 -0
- package/src/lib/utils/simple-wcswidth/src/models.ts +4 -0
- package/src/lib/utils/simple-wcswidth/src/non-spacing-chars.ts +150 -0
- package/src/lib/utils/simple-wcswidth/src/wcswidth.ts +19 -0
- package/src/lib/utils/simple-wcswidth/src/wcwidth.ts +72 -0
- package/src/lib/utils/types.ts +13 -0
- package/src/lib/utils/url.ts +28 -0
- package/src/lib/utils/usage.ts +32 -0
- package/src/lib/utils/uuid/LICENSE.md +9 -0
- package/src/lib/utils/uuid/src/parse.ts +39 -0
- package/src/lib/utils/uuid/src/rng.ts +7 -0
- package/src/lib/utils/uuid/src/sha1.ts +110 -0
- package/src/lib/utils/uuid/src/stringify.ts +58 -0
- package/src/lib/utils/uuid/src/types.ts +28 -0
- package/src/lib/utils/uuid/src/v35.ts +74 -0
- package/src/lib/utils/uuid/src/v4.ts +65 -0
- package/src/lib/utils/uuid/src/v5.ts +31 -0
- package/src/lib/utils/uuid/src/v7.ts +135 -0
- package/src/lib/utils/uuid/src/validate.ts +7 -0
- package/src/lib/utils/uuid/src/version.ts +11 -0
- package/src/lib/utils/v2_migration.ts +85 -0
- package/src/lib/utils/vercel.ts +402 -0
- package/src/lib/utils/warn.ts +37 -0
- package/src/lib/utils/worker_threads.browser.ts +17 -0
- package/src/lib/utils/worker_threads.ts +17 -0
- package/src/lib/utils/xxhash/LICENSE +25 -0
- package/src/lib/utils/xxhash/xxhash.ts +502 -0
- package/src/lib/uuid.ts +38 -0
- package/src/lib/vitest/index.mts +347 -0
- package/src/lib/vitest/index.ts +345 -0
- package/src/lib/vitest/reporter.mts +35 -0
- package/src/lib/vitest/reporter.ts +32 -0
- package/src/lib/vitest/utils/esm.mts +43 -0
- package/src/lib/vitest/utils/reporter.ts +56 -0
- package/src/lib/vitest/utils/wrapper.ts +146 -0
- package/src/lib/wrappers/anthropic.ts +576 -0
- package/src/lib/wrappers/gemini.ts +517 -0
- package/src/lib/wrappers/gemini.utils.ts +73 -0
- package/src/lib/wrappers/generic.ts +71 -0
- package/src/lib/wrappers/openai.ts +691 -0
- package/src/lib/wrappers/openai_agents.ts +976 -0
- package/src/lib/wrappers/utils/anthropic_managed.ts +898 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/annotation-queues/annotation-queues.ts +696 -0
- package/src/resources/annotation-queues/index.ts +60 -0
- package/src/resources/annotation-queues/items.ts +396 -0
- package/src/resources/annotation-queues/runs.ts +313 -0
- package/src/resources/annotation-queues.ts +3 -0
- package/src/resources/datasets/datasets.ts +227 -0
- package/src/resources/datasets/examples.ts +36 -0
- package/src/resources/datasets/experiment-runs.ts +153 -0
- package/src/resources/datasets/index.ts +19 -0
- package/src/resources/datasets.ts +3 -0
- package/src/resources/fleet/fleet.ts +15 -0
- package/src/resources/fleet/index.ts +4 -0
- package/src/resources/fleet/threads.ts +29 -0
- package/src/resources/fleet.ts +3 -0
- package/src/resources/index.ts +148 -0
- package/src/resources/info.ts +76 -0
- package/src/resources/issues.ts +526 -0
- package/src/resources/online-evaluators.ts +604 -0
- package/src/resources/product-feedback.ts +129 -0
- package/src/resources/public/index.ts +4 -0
- package/src/resources/public/public.ts +20 -0
- package/src/resources/public/runs.ts +147 -0
- package/src/resources/public.ts +3 -0
- package/src/resources/runs/index.ts +20 -0
- package/src/resources/runs/runs.ts +1078 -0
- package/src/resources/runs/share.ts +77 -0
- package/src/resources/runs.ts +3 -0
- package/src/resources/sandboxes/boxes.ts +1290 -0
- package/src/resources/sandboxes/index.ts +44 -0
- package/src/resources/sandboxes/registries.ts +135 -0
- package/src/resources/sandboxes/sandboxes.ts +949 -0
- package/src/resources/sandboxes/snapshots.ts +196 -0
- package/src/resources/sandboxes.ts +3 -0
- package/src/resources/sessions.ts +1441 -0
- package/src/resources/threads/index.ts +23 -0
- package/src/resources/threads/share.ts +109 -0
- package/src/resources/threads/threads.ts +1216 -0
- package/src/resources/threads.ts +3 -0
- package/src/resources/traces.ts +277 -0
- package/src/resources.ts +1 -0
- package/src/run_trees.ts +2 -0
- package/src/sandbox.ts +2 -0
- package/src/schemas.ts +2 -0
- package/src/singletons/traceable.ts +2 -0
- package/src/traceable.ts +2 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/utils/jestlike.ts +2 -0
- package/src/version.ts +1 -0
- package/src/vitest/reporter.mts +2 -0
- package/src/vitest.mts +2 -0
- package/src/wrappers/anthropic.ts +2 -0
- package/src/wrappers/gemini.ts +3 -0
- package/src/wrappers/openai.ts +2 -0
- package/src/wrappers/openai_agents.ts +2 -0
- package/src/wrappers.ts +2 -0
- package/traceable.d.mts +2 -0
- package/traceable.d.mts.map +1 -0
- package/traceable.d.ts +2 -1
- package/traceable.d.ts.map +1 -0
- package/traceable.js +6 -1
- package/traceable.js.map +1 -0
- package/traceable.mjs +3 -0
- package/traceable.mjs.map +1 -0
- package/uploads.d.mts +3 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +3 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +3 -0
- package/uploads.mjs.map +1 -0
- package/utils/jestlike.d.mts +2 -0
- package/utils/jestlike.d.mts.map +1 -0
- package/utils/jestlike.d.ts +2 -1
- package/utils/jestlike.d.ts.map +1 -0
- package/utils/jestlike.js +6 -1
- package/utils/jestlike.js.map +1 -0
- package/utils/jestlike.mjs +3 -0
- package/utils/jestlike.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/vitest/reporter.d.mts +2 -0
- package/vitest/reporter.d.mts.map +1 -0
- package/vitest/reporter.mjs +3 -0
- package/vitest/reporter.mjs.map +1 -0
- package/vitest.d.mts +2 -0
- package/vitest.d.mts.map +1 -0
- package/vitest.mjs +3 -0
- package/vitest.mjs.map +1 -0
- package/wrappers/anthropic.d.mts +2 -0
- package/wrappers/anthropic.d.mts.map +1 -0
- package/wrappers/anthropic.d.ts +2 -1
- package/wrappers/anthropic.d.ts.map +1 -0
- package/wrappers/anthropic.js +6 -1
- package/wrappers/anthropic.js.map +1 -0
- package/wrappers/anthropic.mjs +3 -0
- package/wrappers/anthropic.mjs.map +1 -0
- package/wrappers/gemini.d.mts +3 -0
- package/wrappers/gemini.d.mts.map +1 -0
- package/wrappers/gemini.d.ts +3 -1
- package/wrappers/gemini.d.ts.map +1 -0
- package/wrappers/gemini.js +9 -1
- package/wrappers/gemini.js.map +1 -0
- package/wrappers/gemini.mjs +4 -0
- package/wrappers/gemini.mjs.map +1 -0
- package/wrappers/openai.d.mts +2 -0
- package/wrappers/openai.d.mts.map +1 -0
- package/wrappers/openai.d.ts +2 -1
- package/wrappers/openai.d.ts.map +1 -0
- package/wrappers/openai.js +6 -1
- package/wrappers/openai.js.map +1 -0
- package/wrappers/openai.mjs +3 -0
- package/wrappers/openai.mjs.map +1 -0
- package/wrappers/openai_agents.d.mts +2 -0
- package/wrappers/openai_agents.d.mts.map +1 -0
- package/wrappers/openai_agents.d.ts +2 -1
- package/wrappers/openai_agents.d.ts.map +1 -0
- package/wrappers/openai_agents.js +6 -1
- package/wrappers/openai_agents.js.map +1 -0
- package/wrappers/openai_agents.mjs +3 -0
- package/wrappers/openai_agents.mjs.map +1 -0
- package/wrappers.d.mts +2 -0
- package/wrappers.d.mts.map +1 -0
- package/wrappers.d.ts +2 -1
- package/wrappers.d.ts.map +1 -0
- package/wrappers.js +6 -1
- package/wrappers.js.map +1 -0
- package/wrappers.mjs +3 -0
- package/wrappers.mjs.map +1 -0
- package/anonymizer.cjs +0 -1
- package/anonymizer.d.cts +0 -1
- package/client.cjs +0 -1
- package/client.d.cts +0 -1
- package/dist/_openapi_client/client.cjs +0 -798
- package/dist/_openapi_client/client.d.ts +0 -243
- package/dist/_openapi_client/client.js +0 -761
- package/dist/_openapi_client/core/api-promise.cjs +0 -100
- package/dist/_openapi_client/core/api-promise.d.ts +0 -45
- package/dist/_openapi_client/core/api-promise.js +0 -96
- package/dist/_openapi_client/core/error.cjs +0 -134
- package/dist/_openapi_client/core/error.d.ts +0 -45
- package/dist/_openapi_client/core/error.js +0 -118
- package/dist/_openapi_client/core/pagination.cjs +0 -402
- package/dist/_openapi_client/core/pagination.d.ts +0 -168
- package/dist/_openapi_client/core/pagination.js +0 -388
- package/dist/_openapi_client/core/resource.cjs +0 -17
- package/dist/_openapi_client/core/resource.d.ts +0 -5
- package/dist/_openapi_client/core/resource.js +0 -13
- package/dist/_openapi_client/core/uploads.cjs +0 -5
- package/dist/_openapi_client/core/uploads.d.ts +0 -2
- package/dist/_openapi_client/core/uploads.js +0 -1
- package/dist/_openapi_client/index.cjs +0 -29
- package/dist/_openapi_client/index.d.ts +0 -6
- package/dist/_openapi_client/index.js +0 -8
- package/dist/_openapi_client/internal/builtin-types.cjs +0 -4
- package/dist/_openapi_client/internal/builtin-types.d.ts +0 -72
- package/dist/_openapi_client/internal/builtin-types.js +0 -3
- package/dist/_openapi_client/internal/detect-platform.cjs +0 -162
- package/dist/_openapi_client/internal/detect-platform.d.ts +0 -14
- package/dist/_openapi_client/internal/detect-platform.js +0 -157
- package/dist/_openapi_client/internal/errors.cjs +0 -41
- package/dist/_openapi_client/internal/errors.d.ts +0 -2
- package/dist/_openapi_client/internal/errors.js +0 -36
- package/dist/_openapi_client/internal/headers.cjs +0 -79
- package/dist/_openapi_client/internal/headers.d.ts +0 -18
- package/dist/_openapi_client/internal/headers.js +0 -74
- package/dist/_openapi_client/internal/parse.cjs +0 -40
- package/dist/_openapi_client/internal/parse.d.ts +0 -11
- package/dist/_openapi_client/internal/parse.js +0 -37
- package/dist/_openapi_client/internal/qs/formats.cjs +0 -12
- package/dist/_openapi_client/internal/qs/formats.d.ts +0 -6
- package/dist/_openapi_client/internal/qs/formats.js +0 -8
- package/dist/_openapi_client/internal/qs/stringify.cjs +0 -277
- package/dist/_openapi_client/internal/qs/stringify.d.ts +0 -2
- package/dist/_openapi_client/internal/qs/stringify.js +0 -274
- package/dist/_openapi_client/internal/qs/types.cjs +0 -2
- package/dist/_openapi_client/internal/qs/types.d.ts +0 -56
- package/dist/_openapi_client/internal/qs/types.js +0 -1
- package/dist/_openapi_client/internal/qs/utils.cjs +0 -230
- package/dist/_openapi_client/internal/qs/utils.d.ts +0 -14
- package/dist/_openapi_client/internal/qs/utils.js +0 -217
- package/dist/_openapi_client/internal/request-options.cjs +0 -14
- package/dist/_openapi_client/internal/request-options.d.ts +0 -74
- package/dist/_openapi_client/internal/request-options.js +0 -10
- package/dist/_openapi_client/internal/shim-types.cjs +0 -4
- package/dist/_openapi_client/internal/shim-types.d.ts +0 -16
- package/dist/_openapi_client/internal/shim-types.js +0 -3
- package/dist/_openapi_client/internal/shims.cjs +0 -92
- package/dist/_openapi_client/internal/shims.d.ts +0 -25
- package/dist/_openapi_client/internal/shims.js +0 -85
- package/dist/_openapi_client/internal/to-file.cjs +0 -91
- package/dist/_openapi_client/internal/to-file.d.ts +0 -44
- package/dist/_openapi_client/internal/to-file.js +0 -88
- package/dist/_openapi_client/internal/types.cjs +0 -4
- package/dist/_openapi_client/internal/types.d.ts +0 -35
- package/dist/_openapi_client/internal/types.js +0 -3
- package/dist/_openapi_client/internal/uploads.cjs +0 -140
- package/dist/_openapi_client/internal/uploads.d.ts +0 -41
- package/dist/_openapi_client/internal/uploads.js +0 -130
- package/dist/_openapi_client/internal/utils/env.cjs +0 -22
- package/dist/_openapi_client/internal/utils/env.d.ts +0 -8
- package/dist/_openapi_client/internal/utils/env.js +0 -18
- package/dist/_openapi_client/internal/utils/log.cjs +0 -88
- package/dist/_openapi_client/internal/utils/log.d.ts +0 -36
- package/dist/_openapi_client/internal/utils/log.js +0 -82
- package/dist/_openapi_client/internal/utils/path.cjs +0 -79
- package/dist/_openapi_client/internal/utils/path.d.ts +0 -14
- package/dist/_openapi_client/internal/utils/path.js +0 -74
- package/dist/_openapi_client/internal/utils/query.cjs +0 -42
- package/dist/_openapi_client/internal/utils/query.d.ts +0 -1
- package/dist/_openapi_client/internal/utils/query.js +0 -6
- package/dist/_openapi_client/internal/utils/sleep.cjs +0 -7
- package/dist/_openapi_client/internal/utils/sleep.d.ts +0 -1
- package/dist/_openapi_client/internal/utils/sleep.js +0 -3
- package/dist/_openapi_client/internal/utils/uuid.cjs +0 -19
- package/dist/_openapi_client/internal/utils/uuid.d.ts +0 -4
- package/dist/_openapi_client/internal/utils/uuid.js +0 -15
- package/dist/_openapi_client/internal/utils/values.cjs +0 -112
- package/dist/_openapi_client/internal/utils/values.d.ts +0 -17
- package/dist/_openapi_client/internal/utils/values.js +0 -94
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +0 -157
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +0 -383
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +0 -120
- package/dist/_openapi_client/resources/annotation-queues/items.cjs +0 -91
- package/dist/_openapi_client/resources/annotation-queues/items.d.ts +0 -232
- package/dist/_openapi_client/resources/annotation-queues/items.js +0 -87
- package/dist/_openapi_client/resources/annotation-queues/runs.cjs +0 -73
- package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +0 -197
- package/dist/_openapi_client/resources/annotation-queues/runs.js +0 -69
- package/dist/_openapi_client/resources/datasets/datasets.cjs +0 -63
- package/dist/_openapi_client/resources/datasets/datasets.d.ts +0 -154
- package/dist/_openapi_client/resources/datasets/datasets.js +0 -26
- package/dist/_openapi_client/resources/datasets/examples.cjs +0 -26
- package/dist/_openapi_client/resources/datasets/examples.d.ts +0 -23
- package/dist/_openapi_client/resources/datasets/examples.js +0 -22
- package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +0 -20
- package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +0 -111
- package/dist/_openapi_client/resources/datasets/experiment-runs.js +0 -16
- package/dist/_openapi_client/resources/fleet/fleet.cjs +0 -54
- package/dist/_openapi_client/resources/fleet/fleet.d.ts +0 -9
- package/dist/_openapi_client/resources/fleet/fleet.js +0 -17
- package/dist/_openapi_client/resources/fleet/threads.cjs +0 -18
- package/dist/_openapi_client/resources/fleet/threads.d.ts +0 -19
- package/dist/_openapi_client/resources/fleet/threads.js +0 -14
- package/dist/_openapi_client/resources/index.cjs +0 -31
- package/dist/_openapi_client/resources/index.d.ts +0 -13
- package/dist/_openapi_client/resources/index.js +0 -15
- package/dist/_openapi_client/resources/info.cjs +0 -17
- package/dist/_openapi_client/resources/info.d.ts +0 -51
- package/dist/_openapi_client/resources/info.js +0 -13
- package/dist/_openapi_client/resources/issues.cjs +0 -31
- package/dist/_openapi_client/resources/issues.d.ts +0 -291
- package/dist/_openapi_client/resources/issues.js +0 -27
- package/dist/_openapi_client/resources/online-evaluators.cjs +0 -73
- package/dist/_openapi_client/resources/online-evaluators.d.ts +0 -361
- package/dist/_openapi_client/resources/online-evaluators.js +0 -69
- package/dist/_openapi_client/resources/product-feedback.cjs +0 -33
- package/dist/_openapi_client/resources/product-feedback.d.ts +0 -77
- package/dist/_openapi_client/resources/product-feedback.js +0 -29
- package/dist/_openapi_client/resources/public/public.cjs +0 -54
- package/dist/_openapi_client/resources/public/public.d.ts +0 -9
- package/dist/_openapi_client/resources/public/public.js +0 -17
- package/dist/_openapi_client/resources/public/runs.cjs +0 -58
- package/dist/_openapi_client/resources/public/runs.d.ts +0 -78
- package/dist/_openapi_client/resources/public/runs.js +0 -54
- package/dist/_openapi_client/resources/runs/index.cjs +0 -9
- package/dist/_openapi_client/resources/runs/index.d.ts +0 -2
- package/dist/_openapi_client/resources/runs/index.js +0 -4
- package/dist/_openapi_client/resources/runs/runs.cjs +0 -133
- package/dist/_openapi_client/resources/runs/runs.d.ts +0 -874
- package/dist/_openapi_client/resources/runs/runs.js +0 -96
- package/dist/_openapi_client/resources/runs/share.cjs +0 -46
- package/dist/_openapi_client/resources/runs/share.d.ts +0 -54
- package/dist/_openapi_client/resources/runs/share.js +0 -42
- package/dist/_openapi_client/resources/runs.cjs +0 -19
- package/dist/_openapi_client/resources/runs.d.ts +0 -1
- package/dist/_openapi_client/resources/runs.js +0 -3
- package/dist/_openapi_client/resources/sandboxes/boxes.cjs +0 -144
- package/dist/_openapi_client/resources/sandboxes/boxes.d.ts +0 -897
- package/dist/_openapi_client/resources/sandboxes/boxes.js +0 -140
- package/dist/_openapi_client/resources/sandboxes/registries.cjs +0 -44
- package/dist/_openapi_client/resources/sandboxes/registries.d.ts +0 -75
- package/dist/_openapi_client/resources/sandboxes/registries.js +0 -40
- package/dist/_openapi_client/resources/sandboxes/sandboxes.cjs +0 -85
- package/dist/_openapi_client/resources/sandboxes/sandboxes.d.ts +0 -624
- package/dist/_openapi_client/resources/sandboxes/sandboxes.js +0 -48
- package/dist/_openapi_client/resources/sandboxes/snapshots.cjs +0 -57
- package/dist/_openapi_client/resources/sandboxes/snapshots.d.ts +0 -137
- package/dist/_openapi_client/resources/sandboxes/snapshots.js +0 -53
- package/dist/_openapi_client/resources/sessions.cjs +0 -23
- package/dist/_openapi_client/resources/sessions.d.ts +0 -732
- package/dist/_openapi_client/resources/sessions.js +0 -19
- package/dist/_openapi_client/resources/threads/index.cjs +0 -9
- package/dist/_openapi_client/resources/threads/index.d.ts +0 -2
- package/dist/_openapi_client/resources/threads/index.js +0 -4
- package/dist/_openapi_client/resources/threads/share.cjs +0 -61
- package/dist/_openapi_client/resources/threads/share.d.ts +0 -71
- package/dist/_openapi_client/resources/threads/share.js +0 -57
- package/dist/_openapi_client/resources/threads/threads.cjs +0 -143
- package/dist/_openapi_client/resources/threads/threads.d.ts +0 -973
- package/dist/_openapi_client/resources/threads/threads.js +0 -106
- package/dist/_openapi_client/resources/threads.cjs +0 -19
- package/dist/_openapi_client/resources/threads.d.ts +0 -1
- package/dist/_openapi_client/resources/threads.js +0 -3
- package/dist/_openapi_client/resources/traces.cjs +0 -64
- package/dist/_openapi_client/resources/traces.d.ts +0 -171
- package/dist/_openapi_client/resources/traces.js +0 -60
- package/dist/_openapi_client/version.cjs +0 -5
- package/dist/_openapi_client/version.d.ts +0 -1
- package/dist/_openapi_client/version.js +0 -2
- package/dist/address.cjs +0 -210
- package/dist/address.d.ts +0 -68
- package/dist/address.js +0 -200
- package/dist/anonymizer/index.cjs +0 -269
- package/dist/anonymizer/index.d.ts +0 -61
- package/dist/anonymizer/index.js +0 -264
- package/dist/client.cjs +0 -5800
- package/dist/client.d.ts +0 -1755
- package/dist/client.js +0 -5760
- package/dist/env.cjs +0 -25
- package/dist/env.d.ts +0 -10
- package/dist/env.js +0 -20
- package/dist/evaluation/_random_name.cjs +0 -729
- package/dist/evaluation/_random_name.d.ts +0 -5
- package/dist/evaluation/_random_name.js +0 -726
- package/dist/evaluation/_runner.cjs +0 -1140
- package/dist/evaluation/_runner.d.ts +0 -288
- package/dist/evaluation/_runner.js +0 -1131
- package/dist/evaluation/evaluate_comparative.cjs +0 -241
- package/dist/evaluation/evaluate_comparative.d.ts +0 -71
- package/dist/evaluation/evaluate_comparative.js +0 -234
- package/dist/evaluation/evaluator.cjs +0 -116
- package/dist/evaluation/evaluator.d.ts +0 -105
- package/dist/evaluation/evaluator.js +0 -111
- package/dist/evaluation/index.cjs +0 -9
- package/dist/evaluation/index.d.ts +0 -4
- package/dist/evaluation/index.js +0 -3
- package/dist/evaluation/string_evaluator.cjs +0 -66
- package/dist/evaluation/string_evaluator.d.ts +0 -30
- package/dist/evaluation/string_evaluator.js +0 -62
- package/dist/experimental/anthropic/context.cjs +0 -590
- package/dist/experimental/anthropic/context.d.ts +0 -5
- package/dist/experimental/anthropic/context.js +0 -586
- package/dist/experimental/anthropic/index.cjs +0 -260
- package/dist/experimental/anthropic/index.d.ts +0 -30
- package/dist/experimental/anthropic/index.js +0 -257
- package/dist/experimental/anthropic/messages.cjs +0 -155
- package/dist/experimental/anthropic/messages.d.ts +0 -12
- package/dist/experimental/anthropic/messages.js +0 -148
- package/dist/experimental/anthropic/transcripts.cjs +0 -144
- package/dist/experimental/anthropic/transcripts.d.ts +0 -22
- package/dist/experimental/anthropic/transcripts.js +0 -141
- package/dist/experimental/anthropic/types.cjs +0 -3
- package/dist/experimental/anthropic/types.d.ts +0 -51
- package/dist/experimental/anthropic/types.js +0 -2
- package/dist/experimental/anthropic/usage.cjs +0 -179
- package/dist/experimental/anthropic/usage.d.ts +0 -2
- package/dist/experimental/anthropic/usage.js +0 -173
- package/dist/experimental/anthropic/utils.cjs +0 -24
- package/dist/experimental/anthropic/utils.d.ts +0 -1
- package/dist/experimental/anthropic/utils.js +0 -20
- package/dist/experimental/otel/constants.cjs +0 -64
- package/dist/experimental/otel/constants.d.ts +0 -52
- package/dist/experimental/otel/constants.js +0 -60
- package/dist/experimental/otel/exporter.cjs +0 -239
- package/dist/experimental/otel/exporter.d.ts +0 -62
- package/dist/experimental/otel/exporter.js +0 -202
- package/dist/experimental/otel/processor.cjs +0 -90
- package/dist/experimental/otel/processor.d.ts +0 -13
- package/dist/experimental/otel/processor.js +0 -85
- package/dist/experimental/otel/setup.cjs +0 -95
- package/dist/experimental/otel/setup.d.ts +0 -66
- package/dist/experimental/otel/setup.js +0 -91
- package/dist/experimental/otel/translator.cjs +0 -475
- package/dist/experimental/otel/translator.d.ts +0 -22
- package/dist/experimental/otel/translator.js +0 -438
- package/dist/experimental/otel/types.cjs +0 -5
- package/dist/experimental/otel/types.d.ts +0 -29
- package/dist/experimental/otel/types.js +0 -4
- package/dist/experimental/otel/utils.cjs +0 -23
- package/dist/experimental/otel/utils.d.ts +0 -12
- package/dist/experimental/otel/utils.js +0 -19
- package/dist/experimental/vercel/_agent_type.cjs +0 -30
- package/dist/experimental/vercel/_agent_type.d.ts +0 -5
- package/dist/experimental/vercel/_agent_type.js +0 -26
- package/dist/experimental/vercel/index.cjs +0 -20
- package/dist/experimental/vercel/index.js +0 -2
- package/dist/experimental/vercel/middleware.cjs +0 -240
- package/dist/experimental/vercel/middleware.d.ts +0 -38
- package/dist/experimental/vercel/middleware.js +0 -237
- package/dist/experimental/vercel/telemetry.cjs +0 -599
- package/dist/experimental/vercel/telemetry.d.ts +0 -89
- package/dist/experimental/vercel/telemetry.js +0 -596
- package/dist/experimental/vercel/utils.cjs +0 -288
- package/dist/experimental/vercel/utils.d.ts +0 -28
- package/dist/experimental/vercel/utils.js +0 -282
- package/dist/experimental/vercel/wrap.cjs +0 -633
- package/dist/experimental/vercel/wrap.d.ts +0 -257
- package/dist/experimental/vercel/wrap.js +0 -629
- package/dist/index.cjs +0 -45
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -13
- package/dist/jest/index.cjs +0 -111
- package/dist/jest/index.d.ts +0 -559
- package/dist/jest/index.js +0 -388
- package/dist/jest/reporter.cjs +0 -37
- package/dist/jest/reporter.d.ts +0 -5
- package/dist/jest/reporter.js +0 -35
- package/dist/langchain.cjs +0 -143
- package/dist/langchain.d.ts +0 -31
- package/dist/langchain.js +0 -138
- package/dist/run_trees.cjs +0 -1211
- package/dist/run_trees.d.ts +0 -180
- package/dist/run_trees.js +0 -1204
- package/dist/sandbox/access_delegation.cjs +0 -24
- package/dist/sandbox/access_delegation.d.ts +0 -15
- package/dist/sandbox/access_delegation.js +0 -21
- package/dist/sandbox/client.cjs +0 -1074
- package/dist/sandbox/client.d.ts +0 -338
- package/dist/sandbox/client.js +0 -1070
- package/dist/sandbox/command_handle.cjs +0 -410
- package/dist/sandbox/command_handle.d.ts +0 -111
- package/dist/sandbox/command_handle.js +0 -406
- package/dist/sandbox/errors.cjs +0 -430
- package/dist/sandbox/errors.d.ts +0 -201
- package/dist/sandbox/errors.js +0 -405
- package/dist/sandbox/helpers.cjs +0 -399
- package/dist/sandbox/helpers.d.ts +0 -108
- package/dist/sandbox/helpers.js +0 -383
- package/dist/sandbox/index.cjs +0 -89
- package/dist/sandbox/index.d.ts +0 -42
- package/dist/sandbox/index.js +0 -50
- package/dist/sandbox/mounts.cjs +0 -294
- package/dist/sandbox/mounts.d.ts +0 -49
- package/dist/sandbox/mounts.js +0 -286
- package/dist/sandbox/proxy_config.cjs +0 -162
- package/dist/sandbox/proxy_config.d.ts +0 -54
- package/dist/sandbox/proxy_config.js +0 -154
- package/dist/sandbox/sandbox.cjs +0 -653
- package/dist/sandbox/sandbox.d.ts +0 -286
- package/dist/sandbox/sandbox.js +0 -649
- package/dist/sandbox/service_url.cjs +0 -133
- package/dist/sandbox/service_url.d.ts +0 -51
- package/dist/sandbox/service_url.js +0 -128
- package/dist/sandbox/tracing.cjs +0 -13
- package/dist/sandbox/tracing.d.ts +0 -1
- package/dist/sandbox/tracing.js +0 -10
- package/dist/sandbox/types.cjs +0 -7
- package/dist/sandbox/types.d.ts +0 -933
- package/dist/sandbox/types.js +0 -6
- package/dist/sandbox/verify.cjs +0 -300
- package/dist/sandbox/verify.d.ts +0 -122
- package/dist/sandbox/verify.js +0 -296
- package/dist/sandbox/ws_execute.cjs +0 -476
- package/dist/sandbox/ws_execute.d.ts +0 -92
- package/dist/sandbox/ws_execute.js +0 -463
- package/dist/schemas.cjs +0 -2
- package/dist/schemas.d.ts +0 -666
- package/dist/schemas.js +0 -1
- package/dist/singletons/constants.cjs +0 -12
- package/dist/singletons/constants.d.ts +0 -6
- package/dist/singletons/constants.js +0 -8
- package/dist/singletons/fetch.cjs +0 -53
- package/dist/singletons/fetch.d.ts +0 -9
- package/dist/singletons/fetch.js +0 -46
- package/dist/singletons/otel.cjs +0 -156
- package/dist/singletons/otel.d.ts +0 -63
- package/dist/singletons/otel.js +0 -148
- package/dist/singletons/traceable.cjs +0 -48
- package/dist/singletons/traceable.d.ts +0 -24
- package/dist/singletons/traceable.js +0 -42
- package/dist/singletons/types.cjs +0 -3
- package/dist/singletons/types.d.ts +0 -47
- package/dist/singletons/types.js +0 -1
- package/dist/traceable.cjs +0 -918
- package/dist/traceable.d.ts +0 -89
- package/dist/traceable.js +0 -910
- package/dist/utils/_git.cjs +0 -99
- package/dist/utils/_git.d.ts +0 -14
- package/dist/utils/_git.js +0 -94
- package/dist/utils/_uuid.cjs +0 -171
- package/dist/utils/_uuid.d.ts +0 -47
- package/dist/utils/_uuid.js +0 -164
- package/dist/utils/addressing.cjs +0 -99
- package/dist/utils/addressing.d.ts +0 -27
- package/dist/utils/addressing.js +0 -91
- package/dist/utils/asserts.cjs +0 -47
- package/dist/utils/asserts.d.ts +0 -7
- package/dist/utils/asserts.js +0 -37
- package/dist/utils/async_caller.cjs +0 -160
- package/dist/utils/async_caller.d.ts +0 -55
- package/dist/utils/async_caller.js +0 -153
- package/dist/utils/atee.cjs +0 -23
- package/dist/utils/atee.d.ts +0 -1
- package/dist/utils/atee.js +0 -20
- package/dist/utils/chalk/source/index.cjs +0 -187
- package/dist/utils/chalk/source/index.d.ts +0 -19
- package/dist/utils/chalk/source/index.js +0 -173
- package/dist/utils/chalk/source/utilities.cjs +0 -35
- package/dist/utils/chalk/source/utilities.d.ts +0 -2
- package/dist/utils/chalk/source/utilities.js +0 -31
- package/dist/utils/chalk/source/vendor/ansi-styles/index.cjs +0 -193
- package/dist/utils/chalk/source/vendor/ansi-styles/index.d.ts +0 -58
- package/dist/utils/chalk/source/vendor/ansi-styles/index.js +0 -190
- package/dist/utils/chalk/source/vendor/supports-color/browser.cjs +0 -31
- package/dist/utils/chalk/source/vendor/supports-color/browser.d.ts +0 -15
- package/dist/utils/chalk/source/vendor/supports-color/browser.js +0 -29
- package/dist/utils/chalk/source/vendor/supports-color/index.cjs +0 -155
- package/dist/utils/chalk/source/vendor/supports-color/index.d.ts +0 -21
- package/dist/utils/chalk/source/vendor/supports-color/index.js +0 -149
- package/dist/utils/console-table-printer/index.cjs +0 -11
- package/dist/utils/console-table-printer/index.d.ts +0 -4
- package/dist/utils/console-table-printer/index.js +0 -3
- package/dist/utils/console-table-printer/src/console-table-printer.cjs +0 -42
- package/dist/utils/console-table-printer/src/console-table-printer.d.ts +0 -14
- package/dist/utils/console-table-printer/src/console-table-printer.js +0 -36
- package/dist/utils/console-table-printer/src/internalTable/input-converter.cjs +0 -25
- package/dist/utils/console-table-printer/src/internalTable/input-converter.d.ts +0 -6
- package/dist/utils/console-table-printer/src/internalTable/input-converter.js +0 -20
- package/dist/utils/console-table-printer/src/internalTable/internal-table-printer.cjs +0 -142
- package/dist/utils/console-table-printer/src/internalTable/internal-table-printer.d.ts +0 -6
- package/dist/utils/console-table-printer/src/internalTable/internal-table-printer.js +0 -133
- package/dist/utils/console-table-printer/src/internalTable/internal-table.cjs +0 -186
- package/dist/utils/console-table-printer/src/internalTable/internal-table.d.ts +0 -31
- package/dist/utils/console-table-printer/src/internalTable/internal-table.js +0 -184
- package/dist/utils/console-table-printer/src/internalTable/table-pre-processors.cjs +0 -53
- package/dist/utils/console-table-printer/src/internalTable/table-pre-processors.d.ts +0 -3
- package/dist/utils/console-table-printer/src/internalTable/table-pre-processors.js +0 -48
- package/dist/utils/console-table-printer/src/models/common.cjs +0 -2
- package/dist/utils/console-table-printer/src/models/common.d.ts +0 -14
- package/dist/utils/console-table-printer/src/models/common.js +0 -1
- package/dist/utils/console-table-printer/src/models/external-table.cjs +0 -2
- package/dist/utils/console-table-printer/src/models/external-table.d.ts +0 -99
- package/dist/utils/console-table-printer/src/models/external-table.js +0 -1
- package/dist/utils/console-table-printer/src/models/internal-table.cjs +0 -2
- package/dist/utils/console-table-printer/src/models/internal-table.d.ts +0 -24
- package/dist/utils/console-table-printer/src/models/internal-table.js +0 -1
- package/dist/utils/console-table-printer/src/utils/colored-console-line.cjs +0 -43
- package/dist/utils/console-table-printer/src/utils/colored-console-line.d.ts +0 -12
- package/dist/utils/console-table-printer/src/utils/colored-console-line.js +0 -39
- package/dist/utils/console-table-printer/src/utils/console-utils.cjs +0 -23
- package/dist/utils/console-table-printer/src/utils/console-utils.d.ts +0 -3
- package/dist/utils/console-table-printer/src/utils/console-utils.js +0 -18
- package/dist/utils/console-table-printer/src/utils/string-utils.cjs +0 -68
- package/dist/utils/console-table-printer/src/utils/string-utils.d.ts +0 -4
- package/dist/utils/console-table-printer/src/utils/string-utils.js +0 -62
- package/dist/utils/console-table-printer/src/utils/table-constants.cjs +0 -55
- package/dist/utils/console-table-printer/src/utils/table-constants.d.ts +0 -11
- package/dist/utils/console-table-printer/src/utils/table-constants.js +0 -52
- package/dist/utils/console-table-printer/src/utils/table-helpers.cjs +0 -101
- package/dist/utils/console-table-printer/src/utils/table-helpers.d.ts +0 -29
- package/dist/utils/console-table-printer/src/utils/table-helpers.js +0 -88
- package/dist/utils/context_vars.cjs +0 -31
- package/dist/utils/context_vars.d.ts +0 -8
- package/dist/utils/context_vars.js +0 -27
- package/dist/utils/env.cjs +0 -269
- package/dist/utils/env.d.ts +0 -53
- package/dist/utils/env.js +0 -251
- package/dist/utils/error.cjs +0 -197
- package/dist/utils/error.d.ts +0 -72
- package/dist/utils/error.js +0 -185
- package/dist/utils/fast-safe-stringify/index.cjs +0 -486
- package/dist/utils/fast-safe-stringify/index.d.ts +0 -47
- package/dist/utils/fast-safe-stringify/index.js +0 -482
- package/dist/utils/fs.browser.cjs +0 -62
- package/dist/utils/fs.browser.d.ts +0 -28
- package/dist/utils/fs.browser.js +0 -45
- package/dist/utils/fs.cjs +0 -123
- package/dist/utils/fs.d.ts +0 -24
- package/dist/utils/fs.js +0 -73
- package/dist/utils/guard.cjs +0 -13
- package/dist/utils/guard.d.ts +0 -6
- package/dist/utils/guard.js +0 -10
- package/dist/utils/is-network-error/index.cjs +0 -42
- package/dist/utils/is-network-error/index.d.ts +0 -1
- package/dist/utils/is-network-error/index.js +0 -39
- package/dist/utils/jestlike/constants.cjs +0 -9
- package/dist/utils/jestlike/constants.d.ts +0 -3
- package/dist/utils/jestlike/constants.js +0 -6
- package/dist/utils/jestlike/globals.cjs +0 -47
- package/dist/utils/jestlike/globals.d.ts +0 -35
- package/dist/utils/jestlike/globals.js +0 -42
- package/dist/utils/jestlike/index.cjs +0 -703
- package/dist/utils/jestlike/index.d.ts +0 -107
- package/dist/utils/jestlike/index.js +0 -655
- package/dist/utils/jestlike/matchers.cjs +0 -103
- package/dist/utils/jestlike/matchers.d.ts +0 -27
- package/dist/utils/jestlike/matchers.js +0 -98
- package/dist/utils/jestlike/reporter.cjs +0 -295
- package/dist/utils/jestlike/reporter.d.ts +0 -5
- package/dist/utils/jestlike/reporter.js +0 -256
- package/dist/utils/jestlike/types.cjs +0 -2
- package/dist/utils/jestlike/types.d.ts +0 -39
- package/dist/utils/jestlike/types.js +0 -1
- package/dist/utils/jestlike/vendor/chain.cjs +0 -91
- package/dist/utils/jestlike/vendor/chain.d.ts +0 -1
- package/dist/utils/jestlike/vendor/chain.js +0 -88
- package/dist/utils/jestlike/vendor/evaluatedBy.cjs +0 -96
- package/dist/utils/jestlike/vendor/evaluatedBy.d.ts +0 -12
- package/dist/utils/jestlike/vendor/evaluatedBy.js +0 -92
- package/dist/utils/ls_agent_type.cjs +0 -31
- package/dist/utils/ls_agent_type.d.ts +0 -9
- package/dist/utils/ls_agent_type.js +0 -25
- package/dist/utils/messages.cjs +0 -21
- package/dist/utils/messages.d.ts +0 -11
- package/dist/utils/messages.js +0 -17
- package/dist/utils/p-queue.cjs +0 -9
- package/dist/utils/p-queue.d.ts +0 -2
- package/dist/utils/p-queue.js +0 -3
- package/dist/utils/p-retry/index.cjs +0 -200
- package/dist/utils/p-retry/index.d.ts +0 -5
- package/dist/utils/p-retry/index.js +0 -191
- package/dist/utils/profile-lock.cjs +0 -140
- package/dist/utils/profile-lock.d.ts +0 -20
- package/dist/utils/profile-lock.js +0 -103
- package/dist/utils/profiles.cjs +0 -442
- package/dist/utils/profiles.d.ts +0 -55
- package/dist/utils/profiles.js +0 -402
- package/dist/utils/project.cjs +0 -10
- package/dist/utils/project.d.ts +0 -1
- package/dist/utils/project.js +0 -6
- package/dist/utils/prompt_cache/index.cjs +0 -361
- package/dist/utils/prompt_cache/index.d.ts +0 -170
- package/dist/utils/prompt_cache/index.js +0 -355
- package/dist/utils/prompts.cjs +0 -33
- package/dist/utils/prompts.d.ts +0 -6
- package/dist/utils/prompts.js +0 -30
- package/dist/utils/redaction.cjs +0 -38
- package/dist/utils/redaction.d.ts +0 -10
- package/dist/utils/redaction.js +0 -33
- package/dist/utils/sampling.cjs +0 -34
- package/dist/utils/sampling.d.ts +0 -10
- package/dist/utils/sampling.js +0 -30
- package/dist/utils/serialize_worker.cjs +0 -388
- package/dist/utils/serialize_worker.d.ts +0 -66
- package/dist/utils/serialize_worker.js +0 -382
- package/dist/utils/shuffle.cjs +0 -14
- package/dist/utils/shuffle.d.ts +0 -1
- package/dist/utils/shuffle.js +0 -11
- package/dist/utils/simple-wcswidth/index.cjs +0 -10
- package/dist/utils/simple-wcswidth/index.d.ts +0 -3
- package/dist/utils/simple-wcswidth/index.js +0 -3
- package/dist/utils/simple-wcswidth/src/binary-search.cjs +0 -24
- package/dist/utils/simple-wcswidth/src/binary-search.d.ts +0 -3
- package/dist/utils/simple-wcswidth/src/binary-search.js +0 -22
- package/dist/utils/simple-wcswidth/src/models.cjs +0 -2
- package/dist/utils/simple-wcswidth/src/models.d.ts +0 -4
- package/dist/utils/simple-wcswidth/src/models.js +0 -1
- package/dist/utils/simple-wcswidth/src/non-spacing-chars.cjs +0 -149
- package/dist/utils/simple-wcswidth/src/non-spacing-chars.d.ts +0 -3
- package/dist/utils/simple-wcswidth/src/non-spacing-chars.js +0 -147
- package/dist/utils/simple-wcswidth/src/wcswidth.cjs +0 -20
- package/dist/utils/simple-wcswidth/src/wcswidth.d.ts +0 -2
- package/dist/utils/simple-wcswidth/src/wcswidth.js +0 -15
- package/dist/utils/simple-wcswidth/src/wcwidth.cjs +0 -67
- package/dist/utils/simple-wcswidth/src/wcwidth.d.ts +0 -2
- package/dist/utils/simple-wcswidth/src/wcwidth.js +0 -62
- package/dist/utils/types.cjs +0 -13
- package/dist/utils/types.d.ts +0 -2
- package/dist/utils/types.js +0 -8
- package/dist/utils/usage.cjs +0 -28
- package/dist/utils/usage.d.ts +0 -1
- package/dist/utils/usage.js +0 -24
- package/dist/utils/uuid/src/index.cjs +0 -24
- package/dist/utils/uuid/src/index.js +0 -9
- package/dist/utils/uuid/src/max.cjs +0 -3
- package/dist/utils/uuid/src/max.d.ts +0 -2
- package/dist/utils/uuid/src/nil.cjs +0 -3
- package/dist/utils/uuid/src/nil.d.ts +0 -2
- package/dist/utils/uuid/src/parse.cjs +0 -23
- package/dist/utils/uuid/src/parse.d.ts +0 -3
- package/dist/utils/uuid/src/parse.js +0 -18
- package/dist/utils/uuid/src/regex.cjs +0 -3
- package/dist/utils/uuid/src/regex.d.ts +0 -2
- package/dist/utils/uuid/src/rng.cjs +0 -10
- package/dist/utils/uuid/src/rng.d.ts +0 -1
- package/dist/utils/uuid/src/rng.js +0 -7
- package/dist/utils/uuid/src/sha1.cjs +0 -75
- package/dist/utils/uuid/src/sha1.d.ts +0 -2
- package/dist/utils/uuid/src/sha1.js +0 -73
- package/dist/utils/uuid/src/stringify.cjs +0 -55
- package/dist/utils/uuid/src/stringify.d.ts +0 -3
- package/dist/utils/uuid/src/stringify.js +0 -49
- package/dist/utils/uuid/src/types.cjs +0 -2
- package/dist/utils/uuid/src/types.d.ts +0 -22
- package/dist/utils/uuid/src/types.js +0 -1
- package/dist/utils/uuid/src/v35.cjs +0 -52
- package/dist/utils/uuid/src/v35.d.ts +0 -7
- package/dist/utils/uuid/src/v35.js +0 -44
- package/dist/utils/uuid/src/v4.cjs +0 -40
- package/dist/utils/uuid/src/v4.d.ts +0 -4
- package/dist/utils/uuid/src/v4.js +0 -35
- package/dist/utils/uuid/src/v5.cjs +0 -50
- package/dist/utils/uuid/src/v5.d.ts +0 -9
- package/dist/utils/uuid/src/v5.js +0 -9
- package/dist/utils/uuid/src/v7.cjs +0 -88
- package/dist/utils/uuid/src/v7.d.ts +0 -9
- package/dist/utils/uuid/src/v7.js +0 -82
- package/dist/utils/uuid/src/validate.cjs +0 -10
- package/dist/utils/uuid/src/validate.d.ts +0 -2
- package/dist/utils/uuid/src/validate.js +0 -5
- package/dist/utils/uuid/src/version.cjs +0 -13
- package/dist/utils/uuid/src/version.d.ts +0 -2
- package/dist/utils/uuid/src/version.js +0 -8
- package/dist/utils/v2_migration.cjs +0 -74
- package/dist/utils/v2_migration.d.ts +0 -15
- package/dist/utils/v2_migration.js +0 -68
- package/dist/utils/vercel.cjs +0 -283
- package/dist/utils/vercel.d.ts +0 -25
- package/dist/utils/vercel.js +0 -278
- package/dist/utils/warn.cjs +0 -36
- package/dist/utils/warn.d.ts +0 -4
- package/dist/utils/warn.js +0 -32
- package/dist/utils/worker_threads.browser.cjs +0 -16
- package/dist/utils/worker_threads.browser.d.ts +0 -14
- package/dist/utils/worker_threads.browser.js +0 -13
- package/dist/utils/worker_threads.cjs +0 -16
- package/dist/utils/worker_threads.d.ts +0 -13
- package/dist/utils/worker_threads.js +0 -13
- package/dist/utils/xxhash/xxhash.cjs +0 -331
- package/dist/utils/xxhash/xxhash.d.ts +0 -15
- package/dist/utils/xxhash/xxhash.js +0 -327
- package/dist/uuid.cjs +0 -33
- package/dist/uuid.d.ts +0 -13
- package/dist/uuid.js +0 -27
- package/dist/vitest/index.cjs +0 -46
- package/dist/vitest/index.d.mts +0 -392
- package/dist/vitest/index.d.ts +0 -392
- package/dist/vitest/index.js +0 -323
- package/dist/vitest/index.mjs +0 -324
- package/dist/vitest/reporter.cjs +0 -31
- package/dist/vitest/reporter.d.mts +0 -11
- package/dist/vitest/reporter.d.ts +0 -8
- package/dist/vitest/reporter.js +0 -29
- package/dist/vitest/reporter.mjs +0 -31
- package/dist/vitest/utils/esm.d.mts +0 -8
- package/dist/vitest/utils/esm.mjs +0 -38
- package/dist/vitest/utils/reporter.cjs +0 -39
- package/dist/vitest/utils/reporter.d.ts +0 -17
- package/dist/vitest/utils/reporter.js +0 -34
- package/dist/vitest/utils/wrapper.cjs +0 -63
- package/dist/vitest/utils/wrapper.d.ts +0 -167
- package/dist/vitest/utils/wrapper.js +0 -59
- package/dist/wrappers/anthropic.cjs +0 -392
- package/dist/wrappers/anthropic.d.ts +0 -82
- package/dist/wrappers/anthropic.js +0 -387
- package/dist/wrappers/gemini.cjs +0 -408
- package/dist/wrappers/gemini.d.ts +0 -46
- package/dist/wrappers/gemini.js +0 -405
- package/dist/wrappers/gemini.utils.cjs +0 -41
- package/dist/wrappers/gemini.utils.d.ts +0 -3
- package/dist/wrappers/gemini.utils.js +0 -37
- package/dist/wrappers/generic.cjs +0 -49
- package/dist/wrappers/generic.d.ts +0 -21
- package/dist/wrappers/generic.js +0 -44
- package/dist/wrappers/index.cjs +0 -20
- package/dist/wrappers/index.js +0 -2
- package/dist/wrappers/openai.cjs +0 -476
- package/dist/wrappers/openai.d.ts +0 -80
- package/dist/wrappers/openai.js +0 -472
- package/dist/wrappers/openai_agents.cjs +0 -862
- package/dist/wrappers/openai_agents.d.ts +0 -91
- package/dist/wrappers/openai_agents.js +0 -858
- package/dist/wrappers/utils/anthropic_managed.cjs +0 -648
- package/dist/wrappers/utils/anthropic_managed.d.ts +0 -7
- package/dist/wrappers/utils/anthropic_managed.js +0 -645
- package/evaluation.cjs +0 -1
- package/evaluation.d.cts +0 -1
- package/experimental/anthropic.cjs +0 -1
- package/experimental/anthropic.d.cts +0 -1
- package/experimental/otel/exporter.cjs +0 -1
- package/experimental/otel/exporter.d.cts +0 -1
- package/experimental/otel/processor.cjs +0 -1
- package/experimental/otel/processor.d.cts +0 -1
- package/experimental/otel/setup.cjs +0 -1
- package/experimental/otel/setup.d.cts +0 -1
- package/experimental/sandbox.cjs +0 -1
- package/experimental/sandbox.d.cts +0 -1
- package/experimental/vercel.cjs +0 -1
- package/experimental/vercel.d.cts +0 -1
- package/index.cjs +0 -1
- package/index.d.cts +0 -1
- package/jest/reporter.cjs +0 -1
- package/jest/reporter.d.cts +0 -1
- package/jest.cjs +0 -1
- package/jest.d.cts +0 -1
- package/langchain.cjs +0 -1
- package/langchain.d.cts +0 -1
- package/run_trees.cjs +0 -1
- package/run_trees.d.cts +0 -1
- package/sandbox.cjs +0 -1
- package/sandbox.d.cts +0 -1
- package/schemas.cjs +0 -1
- package/schemas.d.cts +0 -1
- package/singletons/traceable.cjs +0 -1
- package/singletons/traceable.d.cts +0 -1
- package/traceable.cjs +0 -1
- package/traceable.d.cts +0 -1
- package/utils/jestlike.cjs +0 -1
- package/utils/jestlike.d.cts +0 -1
- package/vitest/reporter.cjs +0 -1
- package/vitest/reporter.d.cts +0 -1
- package/vitest/reporter.d.ts +0 -1
- package/vitest/reporter.js +0 -1
- package/vitest.cjs +0 -1
- package/vitest.d.cts +0 -1
- package/vitest.d.ts +0 -1
- package/vitest.js +0 -1
- package/wrappers/anthropic.cjs +0 -1
- package/wrappers/anthropic.d.cts +0 -1
- package/wrappers/gemini.cjs +0 -1
- package/wrappers/gemini.d.cts +0 -1
- package/wrappers/openai.cjs +0 -1
- package/wrappers/openai.d.cts +0 -1
- package/wrappers/openai_agents.cjs +0 -1
- package/wrappers/openai_agents.d.cts +0 -1
- package/wrappers.cjs +0 -1
- package/wrappers.d.cts +0 -1
- /package/{dist/experimental/vercel/index.d.ts → src/lib/experimental/vercel/index.ts} +0 -0
- /package/{dist/utils/uuid/src/index.d.ts → src/lib/utils/uuid/src/index.ts} +0 -0
- /package/{dist/utils/uuid/src/max.js → src/lib/utils/uuid/src/max.ts} +0 -0
- /package/{dist/utils/uuid/src/nil.js → src/lib/utils/uuid/src/nil.ts} +0 -0
- /package/{dist/utils/uuid/src/regex.js → src/lib/utils/uuid/src/regex.ts} +0 -0
- /package/{dist/wrappers/index.d.ts → src/lib/wrappers/index.ts} +0 -0
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
import { Client } from "./client.mjs";
|
|
2
|
+
import { isEnvTracingEnabled } from "./env.mjs";
|
|
3
|
+
import { isConflictingEndpointsError, ConflictingEndpointsError, } from "./utils/error.mjs";
|
|
4
|
+
import { _LC_CONTEXT_VARIABLES_KEY, _REPLICA_TRACE_ROOTS_KEY, } from "./singletons/constants.mjs";
|
|
5
|
+
import { getContextVar, setContextVar } from "./utils/context_vars.mjs";
|
|
6
|
+
import { getEnvironmentVariable, getRuntimeEnvironment, } from "./utils/env.mjs";
|
|
7
|
+
import { getLangSmithEnvironmentVariable } from "./utils/env.mjs";
|
|
8
|
+
import { warnOnce } from "./utils/warn.mjs";
|
|
9
|
+
import { uuid7FromTime, nonCryptographicUuid7Deterministic, } from "./utils/_uuid.mjs";
|
|
10
|
+
import { v5 as uuidv5 } from "./utils/uuid/src/index.mjs";
|
|
11
|
+
import { logUntraced, rejectConflicting, resolveFromEnv, } from "./utils/addressing.mjs";
|
|
12
|
+
import { AgentAddress, EnvAddressError, ensureAgent } from "./address.mjs";
|
|
13
|
+
const TIMESTAMP_LENGTH = 36;
|
|
14
|
+
// DNS namespace for UUID v5 (same as Python's uuid.NAMESPACE_DNS)
|
|
15
|
+
const UUID_NAMESPACE_DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
16
|
+
function getReplicaKey(replica) {
|
|
17
|
+
// Generate a unique key by hashing the replica's identifying properties
|
|
18
|
+
// This ensures each unique replica (combination of projectName, apiUrl, workspaceId, apiKey) gets a unique key
|
|
19
|
+
// Sort keys to ensure consistent hashing
|
|
20
|
+
const sortedKeys = Object.keys(replica).sort();
|
|
21
|
+
const keyData = sortedKeys
|
|
22
|
+
.map((key) => `${key}:${replica[key] ?? ""}`)
|
|
23
|
+
.join("|");
|
|
24
|
+
return uuidv5(keyData, UUID_NAMESPACE_DNS);
|
|
25
|
+
}
|
|
26
|
+
function stripNonAlphanumeric(input) {
|
|
27
|
+
return input.replace(/[-:.]/g, "");
|
|
28
|
+
}
|
|
29
|
+
function getMicrosecondPrecisionDatestring(epoch, executionOrder = 1) {
|
|
30
|
+
// Date only has millisecond precision, so we use the microseconds to break
|
|
31
|
+
// possible ties, avoiding incorrect run order
|
|
32
|
+
const paddedOrder = executionOrder.toFixed(0).slice(0, 3).padStart(3, "0");
|
|
33
|
+
return `${new Date(epoch).toISOString().slice(0, -1)}${paddedOrder}Z`;
|
|
34
|
+
}
|
|
35
|
+
export function convertToDottedOrderFormat(epoch, runId, executionOrder = 1) {
|
|
36
|
+
const microsecondPrecisionDatestring = getMicrosecondPrecisionDatestring(epoch, executionOrder);
|
|
37
|
+
return {
|
|
38
|
+
dottedOrder: stripNonAlphanumeric(microsecondPrecisionDatestring) + runId,
|
|
39
|
+
microsecondPrecisionDatestring,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const HEADER_SAFE_REPLICA_FIELDS = new Set([
|
|
43
|
+
"projectName",
|
|
44
|
+
"primary",
|
|
45
|
+
"updates",
|
|
46
|
+
"reroot",
|
|
47
|
+
"address",
|
|
48
|
+
]);
|
|
49
|
+
/** Rebuilds an untrusted header address; `undefined` if unusable. */
|
|
50
|
+
function addressFromHeader(value) {
|
|
51
|
+
try {
|
|
52
|
+
return AgentAddress._fromLrn(value);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
// Values are untrusted, so not logged.
|
|
56
|
+
console.warn("Ignoring an unusable address in a `baggage` header.");
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function filterReplicaForHeaders(replica) {
|
|
61
|
+
const filtered = {};
|
|
62
|
+
for (const key of Object.keys(replica)) {
|
|
63
|
+
if (key === "primary" && typeof replica[key] !== "boolean") {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if (HEADER_SAFE_REPLICA_FIELDS.has(key)) {
|
|
67
|
+
filtered[key] = replica[key];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return filtered;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Baggage header information
|
|
74
|
+
*/
|
|
75
|
+
class Baggage {
|
|
76
|
+
constructor(metadata, tags, project_name, replicas, address) {
|
|
77
|
+
Object.defineProperty(this, "metadata", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
configurable: true,
|
|
80
|
+
writable: true,
|
|
81
|
+
value: void 0
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(this, "tags", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
configurable: true,
|
|
86
|
+
writable: true,
|
|
87
|
+
value: void 0
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(this, "project_name", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: void 0
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(this, "replicas", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
configurable: true,
|
|
98
|
+
writable: true,
|
|
99
|
+
value: void 0
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(this, "address", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
configurable: true,
|
|
104
|
+
writable: true,
|
|
105
|
+
value: void 0
|
|
106
|
+
});
|
|
107
|
+
this.metadata = metadata;
|
|
108
|
+
this.tags = tags;
|
|
109
|
+
this.project_name = project_name;
|
|
110
|
+
this.replicas = replicas;
|
|
111
|
+
this.address = address;
|
|
112
|
+
}
|
|
113
|
+
static fromHeader(value) {
|
|
114
|
+
const items = value.split(",");
|
|
115
|
+
let metadata = {};
|
|
116
|
+
let tags = [];
|
|
117
|
+
let project_name;
|
|
118
|
+
let replicas;
|
|
119
|
+
let address;
|
|
120
|
+
for (const item of items) {
|
|
121
|
+
const [key, uriValue] = item.split("=");
|
|
122
|
+
const value = decodeURIComponent(uriValue);
|
|
123
|
+
if (key === "langsmith-metadata") {
|
|
124
|
+
metadata = JSON.parse(value);
|
|
125
|
+
}
|
|
126
|
+
else if (key === "langsmith-tags") {
|
|
127
|
+
tags = value.split(",");
|
|
128
|
+
}
|
|
129
|
+
else if (key === "langsmith-project") {
|
|
130
|
+
project_name = value;
|
|
131
|
+
}
|
|
132
|
+
else if (key === "langsmith-address") {
|
|
133
|
+
address = addressFromHeader(value);
|
|
134
|
+
}
|
|
135
|
+
else if (key === "langsmith-replicas") {
|
|
136
|
+
const parsed = JSON.parse(value);
|
|
137
|
+
replicas = parsed.flatMap((replica) => {
|
|
138
|
+
if (Array.isArray(replica)) {
|
|
139
|
+
return [replica];
|
|
140
|
+
}
|
|
141
|
+
const filtered = filterReplicaForHeaders(replica);
|
|
142
|
+
const raw = filtered.address;
|
|
143
|
+
delete filtered.address;
|
|
144
|
+
// A project wins over an address; a replica with an invalid
|
|
145
|
+
// address and no project is dropped.
|
|
146
|
+
if (filtered.projectName || raw == null) {
|
|
147
|
+
return [filtered];
|
|
148
|
+
}
|
|
149
|
+
const replicaAddress = addressFromHeader(raw);
|
|
150
|
+
return replicaAddress
|
|
151
|
+
? [{ ...filtered, address: replicaAddress }]
|
|
152
|
+
: [];
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return new Baggage(metadata, tags, project_name, replicas, address);
|
|
157
|
+
}
|
|
158
|
+
toHeader() {
|
|
159
|
+
const items = [];
|
|
160
|
+
if (this.metadata && Object.keys(this.metadata).length > 0) {
|
|
161
|
+
items.push(`langsmith-metadata=${encodeURIComponent(JSON.stringify(this.metadata))}`);
|
|
162
|
+
}
|
|
163
|
+
if (this.tags && this.tags.length > 0) {
|
|
164
|
+
items.push(`langsmith-tags=${encodeURIComponent(this.tags.join(","))}`);
|
|
165
|
+
}
|
|
166
|
+
if (this.project_name) {
|
|
167
|
+
items.push(`langsmith-project=${encodeURIComponent(this.project_name)}`);
|
|
168
|
+
}
|
|
169
|
+
if (this.address) {
|
|
170
|
+
items.push(`langsmith-address=${encodeURIComponent(this.address._toLrn())}`);
|
|
171
|
+
}
|
|
172
|
+
return items.join(",");
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function getExcludeInputsOnPatch() {
|
|
176
|
+
const value = getLangSmithEnvironmentVariable("EXCLUDE_INPUTS_ON_PATCH");
|
|
177
|
+
return value === undefined || value.toLowerCase() === "true" || value === "1";
|
|
178
|
+
}
|
|
179
|
+
export class RunTree {
|
|
180
|
+
constructor(originalConfig) {
|
|
181
|
+
Object.defineProperty(this, "id", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
configurable: true,
|
|
184
|
+
writable: true,
|
|
185
|
+
value: void 0
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(this, "name", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
configurable: true,
|
|
190
|
+
writable: true,
|
|
191
|
+
value: void 0
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(this, "run_type", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
configurable: true,
|
|
196
|
+
writable: true,
|
|
197
|
+
value: void 0
|
|
198
|
+
});
|
|
199
|
+
/** Unset for a run sent to an `address`. */
|
|
200
|
+
Object.defineProperty(this, "project_name", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
configurable: true,
|
|
203
|
+
writable: true,
|
|
204
|
+
value: void 0
|
|
205
|
+
});
|
|
206
|
+
/** (beta) Set instead of `project_name` for an addressed run. */
|
|
207
|
+
Object.defineProperty(this, "address", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
configurable: true,
|
|
210
|
+
writable: true,
|
|
211
|
+
value: void 0
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(this, "parent_run", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
configurable: true,
|
|
216
|
+
writable: true,
|
|
217
|
+
value: void 0
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(this, "parent_run_id", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
configurable: true,
|
|
222
|
+
writable: true,
|
|
223
|
+
value: void 0
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(this, "child_runs", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
configurable: true,
|
|
228
|
+
writable: true,
|
|
229
|
+
value: void 0
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(this, "start_time", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
configurable: true,
|
|
234
|
+
writable: true,
|
|
235
|
+
value: void 0
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(this, "end_time", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
configurable: true,
|
|
240
|
+
writable: true,
|
|
241
|
+
value: void 0
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(this, "extra", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
configurable: true,
|
|
246
|
+
writable: true,
|
|
247
|
+
value: void 0
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(this, "tags", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
configurable: true,
|
|
252
|
+
writable: true,
|
|
253
|
+
value: void 0
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(this, "error", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
configurable: true,
|
|
258
|
+
writable: true,
|
|
259
|
+
value: void 0
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(this, "serialized", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
configurable: true,
|
|
264
|
+
writable: true,
|
|
265
|
+
value: void 0
|
|
266
|
+
});
|
|
267
|
+
Object.defineProperty(this, "inputs", {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
configurable: true,
|
|
270
|
+
writable: true,
|
|
271
|
+
value: void 0
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(this, "outputs", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
configurable: true,
|
|
276
|
+
writable: true,
|
|
277
|
+
value: void 0
|
|
278
|
+
});
|
|
279
|
+
Object.defineProperty(this, "reference_example_id", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
configurable: true,
|
|
282
|
+
writable: true,
|
|
283
|
+
value: void 0
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(this, "client", {
|
|
286
|
+
enumerable: true,
|
|
287
|
+
configurable: true,
|
|
288
|
+
writable: true,
|
|
289
|
+
value: void 0
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperty(this, "events", {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
configurable: true,
|
|
294
|
+
writable: true,
|
|
295
|
+
value: void 0
|
|
296
|
+
});
|
|
297
|
+
Object.defineProperty(this, "trace_id", {
|
|
298
|
+
enumerable: true,
|
|
299
|
+
configurable: true,
|
|
300
|
+
writable: true,
|
|
301
|
+
value: void 0
|
|
302
|
+
});
|
|
303
|
+
Object.defineProperty(this, "dotted_order", {
|
|
304
|
+
enumerable: true,
|
|
305
|
+
configurable: true,
|
|
306
|
+
writable: true,
|
|
307
|
+
value: void 0
|
|
308
|
+
});
|
|
309
|
+
Object.defineProperty(this, "tracingEnabled", {
|
|
310
|
+
enumerable: true,
|
|
311
|
+
configurable: true,
|
|
312
|
+
writable: true,
|
|
313
|
+
value: void 0
|
|
314
|
+
});
|
|
315
|
+
Object.defineProperty(this, "execution_order", {
|
|
316
|
+
enumerable: true,
|
|
317
|
+
configurable: true,
|
|
318
|
+
writable: true,
|
|
319
|
+
value: void 0
|
|
320
|
+
});
|
|
321
|
+
Object.defineProperty(this, "child_execution_order", {
|
|
322
|
+
enumerable: true,
|
|
323
|
+
configurable: true,
|
|
324
|
+
writable: true,
|
|
325
|
+
value: void 0
|
|
326
|
+
});
|
|
327
|
+
/**
|
|
328
|
+
* Attachments associated with the run.
|
|
329
|
+
* Each entry is a tuple of [mime_type, bytes]
|
|
330
|
+
*/
|
|
331
|
+
Object.defineProperty(this, "attachments", {
|
|
332
|
+
enumerable: true,
|
|
333
|
+
configurable: true,
|
|
334
|
+
writable: true,
|
|
335
|
+
value: void 0
|
|
336
|
+
});
|
|
337
|
+
/**
|
|
338
|
+
* Projects to replicate this run to with optional updates.
|
|
339
|
+
*/
|
|
340
|
+
Object.defineProperty(this, "replicas", {
|
|
341
|
+
enumerable: true,
|
|
342
|
+
configurable: true,
|
|
343
|
+
writable: true,
|
|
344
|
+
value: void 0
|
|
345
|
+
});
|
|
346
|
+
Object.defineProperty(this, "distributedParentId", {
|
|
347
|
+
enumerable: true,
|
|
348
|
+
configurable: true,
|
|
349
|
+
writable: true,
|
|
350
|
+
value: void 0
|
|
351
|
+
});
|
|
352
|
+
/**
|
|
353
|
+
* @interface
|
|
354
|
+
*/
|
|
355
|
+
Object.defineProperty(this, "_serialized_start_time", {
|
|
356
|
+
enumerable: true,
|
|
357
|
+
configurable: true,
|
|
358
|
+
writable: true,
|
|
359
|
+
value: void 0
|
|
360
|
+
});
|
|
361
|
+
/**
|
|
362
|
+
* @internal
|
|
363
|
+
*/
|
|
364
|
+
Object.defineProperty(this, "_awaitInputsOnPost", {
|
|
365
|
+
enumerable: true,
|
|
366
|
+
configurable: true,
|
|
367
|
+
writable: true,
|
|
368
|
+
value: void 0
|
|
369
|
+
});
|
|
370
|
+
// If you pass in a run tree directly, return a shallow clone
|
|
371
|
+
if (isRunTree(originalConfig)) {
|
|
372
|
+
Object.assign(this, { ...originalConfig });
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
const defaultConfig = RunTree.getDefaultConfig();
|
|
376
|
+
const { metadata, ...config } = originalConfig;
|
|
377
|
+
const client = config.client ?? RunTree.getSharedClient();
|
|
378
|
+
const dedupedMetadata = {
|
|
379
|
+
...metadata,
|
|
380
|
+
...config?.extra?.metadata,
|
|
381
|
+
};
|
|
382
|
+
config.extra = { ...config.extra, metadata: dedupedMetadata };
|
|
383
|
+
if ("id" in config && config.id == null) {
|
|
384
|
+
delete config.id;
|
|
385
|
+
}
|
|
386
|
+
Object.assign(this, { ...defaultConfig, ...config, client });
|
|
387
|
+
this._resolveAddressing(config);
|
|
388
|
+
this.execution_order ?? (this.execution_order = 1);
|
|
389
|
+
this.child_execution_order ?? (this.child_execution_order = 1);
|
|
390
|
+
// Generate serialized start time for ID generation
|
|
391
|
+
if (!this.dotted_order) {
|
|
392
|
+
this._serialized_start_time = getMicrosecondPrecisionDatestring(this.start_time, this.execution_order);
|
|
393
|
+
}
|
|
394
|
+
// Generate id from serialized start_time if not provided
|
|
395
|
+
if (!this.id) {
|
|
396
|
+
this.id = uuid7FromTime(this._serialized_start_time ?? this.start_time);
|
|
397
|
+
}
|
|
398
|
+
if (!this.trace_id) {
|
|
399
|
+
if (this.parent_run) {
|
|
400
|
+
this.trace_id = this.parent_run.trace_id ?? this.id;
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
this.trace_id = this.id;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
this.replicas = _ensureWriteReplicas(this.replicas);
|
|
407
|
+
// Now set the dotted order with the actual ID
|
|
408
|
+
if (!this.dotted_order) {
|
|
409
|
+
const { dottedOrder } = convertToDottedOrderFormat(this.start_time, this.id, this.execution_order);
|
|
410
|
+
if (this.parent_run) {
|
|
411
|
+
this.dotted_order = this.parent_run.dotted_order + "." + dottedOrder;
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
this.dotted_order = dottedOrder;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/** Falls back to the env; a bad env leaves the run untraced. */
|
|
419
|
+
_resolveAddressing(config) {
|
|
420
|
+
const address = ensureAgent(config.address);
|
|
421
|
+
const project = config.project_name || undefined;
|
|
422
|
+
rejectConflicting(project, address);
|
|
423
|
+
if (project || address) {
|
|
424
|
+
this.project_name = project;
|
|
425
|
+
this.address = address;
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
try {
|
|
429
|
+
[this.project_name, this.address] = resolveFromEnv();
|
|
430
|
+
}
|
|
431
|
+
catch (e) {
|
|
432
|
+
if (!(e instanceof EnvAddressError)) {
|
|
433
|
+
throw e;
|
|
434
|
+
}
|
|
435
|
+
if (isEnvTracingEnabled(this.tracingEnabled)) {
|
|
436
|
+
logUntraced(e);
|
|
437
|
+
}
|
|
438
|
+
this.project_name = undefined;
|
|
439
|
+
this.address = undefined;
|
|
440
|
+
this.tracingEnabled = false;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
set metadata(metadata) {
|
|
444
|
+
this.extra = {
|
|
445
|
+
...this.extra,
|
|
446
|
+
metadata: {
|
|
447
|
+
...this.extra?.metadata,
|
|
448
|
+
...metadata,
|
|
449
|
+
},
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
get metadata() {
|
|
453
|
+
return this.extra?.metadata;
|
|
454
|
+
}
|
|
455
|
+
static getDefaultConfig() {
|
|
456
|
+
const start_time = Date.now();
|
|
457
|
+
return {
|
|
458
|
+
run_type: "chain",
|
|
459
|
+
child_runs: [],
|
|
460
|
+
api_url: getEnvironmentVariable("LANGCHAIN_ENDPOINT") ?? "http://localhost:1984",
|
|
461
|
+
api_key: getEnvironmentVariable("LANGCHAIN_API_KEY"),
|
|
462
|
+
caller_options: {},
|
|
463
|
+
start_time,
|
|
464
|
+
serialized: {},
|
|
465
|
+
inputs: {},
|
|
466
|
+
extra: {},
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
static getSharedClient() {
|
|
470
|
+
if (!RunTree.sharedClient) {
|
|
471
|
+
RunTree.sharedClient = new Client();
|
|
472
|
+
}
|
|
473
|
+
return RunTree.sharedClient;
|
|
474
|
+
}
|
|
475
|
+
createChild(config) {
|
|
476
|
+
const child_execution_order = this.child_execution_order + 1;
|
|
477
|
+
// Handle replicas: if child has its own replicas, use those; otherwise inherit parent's (with reroot stripped)
|
|
478
|
+
// Reroot should only apply to the run where it's explicitly configured, not propagate down
|
|
479
|
+
const inheritedReplicas = this.replicas?.map((replica) => {
|
|
480
|
+
const { reroot, ...rest } = replica;
|
|
481
|
+
return rest;
|
|
482
|
+
});
|
|
483
|
+
const childReplicas = config.replicas ?? inheritedReplicas;
|
|
484
|
+
const child = new RunTree({
|
|
485
|
+
...config,
|
|
486
|
+
parent_run: this,
|
|
487
|
+
project_name: this.project_name,
|
|
488
|
+
address: this.address,
|
|
489
|
+
replicas: childReplicas,
|
|
490
|
+
client: this.client,
|
|
491
|
+
tracingEnabled: this.tracingEnabled,
|
|
492
|
+
execution_order: child_execution_order,
|
|
493
|
+
child_execution_order: child_execution_order,
|
|
494
|
+
});
|
|
495
|
+
// Propagate all parent metadata; child metadata takes precedence.
|
|
496
|
+
const parentMeta = this.extra?.metadata ?? {};
|
|
497
|
+
const childMeta = child.extra?.metadata ?? {};
|
|
498
|
+
if (Object.keys(parentMeta).length > 0) {
|
|
499
|
+
child.extra = {
|
|
500
|
+
...child.extra,
|
|
501
|
+
metadata: { ...parentMeta, ...childMeta },
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
// Copy context vars over into the new run tree.
|
|
505
|
+
if (_LC_CONTEXT_VARIABLES_KEY in this) {
|
|
506
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
507
|
+
child[_LC_CONTEXT_VARIABLES_KEY] =
|
|
508
|
+
this[_LC_CONTEXT_VARIABLES_KEY];
|
|
509
|
+
}
|
|
510
|
+
const LC_CHILD = Symbol.for("lc:child_config");
|
|
511
|
+
const presentConfig = config.extra?.[LC_CHILD] ??
|
|
512
|
+
this.extra[LC_CHILD];
|
|
513
|
+
// tracing for LangChain is defined by the _parentRunId and runMap of the tracer
|
|
514
|
+
if (isRunnableConfigLike(presentConfig)) {
|
|
515
|
+
const newConfig = { ...presentConfig };
|
|
516
|
+
const callbacks = isCallbackManagerLike(newConfig.callbacks)
|
|
517
|
+
? newConfig.callbacks.copy?.()
|
|
518
|
+
: undefined;
|
|
519
|
+
if (callbacks) {
|
|
520
|
+
// update the parent run id
|
|
521
|
+
Object.assign(callbacks, { _parentRunId: child.id });
|
|
522
|
+
// only populate if we're in a newer LC.JS version
|
|
523
|
+
callbacks.handlers
|
|
524
|
+
?.find(isLangChainTracerLike)
|
|
525
|
+
?.updateFromRunTree?.(child);
|
|
526
|
+
newConfig.callbacks = callbacks;
|
|
527
|
+
}
|
|
528
|
+
child.extra[LC_CHILD] = newConfig;
|
|
529
|
+
}
|
|
530
|
+
// propagate child_execution_order upwards
|
|
531
|
+
const visited = new Set();
|
|
532
|
+
let current = this;
|
|
533
|
+
while (current != null && !visited.has(current.id)) {
|
|
534
|
+
visited.add(current.id);
|
|
535
|
+
current.child_execution_order = Math.max(current.child_execution_order, child_execution_order);
|
|
536
|
+
current = current.parent_run;
|
|
537
|
+
}
|
|
538
|
+
this.child_runs.push(child);
|
|
539
|
+
return child;
|
|
540
|
+
}
|
|
541
|
+
async end(outputs, error, endTime = Date.now(), metadata) {
|
|
542
|
+
this.outputs = this.outputs ?? outputs;
|
|
543
|
+
this.error = this.error ?? error;
|
|
544
|
+
this.end_time = this.end_time ?? endTime;
|
|
545
|
+
if (metadata && Object.keys(metadata).length > 0) {
|
|
546
|
+
this.extra = this.extra
|
|
547
|
+
? { ...this.extra, metadata: { ...this.extra.metadata, ...metadata } }
|
|
548
|
+
: { metadata };
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
_convertToCreate(run, runtimeEnv, excludeChildRuns = true) {
|
|
552
|
+
const runExtra = run.extra ?? {};
|
|
553
|
+
// Avoid overwriting the runtime environment if it's already set
|
|
554
|
+
if (runExtra?.runtime?.library === undefined) {
|
|
555
|
+
if (!runExtra.runtime) {
|
|
556
|
+
runExtra.runtime = {};
|
|
557
|
+
}
|
|
558
|
+
if (runtimeEnv) {
|
|
559
|
+
for (const [k, v] of Object.entries(runtimeEnv)) {
|
|
560
|
+
if (!runExtra.runtime[k]) {
|
|
561
|
+
runExtra.runtime[k] = v;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
const parent_run_id = run.parent_run?.id ?? run.parent_run_id;
|
|
567
|
+
let child_runs;
|
|
568
|
+
if (!excludeChildRuns) {
|
|
569
|
+
child_runs = run.child_runs.map((child_run) => this._convertToCreate(child_run, runtimeEnv, excludeChildRuns));
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
child_runs = [];
|
|
573
|
+
}
|
|
574
|
+
return {
|
|
575
|
+
id: run.id,
|
|
576
|
+
name: run.name,
|
|
577
|
+
start_time: run._serialized_start_time ?? run.start_time,
|
|
578
|
+
end_time: run.end_time,
|
|
579
|
+
run_type: run.run_type,
|
|
580
|
+
reference_example_id: run.reference_example_id,
|
|
581
|
+
extra: runExtra,
|
|
582
|
+
serialized: run.serialized,
|
|
583
|
+
error: run.error,
|
|
584
|
+
inputs: run.inputs,
|
|
585
|
+
outputs: run.outputs,
|
|
586
|
+
session_name: run.project_name,
|
|
587
|
+
address: run.address,
|
|
588
|
+
child_runs: child_runs,
|
|
589
|
+
parent_run_id: parent_run_id,
|
|
590
|
+
trace_id: run.trace_id,
|
|
591
|
+
dotted_order: run.dotted_order,
|
|
592
|
+
tags: run.tags,
|
|
593
|
+
attachments: run.attachments,
|
|
594
|
+
events: run.events,
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
_sliceParentId(parentId, run) {
|
|
598
|
+
/**
|
|
599
|
+
* Slice the parent id from dotted order.
|
|
600
|
+
* Additionally check if the current run is a child of the parent. If so, update
|
|
601
|
+
* the parent_run_id to undefined, and set the trace id to the new root id after
|
|
602
|
+
* parent_id.
|
|
603
|
+
*/
|
|
604
|
+
if (run.dotted_order) {
|
|
605
|
+
const segs = run.dotted_order.split(".");
|
|
606
|
+
let startIdx = null;
|
|
607
|
+
// Find the index of the parent ID in the dotted order
|
|
608
|
+
for (let idx = 0; idx < segs.length; idx++) {
|
|
609
|
+
const segId = segs[idx].slice(-TIMESTAMP_LENGTH);
|
|
610
|
+
if (segId === parentId) {
|
|
611
|
+
startIdx = idx;
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
if (startIdx !== null) {
|
|
616
|
+
// Trim segments to start after parent_id (exclusive)
|
|
617
|
+
const trimmedSegs = segs.slice(startIdx + 1);
|
|
618
|
+
// Rebuild dotted_order
|
|
619
|
+
run.dotted_order = trimmedSegs.join(".");
|
|
620
|
+
if (trimmedSegs.length > 0) {
|
|
621
|
+
run.trace_id = trimmedSegs[0].slice(-TIMESTAMP_LENGTH);
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
run.trace_id = run.id;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
if (run.parent_run_id === parentId) {
|
|
629
|
+
// We've found the new root node.
|
|
630
|
+
run.parent_run_id = undefined;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
_setReplicaTraceRoot(replicaKey, traceRootId) {
|
|
634
|
+
// Set the replica trace root in context vars on this run and all descendants
|
|
635
|
+
const replicaTraceRoots = getContextVar(this, _REPLICA_TRACE_ROOTS_KEY) ?? {};
|
|
636
|
+
replicaTraceRoots[replicaKey] = traceRootId;
|
|
637
|
+
setContextVar(this, _REPLICA_TRACE_ROOTS_KEY, replicaTraceRoots);
|
|
638
|
+
// Recursively update all descendants to avoid race conditions
|
|
639
|
+
// around run tree creation vs processing time
|
|
640
|
+
for (const child of this.child_runs) {
|
|
641
|
+
child._setReplicaTraceRoot(replicaKey, traceRootId);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
/** A replica naming neither inherits the run tree's destination. */
|
|
645
|
+
_replicaAddressing(replica) {
|
|
646
|
+
const address = ensureAgent(replica.address);
|
|
647
|
+
if (replica.projectName != null) {
|
|
648
|
+
rejectConflicting(replica.projectName, address);
|
|
649
|
+
return [replica.projectName, undefined];
|
|
650
|
+
}
|
|
651
|
+
if (address) {
|
|
652
|
+
return [undefined, address];
|
|
653
|
+
}
|
|
654
|
+
return [this.project_name, this.address];
|
|
655
|
+
}
|
|
656
|
+
_remapForProject(params) {
|
|
657
|
+
const { projectName, address, primary, runtimeEnv, excludeChildRuns = true, reroot = false, distributedParentId, apiUrl, apiKey, workspaceId, } = params;
|
|
658
|
+
const baseRun = this._convertToCreate(this, runtimeEnv, excludeChildRuns);
|
|
659
|
+
// Preserve legacy behavior when `primary` is omitted, unless another replica is primary.
|
|
660
|
+
if (primary === undefined &&
|
|
661
|
+
!this.replicas?.some((r) => r.primary === true) &&
|
|
662
|
+
projectName === this.project_name &&
|
|
663
|
+
address?._toLrn() === this.address?._toLrn()) {
|
|
664
|
+
return {
|
|
665
|
+
...baseRun,
|
|
666
|
+
session_name: projectName,
|
|
667
|
+
address,
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
const seed = projectName ?? address?._toLrn() ?? "agent//";
|
|
671
|
+
// Apply reroot logic before ID remapping
|
|
672
|
+
if (reroot) {
|
|
673
|
+
if (distributedParentId) {
|
|
674
|
+
// If we have a distributed parent ID, slice at that point
|
|
675
|
+
this._sliceParentId(distributedParentId, baseRun);
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
// If no distributed parent ID, simply make this run a root run
|
|
679
|
+
// by removing parent_run_id and resetting trace info
|
|
680
|
+
baseRun.parent_run_id = undefined;
|
|
681
|
+
// Keep the current run as the trace root
|
|
682
|
+
if (baseRun.dotted_order) {
|
|
683
|
+
// Reset dotted order to just this run
|
|
684
|
+
const segs = baseRun.dotted_order.split(".");
|
|
685
|
+
if (segs.length > 0) {
|
|
686
|
+
baseRun.dotted_order = segs[segs.length - 1];
|
|
687
|
+
baseRun.trace_id = baseRun.id;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
// Store this run's original ID in context vars so descendants know the new trace root
|
|
692
|
+
// We store the original ID (before remapping) so it can be found in dotted_order
|
|
693
|
+
const replicaKey = getReplicaKey({
|
|
694
|
+
projectName: seed,
|
|
695
|
+
apiUrl,
|
|
696
|
+
apiKey,
|
|
697
|
+
workspaceId,
|
|
698
|
+
});
|
|
699
|
+
this._setReplicaTraceRoot(replicaKey, baseRun.id);
|
|
700
|
+
}
|
|
701
|
+
// If an ancestor was rerooted for this replica, update trace_id and dotted_order
|
|
702
|
+
// to reflect the new trace hierarchy. This is tracked via context variables.
|
|
703
|
+
let ancestorRerootedTraceId;
|
|
704
|
+
if (!reroot) {
|
|
705
|
+
const replicaTraceRoots = getContextVar(this, _REPLICA_TRACE_ROOTS_KEY) ?? {};
|
|
706
|
+
const replicaKey = getReplicaKey({
|
|
707
|
+
projectName: seed,
|
|
708
|
+
apiUrl,
|
|
709
|
+
apiKey,
|
|
710
|
+
workspaceId,
|
|
711
|
+
});
|
|
712
|
+
ancestorRerootedTraceId = replicaTraceRoots[replicaKey];
|
|
713
|
+
if (ancestorRerootedTraceId) {
|
|
714
|
+
// An ancestor was rerooted for this replica, so set our trace_id
|
|
715
|
+
// to the ancestor's original (unmapped) ID. It will be remapped along with other IDs.
|
|
716
|
+
baseRun.trace_id = ancestorRerootedTraceId;
|
|
717
|
+
// Also slice the dotted_order to start from the new trace root
|
|
718
|
+
// This ensures descendants of a rerooted ancestor have correct hierarchy
|
|
719
|
+
if (baseRun.dotted_order) {
|
|
720
|
+
const segs = baseRun.dotted_order.split(".");
|
|
721
|
+
let rootIdx = null;
|
|
722
|
+
// Find the new trace root's segment in dotted_order
|
|
723
|
+
for (let idx = 0; idx < segs.length; idx++) {
|
|
724
|
+
const segId = segs[idx].slice(-TIMESTAMP_LENGTH);
|
|
725
|
+
if (segId === ancestorRerootedTraceId) {
|
|
726
|
+
rootIdx = idx;
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if (rootIdx !== null) {
|
|
731
|
+
// Keep segments from new trace root onwards
|
|
732
|
+
const trimmedSegs = segs.slice(rootIdx);
|
|
733
|
+
baseRun.dotted_order = trimmedSegs.join(".");
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
if (primary) {
|
|
739
|
+
return {
|
|
740
|
+
...baseRun,
|
|
741
|
+
session_name: projectName,
|
|
742
|
+
address,
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
// Remap IDs for the replica using nonCryptographicUuid7Deterministic
|
|
746
|
+
// This ensures consistency across runs in the same replica while
|
|
747
|
+
// preserving UUID7 properties (time-ordering, monotonicity)
|
|
748
|
+
const oldId = baseRun.id;
|
|
749
|
+
const newId = nonCryptographicUuid7Deterministic(oldId, seed);
|
|
750
|
+
// Remap trace_id
|
|
751
|
+
let newTraceId;
|
|
752
|
+
if (baseRun.trace_id) {
|
|
753
|
+
newTraceId = nonCryptographicUuid7Deterministic(baseRun.trace_id, seed);
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
newTraceId = newId;
|
|
757
|
+
}
|
|
758
|
+
// Remap parent_run_id
|
|
759
|
+
let newParentId;
|
|
760
|
+
if (baseRun.parent_run_id) {
|
|
761
|
+
newParentId = nonCryptographicUuid7Deterministic(baseRun.parent_run_id, seed);
|
|
762
|
+
}
|
|
763
|
+
// Remap dotted_order segments
|
|
764
|
+
let newDottedOrder;
|
|
765
|
+
if (baseRun.dotted_order) {
|
|
766
|
+
const segs = baseRun.dotted_order.split(".");
|
|
767
|
+
const remappedSegs = segs.map((seg) => {
|
|
768
|
+
// Extract the UUID from the segment (last TIMESTAMP_LENGTH characters)
|
|
769
|
+
const segId = seg.slice(-TIMESTAMP_LENGTH);
|
|
770
|
+
const remappedId = nonCryptographicUuid7Deterministic(segId, seed);
|
|
771
|
+
// Replace the UUID part while keeping the timestamp prefix
|
|
772
|
+
return seg.slice(0, -TIMESTAMP_LENGTH) + remappedId;
|
|
773
|
+
});
|
|
774
|
+
newDottedOrder = remappedSegs.join(".");
|
|
775
|
+
}
|
|
776
|
+
return {
|
|
777
|
+
...baseRun,
|
|
778
|
+
id: newId,
|
|
779
|
+
trace_id: newTraceId,
|
|
780
|
+
parent_run_id: newParentId,
|
|
781
|
+
dotted_order: newDottedOrder,
|
|
782
|
+
session_name: projectName,
|
|
783
|
+
address,
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
async postRun(excludeChildRuns = true) {
|
|
787
|
+
// Applies when `processInputs` is an async function
|
|
788
|
+
if (this._awaitInputsOnPost) {
|
|
789
|
+
this.inputs = await this.inputs;
|
|
790
|
+
}
|
|
791
|
+
try {
|
|
792
|
+
const runtimeEnv = getRuntimeEnvironment();
|
|
793
|
+
if (this.replicas && this.replicas.length > 0) {
|
|
794
|
+
for (const replica of this.replicas) {
|
|
795
|
+
const { primary, apiKey, apiUrl, workspaceId, reroot, client: replicaClient, } = replica;
|
|
796
|
+
const [projectName, address] = this._replicaAddressing(replica);
|
|
797
|
+
const runCreate = this._remapForProject({
|
|
798
|
+
projectName,
|
|
799
|
+
address,
|
|
800
|
+
primary,
|
|
801
|
+
runtimeEnv,
|
|
802
|
+
excludeChildRuns: true,
|
|
803
|
+
reroot,
|
|
804
|
+
distributedParentId: this.distributedParentId,
|
|
805
|
+
apiUrl,
|
|
806
|
+
apiKey,
|
|
807
|
+
workspaceId,
|
|
808
|
+
});
|
|
809
|
+
const targetClient = replicaClient ?? this.client;
|
|
810
|
+
await targetClient.createRun(runCreate, {
|
|
811
|
+
apiKey,
|
|
812
|
+
apiUrl,
|
|
813
|
+
workspaceId,
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
const runCreate = this._convertToCreate(this, runtimeEnv, excludeChildRuns);
|
|
819
|
+
await this.client.createRun(runCreate);
|
|
820
|
+
}
|
|
821
|
+
if (!excludeChildRuns) {
|
|
822
|
+
warnOnce("Posting with excludeChildRuns=false is deprecated and will be removed in a future version.");
|
|
823
|
+
for (const childRun of this.child_runs) {
|
|
824
|
+
await childRun.postRun(false);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
this.child_runs = [];
|
|
828
|
+
}
|
|
829
|
+
catch (error) {
|
|
830
|
+
console.error(`Error in postRun for run ${this.id}:`, error);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Patch the run tree to the API.
|
|
835
|
+
*
|
|
836
|
+
* @param options.excludeInputs - Whether to exclude inputs from the patch
|
|
837
|
+
* request. Defaults to the value of `LANGSMITH_EXCLUDE_INPUTS_ON_PATCH`
|
|
838
|
+
* (or its `LANGCHAIN_` equivalent), which itself defaults to `true`.
|
|
839
|
+
* An explicit value overrides the environment variable for this call.
|
|
840
|
+
*
|
|
841
|
+
* Unless the environment variable is disabled, inputs added after the
|
|
842
|
+
* initial `postRun()` are not persisted unless this option is explicitly set
|
|
843
|
+
* to `false`.
|
|
844
|
+
*/
|
|
845
|
+
async patchRun(options) {
|
|
846
|
+
const excludeInputs = options?.excludeInputs ?? getExcludeInputsOnPatch();
|
|
847
|
+
if (this.replicas && this.replicas.length > 0) {
|
|
848
|
+
for (const replica of this.replicas) {
|
|
849
|
+
const { primary, apiKey, apiUrl, workspaceId, updates, reroot, client: replicaClient, } = replica;
|
|
850
|
+
const [projectName, address] = this._replicaAddressing(replica);
|
|
851
|
+
const runData = this._remapForProject({
|
|
852
|
+
projectName,
|
|
853
|
+
address,
|
|
854
|
+
primary,
|
|
855
|
+
runtimeEnv: undefined,
|
|
856
|
+
excludeChildRuns: true,
|
|
857
|
+
reroot,
|
|
858
|
+
distributedParentId: this.distributedParentId,
|
|
859
|
+
apiUrl,
|
|
860
|
+
apiKey,
|
|
861
|
+
workspaceId,
|
|
862
|
+
});
|
|
863
|
+
const updatePayload = {
|
|
864
|
+
id: runData.id,
|
|
865
|
+
name: runData.name,
|
|
866
|
+
run_type: runData.run_type,
|
|
867
|
+
start_time: runData.start_time,
|
|
868
|
+
outputs: runData.outputs,
|
|
869
|
+
error: runData.error,
|
|
870
|
+
parent_run_id: runData.parent_run_id,
|
|
871
|
+
session_name: runData.session_name,
|
|
872
|
+
address: runData.address,
|
|
873
|
+
reference_example_id: runData.reference_example_id,
|
|
874
|
+
end_time: runData.end_time,
|
|
875
|
+
dotted_order: runData.dotted_order,
|
|
876
|
+
trace_id: runData.trace_id,
|
|
877
|
+
events: runData.events,
|
|
878
|
+
tags: runData.tags,
|
|
879
|
+
extra: runData.extra,
|
|
880
|
+
attachments: this.attachments,
|
|
881
|
+
...updates,
|
|
882
|
+
};
|
|
883
|
+
// Important that inputs is not a key in the run update
|
|
884
|
+
// if excluded because it will overwrite the run create if the
|
|
885
|
+
// two operations are merged during batching
|
|
886
|
+
if (!excludeInputs) {
|
|
887
|
+
updatePayload.inputs = runData.inputs;
|
|
888
|
+
}
|
|
889
|
+
const targetClient = replicaClient ?? this.client;
|
|
890
|
+
await targetClient.updateRun(runData.id, updatePayload, {
|
|
891
|
+
apiKey,
|
|
892
|
+
apiUrl,
|
|
893
|
+
workspaceId,
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
else {
|
|
898
|
+
try {
|
|
899
|
+
const runUpdate = {
|
|
900
|
+
name: this.name,
|
|
901
|
+
run_type: this.run_type,
|
|
902
|
+
start_time: this._serialized_start_time ?? this.start_time,
|
|
903
|
+
end_time: this.end_time,
|
|
904
|
+
error: this.error,
|
|
905
|
+
outputs: this.outputs,
|
|
906
|
+
parent_run_id: this.parent_run?.id ?? this.parent_run_id,
|
|
907
|
+
reference_example_id: this.reference_example_id,
|
|
908
|
+
extra: this.extra,
|
|
909
|
+
events: this.events,
|
|
910
|
+
dotted_order: this.dotted_order,
|
|
911
|
+
trace_id: this.trace_id,
|
|
912
|
+
tags: this.tags,
|
|
913
|
+
attachments: this.attachments,
|
|
914
|
+
session_name: this.project_name,
|
|
915
|
+
address: this.address,
|
|
916
|
+
};
|
|
917
|
+
// Important that inputs is not a key in the run update
|
|
918
|
+
// if excluded because it will overwrite the run create if the
|
|
919
|
+
// two operations are merged during batching
|
|
920
|
+
if (!excludeInputs) {
|
|
921
|
+
runUpdate.inputs = this.inputs;
|
|
922
|
+
}
|
|
923
|
+
await this.client.updateRun(this.id, runUpdate);
|
|
924
|
+
}
|
|
925
|
+
catch (error) {
|
|
926
|
+
console.error(`Error in patchRun for run ${this.id}`, error);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
this.child_runs = [];
|
|
930
|
+
}
|
|
931
|
+
toJSON() {
|
|
932
|
+
return this._convertToCreate(this, undefined, false);
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Add an event to the run tree.
|
|
936
|
+
* @param event - A single event or string to add
|
|
937
|
+
*/
|
|
938
|
+
addEvent(event) {
|
|
939
|
+
if (!this.events) {
|
|
940
|
+
this.events = [];
|
|
941
|
+
}
|
|
942
|
+
if (typeof event === "string") {
|
|
943
|
+
this.events.push({
|
|
944
|
+
name: "event",
|
|
945
|
+
time: new Date().toISOString(),
|
|
946
|
+
message: event,
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
else {
|
|
950
|
+
this.events.push({
|
|
951
|
+
...event,
|
|
952
|
+
time: event.time ?? new Date().toISOString(),
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
static fromRunnableConfig(parentConfig, props) {
|
|
957
|
+
// We only handle the callback manager case for now
|
|
958
|
+
const callbackManager = parentConfig?.callbacks;
|
|
959
|
+
let parentRun;
|
|
960
|
+
let projectName;
|
|
961
|
+
let client;
|
|
962
|
+
let tracingEnabled = isEnvTracingEnabled();
|
|
963
|
+
if (callbackManager) {
|
|
964
|
+
const parentRunId = callbackManager?.getParentRunId?.() ?? "";
|
|
965
|
+
const langChainTracer = callbackManager?.handlers?.find((handler) => handler?.name == "langchain_tracer");
|
|
966
|
+
parentRun = langChainTracer?.getRun?.(parentRunId);
|
|
967
|
+
projectName = langChainTracer?.projectName;
|
|
968
|
+
client = langChainTracer?.client;
|
|
969
|
+
tracingEnabled = tracingEnabled || !!langChainTracer;
|
|
970
|
+
}
|
|
971
|
+
if (!parentRun) {
|
|
972
|
+
return new RunTree({
|
|
973
|
+
...props,
|
|
974
|
+
client,
|
|
975
|
+
tracingEnabled,
|
|
976
|
+
project_name: props.address ? undefined : projectName,
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
const parentRunTree = new RunTree({
|
|
980
|
+
name: parentRun.name,
|
|
981
|
+
id: parentRun.id,
|
|
982
|
+
trace_id: parentRun.trace_id,
|
|
983
|
+
dotted_order: parentRun.dotted_order,
|
|
984
|
+
client,
|
|
985
|
+
tracingEnabled,
|
|
986
|
+
project_name: projectName,
|
|
987
|
+
tags: [
|
|
988
|
+
...new Set((parentRun?.tags ?? []).concat(parentConfig?.tags ?? [])),
|
|
989
|
+
],
|
|
990
|
+
extra: {
|
|
991
|
+
metadata: {
|
|
992
|
+
...parentRun?.extra?.metadata,
|
|
993
|
+
...parentConfig?.metadata,
|
|
994
|
+
},
|
|
995
|
+
},
|
|
996
|
+
});
|
|
997
|
+
return parentRunTree.createChild(props);
|
|
998
|
+
}
|
|
999
|
+
static fromDottedOrder(dottedOrder) {
|
|
1000
|
+
return this.fromHeaders({ "langsmith-trace": dottedOrder });
|
|
1001
|
+
}
|
|
1002
|
+
static fromHeaders(headers, inheritArgs) {
|
|
1003
|
+
const rawHeaders = "get" in headers && typeof headers.get === "function"
|
|
1004
|
+
? {
|
|
1005
|
+
"langsmith-trace": headers.get("langsmith-trace"),
|
|
1006
|
+
baggage: headers.get("baggage"),
|
|
1007
|
+
}
|
|
1008
|
+
: headers;
|
|
1009
|
+
const headerTrace = rawHeaders["langsmith-trace"];
|
|
1010
|
+
if (!headerTrace || typeof headerTrace !== "string")
|
|
1011
|
+
return undefined;
|
|
1012
|
+
const parentDottedOrder = headerTrace.trim();
|
|
1013
|
+
const parsedDottedOrder = parentDottedOrder.split(".").map((part) => {
|
|
1014
|
+
const [strTime, uuid] = part.split("Z");
|
|
1015
|
+
return { strTime, time: Date.parse(strTime + "Z"), uuid };
|
|
1016
|
+
});
|
|
1017
|
+
const traceId = parsedDottedOrder[0].uuid;
|
|
1018
|
+
const config = {
|
|
1019
|
+
...inheritArgs,
|
|
1020
|
+
name: inheritArgs?.["name"] ?? "parent",
|
|
1021
|
+
run_type: inheritArgs?.["run_type"] ?? "chain",
|
|
1022
|
+
start_time: inheritArgs?.["start_time"] ?? Date.now(),
|
|
1023
|
+
id: parsedDottedOrder.at(-1)?.uuid,
|
|
1024
|
+
trace_id: traceId,
|
|
1025
|
+
dotted_order: parentDottedOrder,
|
|
1026
|
+
};
|
|
1027
|
+
if (rawHeaders["baggage"] && typeof rawHeaders["baggage"] === "string") {
|
|
1028
|
+
const baggage = Baggage.fromHeader(rawHeaders["baggage"]);
|
|
1029
|
+
config.metadata = baggage.metadata;
|
|
1030
|
+
config.tags = baggage.tags;
|
|
1031
|
+
if (baggage.project_name && baggage.address) {
|
|
1032
|
+
console.warn("Ignoring a `baggage` header that names both a project and an address.");
|
|
1033
|
+
return undefined;
|
|
1034
|
+
}
|
|
1035
|
+
// The header's destination outranks the caller's.
|
|
1036
|
+
if (baggage.project_name) {
|
|
1037
|
+
config.project_name = baggage.project_name;
|
|
1038
|
+
delete config.address;
|
|
1039
|
+
}
|
|
1040
|
+
else if (baggage.address) {
|
|
1041
|
+
config.address = baggage.address;
|
|
1042
|
+
delete config.project_name;
|
|
1043
|
+
}
|
|
1044
|
+
config.replicas = baggage.replicas;
|
|
1045
|
+
}
|
|
1046
|
+
const runTree = new RunTree(config);
|
|
1047
|
+
// Set the distributed parent ID to this run's ID for rerooting
|
|
1048
|
+
runTree.distributedParentId = runTree.id;
|
|
1049
|
+
return runTree;
|
|
1050
|
+
}
|
|
1051
|
+
toHeaders(headers) {
|
|
1052
|
+
const result = {
|
|
1053
|
+
"langsmith-trace": this.dotted_order,
|
|
1054
|
+
baggage: new Baggage(this.extra?.metadata, this.tags, this.project_name, this.replicas, this.address).toHeader(),
|
|
1055
|
+
};
|
|
1056
|
+
if (headers) {
|
|
1057
|
+
for (const [key, value] of Object.entries(result)) {
|
|
1058
|
+
headers.set(key, value);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
return result;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
Object.defineProperty(RunTree, "sharedClient", {
|
|
1065
|
+
enumerable: true,
|
|
1066
|
+
configurable: true,
|
|
1067
|
+
writable: true,
|
|
1068
|
+
value: null
|
|
1069
|
+
});
|
|
1070
|
+
export function isRunTree(x) {
|
|
1071
|
+
return (x != null &&
|
|
1072
|
+
typeof x.createChild === "function" &&
|
|
1073
|
+
typeof x.postRun === "function");
|
|
1074
|
+
}
|
|
1075
|
+
function isLangChainTracerLike(x) {
|
|
1076
|
+
return (typeof x === "object" &&
|
|
1077
|
+
x != null &&
|
|
1078
|
+
typeof x.name === "string" &&
|
|
1079
|
+
x.name === "langchain_tracer");
|
|
1080
|
+
}
|
|
1081
|
+
function containsLangChainTracerLike(x) {
|
|
1082
|
+
return (Array.isArray(x) && x.some((callback) => isLangChainTracerLike(callback)));
|
|
1083
|
+
}
|
|
1084
|
+
function isCallbackManagerLike(x) {
|
|
1085
|
+
return (typeof x === "object" &&
|
|
1086
|
+
x != null &&
|
|
1087
|
+
Array.isArray(x.handlers));
|
|
1088
|
+
}
|
|
1089
|
+
export function isRunnableConfigLike(x) {
|
|
1090
|
+
// Check that it's an object with a callbacks arg
|
|
1091
|
+
// that has either a CallbackManagerLike object with a langchain tracer within it
|
|
1092
|
+
// or an array with a LangChainTracerLike object within it
|
|
1093
|
+
const callbacks = x?.callbacks;
|
|
1094
|
+
return (x != null &&
|
|
1095
|
+
typeof callbacks === "object" &&
|
|
1096
|
+
// Callback manager with a langchain tracer
|
|
1097
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1098
|
+
(containsLangChainTracerLike(callbacks?.handlers) ||
|
|
1099
|
+
// Or it's an array with a LangChainTracerLike object within it
|
|
1100
|
+
containsLangChainTracerLike(callbacks)));
|
|
1101
|
+
}
|
|
1102
|
+
function _getWriteReplicasFromEnv() {
|
|
1103
|
+
const envVar = getEnvironmentVariable("LANGSMITH_RUNS_ENDPOINTS");
|
|
1104
|
+
if (!envVar)
|
|
1105
|
+
return [];
|
|
1106
|
+
try {
|
|
1107
|
+
const parsed = JSON.parse(envVar);
|
|
1108
|
+
if (Array.isArray(parsed)) {
|
|
1109
|
+
const replicas = [];
|
|
1110
|
+
for (const item of parsed) {
|
|
1111
|
+
if (typeof item !== "object" || item === null) {
|
|
1112
|
+
console.warn(`Invalid item type in LANGSMITH_RUNS_ENDPOINTS: ` +
|
|
1113
|
+
`expected object, got ${typeof item}`);
|
|
1114
|
+
continue;
|
|
1115
|
+
}
|
|
1116
|
+
if (typeof item.api_url !== "string") {
|
|
1117
|
+
console.warn(`Invalid api_url type in LANGSMITH_RUNS_ENDPOINTS: ` +
|
|
1118
|
+
`expected string, got ${typeof item.api_url}`);
|
|
1119
|
+
continue;
|
|
1120
|
+
}
|
|
1121
|
+
if (typeof item.api_key !== "string") {
|
|
1122
|
+
console.warn(`Invalid api_key type in LANGSMITH_RUNS_ENDPOINTS: ` +
|
|
1123
|
+
`expected string, got ${typeof item.api_key}`);
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
if (item.project_name !== undefined &&
|
|
1127
|
+
item.project_name !== null &&
|
|
1128
|
+
typeof item.project_name !== "string") {
|
|
1129
|
+
console.warn(`Invalid project_name type in LANGSMITH_RUNS_ENDPOINTS: ` +
|
|
1130
|
+
`expected string, got ${typeof item.project_name}`);
|
|
1131
|
+
continue;
|
|
1132
|
+
}
|
|
1133
|
+
if (item.primary !== undefined && typeof item.primary !== "boolean") {
|
|
1134
|
+
console.warn(`Invalid primary type in LANGSMITH_RUNS_ENDPOINTS: ` +
|
|
1135
|
+
`expected boolean, got ${typeof item.primary}`);
|
|
1136
|
+
continue;
|
|
1137
|
+
}
|
|
1138
|
+
replicas.push({
|
|
1139
|
+
apiUrl: item.api_url.replace(/\/$/, ""),
|
|
1140
|
+
apiKey: item.api_key,
|
|
1141
|
+
projectName: item.project_name ?? undefined,
|
|
1142
|
+
primary: item.primary ?? undefined,
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
return replicas;
|
|
1146
|
+
}
|
|
1147
|
+
else if (typeof parsed === "object" && parsed !== null) {
|
|
1148
|
+
_checkEndpointEnvUnset(parsed);
|
|
1149
|
+
const replicas = [];
|
|
1150
|
+
for (const [url, key] of Object.entries(parsed)) {
|
|
1151
|
+
const cleanUrl = url.replace(/\/$/, "");
|
|
1152
|
+
if (typeof key === "string") {
|
|
1153
|
+
replicas.push({
|
|
1154
|
+
apiUrl: cleanUrl,
|
|
1155
|
+
apiKey: key,
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
console.warn(`Invalid value type in LANGSMITH_RUNS_ENDPOINTS for URL ${url}: ` +
|
|
1160
|
+
`expected string, got ${typeof key}`);
|
|
1161
|
+
continue;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
return replicas;
|
|
1165
|
+
}
|
|
1166
|
+
else {
|
|
1167
|
+
console.warn("Invalid LANGSMITH_RUNS_ENDPOINTS – must be valid JSON array of " +
|
|
1168
|
+
`objects with api_url and api_key properties, or object mapping url->apiKey, got ${typeof parsed}`);
|
|
1169
|
+
return [];
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
catch (e) {
|
|
1173
|
+
if (isConflictingEndpointsError(e)) {
|
|
1174
|
+
throw e;
|
|
1175
|
+
}
|
|
1176
|
+
console.warn("Invalid LANGSMITH_RUNS_ENDPOINTS – must be valid JSON array of " +
|
|
1177
|
+
"objects with api_url and api_key properties, or object mapping url->apiKey");
|
|
1178
|
+
return [];
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
function _ensureWriteReplicas(replicas) {
|
|
1182
|
+
const ensured = replicas
|
|
1183
|
+
? replicas.map((replica) => {
|
|
1184
|
+
if (Array.isArray(replica)) {
|
|
1185
|
+
return {
|
|
1186
|
+
projectName: replica[0],
|
|
1187
|
+
updates: replica[1],
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
const address = ensureAgent(replica.address);
|
|
1191
|
+
return address ? { ...replica, address } : replica;
|
|
1192
|
+
})
|
|
1193
|
+
: _getWriteReplicasFromEnv();
|
|
1194
|
+
if (ensured.filter((replica) => replica.primary === true).length > 1) {
|
|
1195
|
+
throw new Error("Only one replica can be marked as primary.");
|
|
1196
|
+
}
|
|
1197
|
+
return ensured;
|
|
1198
|
+
}
|
|
1199
|
+
function _checkEndpointEnvUnset(parsed) {
|
|
1200
|
+
if (Object.keys(parsed).length > 0 &&
|
|
1201
|
+
getLangSmithEnvironmentVariable("ENDPOINT")) {
|
|
1202
|
+
throw new ConflictingEndpointsError();
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
//# sourceMappingURL=run_trees.mjs.map
|