@langchain/classic 1.0.5 → 1.0.6-dev-1765431816670
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/dist/_virtual/rolldown_runtime.cjs +0 -4
- package/dist/_virtual/rolldown_runtime.js +1 -10
- package/dist/agents/agent.d.cts +3 -17
- package/dist/agents/agent.d.cts.map +1 -0
- package/dist/agents/agent.d.ts +3 -17
- package/dist/agents/agent.d.ts.map +1 -0
- package/dist/agents/chat/index.d.cts.map +1 -0
- package/dist/agents/chat/index.d.ts.map +1 -0
- package/dist/agents/chat/outputParser.d.cts.map +1 -0
- package/dist/agents/chat/outputParser.d.ts +2 -2
- package/dist/agents/chat/outputParser.d.ts.map +1 -0
- package/dist/agents/chat_convo/index.d.cts.map +1 -0
- package/dist/agents/chat_convo/index.d.ts.map +1 -0
- package/dist/agents/chat_convo/outputParser.d.cts.map +1 -0
- package/dist/agents/chat_convo/outputParser.d.ts.map +1 -0
- package/dist/agents/executor.d.cts +1 -5
- package/dist/agents/executor.d.cts.map +1 -0
- package/dist/agents/executor.d.ts +1 -5
- package/dist/agents/executor.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/log.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/log.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/xml.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/xml.d.ts.map +1 -0
- package/dist/agents/initialize.d.cts +1 -10
- package/dist/agents/initialize.d.cts.map +1 -0
- package/dist/agents/initialize.d.ts +1 -10
- package/dist/agents/initialize.d.ts.map +1 -0
- package/dist/agents/load.d.cts +2 -10
- package/dist/agents/load.d.cts.map +1 -0
- package/dist/agents/load.d.ts +2 -10
- package/dist/agents/load.d.ts.map +1 -0
- package/dist/agents/mrkl/index.d.cts.map +1 -0
- package/dist/agents/mrkl/index.d.ts.map +1 -0
- package/dist/agents/mrkl/outputParser.d.cts +1 -1
- package/dist/agents/mrkl/outputParser.d.cts.map +1 -0
- package/dist/agents/mrkl/outputParser.d.ts +1 -1
- package/dist/agents/mrkl/outputParser.d.ts.map +1 -0
- package/dist/agents/openai_functions/index.d.cts.map +1 -0
- package/dist/agents/openai_functions/index.d.ts.map +1 -0
- package/dist/agents/openai_functions/output_parser.d.cts.map +1 -0
- package/dist/agents/openai_functions/output_parser.d.ts.map +1 -0
- package/dist/agents/openai_tools/index.d.cts +3 -5
- package/dist/agents/openai_tools/index.d.cts.map +1 -0
- package/dist/agents/openai_tools/index.d.ts +3 -5
- package/dist/agents/openai_tools/index.d.ts.map +1 -0
- package/dist/agents/openai_tools/output_parser.d.cts.map +1 -0
- package/dist/agents/openai_tools/output_parser.d.ts.map +1 -0
- package/dist/agents/react/index.d.cts +2 -2
- package/dist/agents/react/index.d.cts.map +1 -0
- package/dist/agents/react/index.d.ts +2 -2
- package/dist/agents/react/index.d.ts.map +1 -0
- package/dist/agents/react/output_parser.d.cts.map +1 -0
- package/dist/agents/react/output_parser.d.ts.map +1 -0
- package/dist/agents/structured_chat/index.d.cts +2 -2
- package/dist/agents/structured_chat/index.d.cts.map +1 -0
- package/dist/agents/structured_chat/index.d.ts +2 -2
- package/dist/agents/structured_chat/index.d.ts.map +1 -0
- package/dist/agents/structured_chat/outputParser.d.cts.map +1 -0
- package/dist/agents/structured_chat/outputParser.d.ts.map +1 -0
- package/dist/agents/tool_calling/index.d.cts +2 -2
- package/dist/agents/tool_calling/index.d.cts.map +1 -0
- package/dist/agents/tool_calling/index.d.ts +2 -2
- package/dist/agents/tool_calling/index.d.ts.map +1 -0
- package/dist/agents/tool_calling/output_parser.d.cts.map +1 -0
- package/dist/agents/tool_calling/output_parser.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts +2 -2
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts.map +1 -0
- package/dist/agents/toolkits/json/json.d.cts.map +1 -0
- package/dist/agents/toolkits/json/json.d.ts.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.d.cts.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.d.ts.map +1 -0
- package/dist/agents/toolkits/sql/prompt.d.cts.map +1 -0
- package/dist/agents/toolkits/sql/prompt.d.ts.map +1 -0
- package/dist/agents/toolkits/sql/sql.d.cts.map +1 -0
- package/dist/agents/toolkits/sql/sql.d.ts.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.cts.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.ts.map +1 -0
- package/dist/agents/types.d.cts.map +1 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/xml/index.d.cts.map +1 -0
- package/dist/agents/xml/index.d.ts.map +1 -0
- package/dist/agents/xml/output_parser.d.cts.map +1 -0
- package/dist/agents/xml/output_parser.d.ts.map +1 -0
- package/dist/cache/file_system.d.cts.map +1 -0
- package/dist/cache/file_system.d.ts.map +1 -0
- package/dist/callbacks/handlers/console.d.cts.map +1 -0
- package/dist/callbacks/handlers/console.d.ts.map +1 -0
- package/dist/callbacks/handlers/run_collector.d.cts.map +1 -0
- package/dist/callbacks/handlers/run_collector.d.ts.map +1 -0
- package/dist/callbacks/handlers/tracer.d.cts.map +1 -0
- package/dist/callbacks/handlers/tracer.d.ts.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.cts.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.ts.map +1 -0
- package/dist/callbacks/promises.d.cts.map +1 -0
- package/dist/callbacks/promises.d.ts.map +1 -0
- package/dist/chains/analyze_documents_chain.d.cts +0 -1
- package/dist/chains/analyze_documents_chain.d.cts.map +1 -0
- package/dist/chains/analyze_documents_chain.d.ts +0 -1
- package/dist/chains/analyze_documents_chain.d.ts.map +1 -0
- package/dist/chains/api/api_chain.d.cts.map +1 -0
- package/dist/chains/api/api_chain.d.ts.map +1 -0
- package/dist/chains/base.d.cts +1 -4
- package/dist/chains/base.d.cts.map +1 -0
- package/dist/chains/base.d.ts +1 -4
- package/dist/chains/base.d.ts.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.cts +0 -1
- package/dist/chains/chat_vector_db_chain.d.cts.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.ts +0 -1
- package/dist/chains/chat_vector_db_chain.d.ts.map +1 -0
- package/dist/chains/combine_docs_chain.d.cts +2 -2
- package/dist/chains/combine_docs_chain.d.cts.map +1 -0
- package/dist/chains/combine_docs_chain.d.ts +2 -2
- package/dist/chains/combine_docs_chain.d.ts.map +1 -0
- package/dist/chains/combine_documents/reduce.d.cts +1 -3
- package/dist/chains/combine_documents/reduce.d.cts.map +1 -0
- package/dist/chains/combine_documents/reduce.d.ts +1 -3
- package/dist/chains/combine_documents/reduce.d.ts.map +1 -0
- package/dist/chains/combine_documents/stuff.d.cts.map +1 -0
- package/dist/chains/combine_documents/stuff.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -0
- package/dist/chains/conversation.d.cts.map +1 -0
- package/dist/chains/conversation.d.ts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.cts +1 -2
- package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.ts +1 -2
- package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -0
- package/dist/chains/graph_qa/cypher.d.cts +0 -3
- package/dist/chains/graph_qa/cypher.d.cts.map +1 -0
- package/dist/chains/graph_qa/cypher.d.ts +0 -3
- package/dist/chains/graph_qa/cypher.d.ts.map +1 -0
- package/dist/chains/history_aware_retriever.d.cts.map +1 -0
- package/dist/chains/history_aware_retriever.d.ts.map +1 -0
- package/dist/chains/llm_chain.d.cts +0 -1
- package/dist/chains/llm_chain.d.cts.map +1 -0
- package/dist/chains/llm_chain.d.ts +0 -1
- package/dist/chains/llm_chain.d.ts.map +1 -0
- package/dist/chains/load.d.cts +2 -2
- package/dist/chains/load.d.cts.map +1 -0
- package/dist/chains/load.d.ts +2 -2
- package/dist/chains/load.d.ts.map +1 -0
- package/dist/chains/openai_functions/base.d.cts +4 -16
- package/dist/chains/openai_functions/base.d.cts.map +1 -0
- package/dist/chains/openai_functions/base.d.ts +4 -16
- package/dist/chains/openai_functions/base.d.ts.map +1 -0
- package/dist/chains/openai_functions/extraction.d.cts.map +1 -0
- package/dist/chains/openai_functions/extraction.d.ts.map +1 -0
- package/dist/chains/openai_functions/openapi.d.cts +1 -4
- package/dist/chains/openai_functions/openapi.d.cts.map +1 -0
- package/dist/chains/openai_functions/openapi.d.ts +1 -4
- package/dist/chains/openai_functions/openapi.d.ts.map +1 -0
- package/dist/chains/openai_functions/tagging.d.cts.map +1 -0
- package/dist/chains/openai_functions/tagging.d.ts.map +1 -0
- package/dist/chains/openai_moderation.d.cts.map +1 -0
- package/dist/chains/openai_moderation.d.ts.map +1 -0
- package/dist/chains/query_constructor/index.d.cts +1 -3
- package/dist/chains/query_constructor/index.d.cts.map +1 -0
- package/dist/chains/query_constructor/index.d.ts +1 -3
- package/dist/chains/query_constructor/index.d.ts.map +1 -0
- package/dist/chains/query_constructor/parser.d.cts.map +1 -0
- package/dist/chains/query_constructor/parser.d.ts.map +1 -0
- package/dist/chains/query_constructor/prompt.d.cts.map +1 -0
- package/dist/chains/query_constructor/prompt.d.ts.map +1 -0
- package/dist/chains/question_answering/load.d.cts +2 -2
- package/dist/chains/question_answering/load.d.cts.map +1 -0
- package/dist/chains/question_answering/load.d.ts +2 -2
- package/dist/chains/question_answering/load.d.ts.map +1 -0
- package/dist/chains/retrieval.d.cts +1 -4
- package/dist/chains/retrieval.d.cts.map +1 -0
- package/dist/chains/retrieval.d.ts +1 -4
- package/dist/chains/retrieval.d.ts.map +1 -0
- package/dist/chains/retrieval_qa.d.cts +0 -1
- package/dist/chains/retrieval_qa.d.cts.map +1 -0
- package/dist/chains/retrieval_qa.d.ts +0 -1
- package/dist/chains/retrieval_qa.d.ts.map +1 -0
- package/dist/chains/router/llm_router.d.cts.map +1 -0
- package/dist/chains/router/llm_router.d.ts.map +1 -0
- package/dist/chains/router/multi_prompt.d.cts.map +1 -0
- package/dist/chains/router/multi_prompt.d.ts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -0
- package/dist/chains/router/multi_route.d.cts.map +1 -0
- package/dist/chains/router/multi_route.d.ts.map +1 -0
- package/dist/chains/sequential_chain.d.cts.map +1 -0
- package/dist/chains/sequential_chain.d.ts.map +1 -0
- package/dist/chains/serde.d.cts.map +1 -0
- package/dist/chains/serde.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.cts +0 -5
- package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.ts +0 -5
- package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -0
- package/dist/chains/summarization/load.d.cts.map +1 -0
- package/dist/chains/summarization/load.d.ts +2 -2
- package/dist/chains/summarization/load.d.ts.map +1 -0
- package/dist/chains/transform.d.cts.map +1 -0
- package/dist/chains/transform.d.ts.map +1 -0
- package/dist/chains/vector_db_qa.d.cts +0 -1
- package/dist/chains/vector_db_qa.d.cts.map +1 -0
- package/dist/chains/vector_db_qa.d.ts +0 -1
- package/dist/chains/vector_db_qa.d.ts.map +1 -0
- package/dist/chat_models/universal.d.cts +4 -21
- package/dist/chat_models/universal.d.cts.map +1 -0
- package/dist/chat_models/universal.d.ts +4 -21
- package/dist/chat_models/universal.d.ts.map +1 -0
- package/dist/document_loaders/fs/buffer.d.cts.map +1 -0
- package/dist/document_loaders/fs/buffer.d.ts.map +1 -0
- package/dist/document_loaders/fs/directory.d.cts +0 -2
- package/dist/document_loaders/fs/directory.d.cts.map +1 -0
- package/dist/document_loaders/fs/directory.d.ts +0 -2
- package/dist/document_loaders/fs/directory.d.ts.map +1 -0
- package/dist/document_loaders/fs/json.d.cts.map +1 -0
- package/dist/document_loaders/fs/json.d.ts.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.cts.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.ts.map +1 -0
- package/dist/document_loaders/fs/text.d.cts.map +1 -0
- package/dist/document_loaders/fs/text.d.ts.map +1 -0
- package/dist/document_transformers/openai_functions.d.cts.map +1 -0
- package/dist/document_transformers/openai_functions.d.ts.map +1 -0
- package/dist/embeddings/cache_backed.d.cts.map +1 -0
- package/dist/embeddings/cache_backed.d.ts.map +1 -0
- package/dist/evaluation/agents/trajectory.d.cts +2 -2
- package/dist/evaluation/agents/trajectory.d.cts.map +1 -0
- package/dist/evaluation/agents/trajectory.d.ts +2 -2
- package/dist/evaluation/agents/trajectory.d.ts.map +1 -0
- package/dist/evaluation/base.d.cts +1 -3
- package/dist/evaluation/base.d.cts.map +1 -0
- package/dist/evaluation/base.d.ts +1 -3
- package/dist/evaluation/base.d.ts.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.cts +3 -3
- package/dist/evaluation/comparison/pairwise.d.cts.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.ts +3 -3
- package/dist/evaluation/comparison/pairwise.d.ts.map +1 -0
- package/dist/evaluation/criteria/criteria.d.cts +3 -5
- package/dist/evaluation/criteria/criteria.d.cts.map +1 -0
- package/dist/evaluation/criteria/criteria.d.ts +3 -5
- package/dist/evaluation/criteria/criteria.d.ts.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.cts.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.ts.map +1 -0
- package/dist/evaluation/loader.d.cts.map +1 -0
- package/dist/evaluation/loader.d.ts.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.cts.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.ts.map +1 -0
- package/dist/evaluation/types.d.cts.map +1 -0
- package/dist/evaluation/types.d.ts.map +1 -0
- package/dist/experimental/autogpt/agent.d.cts +0 -2
- package/dist/experimental/autogpt/agent.d.cts.map +1 -0
- package/dist/experimental/autogpt/agent.d.ts +0 -2
- package/dist/experimental/autogpt/agent.d.ts.map +1 -0
- package/dist/experimental/autogpt/output_parser.d.cts.map +1 -0
- package/dist/experimental/autogpt/output_parser.d.ts.map +1 -0
- package/dist/experimental/autogpt/prompt.d.cts.map +1 -0
- package/dist/experimental/autogpt/prompt.d.ts +2 -2
- package/dist/experimental/autogpt/prompt.d.ts.map +1 -0
- package/dist/experimental/autogpt/schema.d.cts +0 -1
- package/dist/experimental/autogpt/schema.d.cts.map +1 -0
- package/dist/experimental/autogpt/schema.d.ts +0 -1
- package/dist/experimental/autogpt/schema.d.ts.map +1 -0
- package/dist/experimental/babyagi/agent.d.cts.map +1 -0
- package/dist/experimental/babyagi/agent.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_creation.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_creation.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_execution.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_execution.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.d.ts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.cts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.ts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.cts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.d.cts +8 -16
- package/dist/experimental/generative_agents/generative_agent.d.cts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.d.ts +8 -16
- package/dist/experimental/generative_agents/generative_agent.d.ts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts +0 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts.map +1 -0
- package/dist/experimental/masking/parser.d.cts.map +1 -0
- package/dist/experimental/masking/parser.d.ts.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.d.cts.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.d.ts.map +1 -0
- package/dist/experimental/masking/transformer.d.cts.map +1 -0
- package/dist/experimental/masking/transformer.d.ts.map +1 -0
- package/dist/experimental/masking/types.d.cts.map +1 -0
- package/dist/experimental/masking/types.d.ts.map +1 -0
- package/dist/experimental/openai_assistant/index.d.cts +1 -5
- package/dist/experimental/openai_assistant/index.d.cts.map +1 -0
- package/dist/experimental/openai_assistant/index.d.ts +1 -5
- package/dist/experimental/openai_assistant/index.d.ts.map +1 -0
- package/dist/experimental/openai_assistant/schema.d.cts +0 -1
- package/dist/experimental/openai_assistant/schema.d.cts.map +1 -0
- package/dist/experimental/openai_assistant/schema.d.ts +0 -1
- package/dist/experimental/openai_assistant/schema.d.ts.map +1 -0
- package/dist/experimental/openai_files/index.d.cts.map +1 -0
- package/dist/experimental/openai_files/index.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/base.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/base.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.d.ts.map +1 -0
- package/dist/experimental/prompts/custom_format.d.cts +2 -8
- package/dist/experimental/prompts/custom_format.d.cts.map +1 -0
- package/dist/experimental/prompts/custom_format.d.ts +2 -8
- package/dist/experimental/prompts/custom_format.d.ts.map +1 -0
- package/dist/experimental/prompts/handlebars.d.cts +2 -6
- package/dist/experimental/prompts/handlebars.d.cts.map +1 -0
- package/dist/experimental/prompts/handlebars.d.ts +2 -6
- package/dist/experimental/prompts/handlebars.d.ts.map +1 -0
- package/dist/hub/base.cjs +1 -1
- package/dist/hub/base.cjs.map +1 -1
- package/dist/hub/base.d.cts.map +1 -0
- package/dist/hub/base.d.ts.map +1 -0
- package/dist/hub/base.js +1 -1
- package/dist/hub/index.d.cts +0 -1
- package/dist/hub/index.d.cts.map +1 -0
- package/dist/hub/index.d.ts +0 -1
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/node.d.cts.map +1 -0
- package/dist/hub/node.d.ts.map +1 -0
- package/dist/load/import_map.cjs +2 -2
- package/dist/load/import_map.cjs.map +1 -1
- package/dist/load/import_map.js +2 -2
- package/dist/load/import_map.js.map +1 -1
- package/dist/load/import_type.d.cts +0 -1
- package/dist/load/import_type.d.cts.map +1 -0
- package/dist/load/import_type.d.ts +0 -1
- package/dist/load/import_type.d.ts.map +1 -0
- package/dist/load/index.d.cts +1 -7
- package/dist/load/index.d.cts.map +1 -0
- package/dist/load/index.d.ts +1 -7
- package/dist/load/index.d.ts.map +1 -0
- package/dist/load/map_keys.d.cts +0 -1
- package/dist/load/map_keys.d.cts.map +1 -0
- package/dist/load/map_keys.d.ts +0 -1
- package/dist/load/map_keys.d.ts.map +1 -0
- package/dist/load/serializable.d.cts +1 -8
- package/dist/load/serializable.d.ts +1 -8
- package/dist/memory/buffer_memory.d.cts.map +1 -0
- package/dist/memory/buffer_memory.d.ts.map +1 -0
- package/dist/memory/buffer_token_memory.d.cts +1 -6
- package/dist/memory/buffer_token_memory.d.cts.map +1 -0
- package/dist/memory/buffer_token_memory.d.ts +1 -6
- package/dist/memory/buffer_token_memory.d.ts.map +1 -0
- package/dist/memory/buffer_window_memory.d.cts.map +1 -0
- package/dist/memory/buffer_window_memory.d.ts.map +1 -0
- package/dist/memory/chat_memory.d.cts.map +1 -0
- package/dist/memory/chat_memory.d.ts.map +1 -0
- package/dist/memory/combined_memory.d.cts.map +1 -0
- package/dist/memory/combined_memory.d.ts.map +1 -0
- package/dist/memory/entity_memory.d.cts +0 -5
- package/dist/memory/entity_memory.d.cts.map +1 -0
- package/dist/memory/entity_memory.d.ts +0 -5
- package/dist/memory/entity_memory.d.ts.map +1 -0
- package/dist/memory/prompt.d.cts.map +1 -0
- package/dist/memory/prompt.d.ts.map +1 -0
- package/dist/memory/stores/entity/base.d.cts.map +1 -0
- package/dist/memory/stores/entity/base.d.ts.map +1 -0
- package/dist/memory/summary.d.cts.map +1 -0
- package/dist/memory/summary.d.ts.map +1 -0
- package/dist/memory/summary_buffer.d.cts.map +1 -0
- package/dist/memory/summary_buffer.d.ts.map +1 -0
- package/dist/memory/vector_store.d.cts.map +1 -0
- package/dist/memory/vector_store.d.ts.map +1 -0
- package/dist/output_parsers/combining.d.cts +0 -1
- package/dist/output_parsers/combining.d.cts.map +1 -0
- package/dist/output_parsers/combining.d.ts +0 -1
- package/dist/output_parsers/combining.d.ts.map +1 -0
- package/dist/output_parsers/datetime.d.cts.map +1 -0
- package/dist/output_parsers/datetime.d.ts.map +1 -0
- package/dist/output_parsers/expression.d.cts.map +1 -0
- package/dist/output_parsers/expression.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.cts +0 -1
- package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.ts +0 -1
- package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -0
- package/dist/output_parsers/fix.d.cts.map +1 -0
- package/dist/output_parsers/fix.d.ts.map +1 -0
- package/dist/output_parsers/http_response.d.cts.map +1 -0
- package/dist/output_parsers/http_response.d.ts.map +1 -0
- package/dist/output_parsers/openai_functions.d.cts.map +1 -0
- package/dist/output_parsers/openai_functions.d.ts.map +1 -0
- package/dist/output_parsers/openai_tools.d.cts +1 -4
- package/dist/output_parsers/openai_tools.d.cts.map +1 -0
- package/dist/output_parsers/openai_tools.d.ts +1 -4
- package/dist/output_parsers/openai_tools.d.ts.map +1 -0
- package/dist/output_parsers/regex.d.cts.map +1 -0
- package/dist/output_parsers/regex.d.ts.map +1 -0
- package/dist/output_parsers/router.d.cts.map +1 -0
- package/dist/output_parsers/router.d.ts.map +1 -0
- package/dist/output_parsers/structured.d.cts +2 -2
- package/dist/output_parsers/structured.d.cts.map +1 -0
- package/dist/output_parsers/structured.d.ts +2 -2
- package/dist/output_parsers/structured.d.ts.map +1 -0
- package/dist/retrievers/contextual_compression.d.cts.map +1 -0
- package/dist/retrievers/contextual_compression.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/index.d.cts +0 -1
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/index.d.ts +0 -1
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -0
- package/dist/retrievers/ensemble.d.cts.map +1 -0
- package/dist/retrievers/ensemble.d.ts.map +1 -0
- package/dist/retrievers/hyde.d.cts.map +1 -0
- package/dist/retrievers/hyde.d.ts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.cts +0 -1
- package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.ts +0 -1
- package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -0
- package/dist/retrievers/multi_query.d.cts +0 -2
- package/dist/retrievers/multi_query.d.cts.map +1 -0
- package/dist/retrievers/multi_query.d.ts +0 -2
- package/dist/retrievers/multi_query.d.ts.map +1 -0
- package/dist/retrievers/multi_vector.d.cts.map +1 -0
- package/dist/retrievers/multi_vector.d.ts.map +1 -0
- package/dist/retrievers/parent_document.d.cts +0 -1
- package/dist/retrievers/parent_document.d.cts.map +1 -0
- package/dist/retrievers/parent_document.d.ts +0 -1
- package/dist/retrievers/parent_document.d.ts.map +1 -0
- package/dist/retrievers/score_threshold.d.cts.map +1 -0
- package/dist/retrievers/score_threshold.d.ts.map +1 -0
- package/dist/retrievers/self_query/index.d.cts.map +1 -0
- package/dist/retrievers/self_query/index.d.ts.map +1 -0
- package/dist/retrievers/time_weighted.d.cts.map +1 -0
- package/dist/retrievers/time_weighted.d.ts.map +1 -0
- package/dist/schema/prompt_template.d.cts +2 -2
- package/dist/schema/prompt_template.d.cts.map +1 -0
- package/dist/schema/prompt_template.d.ts +2 -2
- package/dist/schema/prompt_template.d.ts.map +1 -0
- package/dist/schema/query_constructor.d.cts.map +1 -0
- package/dist/schema/query_constructor.d.ts.map +1 -0
- package/dist/smith/config.d.cts +1 -11
- package/dist/smith/config.d.cts.map +1 -0
- package/dist/smith/config.d.ts +1 -11
- package/dist/smith/config.d.ts.map +1 -0
- package/dist/smith/runner_utils.cjs +4 -6
- package/dist/smith/runner_utils.cjs.map +1 -1
- package/dist/smith/runner_utils.d.cts +2 -7
- package/dist/smith/runner_utils.d.cts.map +1 -0
- package/dist/smith/runner_utils.d.ts +2 -7
- package/dist/smith/runner_utils.d.ts.map +1 -0
- package/dist/smith/runner_utils.js +1 -3
- package/dist/smith/runner_utils.js.map +1 -1
- package/dist/sql_db.d.cts.map +1 -0
- package/dist/sql_db.d.ts.map +1 -0
- package/dist/storage/encoder_backed.d.cts +0 -1
- package/dist/storage/encoder_backed.d.cts.map +1 -0
- package/dist/storage/encoder_backed.d.ts +0 -1
- package/dist/storage/encoder_backed.d.ts.map +1 -0
- package/dist/storage/file_system.d.cts.map +1 -0
- package/dist/storage/file_system.d.ts.map +1 -0
- package/dist/stores/doc/base.d.cts.map +1 -0
- package/dist/stores/doc/base.d.ts.map +1 -0
- package/dist/stores/doc/in_memory.d.cts +0 -1
- package/dist/stores/doc/in_memory.d.cts.map +1 -0
- package/dist/stores/doc/in_memory.d.ts +0 -1
- package/dist/stores/doc/in_memory.d.ts.map +1 -0
- package/dist/stores/file/base.d.cts.map +1 -0
- package/dist/stores/file/base.d.ts.map +1 -0
- package/dist/stores/file/in_memory.d.cts.map +1 -0
- package/dist/stores/file/in_memory.d.ts.map +1 -0
- package/dist/stores/file/node.d.cts.map +1 -0
- package/dist/stores/file/node.d.ts.map +1 -0
- package/dist/text_splitter.d.cts.map +1 -0
- package/dist/text_splitter.d.ts.map +1 -0
- package/dist/tools/chain.d.cts.map +1 -0
- package/dist/tools/chain.d.ts.map +1 -0
- package/dist/tools/fs.d.cts.map +1 -0
- package/dist/tools/fs.d.ts.map +1 -0
- package/dist/tools/json.d.cts.map +1 -0
- package/dist/tools/json.d.ts.map +1 -0
- package/dist/tools/render.d.cts.map +1 -0
- package/dist/tools/render.d.ts.map +1 -0
- package/dist/tools/requests.d.cts.map +1 -0
- package/dist/tools/requests.d.ts.map +1 -0
- package/dist/tools/retriever.d.cts.map +1 -0
- package/dist/tools/retriever.d.ts.map +1 -0
- package/dist/tools/sql.d.cts.map +1 -0
- package/dist/tools/sql.d.ts.map +1 -0
- package/dist/tools/vectorstore.d.cts.map +1 -0
- package/dist/tools/vectorstore.d.ts.map +1 -0
- package/dist/tools/webbrowser.d.cts +0 -1
- package/dist/tools/webbrowser.d.cts.map +1 -0
- package/dist/tools/webbrowser.d.ts +0 -1
- package/dist/tools/webbrowser.d.ts.map +1 -0
- package/dist/types/expression-parser.d.cts +0 -3
- package/dist/types/expression-parser.d.cts.map +1 -0
- package/dist/types/expression-parser.d.ts +0 -3
- package/dist/types/expression-parser.d.ts.map +1 -0
- package/dist/types/type-utils.d.cts +0 -2
- package/dist/types/type-utils.d.cts.map +1 -0
- package/dist/types/type-utils.d.ts +0 -2
- package/dist/types/type-utils.d.ts.map +1 -0
- package/dist/util/document.d.cts.map +1 -0
- package/dist/util/document.d.ts.map +1 -0
- package/dist/util/hub.cjs +2 -2
- package/dist/util/hub.cjs.map +1 -1
- package/dist/util/hub.js +1 -1
- package/dist/util/hub.js.map +1 -1
- package/dist/util/is-network-error/index.cjs +27 -0
- package/dist/util/is-network-error/index.cjs.map +1 -0
- package/dist/util/is-network-error/index.js +26 -0
- package/dist/util/is-network-error/index.js.map +1 -0
- package/dist/util/load.d.cts +0 -1
- package/dist/util/load.d.cts.map +1 -0
- package/dist/util/load.d.ts +0 -1
- package/dist/util/load.d.ts.map +1 -0
- package/dist/util/ml-distance/similarities.d.cts.map +1 -0
- package/dist/util/ml-distance/similarities.d.ts.map +1 -0
- package/dist/util/openapi.d.cts +0 -2
- package/dist/util/openapi.d.cts.map +1 -0
- package/dist/util/openapi.d.ts +0 -2
- package/dist/util/openapi.d.ts.map +1 -0
- package/dist/util/p-retry/index.cjs +141 -0
- package/dist/util/p-retry/index.cjs.map +1 -0
- package/dist/util/p-retry/index.js +141 -0
- package/dist/util/p-retry/index.js.map +1 -0
- package/dist/util/sql_utils.d.cts.map +1 -0
- package/dist/util/sql_utils.d.ts.map +1 -0
- package/dist/util/time.d.cts.map +1 -0
- package/dist/util/time.d.ts.map +1 -0
- package/dist/vectorstores/memory.d.cts +0 -1
- package/dist/vectorstores/memory.d.cts.map +1 -0
- package/dist/vectorstores/memory.d.ts +0 -1
- package/dist/vectorstores/memory.d.ts.map +1 -0
- package/package.json +19 -19
- package/agents/format_scratchpad/log.cjs +0 -1
- package/agents/format_scratchpad/log.d.cts +0 -1
- package/agents/format_scratchpad/log.d.ts +0 -1
- package/agents/format_scratchpad/log.js +0 -1
- package/agents/format_scratchpad/log_to_message.cjs +0 -1
- package/agents/format_scratchpad/log_to_message.d.cts +0 -1
- package/agents/format_scratchpad/log_to_message.d.ts +0 -1
- package/agents/format_scratchpad/log_to_message.js +0 -1
- package/agents/format_scratchpad/openai_functions.cjs +0 -1
- package/agents/format_scratchpad/openai_functions.d.cts +0 -1
- package/agents/format_scratchpad/openai_functions.d.ts +0 -1
- package/agents/format_scratchpad/openai_functions.js +0 -1
- package/agents/format_scratchpad/openai_tools.cjs +0 -1
- package/agents/format_scratchpad/openai_tools.d.cts +0 -1
- package/agents/format_scratchpad/openai_tools.d.ts +0 -1
- package/agents/format_scratchpad/openai_tools.js +0 -1
- package/agents/format_scratchpad/xml.cjs +0 -1
- package/agents/format_scratchpad/xml.d.cts +0 -1
- package/agents/format_scratchpad/xml.d.ts +0 -1
- package/agents/format_scratchpad/xml.js +0 -1
- package/agents/load.cjs +0 -1
- package/agents/load.d.cts +0 -1
- package/agents/load.d.ts +0 -1
- package/agents/load.js +0 -1
- package/agents/openai/output_parser.cjs +0 -1
- package/agents/openai/output_parser.d.cts +0 -1
- package/agents/openai/output_parser.d.ts +0 -1
- package/agents/openai/output_parser.js +0 -1
- package/agents/react/output_parser.cjs +0 -1
- package/agents/react/output_parser.d.cts +0 -1
- package/agents/react/output_parser.d.ts +0 -1
- package/agents/react/output_parser.js +0 -1
- package/agents/toolkits/sql.cjs +0 -1
- package/agents/toolkits/sql.d.cts +0 -1
- package/agents/toolkits/sql.d.ts +0 -1
- package/agents/toolkits/sql.js +0 -1
- package/agents/toolkits.cjs +0 -1
- package/agents/toolkits.d.cts +0 -1
- package/agents/toolkits.d.ts +0 -1
- package/agents/toolkits.js +0 -1
- package/agents/xml/output_parser.cjs +0 -1
- package/agents/xml/output_parser.d.cts +0 -1
- package/agents/xml/output_parser.d.ts +0 -1
- package/agents/xml/output_parser.js +0 -1
- package/agents.cjs +0 -1
- package/agents.d.cts +0 -1
- package/agents.d.ts +0 -1
- package/agents.js +0 -1
- package/cache/file_system.cjs +0 -1
- package/cache/file_system.d.cts +0 -1
- package/cache/file_system.d.ts +0 -1
- package/cache/file_system.js +0 -1
- package/callbacks.cjs +0 -1
- package/callbacks.d.cts +0 -1
- package/callbacks.d.ts +0 -1
- package/callbacks.js +0 -1
- package/chains/combine_documents/reduce.cjs +0 -1
- package/chains/combine_documents/reduce.d.cts +0 -1
- package/chains/combine_documents/reduce.d.ts +0 -1
- package/chains/combine_documents/reduce.js +0 -1
- package/chains/combine_documents.cjs +0 -1
- package/chains/combine_documents.d.cts +0 -1
- package/chains/combine_documents.d.ts +0 -1
- package/chains/combine_documents.js +0 -1
- package/chains/graph_qa/cypher.cjs +0 -1
- package/chains/graph_qa/cypher.d.cts +0 -1
- package/chains/graph_qa/cypher.d.ts +0 -1
- package/chains/graph_qa/cypher.js +0 -1
- package/chains/history_aware_retriever.cjs +0 -1
- package/chains/history_aware_retriever.d.cts +0 -1
- package/chains/history_aware_retriever.d.ts +0 -1
- package/chains/history_aware_retriever.js +0 -1
- package/chains/load.cjs +0 -1
- package/chains/load.d.cts +0 -1
- package/chains/load.d.ts +0 -1
- package/chains/load.js +0 -1
- package/chains/openai_functions.cjs +0 -1
- package/chains/openai_functions.d.cts +0 -1
- package/chains/openai_functions.d.ts +0 -1
- package/chains/openai_functions.js +0 -1
- package/chains/query_constructor/ir.cjs +0 -1
- package/chains/query_constructor/ir.d.cts +0 -1
- package/chains/query_constructor/ir.d.ts +0 -1
- package/chains/query_constructor/ir.js +0 -1
- package/chains/query_constructor.cjs +0 -1
- package/chains/query_constructor.d.cts +0 -1
- package/chains/query_constructor.d.ts +0 -1
- package/chains/query_constructor.js +0 -1
- package/chains/retrieval.cjs +0 -1
- package/chains/retrieval.d.cts +0 -1
- package/chains/retrieval.d.ts +0 -1
- package/chains/retrieval.js +0 -1
- package/chains/sql_db.cjs +0 -1
- package/chains/sql_db.d.cts +0 -1
- package/chains/sql_db.d.ts +0 -1
- package/chains/sql_db.js +0 -1
- package/chains.cjs +0 -1
- package/chains.d.cts +0 -1
- package/chains.d.ts +0 -1
- package/chains.js +0 -1
- package/chat_models/universal.cjs +0 -1
- package/chat_models/universal.d.cts +0 -1
- package/chat_models/universal.d.ts +0 -1
- package/chat_models/universal.js +0 -1
- package/dist/langchain-core/dist/load/map_keys.d.cts +0 -10
- package/dist/langchain-core/dist/load/serializable.d.cts +0 -82
- package/dist/langchain-core/dist/messages/base.d.cts +0 -127
- package/dist/langchain-core/dist/messages/content/base.d.cts +0 -22
- package/dist/langchain-core/dist/messages/content/data.d.cts +0 -96
- package/dist/langchain-core/dist/messages/content/index.d.cts +0 -121
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts +0 -110
- package/dist/langchain-core/dist/messages/content/tools.d.cts +0 -130
- package/dist/langchain-core/dist/messages/format.d.cts +0 -8
- package/dist/langchain-core/dist/messages/message.d.cts +0 -598
- package/dist/langchain-core/dist/messages/metadata.d.cts +0 -100
- package/dist/langchain-core/dist/messages/utils.d.cts +0 -75
- package/dist/langchain-core/dist/prompt_values.d.cts +0 -13
- package/dist/langchain-core/dist/tools/types.d.cts +0 -28
- package/dist/langchain-core/dist/utils/types/index.d.cts +0 -8
- package/dist/libs/langchain-core/dist/callbacks/base.d.ts +0 -1
- package/dist/libs/langchain-core/dist/callbacks/manager.d.ts +0 -2
- package/dist/libs/langchain-core/dist/language_models/base.d.ts +0 -8
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts +0 -10
- package/dist/libs/langchain-core/dist/load/serializable.d.ts +0 -82
- package/dist/libs/langchain-core/dist/messages/base.d.ts +0 -127
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts +0 -22
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts +0 -96
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts +0 -121
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +0 -110
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +0 -130
- package/dist/libs/langchain-core/dist/messages/format.d.ts +0 -8
- package/dist/libs/langchain-core/dist/messages/message.d.ts +0 -598
- package/dist/libs/langchain-core/dist/messages/metadata.d.ts +0 -100
- package/dist/libs/langchain-core/dist/messages/utils.d.ts +0 -75
- package/dist/libs/langchain-core/dist/prompt_values.d.ts +0 -13
- package/dist/libs/langchain-core/dist/runnables/base.d.ts +0 -8
- package/dist/libs/langchain-core/dist/runnables/config.d.ts +0 -2
- package/dist/libs/langchain-core/dist/runnables/graph.d.ts +0 -1
- package/dist/libs/langchain-core/dist/runnables/types.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tools/types.d.ts +0 -36
- package/dist/libs/langchain-core/dist/tracers/base.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tracers/event_stream.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tracers/log_stream.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/json_schema.d.ts +0 -8
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts +0 -10
- package/dist/libs/langchain-core/dist/utils/types/zod.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/Options.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/Refs.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/errorMessages.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/index.d.ts +0 -13
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseDef.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseTypes.d.ts +0 -21
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/any.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/array.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/branded.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/catch.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/date.d.ts +0 -5
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/default.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/effects.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/enum.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/literal.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/map.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/never.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/null.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/number.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/object.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/optional.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/pipeline.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/promise.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/readonly.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/record.d.ts +0 -5
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/set.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/string.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/undefined.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/union.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/unknown.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/selectParser.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/zodToJsonSchema.d.ts +0 -3
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +0 -248
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -244
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +0 -3096
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +0 -3095
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs +0 -71
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js +0 -38
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs +0 -703
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js +0 -702
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs +0 -7
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs +0 -29
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js +0 -28
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs +0 -115
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js +0 -113
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs +0 -14
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs +0 -94
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js +0 -94
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs +0 -136
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js +0 -131
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs +0 -102
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js +0 -99
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs +0 -18
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js +0 -16
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +0 -6
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +0 -27
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +0 -23
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +0 -267
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +0 -263
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +0 -32
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +0 -28
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +0 -49
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +0 -45
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +0 -52
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +0 -48
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +0 -86
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +0 -294
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +0 -290
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +0 -191
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +0 -187
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +0 -39
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +0 -29
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +0 -146
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +0 -142
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +0 -94
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +0 -55
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +0 -74
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +0 -70
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +0 -112
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +0 -108
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +0 -27
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +0 -1
- package/document.cjs +0 -1
- package/document.d.cts +0 -1
- package/document.d.ts +0 -1
- package/document.js +0 -1
- package/document_loaders/base.cjs +0 -1
- package/document_loaders/base.d.cts +0 -1
- package/document_loaders/base.d.ts +0 -1
- package/document_loaders/base.js +0 -1
- package/document_loaders/fs/buffer.cjs +0 -1
- package/document_loaders/fs/buffer.d.cts +0 -1
- package/document_loaders/fs/buffer.d.ts +0 -1
- package/document_loaders/fs/buffer.js +0 -1
- package/document_loaders/fs/directory.cjs +0 -1
- package/document_loaders/fs/directory.d.cts +0 -1
- package/document_loaders/fs/directory.d.ts +0 -1
- package/document_loaders/fs/directory.js +0 -1
- package/document_loaders/fs/json.cjs +0 -1
- package/document_loaders/fs/json.d.cts +0 -1
- package/document_loaders/fs/json.d.ts +0 -1
- package/document_loaders/fs/json.js +0 -1
- package/document_loaders/fs/multi_file.cjs +0 -1
- package/document_loaders/fs/multi_file.d.cts +0 -1
- package/document_loaders/fs/multi_file.d.ts +0 -1
- package/document_loaders/fs/multi_file.js +0 -1
- package/document_loaders/fs/text.cjs +0 -1
- package/document_loaders/fs/text.d.cts +0 -1
- package/document_loaders/fs/text.d.ts +0 -1
- package/document_loaders/fs/text.js +0 -1
- package/document_transformers/openai_functions.cjs +0 -1
- package/document_transformers/openai_functions.d.cts +0 -1
- package/document_transformers/openai_functions.d.ts +0 -1
- package/document_transformers/openai_functions.js +0 -1
- package/embeddings/cache_backed.cjs +0 -1
- package/embeddings/cache_backed.d.cts +0 -1
- package/embeddings/cache_backed.d.ts +0 -1
- package/embeddings/cache_backed.js +0 -1
- package/embeddings/fake.cjs +0 -1
- package/embeddings/fake.d.cts +0 -1
- package/embeddings/fake.d.ts +0 -1
- package/embeddings/fake.js +0 -1
- package/evaluation.cjs +0 -1
- package/evaluation.d.cts +0 -1
- package/evaluation.d.ts +0 -1
- package/evaluation.js +0 -1
- package/experimental/autogpt.cjs +0 -1
- package/experimental/autogpt.d.cts +0 -1
- package/experimental/autogpt.d.ts +0 -1
- package/experimental/autogpt.js +0 -1
- package/experimental/babyagi.cjs +0 -1
- package/experimental/babyagi.d.cts +0 -1
- package/experimental/babyagi.d.ts +0 -1
- package/experimental/babyagi.js +0 -1
- package/experimental/chains/violation_of_expectations.cjs +0 -1
- package/experimental/chains/violation_of_expectations.d.cts +0 -1
- package/experimental/chains/violation_of_expectations.d.ts +0 -1
- package/experimental/chains/violation_of_expectations.js +0 -1
- package/experimental/generative_agents.cjs +0 -1
- package/experimental/generative_agents.d.cts +0 -1
- package/experimental/generative_agents.d.ts +0 -1
- package/experimental/generative_agents.js +0 -1
- package/experimental/masking.cjs +0 -1
- package/experimental/masking.d.cts +0 -1
- package/experimental/masking.d.ts +0 -1
- package/experimental/masking.js +0 -1
- package/experimental/openai_assistant.cjs +0 -1
- package/experimental/openai_assistant.d.cts +0 -1
- package/experimental/openai_assistant.d.ts +0 -1
- package/experimental/openai_assistant.js +0 -1
- package/experimental/openai_files.cjs +0 -1
- package/experimental/openai_files.d.cts +0 -1
- package/experimental/openai_files.d.ts +0 -1
- package/experimental/openai_files.js +0 -1
- package/experimental/plan_and_execute.cjs +0 -1
- package/experimental/plan_and_execute.d.cts +0 -1
- package/experimental/plan_and_execute.d.ts +0 -1
- package/experimental/plan_and_execute.js +0 -1
- package/experimental/prompts/custom_format.cjs +0 -1
- package/experimental/prompts/custom_format.d.cts +0 -1
- package/experimental/prompts/custom_format.d.ts +0 -1
- package/experimental/prompts/custom_format.js +0 -1
- package/experimental/prompts/handlebars.cjs +0 -1
- package/experimental/prompts/handlebars.d.cts +0 -1
- package/experimental/prompts/handlebars.d.ts +0 -1
- package/experimental/prompts/handlebars.js +0 -1
- package/hub/node.cjs +0 -1
- package/hub/node.d.cts +0 -1
- package/hub/node.d.ts +0 -1
- package/hub/node.js +0 -1
- package/hub.cjs +0 -1
- package/hub.d.cts +0 -1
- package/hub.d.ts +0 -1
- package/hub.js +0 -1
- package/indexes.cjs +0 -1
- package/indexes.d.cts +0 -1
- package/indexes.d.ts +0 -1
- package/indexes.js +0 -1
- package/load/serializable.cjs +0 -1
- package/load/serializable.d.cts +0 -1
- package/load/serializable.d.ts +0 -1
- package/load/serializable.js +0 -1
- package/load.cjs +0 -1
- package/load.d.cts +0 -1
- package/load.d.ts +0 -1
- package/load.js +0 -1
- package/memory/chat_memory.cjs +0 -1
- package/memory/chat_memory.d.cts +0 -1
- package/memory/chat_memory.d.ts +0 -1
- package/memory/chat_memory.js +0 -1
- package/memory.cjs +0 -1
- package/memory.d.cts +0 -1
- package/memory.d.ts +0 -1
- package/memory.js +0 -1
- package/output_parsers/expression.cjs +0 -1
- package/output_parsers/expression.d.cts +0 -1
- package/output_parsers/expression.d.ts +0 -1
- package/output_parsers/expression.js +0 -1
- package/output_parsers.cjs +0 -1
- package/output_parsers.d.cts +0 -1
- package/output_parsers.d.ts +0 -1
- package/output_parsers.js +0 -1
- package/retrievers/contextual_compression.cjs +0 -1
- package/retrievers/contextual_compression.d.cts +0 -1
- package/retrievers/contextual_compression.d.ts +0 -1
- package/retrievers/contextual_compression.js +0 -1
- package/retrievers/document_compressors/chain_extract.cjs +0 -1
- package/retrievers/document_compressors/chain_extract.d.cts +0 -1
- package/retrievers/document_compressors/chain_extract.d.ts +0 -1
- package/retrievers/document_compressors/chain_extract.js +0 -1
- package/retrievers/document_compressors/embeddings_filter.cjs +0 -1
- package/retrievers/document_compressors/embeddings_filter.d.cts +0 -1
- package/retrievers/document_compressors/embeddings_filter.d.ts +0 -1
- package/retrievers/document_compressors/embeddings_filter.js +0 -1
- package/retrievers/document_compressors.cjs +0 -1
- package/retrievers/document_compressors.d.cts +0 -1
- package/retrievers/document_compressors.d.ts +0 -1
- package/retrievers/document_compressors.js +0 -1
- package/retrievers/ensemble.cjs +0 -1
- package/retrievers/ensemble.d.cts +0 -1
- package/retrievers/ensemble.d.ts +0 -1
- package/retrievers/ensemble.js +0 -1
- package/retrievers/hyde.cjs +0 -1
- package/retrievers/hyde.d.cts +0 -1
- package/retrievers/hyde.d.ts +0 -1
- package/retrievers/hyde.js +0 -1
- package/retrievers/matryoshka_retriever.cjs +0 -1
- package/retrievers/matryoshka_retriever.d.cts +0 -1
- package/retrievers/matryoshka_retriever.d.ts +0 -1
- package/retrievers/matryoshka_retriever.js +0 -1
- package/retrievers/multi_query.cjs +0 -1
- package/retrievers/multi_query.d.cts +0 -1
- package/retrievers/multi_query.d.ts +0 -1
- package/retrievers/multi_query.js +0 -1
- package/retrievers/multi_vector.cjs +0 -1
- package/retrievers/multi_vector.d.cts +0 -1
- package/retrievers/multi_vector.d.ts +0 -1
- package/retrievers/multi_vector.js +0 -1
- package/retrievers/parent_document.cjs +0 -1
- package/retrievers/parent_document.d.cts +0 -1
- package/retrievers/parent_document.d.ts +0 -1
- package/retrievers/parent_document.js +0 -1
- package/retrievers/score_threshold.cjs +0 -1
- package/retrievers/score_threshold.d.cts +0 -1
- package/retrievers/score_threshold.d.ts +0 -1
- package/retrievers/score_threshold.js +0 -1
- package/retrievers/self_query/functional.cjs +0 -1
- package/retrievers/self_query/functional.d.cts +0 -1
- package/retrievers/self_query/functional.d.ts +0 -1
- package/retrievers/self_query/functional.js +0 -1
- package/retrievers/self_query.cjs +0 -1
- package/retrievers/self_query.d.cts +0 -1
- package/retrievers/self_query.d.ts +0 -1
- package/retrievers/self_query.js +0 -1
- package/retrievers/time_weighted.cjs +0 -1
- package/retrievers/time_weighted.d.cts +0 -1
- package/retrievers/time_weighted.d.ts +0 -1
- package/retrievers/time_weighted.js +0 -1
- package/schema/prompt_template.cjs +0 -1
- package/schema/prompt_template.d.cts +0 -1
- package/schema/prompt_template.d.ts +0 -1
- package/schema/prompt_template.js +0 -1
- package/schema/query_constructor.cjs +0 -1
- package/schema/query_constructor.d.cts +0 -1
- package/schema/query_constructor.d.ts +0 -1
- package/schema/query_constructor.js +0 -1
- package/smith.cjs +0 -1
- package/smith.d.cts +0 -1
- package/smith.d.ts +0 -1
- package/smith.js +0 -1
- package/sql_db.cjs +0 -1
- package/sql_db.d.cts +0 -1
- package/sql_db.d.ts +0 -1
- package/sql_db.js +0 -1
- package/storage/encoder_backed.cjs +0 -1
- package/storage/encoder_backed.d.cts +0 -1
- package/storage/encoder_backed.d.ts +0 -1
- package/storage/encoder_backed.js +0 -1
- package/storage/file_system.cjs +0 -1
- package/storage/file_system.d.cts +0 -1
- package/storage/file_system.d.ts +0 -1
- package/storage/file_system.js +0 -1
- package/storage/in_memory.cjs +0 -1
- package/storage/in_memory.d.cts +0 -1
- package/storage/in_memory.d.ts +0 -1
- package/storage/in_memory.js +0 -1
- package/stores/doc/base.cjs +0 -1
- package/stores/doc/base.d.cts +0 -1
- package/stores/doc/base.d.ts +0 -1
- package/stores/doc/base.js +0 -1
- package/stores/doc/in_memory.cjs +0 -1
- package/stores/doc/in_memory.d.cts +0 -1
- package/stores/doc/in_memory.d.ts +0 -1
- package/stores/doc/in_memory.js +0 -1
- package/stores/file/in_memory.cjs +0 -1
- package/stores/file/in_memory.d.cts +0 -1
- package/stores/file/in_memory.d.ts +0 -1
- package/stores/file/in_memory.js +0 -1
- package/stores/file/node.cjs +0 -1
- package/stores/file/node.d.cts +0 -1
- package/stores/file/node.d.ts +0 -1
- package/stores/file/node.js +0 -1
- package/stores/message/in_memory.cjs +0 -1
- package/stores/message/in_memory.d.cts +0 -1
- package/stores/message/in_memory.d.ts +0 -1
- package/stores/message/in_memory.js +0 -1
- package/text_splitter.cjs +0 -1
- package/text_splitter.d.cts +0 -1
- package/text_splitter.d.ts +0 -1
- package/text_splitter.js +0 -1
- package/tools/chain.cjs +0 -1
- package/tools/chain.d.cts +0 -1
- package/tools/chain.d.ts +0 -1
- package/tools/chain.js +0 -1
- package/tools/render.cjs +0 -1
- package/tools/render.d.cts +0 -1
- package/tools/render.d.ts +0 -1
- package/tools/render.js +0 -1
- package/tools/retriever.cjs +0 -1
- package/tools/retriever.d.cts +0 -1
- package/tools/retriever.d.ts +0 -1
- package/tools/retriever.js +0 -1
- package/tools/sql.cjs +0 -1
- package/tools/sql.d.cts +0 -1
- package/tools/sql.d.ts +0 -1
- package/tools/sql.js +0 -1
- package/tools/webbrowser.cjs +0 -1
- package/tools/webbrowser.d.cts +0 -1
- package/tools/webbrowser.d.ts +0 -1
- package/tools/webbrowser.js +0 -1
- package/tools.cjs +0 -1
- package/tools.d.cts +0 -1
- package/tools.d.ts +0 -1
- package/tools.js +0 -1
- package/util/document.cjs +0 -1
- package/util/document.d.cts +0 -1
- package/util/document.d.ts +0 -1
- package/util/document.js +0 -1
- package/util/math.cjs +0 -1
- package/util/math.d.cts +0 -1
- package/util/math.d.ts +0 -1
- package/util/math.js +0 -1
- package/util/time.cjs +0 -1
- package/util/time.d.cts +0 -1
- package/util/time.d.ts +0 -1
- package/util/time.js +0 -1
- package/vectorstores/memory.cjs +0 -1
- package/vectorstores/memory.d.cts +0 -1
- package/vectorstores/memory.d.ts +0 -1
- package/vectorstores/memory.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-parser.d.ts","names":["ParseOptions","ParseFunction","Options","StartRule","Start","Program","Identifier","IdentifierName","Literal","NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","DecimalLiteral","PrimaryExpression","ArrayExpression","ObjectExpression","Expression","ElementList","PropertyNameAndValueList","PropertyAssignment","PropertyName","MemberExpression","CallExpression","Arguments","ExpressionStatement","ExpressionNode"],"sources":["../../src/types/expression-parser.d.ts"],"sourcesContent":["export interface ParseOptions {\n filename?: string;\n startRule?: \"Start\";\n tracer?: any;\n [key: string]: any;\n}\nexport type ParseFunction = <Options extends ParseOptions>(input: string, options?: Options) => Options extends {\n startRule: infer StartRule;\n} ? StartRule extends \"Start\" ? Start : Start : Start;\nexport type Start = Program;\nexport type Identifier = IdentifierName;\nexport type IdentifierName = {\n type: \"Identifier\";\n name: string;\n};\nexport type Literal = NullLiteral | BooleanLiteral | NumericLiteral | StringLiteral;\nexport type NullLiteral = {\n type: \"NullLiteral\";\n value: null;\n};\nexport type BooleanLiteral = {\n type: \"BooleanLiteral\";\n value: true;\n} | {\n type: \"BooleanLiteral\";\n value: false;\n};\nexport type NumericLiteral = DecimalLiteral;\nexport type DecimalLiteral = {\n type: \"NumericLiteral\";\n value: number;\n};\nexport type StringLiteral = {\n type: \"StringLiteral\";\n value: string;\n};\nexport type PrimaryExpression = Identifier | Literal | ArrayExpression | ObjectExpression | Expression;\nexport type ArrayExpression = {\n type: \"ArrayExpression\";\n elements: ElementList;\n};\nexport type ElementList = PrimaryExpression[];\nexport type ObjectExpression = {\n type: \"ObjectExpression\";\n properties: [];\n} | {\n type: \"ObjectExpression\";\n properties: PropertyNameAndValueList;\n};\nexport type PropertyNameAndValueList = PrimaryExpression[];\nexport type PropertyAssignment = {\n type: \"PropertyAssignment\";\n key: PropertyName;\n value: Expression;\n kind: \"init\";\n};\nexport type PropertyName = IdentifierName | StringLiteral | NumericLiteral;\nexport type MemberExpression = {\n type: \"MemberExpression\";\n property: StringLiteral;\n computed: true;\n object: MemberExpression | Identifier | StringLiteral;\n} | {\n type: \"MemberExpression\";\n property: Identifier;\n computed: false;\n object: MemberExpression | Identifier | StringLiteral;\n};\nexport type CallExpression = {\n type: \"CallExpression\";\n arguments: Arguments;\n callee: MemberExpression | Identifier;\n};\nexport type Arguments = PrimaryExpression[];\nexport type Expression = CallExpression | MemberExpression;\nexport type ExpressionStatement = {\n type: \"ExpressionStatement\";\n expression: Expression;\n};\nexport type Program = {\n type: \"Program\";\n body: ExpressionStatement;\n};\nexport type ExpressionNode = Program | ExpressionStatement | ArrayExpression | BooleanLiteral | CallExpression | Identifier | MemberExpression | NumericLiteral | ObjectExpression | PropertyAssignment | NullLiteral | StringLiteral;\n//# sourceMappingURL=expression-parser.d.ts.map"],"mappings":";UAAiBA,YAAAA;EAAAA,QAAAA,CAAAA,EAAAA,MAAY;EAMjBC,SAAAA,CAAAA,EAAAA,OAAa;EAAoBD,MAAAA,CAAAA,EAAAA,GAAAA;EAAuCE,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;;AAEhFC,KAFQF,aAAAA,GAERE,CAAAA,gBAFyCH,YAEzCG,CAAAA,CAAAA,KAAAA,EAAAA,MAAAA,EAAAA,OAAAA,CAAAA,EAFgFD,OAEhFC,EAAAA,GAF4FD,OAE5FC,SAAAA;EAA4BC,SAAAA,EAAAA,KAAAA,UAAAA;CAAQA,GAApCD,SAAoCC,SAAAA,OAAAA,GAARA,KAAQA,GAAAA,KAAAA,GAAQA,KAARA;AAAQA,KACpCA,KAAAA,GAAQC,OAD4BD;AAAK,KAEzCE,UAAAA,GAAaC,cAF4B;AACzCH,KAEAG,cAAAA,GAFQF;EACRC,IAAAA,EAAAA,YAAU;EACVC,IAAAA,EAAAA,MAAAA;AAIZ,CAAA;AAAsBE,KAA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CAAmBhB;AAAU,KAf7Be,YAAAA,GAAed,cAec,GAfGK,aAeH,GAfmBD,cAenB;AAE7Ba,KAhBAF,gBAAAA,GAgBYR;EACZG,IAAAA,EAAAA,kBAAU;EACVQ,QAAAA,EAhBEb,aAgBiB;EAInBP,QAAAA,EAAO,IAAA;EAIPqB,MAAAA,EAtBAJ,gBAsBc,GAtBKhB,UAsBL,GAtBkBM,aAsBlB;CAAGP,GAAAA;EAAUoB,IAAAA,EAAAA,kBAAAA;EAAsBV,QAAAA,EAnB/CT,UAmB+CS;EAAkBL,QAAAA,EAAAA,KAAAA;EAAiBa,MAAAA,EAjBpFD,gBAiBoFC,GAjBjEjB,UAiBiEiB,GAjBpDX,aAiBoDW;CAAiBjB;AAAagB,KAflHC,cAAAA,GAekHD;EAAmBX,IAAAA,EAAAA,gBAAAA;EAAiBK,SAAAA,EAbnJQ,SAamJR;EAAmBI,MAAAA,EAZzKE,gBAYyKF,GAZtJd,UAYsJc;CAAqBX;AAAcG,KAV5MY,SAAAA,GAAYV,iBAUgMF,EAAAA;AAAa,KATzNK,UAAAA,GAAaM,cAS4M,GAT3LD,gBAS2L;KARzNG,mBAAAA;;cAEIR;;KAEJZ,OAAAA;;QAEFoB;;KAEEC,cAAAA,GAAiBrB,UAAUoB,sBAAsBV,kBAAkBL,iBAAiBa,iBAAiBjB,aAAagB,mBAAmBX,iBAAiBK,mBAAmBI,qBAAqBX,cAAcG"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
//#region src/types/type-utils.d.ts
|
|
2
|
-
// Utility for marking only some keys of an interface as optional
|
|
3
|
-
// Compare to Partial<T> which marks all keys as optional
|
|
4
2
|
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { Optional };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-utils.d.cts","names":["Optional","T","K","Omit","Pick","Partial"],"sources":["../../src/types/type-utils.d.ts"],"sourcesContent":["export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n//# sourceMappingURL=type-utils.d.ts.map"],"mappings":";KAAYA,4BAA4BC,KAAKE,KAAKF,GAAGC,KAAKG,QAAQD,KAAKH,GAAGC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
//#region src/types/type-utils.d.ts
|
|
2
|
-
// Utility for marking only some keys of an interface as optional
|
|
3
|
-
// Compare to Partial<T> which marks all keys as optional
|
|
4
2
|
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { Optional };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-utils.d.ts","names":["Optional","T","K","Omit","Pick","Partial"],"sources":["../../src/types/type-utils.d.ts"],"sourcesContent":["export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n//# sourceMappingURL=type-utils.d.ts.map"],"mappings":";KAAYA,4BAA4BC,KAAKE,KAAKF,GAAGC,KAAKG,QAAQD,KAAKH,GAAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.cts","names":["Document","formatDocumentsAsString","Record"],"sources":["../../src/util/document.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n/**\n * Given a list of documents, this util formats their contents\n * into a string, separated by newlines.\n *\n * @param documents\n * @returns A string of the documents page content, separated by newlines.\n */\nexport declare const formatDocumentsAsString: (documents: Document<Record<string, any>>[]) => string;\n//# sourceMappingURL=document.d.ts.map"],"mappings":";;;;;;AAQA;;;;;cAAqBC,qCAAqCD,SAASE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","names":["Document","formatDocumentsAsString","Record"],"sources":["../../src/util/document.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n/**\n * Given a list of documents, this util formats their contents\n * into a string, separated by newlines.\n *\n * @param documents\n * @returns A string of the documents page content, separated by newlines.\n */\nexport declare const formatDocumentsAsString: (documents: Document<Record<string, any>>[]) => string;\n//# sourceMappingURL=document.d.ts.map"],"mappings":";;;;;;AAQA;;;;;cAAqBC,qCAAqCD,SAASE"}
|
package/dist/util/hub.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('./p-retry/index.cjs');
|
|
2
3
|
const require_extname = require('./extname.cjs');
|
|
3
|
-
const p_retry = require_rolldown_runtime.__toESM(require("p-retry"));
|
|
4
4
|
const __langchain_core_utils_env = require_rolldown_runtime.__toESM(require("@langchain/core/utils/env"));
|
|
5
5
|
|
|
6
6
|
//#region src/util/hub.ts
|
|
@@ -29,7 +29,7 @@ const loadFromHub = async (uri, loader, validPrefix, validSuffixes, values = {})
|
|
|
29
29
|
ref,
|
|
30
30
|
remotePath
|
|
31
31
|
].join("/");
|
|
32
|
-
const res = await
|
|
32
|
+
const res = await require_index.pRetry(() => fetchWithTimeout(url, { timeout: 5e3 }), { retries: 6 });
|
|
33
33
|
if (res.status !== 200) throw new Error(`Could not find file at ${url}`);
|
|
34
34
|
return loader(await res.text(), remotePath, values);
|
|
35
35
|
};
|
package/dist/util/hub.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub.cjs","names":["url: string","init: Omit<RequestInit, \"signal\"> & { timeout: number }","uri: string","loader: FileLoader<T>","validPrefix: string","validSuffixes: Set<string>","values: LoadValues","extname"],"sources":["../../src/util/hub.ts"],"sourcesContent":["import pRetry from \"p-retry\";\
|
|
1
|
+
{"version":3,"file":"hub.cjs","names":["url: string","init: Omit<RequestInit, \"signal\"> & { timeout: number }","uri: string","loader: FileLoader<T>","validPrefix: string","validSuffixes: Set<string>","values: LoadValues","extname","pRetry"],"sources":["../../src/util/hub.ts"],"sourcesContent":["import pRetry from \"./p-retry/index.js\";\nimport { getEnvironmentVariable } from \"@langchain/core/utils/env\";\nimport { FileLoader, LoadValues } from \"./load.js\";\nimport { extname } from \"./extname.js\";\n\nconst fetchWithTimeout = async (\n url: string,\n init: Omit<RequestInit, \"signal\"> & { timeout: number }\n) => {\n const { timeout, ...rest } = init;\n const res = await fetch(url, {\n ...rest,\n signal: AbortSignal.timeout(timeout),\n });\n return res;\n};\n\nconst HUB_PATH_REGEX = /lc(@[^:]+)?:\\/\\/(.*)/;\n\nconst URL_PATH_SEPARATOR = \"/\";\n\nexport const loadFromHub = async <T>(\n uri: string,\n loader: FileLoader<T>,\n validPrefix: string,\n validSuffixes: Set<string>,\n values: LoadValues = {}\n): Promise<T | undefined> => {\n const LANGCHAIN_HUB_DEFAULT_REF =\n getEnvironmentVariable(\"LANGCHAIN_HUB_DEFAULT_REF\") ?? \"master\";\n const LANGCHAIN_HUB_URL_BASE =\n getEnvironmentVariable(\"LANGCHAIN_HUB_URL_BASE\") ??\n \"https://raw.githubusercontent.com/hwchase17/langchain-hub/\";\n\n const match = uri.match(HUB_PATH_REGEX);\n if (!match) {\n return undefined;\n }\n const [rawRef, remotePath] = match.slice(1);\n const ref = rawRef ? rawRef.slice(1) : LANGCHAIN_HUB_DEFAULT_REF;\n const parts = remotePath.split(URL_PATH_SEPARATOR);\n if (parts[0] !== validPrefix) {\n return undefined;\n }\n\n if (!validSuffixes.has(extname(remotePath).slice(1))) {\n throw new Error(\"Unsupported file type.\");\n }\n\n const url = [LANGCHAIN_HUB_URL_BASE, ref, remotePath].join(\"/\");\n const res = await pRetry(() => fetchWithTimeout(url, { timeout: 5000 }), {\n retries: 6,\n });\n if (res.status !== 200) {\n throw new Error(`Could not find file at ${url}`);\n }\n\n return loader(await res.text(), remotePath, values);\n};\n"],"mappings":";;;;;;AAKA,MAAM,mBAAmB,OACvBA,KACAC,SACG;CACH,MAAM,EAAE,QAAS,GAAG,MAAM,GAAG;CAC7B,MAAM,MAAM,MAAM,MAAM,KAAK;EAC3B,GAAG;EACH,QAAQ,YAAY,QAAQ,QAAQ;CACrC,EAAC;AACF,QAAO;AACR;AAED,MAAM,iBAAiB;AAEvB,MAAM,qBAAqB;AAE3B,MAAa,cAAc,OACzBC,KACAC,QACAC,aACAC,eACAC,SAAqB,CAAE,MACI;CAC3B,MAAM,mFACmB,4BAA4B,IAAI;CACzD,MAAM,gFACmB,yBAAyB,IAChD;CAEF,MAAM,QAAQ,IAAI,MAAM,eAAe;AACvC,KAAI,CAAC,MACH,QAAO;CAET,MAAM,CAAC,QAAQ,WAAW,GAAG,MAAM,MAAM,EAAE;CAC3C,MAAM,MAAM,SAAS,OAAO,MAAM,EAAE,GAAG;CACvC,MAAM,QAAQ,WAAW,MAAM,mBAAmB;AAClD,KAAI,MAAM,OAAO,YACf,QAAO;AAGT,KAAI,CAAC,cAAc,IAAIC,wBAAQ,WAAW,CAAC,MAAM,EAAE,CAAC,CAClD,OAAM,IAAI,MAAM;CAGlB,MAAM,MAAM;EAAC;EAAwB;EAAK;CAAW,EAAC,KAAK,IAAI;CAC/D,MAAM,MAAM,MAAMC,qBAAO,MAAM,iBAAiB,KAAK,EAAE,SAAS,IAAM,EAAC,EAAE,EACvE,SAAS,EACV,EAAC;AACF,KAAI,IAAI,WAAW,IACjB,OAAM,IAAI,MAAM,CAAC,uBAAuB,EAAE,KAAK;AAGjD,QAAO,OAAO,MAAM,IAAI,MAAM,EAAE,YAAY,OAAO;AACpD"}
|
package/dist/util/hub.js
CHANGED
package/dist/util/hub.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub.js","names":["url: string","init: Omit<RequestInit, \"signal\"> & { timeout: number }","uri: string","loader: FileLoader<T>","validPrefix: string","validSuffixes: Set<string>","values: LoadValues"],"sources":["../../src/util/hub.ts"],"sourcesContent":["import pRetry from \"p-retry\";\
|
|
1
|
+
{"version":3,"file":"hub.js","names":["url: string","init: Omit<RequestInit, \"signal\"> & { timeout: number }","uri: string","loader: FileLoader<T>","validPrefix: string","validSuffixes: Set<string>","values: LoadValues"],"sources":["../../src/util/hub.ts"],"sourcesContent":["import pRetry from \"./p-retry/index.js\";\nimport { getEnvironmentVariable } from \"@langchain/core/utils/env\";\nimport { FileLoader, LoadValues } from \"./load.js\";\nimport { extname } from \"./extname.js\";\n\nconst fetchWithTimeout = async (\n url: string,\n init: Omit<RequestInit, \"signal\"> & { timeout: number }\n) => {\n const { timeout, ...rest } = init;\n const res = await fetch(url, {\n ...rest,\n signal: AbortSignal.timeout(timeout),\n });\n return res;\n};\n\nconst HUB_PATH_REGEX = /lc(@[^:]+)?:\\/\\/(.*)/;\n\nconst URL_PATH_SEPARATOR = \"/\";\n\nexport const loadFromHub = async <T>(\n uri: string,\n loader: FileLoader<T>,\n validPrefix: string,\n validSuffixes: Set<string>,\n values: LoadValues = {}\n): Promise<T | undefined> => {\n const LANGCHAIN_HUB_DEFAULT_REF =\n getEnvironmentVariable(\"LANGCHAIN_HUB_DEFAULT_REF\") ?? \"master\";\n const LANGCHAIN_HUB_URL_BASE =\n getEnvironmentVariable(\"LANGCHAIN_HUB_URL_BASE\") ??\n \"https://raw.githubusercontent.com/hwchase17/langchain-hub/\";\n\n const match = uri.match(HUB_PATH_REGEX);\n if (!match) {\n return undefined;\n }\n const [rawRef, remotePath] = match.slice(1);\n const ref = rawRef ? rawRef.slice(1) : LANGCHAIN_HUB_DEFAULT_REF;\n const parts = remotePath.split(URL_PATH_SEPARATOR);\n if (parts[0] !== validPrefix) {\n return undefined;\n }\n\n if (!validSuffixes.has(extname(remotePath).slice(1))) {\n throw new Error(\"Unsupported file type.\");\n }\n\n const url = [LANGCHAIN_HUB_URL_BASE, ref, remotePath].join(\"/\");\n const res = await pRetry(() => fetchWithTimeout(url, { timeout: 5000 }), {\n retries: 6,\n });\n if (res.status !== 200) {\n throw new Error(`Could not find file at ${url}`);\n }\n\n return loader(await res.text(), remotePath, values);\n};\n"],"mappings":";;;;;AAKA,MAAM,mBAAmB,OACvBA,KACAC,SACG;CACH,MAAM,EAAE,QAAS,GAAG,MAAM,GAAG;CAC7B,MAAM,MAAM,MAAM,MAAM,KAAK;EAC3B,GAAG;EACH,QAAQ,YAAY,QAAQ,QAAQ;CACrC,EAAC;AACF,QAAO;AACR;AAED,MAAM,iBAAiB;AAEvB,MAAM,qBAAqB;AAE3B,MAAa,cAAc,OACzBC,KACAC,QACAC,aACAC,eACAC,SAAqB,CAAE,MACI;CAC3B,MAAM,4BACJ,uBAAuB,4BAA4B,IAAI;CACzD,MAAM,yBACJ,uBAAuB,yBAAyB,IAChD;CAEF,MAAM,QAAQ,IAAI,MAAM,eAAe;AACvC,KAAI,CAAC,MACH,QAAO;CAET,MAAM,CAAC,QAAQ,WAAW,GAAG,MAAM,MAAM,EAAE;CAC3C,MAAM,MAAM,SAAS,OAAO,MAAM,EAAE,GAAG;CACvC,MAAM,QAAQ,WAAW,MAAM,mBAAmB;AAClD,KAAI,MAAM,OAAO,YACf,QAAO;AAGT,KAAI,CAAC,cAAc,IAAI,QAAQ,WAAW,CAAC,MAAM,EAAE,CAAC,CAClD,OAAM,IAAI,MAAM;CAGlB,MAAM,MAAM;EAAC;EAAwB;EAAK;CAAW,EAAC,KAAK,IAAI;CAC/D,MAAM,MAAM,MAAM,OAAO,MAAM,iBAAiB,KAAK,EAAE,SAAS,IAAM,EAAC,EAAE,EACvE,SAAS,EACV,EAAC;AACF,KAAI,IAAI,WAAW,IACjB,OAAM,IAAI,MAAM,CAAC,uBAAuB,EAAE,KAAK;AAGjD,QAAO,OAAO,MAAM,IAAI,MAAM,EAAE,YAAY,OAAO;AACpD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/util/is-network-error/index.js
|
|
3
|
+
const objectToString = Object.prototype.toString;
|
|
4
|
+
const isError = (value) => objectToString.call(value) === "[object Error]";
|
|
5
|
+
const errorMessages = new Set([
|
|
6
|
+
"network error",
|
|
7
|
+
"Failed to fetch",
|
|
8
|
+
"NetworkError when attempting to fetch resource.",
|
|
9
|
+
"The Internet connection appears to be offline.",
|
|
10
|
+
"Network request failed",
|
|
11
|
+
"fetch failed",
|
|
12
|
+
"terminated",
|
|
13
|
+
" A network error occurred.",
|
|
14
|
+
"Network connection lost"
|
|
15
|
+
]);
|
|
16
|
+
function isNetworkError(error) {
|
|
17
|
+
const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
|
|
18
|
+
if (!isValid) return false;
|
|
19
|
+
const { message, stack } = error;
|
|
20
|
+
if (message === "Load failed") return stack === void 0 || "__sentry_captured__" in error;
|
|
21
|
+
if (message.startsWith("error sending request for url")) return true;
|
|
22
|
+
return errorMessages.has(message);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.isNetworkError = isNetworkError;
|
|
27
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../src/util/is-network-error/index.js"],"sourcesContent":["/* eslint-disable */\nconst objectToString = Object.prototype.toString;\n\nconst isError = (value) => objectToString.call(value) === \"[object Error]\";\n\nconst errorMessages = new Set([\n \"network error\", // Chrome\n \"Failed to fetch\", // Chrome\n \"NetworkError when attempting to fetch resource.\", // Firefox\n \"The Internet connection appears to be offline.\", // Safari 16\n \"Network request failed\", // `cross-fetch`\n \"fetch failed\", // Undici (Node.js)\n \"terminated\", // Undici (Node.js)\n \" A network error occurred.\", // Bun (WebKit)\n \"Network connection lost\", // Cloudflare Workers (fetch)\n]);\n\nexport default function isNetworkError(error) {\n const isValid =\n error &&\n isError(error) &&\n error.name === \"TypeError\" &&\n typeof error.message === \"string\";\n\n if (!isValid) {\n return false;\n }\n\n const { message, stack } = error;\n\n // Safari 17+ has generic message but no stack for network errors\n if (message === \"Load failed\") {\n return (\n stack === undefined ||\n // Sentry adds its own stack trace to the fetch error, so also check for that\n \"__sentry_captured__\" in error\n );\n }\n\n // Deno network errors start with specific text\n if (message.startsWith(\"error sending request for url\")) {\n return true;\n }\n\n // Standard network error messages\n return errorMessages.has(message);\n}\n"],"mappings":";;AACA,MAAM,iBAAiB,OAAO,UAAU;AAExC,MAAM,UAAU,CAAC,UAAU,eAAe,KAAK,MAAM,KAAK;AAE1D,MAAM,gBAAgB,IAAI,IAAI;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAED,SAAwB,eAAe,OAAO;CAC5C,MAAM,UACJ,SACA,QAAQ,MAAM,IACd,MAAM,SAAS,eACf,OAAO,MAAM,YAAY;AAE3B,KAAI,CAAC,QACH,QAAO;CAGT,MAAM,EAAE,SAAS,OAAO,GAAG;AAG3B,KAAI,YAAY,cACd,QACE,UAAU,UAEV,yBAAyB;AAK7B,KAAI,QAAQ,WAAW,gCAAgC,CACrD,QAAO;AAIT,QAAO,cAAc,IAAI,QAAQ;AAClC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/util/is-network-error/index.js
|
|
2
|
+
const objectToString = Object.prototype.toString;
|
|
3
|
+
const isError = (value) => objectToString.call(value) === "[object Error]";
|
|
4
|
+
const errorMessages = new Set([
|
|
5
|
+
"network error",
|
|
6
|
+
"Failed to fetch",
|
|
7
|
+
"NetworkError when attempting to fetch resource.",
|
|
8
|
+
"The Internet connection appears to be offline.",
|
|
9
|
+
"Network request failed",
|
|
10
|
+
"fetch failed",
|
|
11
|
+
"terminated",
|
|
12
|
+
" A network error occurred.",
|
|
13
|
+
"Network connection lost"
|
|
14
|
+
]);
|
|
15
|
+
function isNetworkError(error) {
|
|
16
|
+
const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
|
|
17
|
+
if (!isValid) return false;
|
|
18
|
+
const { message, stack } = error;
|
|
19
|
+
if (message === "Load failed") return stack === void 0 || "__sentry_captured__" in error;
|
|
20
|
+
if (message.startsWith("error sending request for url")) return true;
|
|
21
|
+
return errorMessages.has(message);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { isNetworkError };
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/util/is-network-error/index.js"],"sourcesContent":["/* eslint-disable */\nconst objectToString = Object.prototype.toString;\n\nconst isError = (value) => objectToString.call(value) === \"[object Error]\";\n\nconst errorMessages = new Set([\n \"network error\", // Chrome\n \"Failed to fetch\", // Chrome\n \"NetworkError when attempting to fetch resource.\", // Firefox\n \"The Internet connection appears to be offline.\", // Safari 16\n \"Network request failed\", // `cross-fetch`\n \"fetch failed\", // Undici (Node.js)\n \"terminated\", // Undici (Node.js)\n \" A network error occurred.\", // Bun (WebKit)\n \"Network connection lost\", // Cloudflare Workers (fetch)\n]);\n\nexport default function isNetworkError(error) {\n const isValid =\n error &&\n isError(error) &&\n error.name === \"TypeError\" &&\n typeof error.message === \"string\";\n\n if (!isValid) {\n return false;\n }\n\n const { message, stack } = error;\n\n // Safari 17+ has generic message but no stack for network errors\n if (message === \"Load failed\") {\n return (\n stack === undefined ||\n // Sentry adds its own stack trace to the fetch error, so also check for that\n \"__sentry_captured__\" in error\n );\n }\n\n // Deno network errors start with specific text\n if (message.startsWith(\"error sending request for url\")) {\n return true;\n }\n\n // Standard network error messages\n return errorMessages.has(message);\n}\n"],"mappings":";AACA,MAAM,iBAAiB,OAAO,UAAU;AAExC,MAAM,UAAU,CAAC,UAAU,eAAe,KAAK,MAAM,KAAK;AAE1D,MAAM,gBAAgB,IAAI,IAAI;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAED,SAAwB,eAAe,OAAO;CAC5C,MAAM,UACJ,SACA,QAAQ,MAAM,IACd,MAAM,SAAS,eACf,OAAO,MAAM,YAAY;AAE3B,KAAI,CAAC,QACH,QAAO;CAGT,MAAM,EAAE,SAAS,OAAO,GAAG;AAG3B,KAAI,YAAY,cACd,QACE,UAAU,UAEV,yBAAyB;AAK7B,KAAI,QAAQ,WAAW,gCAAgC,CACrD,QAAO;AAIT,QAAO,cAAc,IAAI,QAAQ;AAClC"}
|
package/dist/util/load.d.cts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.cts","names":["LoadValues","Record","FileLoader","T","Promise","loadFromFile"],"sources":["../../src/util/load.d.ts"],"sourcesContent":["export type LoadValues = Record<string, any>;\nexport type FileLoader<T> = (text: string, filePath: string, values: LoadValues) => Promise<T>;\nexport declare const loadFromFile: <T>(uri: string, loader: FileLoader<T>, values?: LoadValues) => Promise<T>;\n//# sourceMappingURL=load.d.ts.map"],"mappings":";KAAYA,UAAAA,GAAaC"}
|
package/dist/util/load.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.ts","names":["LoadValues","Record","FileLoader","T","Promise","loadFromFile"],"sources":["../../src/util/load.d.ts"],"sourcesContent":["export type LoadValues = Record<string, any>;\nexport type FileLoader<T> = (text: string, filePath: string, values: LoadValues) => Promise<T>;\nexport declare const loadFromFile: <T>(uri: string, loader: FileLoader<T>, values?: LoadValues) => Promise<T>;\n//# sourceMappingURL=load.d.ts.map"],"mappings":";KAAYA,UAAAA,GAAaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"similarities.d.cts","names":["cosine"],"sources":["../../../src/util/ml-distance/similarities.d.ts"],"sourcesContent":["/**\n * Returns the average of cosine distances between vectors a and b\n * @param a - first vector\n * @param b - second vector\n *\n */\nexport declare function cosine(a: number[], b: number[]): number;\n//# sourceMappingURL=similarities.d.ts.map"],"mappings":";;AAMA;;;;;iBAAwBA,MAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"similarities.d.ts","names":["cosine"],"sources":["../../../src/util/ml-distance/similarities.d.ts"],"sourcesContent":["/**\n * Returns the average of cosine distances between vectors a and b\n * @param a - first vector\n * @param b - second vector\n *\n */\nexport declare function cosine(a: number[], b: number[]): number;\n//# sourceMappingURL=similarities.d.ts.map"],"mappings":";;AAMA;;;;;iBAAwBA,MAAAA"}
|
package/dist/util/openapi.d.cts
CHANGED
|
@@ -71,9 +71,7 @@ declare class OpenAPISpec {
|
|
|
71
71
|
getParametersForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3.ParameterObject[];
|
|
72
72
|
getRequestBodyForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3_1.RequestBodyObject;
|
|
73
73
|
static getCleanedOperationId(operation: OpenAPIV3_1.OperationObject, path: string, method: OpenAPIV3_1.HttpMethods): string;
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
75
74
|
static alertUnsupportedSpec(document: Record<string, any>): void;
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
75
|
static fromObject(document: Record<string, any>): OpenAPISpec;
|
|
78
76
|
static fromString(rawString: string): OpenAPISpec;
|
|
79
77
|
static fromURL(url: string): Promise<OpenAPISpec>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.d.cts","names":["OpenAPIV3","OpenAPIV3_1","OpenAPISpec","Document","PathsObject","ParameterObject","ReferenceObject","Record","SchemaObject","RequestBodyObject","PathItemObject","Omit","ServerObject","OperationObject","HttpMethods","ExternalDocumentationObject","ResponsesObject","CallbackObject","SecurityRequirementObject","Promise"],"sources":["../../src/util/openapi.d.ts"],"sourcesContent":["import { OpenAPIV3, OpenAPIV3_1 } from \"openapi-types\";\nexport declare class OpenAPISpec {\n document: OpenAPIV3_1.Document;\n constructor(document: OpenAPIV3_1.Document);\n get baseUrl(): string | undefined;\n getPathsStrict(): OpenAPIV3_1.PathsObject<{}, {}>;\n getParametersStrict(): Record<string, OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject>;\n getSchemasStrict(): Record<string, OpenAPIV3_1.SchemaObject>;\n getRequestBodiesStrict(): Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject>;\n getPathStrict(path: string): Omit<OpenAPIV3.PathItemObject<{}>, \"parameters\" | \"servers\"> & {\n servers?: OpenAPIV3_1.ServerObject[] | undefined;\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;\n } & {\n delete?: OpenAPIV3_1.OperationObject<{}> | undefined;\n get?: OpenAPIV3_1.OperationObject<{}> | undefined;\n head?: OpenAPIV3_1.OperationObject<{}> | undefined;\n options?: OpenAPIV3_1.OperationObject<{}> | undefined;\n patch?: OpenAPIV3_1.OperationObject<{}> | undefined;\n post?: OpenAPIV3_1.OperationObject<{}> | undefined;\n put?: OpenAPIV3_1.OperationObject<{}> | undefined;\n trace?: OpenAPIV3_1.OperationObject<{}> | undefined;\n };\n getReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject;\n getRootReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ParameterObject;\n getReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.SchemaObject;\n getSchema(schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject): OpenAPIV3_1.SchemaObject;\n getRootReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject;\n getReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject;\n getRootReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.RequestBodyObject;\n getMethodsForPath(path: string): OpenAPIV3.HttpMethods[];\n getParametersForPath(path: string): OpenAPIV3.ParameterObject[];\n getOperation(path: string, method: OpenAPIV3.HttpMethods): {\n tags?: string[] | undefined;\n summary?: string | undefined;\n description?: string | undefined;\n externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;\n operationId?: string | undefined;\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;\n requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;\n responses: OpenAPIV3.ResponsesObject;\n callbacks?: {\n [callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;\n } | undefined;\n deprecated?: boolean | undefined;\n security?: OpenAPIV3.SecurityRequirementObject[] | undefined;\n servers?: OpenAPIV3.ServerObject[] | undefined;\n } & Omit<{\n tags?: string[] | undefined;\n summary?: string | undefined;\n description?: string | undefined;\n externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;\n operationId?: string | undefined;\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;\n requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;\n responses: OpenAPIV3.ResponsesObject;\n callbacks?: {\n [callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;\n } | undefined;\n deprecated?: boolean | undefined;\n security?: OpenAPIV3.SecurityRequirementObject[] | undefined;\n servers?: OpenAPIV3.ServerObject[] | undefined;\n }, \"callbacks\" | \"parameters\" | \"requestBody\" | \"responses\" | \"servers\"> & {\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;\n requestBody?: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject | undefined;\n responses?: OpenAPIV3_1.ResponsesObject | undefined;\n callbacks?: Record<string, OpenAPIV3_1.CallbackObject | OpenAPIV3_1.ReferenceObject> | undefined;\n servers?: OpenAPIV3_1.ServerObject[] | undefined;\n };\n getParametersForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3.ParameterObject[];\n getRequestBodyForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3_1.RequestBodyObject;\n static getCleanedOperationId(operation: OpenAPIV3_1.OperationObject, path: string, method: OpenAPIV3_1.HttpMethods): string;\n static alertUnsupportedSpec(document: Record<string, any>): void;\n static fromObject(document: Record<string, any>): OpenAPISpec;\n static fromString(rawString: string): OpenAPISp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,WATMe,CAAAA"}
|
package/dist/util/openapi.d.ts
CHANGED
|
@@ -71,9 +71,7 @@ declare class OpenAPISpec {
|
|
|
71
71
|
getParametersForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3.ParameterObject[];
|
|
72
72
|
getRequestBodyForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3_1.RequestBodyObject;
|
|
73
73
|
static getCleanedOperationId(operation: OpenAPIV3_1.OperationObject, path: string, method: OpenAPIV3_1.HttpMethods): string;
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
75
74
|
static alertUnsupportedSpec(document: Record<string, any>): void;
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
75
|
static fromObject(document: Record<string, any>): OpenAPISpec;
|
|
78
76
|
static fromString(rawString: string): OpenAPISpec;
|
|
79
77
|
static fromURL(url: string): Promise<OpenAPISpec>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","names":["OpenAPIV3","OpenAPIV3_1","OpenAPISpec","Document","PathsObject","ParameterObject","ReferenceObject","Record","SchemaObject","RequestBodyObject","PathItemObject","Omit","ServerObject","OperationObject","HttpMethods","ExternalDocumentationObject","ResponsesObject","CallbackObject","SecurityRequirementObject","Promise"],"sources":["../../src/util/openapi.d.ts"],"sourcesContent":["import { OpenAPIV3, OpenAPIV3_1 } from \"openapi-types\";\nexport declare class OpenAPISpec {\n document: OpenAPIV3_1.Document;\n constructor(document: OpenAPIV3_1.Document);\n get baseUrl(): string | undefined;\n getPathsStrict(): OpenAPIV3_1.PathsObject<{}, {}>;\n getParametersStrict(): Record<string, OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject>;\n getSchemasStrict(): Record<string, OpenAPIV3_1.SchemaObject>;\n getRequestBodiesStrict(): Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject>;\n getPathStrict(path: string): Omit<OpenAPIV3.PathItemObject<{}>, \"parameters\" | \"servers\"> & {\n servers?: OpenAPIV3_1.ServerObject[] | undefined;\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;\n } & {\n delete?: OpenAPIV3_1.OperationObject<{}> | undefined;\n get?: OpenAPIV3_1.OperationObject<{}> | undefined;\n head?: OpenAPIV3_1.OperationObject<{}> | undefined;\n options?: OpenAPIV3_1.OperationObject<{}> | undefined;\n patch?: OpenAPIV3_1.OperationObject<{}> | undefined;\n post?: OpenAPIV3_1.OperationObject<{}> | undefined;\n put?: OpenAPIV3_1.OperationObject<{}> | undefined;\n trace?: OpenAPIV3_1.OperationObject<{}> | undefined;\n };\n getReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject;\n getRootReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ParameterObject;\n getReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.SchemaObject;\n getSchema(schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject): OpenAPIV3_1.SchemaObject;\n getRootReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject;\n getReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject;\n getRootReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.RequestBodyObject;\n getMethodsForPath(path: string): OpenAPIV3.HttpMethods[];\n getParametersForPath(path: string): OpenAPIV3.ParameterObject[];\n getOperation(path: string, method: OpenAPIV3.HttpMethods): {\n tags?: string[] | undefined;\n summary?: string | undefined;\n description?: string | undefined;\n externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;\n operationId?: string | undefined;\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;\n requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;\n responses: OpenAPIV3.ResponsesObject;\n callbacks?: {\n [callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;\n } | undefined;\n deprecated?: boolean | undefined;\n security?: OpenAPIV3.SecurityRequirementObject[] | undefined;\n servers?: OpenAPIV3.ServerObject[] | undefined;\n } & Omit<{\n tags?: string[] | undefined;\n summary?: string | undefined;\n description?: string | undefined;\n externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;\n operationId?: string | undefined;\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;\n requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;\n responses: OpenAPIV3.ResponsesObject;\n callbacks?: {\n [callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;\n } | undefined;\n deprecated?: boolean | undefined;\n security?: OpenAPIV3.SecurityRequirementObject[] | undefined;\n servers?: OpenAPIV3.ServerObject[] | undefined;\n }, \"callbacks\" | \"parameters\" | \"requestBody\" | \"responses\" | \"servers\"> & {\n parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;\n requestBody?: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject | undefined;\n responses?: OpenAPIV3_1.ResponsesObject | undefined;\n callbacks?: Record<string, OpenAPIV3_1.CallbackObject | OpenAPIV3_1.ReferenceObject> | undefined;\n servers?: OpenAPIV3_1.ServerObject[] | undefined;\n };\n getParametersForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3.ParameterObject[];\n getRequestBodyForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3_1.RequestBodyObject;\n static getCleanedOperationId(operation: OpenAPIV3_1.OperationObject, path: string, method: OpenAPIV3_1.HttpMethods): string;\n static alertUnsupportedSpec(document: Record<string, any>): void;\n static fromObject(document: Record<string, any>): OpenAPISpec;\n static fromString(rawString: string): OpenAPISpec;\n static fromURL(url: string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
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
const require_index = require('../is-network-error/index.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/util/p-retry/index.js
|
|
4
|
+
function validateRetries(retries) {
|
|
5
|
+
if (typeof retries === "number") {
|
|
6
|
+
if (retries < 0) throw new TypeError("Expected `retries` to be a non-negative number.");
|
|
7
|
+
if (Number.isNaN(retries)) throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.");
|
|
8
|
+
} else if (retries !== void 0) throw new TypeError("Expected `retries` to be a number or Infinity.");
|
|
9
|
+
}
|
|
10
|
+
function validateNumberOption(name, value, { min = 0, allowInfinity = false } = {}) {
|
|
11
|
+
if (value === void 0) return;
|
|
12
|
+
if (typeof value !== "number" || Number.isNaN(value)) throw new TypeError(`Expected \`${name}\` to be a number${allowInfinity ? " or Infinity" : ""}.`);
|
|
13
|
+
if (!allowInfinity && !Number.isFinite(value)) throw new TypeError(`Expected \`${name}\` to be a finite number.`);
|
|
14
|
+
if (value < min) throw new TypeError(`Expected \`${name}\` to be \u2265 ${min}.`);
|
|
15
|
+
}
|
|
16
|
+
var AbortError = class extends Error {
|
|
17
|
+
constructor(message) {
|
|
18
|
+
super();
|
|
19
|
+
if (message instanceof Error) {
|
|
20
|
+
this.originalError = message;
|
|
21
|
+
({message} = message);
|
|
22
|
+
} else {
|
|
23
|
+
this.originalError = new Error(message);
|
|
24
|
+
this.originalError.stack = this.stack;
|
|
25
|
+
}
|
|
26
|
+
this.name = "AbortError";
|
|
27
|
+
this.message = message;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
function calculateDelay(retriesConsumed, options) {
|
|
31
|
+
const attempt = Math.max(1, retriesConsumed + 1);
|
|
32
|
+
const random = options.randomize ? Math.random() + 1 : 1;
|
|
33
|
+
let timeout = Math.round(random * options.minTimeout * options.factor ** (attempt - 1));
|
|
34
|
+
timeout = Math.min(timeout, options.maxTimeout);
|
|
35
|
+
return timeout;
|
|
36
|
+
}
|
|
37
|
+
function calculateRemainingTime(start, max) {
|
|
38
|
+
if (!Number.isFinite(max)) return max;
|
|
39
|
+
return max - (performance.now() - start);
|
|
40
|
+
}
|
|
41
|
+
async function onAttemptFailure({ error, attemptNumber, retriesConsumed, startTime, options }) {
|
|
42
|
+
const normalizedError = error instanceof Error ? error : /* @__PURE__ */ new TypeError(`Non-error was thrown: "${error}". You should only throw errors.`);
|
|
43
|
+
if (normalizedError instanceof AbortError) throw normalizedError.originalError;
|
|
44
|
+
const retriesLeft = Number.isFinite(options.retries) ? Math.max(0, options.retries - retriesConsumed) : options.retries;
|
|
45
|
+
const maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;
|
|
46
|
+
const context = Object.freeze({
|
|
47
|
+
error: normalizedError,
|
|
48
|
+
attemptNumber,
|
|
49
|
+
retriesLeft,
|
|
50
|
+
retriesConsumed
|
|
51
|
+
});
|
|
52
|
+
await options.onFailedAttempt(context);
|
|
53
|
+
if (calculateRemainingTime(startTime, maxRetryTime) <= 0) throw normalizedError;
|
|
54
|
+
const consumeRetry = await options.shouldConsumeRetry(context);
|
|
55
|
+
const remainingTime = calculateRemainingTime(startTime, maxRetryTime);
|
|
56
|
+
if (remainingTime <= 0 || retriesLeft <= 0) throw normalizedError;
|
|
57
|
+
if (normalizedError instanceof TypeError && !require_index.isNetworkError(normalizedError)) {
|
|
58
|
+
if (consumeRetry) throw normalizedError;
|
|
59
|
+
options.signal?.throwIfAborted();
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
if (!await options.shouldRetry(context)) throw normalizedError;
|
|
63
|
+
if (!consumeRetry) {
|
|
64
|
+
options.signal?.throwIfAborted();
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
const delayTime = calculateDelay(retriesConsumed, options);
|
|
68
|
+
const finalDelay = Math.min(delayTime, remainingTime);
|
|
69
|
+
if (finalDelay > 0) await new Promise((resolve, reject) => {
|
|
70
|
+
const onAbort = () => {
|
|
71
|
+
clearTimeout(timeoutToken);
|
|
72
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
73
|
+
reject(options.signal.reason);
|
|
74
|
+
};
|
|
75
|
+
const timeoutToken = setTimeout(() => {
|
|
76
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
77
|
+
resolve();
|
|
78
|
+
}, finalDelay);
|
|
79
|
+
if (options.unref) timeoutToken.unref?.();
|
|
80
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
81
|
+
});
|
|
82
|
+
options.signal?.throwIfAborted();
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
async function pRetry(input, options = {}) {
|
|
86
|
+
options = { ...options };
|
|
87
|
+
validateRetries(options.retries);
|
|
88
|
+
if (Object.hasOwn(options, "forever")) throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");
|
|
89
|
+
options.retries ??= 10;
|
|
90
|
+
options.factor ??= 2;
|
|
91
|
+
options.minTimeout ??= 1e3;
|
|
92
|
+
options.maxTimeout ??= Number.POSITIVE_INFINITY;
|
|
93
|
+
options.maxRetryTime ??= Number.POSITIVE_INFINITY;
|
|
94
|
+
options.randomize ??= false;
|
|
95
|
+
options.onFailedAttempt ??= () => {};
|
|
96
|
+
options.shouldRetry ??= () => true;
|
|
97
|
+
options.shouldConsumeRetry ??= () => true;
|
|
98
|
+
validateNumberOption("factor", options.factor, {
|
|
99
|
+
min: 0,
|
|
100
|
+
allowInfinity: false
|
|
101
|
+
});
|
|
102
|
+
validateNumberOption("minTimeout", options.minTimeout, {
|
|
103
|
+
min: 0,
|
|
104
|
+
allowInfinity: false
|
|
105
|
+
});
|
|
106
|
+
validateNumberOption("maxTimeout", options.maxTimeout, {
|
|
107
|
+
min: 0,
|
|
108
|
+
allowInfinity: true
|
|
109
|
+
});
|
|
110
|
+
validateNumberOption("maxRetryTime", options.maxRetryTime, {
|
|
111
|
+
min: 0,
|
|
112
|
+
allowInfinity: true
|
|
113
|
+
});
|
|
114
|
+
if (!(options.factor > 0)) options.factor = 1;
|
|
115
|
+
options.signal?.throwIfAborted();
|
|
116
|
+
let attemptNumber = 0;
|
|
117
|
+
let retriesConsumed = 0;
|
|
118
|
+
const startTime = performance.now();
|
|
119
|
+
while (Number.isFinite(options.retries) ? retriesConsumed <= options.retries : true) {
|
|
120
|
+
attemptNumber++;
|
|
121
|
+
try {
|
|
122
|
+
options.signal?.throwIfAborted();
|
|
123
|
+
const result = await input(attemptNumber);
|
|
124
|
+
options.signal?.throwIfAborted();
|
|
125
|
+
return result;
|
|
126
|
+
} catch (error) {
|
|
127
|
+
if (await onAttemptFailure({
|
|
128
|
+
error,
|
|
129
|
+
attemptNumber,
|
|
130
|
+
retriesConsumed,
|
|
131
|
+
startTime,
|
|
132
|
+
options
|
|
133
|
+
})) retriesConsumed++;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
throw new Error("Retry attempts exhausted without throwing an error.");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
//#endregion
|
|
140
|
+
exports.pRetry = pRetry;
|
|
141
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["isNetworkError"],"sources":["../../../src/util/p-retry/index.js"],"sourcesContent":["/* eslint-disable */\nimport isNetworkError from \"../is-network-error/index.js\";\n\nfunction validateRetries(retries) {\n if (typeof retries === \"number\") {\n if (retries < 0) {\n throw new TypeError(\"Expected `retries` to be a non-negative number.\");\n }\n\n if (Number.isNaN(retries)) {\n throw new TypeError(\n \"Expected `retries` to be a valid number or Infinity, got NaN.\"\n );\n }\n } else if (retries !== undefined) {\n throw new TypeError(\"Expected `retries` to be a number or Infinity.\");\n }\n}\n\nfunction validateNumberOption(\n name,\n value,\n { min = 0, allowInfinity = false } = {}\n) {\n if (value === undefined) {\n return;\n }\n\n if (typeof value !== \"number\" || Number.isNaN(value)) {\n throw new TypeError(\n `Expected \\`${name}\\` to be a number${\n allowInfinity ? \" or Infinity\" : \"\"\n }.`\n );\n }\n\n if (!allowInfinity && !Number.isFinite(value)) {\n throw new TypeError(`Expected \\`${name}\\` to be a finite number.`);\n }\n\n if (value < min) {\n throw new TypeError(`Expected \\`${name}\\` to be \\u2265 ${min}.`);\n }\n}\n\nexport class AbortError extends Error {\n constructor(message) {\n super();\n\n if (message instanceof Error) {\n this.originalError = message;\n ({ message } = message);\n } else {\n this.originalError = new Error(message);\n this.originalError.stack = this.stack;\n }\n\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n\nfunction calculateDelay(retriesConsumed, options) {\n const attempt = Math.max(1, retriesConsumed + 1);\n const random = options.randomize ? Math.random() + 1 : 1;\n\n let timeout = Math.round(\n random * options.minTimeout * options.factor ** (attempt - 1)\n );\n timeout = Math.min(timeout, options.maxTimeout);\n\n return timeout;\n}\n\nfunction calculateRemainingTime(start, max) {\n if (!Number.isFinite(max)) {\n return max;\n }\n\n return max - (performance.now() - start);\n}\n\nasync function onAttemptFailure({\n error,\n attemptNumber,\n retriesConsumed,\n startTime,\n options,\n}) {\n const normalizedError =\n error instanceof Error\n ? error\n : new TypeError(\n `Non-error was thrown: \"${error}\". You should only throw errors.`\n );\n\n if (normalizedError instanceof AbortError) {\n throw normalizedError.originalError;\n }\n\n const retriesLeft = Number.isFinite(options.retries)\n ? Math.max(0, options.retries - retriesConsumed)\n : options.retries;\n\n const maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;\n\n const context = Object.freeze({\n error: normalizedError,\n attemptNumber,\n retriesLeft,\n retriesConsumed,\n });\n\n await options.onFailedAttempt(context);\n\n if (calculateRemainingTime(startTime, maxRetryTime) <= 0) {\n throw normalizedError;\n }\n\n const consumeRetry = await options.shouldConsumeRetry(context);\n\n const remainingTime = calculateRemainingTime(startTime, maxRetryTime);\n\n if (remainingTime <= 0 || retriesLeft <= 0) {\n throw normalizedError;\n }\n\n if (\n normalizedError instanceof TypeError &&\n !isNetworkError(normalizedError)\n ) {\n if (consumeRetry) {\n throw normalizedError;\n }\n\n options.signal?.throwIfAborted();\n return false;\n }\n\n if (!(await options.shouldRetry(context))) {\n throw normalizedError;\n }\n\n if (!consumeRetry) {\n options.signal?.throwIfAborted();\n return false;\n }\n\n const delayTime = calculateDelay(retriesConsumed, options);\n const finalDelay = Math.min(delayTime, remainingTime);\n\n if (finalDelay > 0) {\n await new Promise((resolve, reject) => {\n const onAbort = () => {\n clearTimeout(timeoutToken);\n options.signal?.removeEventListener(\"abort\", onAbort);\n reject(options.signal.reason);\n };\n\n const timeoutToken = setTimeout(() => {\n options.signal?.removeEventListener(\"abort\", onAbort);\n resolve();\n }, finalDelay);\n\n if (options.unref) {\n timeoutToken.unref?.();\n }\n\n options.signal?.addEventListener(\"abort\", onAbort, { once: true });\n });\n }\n\n options.signal?.throwIfAborted();\n\n return true;\n}\n\nexport default async function pRetry(input, options = {}) {\n options = { ...options };\n\n validateRetries(options.retries);\n\n if (Object.hasOwn(options, \"forever\")) {\n throw new Error(\n \"The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.\"\n );\n }\n\n options.retries ??= 10;\n options.factor ??= 2;\n options.minTimeout ??= 1000;\n options.maxTimeout ??= Number.POSITIVE_INFINITY;\n options.maxRetryTime ??= Number.POSITIVE_INFINITY;\n options.randomize ??= false;\n options.onFailedAttempt ??= () => {};\n options.shouldRetry ??= () => true;\n options.shouldConsumeRetry ??= () => true;\n\n // Validate numeric options and normalize edge cases\n validateNumberOption(\"factor\", options.factor, {\n min: 0,\n allowInfinity: false,\n });\n validateNumberOption(\"minTimeout\", options.minTimeout, {\n min: 0,\n allowInfinity: false,\n });\n validateNumberOption(\"maxTimeout\", options.maxTimeout, {\n min: 0,\n allowInfinity: true,\n });\n validateNumberOption(\"maxRetryTime\", options.maxRetryTime, {\n min: 0,\n allowInfinity: true,\n });\n\n // Treat non-positive factor as 1 to avoid zero backoff or negative behavior\n if (!(options.factor > 0)) {\n options.factor = 1;\n }\n\n options.signal?.throwIfAborted();\n\n let attemptNumber = 0;\n let retriesConsumed = 0;\n const startTime = performance.now();\n\n while (\n Number.isFinite(options.retries) ? retriesConsumed <= options.retries : true\n ) {\n attemptNumber++;\n\n try {\n options.signal?.throwIfAborted();\n\n const result = await input(attemptNumber);\n\n options.signal?.throwIfAborted();\n\n return result;\n } catch (error) {\n if (\n await onAttemptFailure({\n error,\n attemptNumber,\n retriesConsumed,\n startTime,\n options,\n })\n ) {\n retriesConsumed++;\n }\n }\n }\n\n // Should not reach here, but in case it does, throw an error\n throw new Error(\"Retry attempts exhausted without throwing an error.\");\n}\n\nexport function makeRetriable(function_, options) {\n return function (...arguments_) {\n return pRetry(() => function_.apply(this, arguments_), options);\n };\n}\n"],"mappings":";;;AAGA,SAAS,gBAAgB,SAAS;AAChC,KAAI,OAAO,YAAY,UAAU;AAC/B,MAAI,UAAU,EACZ,OAAM,IAAI,UAAU;AAGtB,MAAI,OAAO,MAAM,QAAQ,CACvB,OAAM,IAAI,UACR;CAGL,WAAU,YAAY,OACrB,OAAM,IAAI,UAAU;AAEvB;AAED,SAAS,qBACP,MACA,OACA,EAAE,MAAM,GAAG,gBAAgB,OAAO,GAAG,CAAE,GACvC;AACA,KAAI,UAAU,OACZ;AAGF,KAAI,OAAO,UAAU,YAAY,OAAO,MAAM,MAAM,CAClD,OAAM,IAAI,UACR,CAAC,WAAW,EAAE,KAAK,iBAAiB,EAClC,gBAAgB,iBAAiB,GAClC,CAAC,CAAC;AAIP,KAAI,CAAC,iBAAiB,CAAC,OAAO,SAAS,MAAM,CAC3C,OAAM,IAAI,UAAU,CAAC,WAAW,EAAE,KAAK,yBAAyB,CAAC;AAGnE,KAAI,QAAQ,IACV,OAAM,IAAI,UAAU,CAAC,WAAW,EAAE,KAAK,gBAAgB,EAAE,IAAI,CAAC,CAAC;AAElE;AAED,IAAa,aAAb,cAAgC,MAAM;CACpC,YAAY,SAAS;EACnB,OAAO;AAEP,MAAI,mBAAmB,OAAO;GAC5B,KAAK,gBAAgB;IACpB,CAAE,QAAS,GAAG;EA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Q,YAAY;EACrD,KAAK;EACL,eAAe;CAChB,EAAC;CACF,qBAAqB,gBAAgB,QAAQ,cAAc;EACzD,KAAK;EACL,eAAe;CAChB,EAAC;AAGF,KAAI,EAAE,QAAQ,SAAS,IACrB,QAAQ,SAAS;CAGnB,QAAQ,QAAQ,gBAAgB;CAEhC,IAAI,gBAAgB;CACpB,IAAI,kBAAkB;CACtB,MAAM,YAAY,YAAY,KAAK;AAEnC,QACE,OAAO,SAAS,QAAQ,QAAQ,GAAG,mBAAmB,QAAQ,UAAU,MACxE;EACA;AAEA,MAAI;GACF,QAAQ,QAAQ,gBAAgB;GAEhC,MAAM,SAAS,MAAM,MAAM,cAAc;GAEzC,QAAQ,QAAQ,gBAAgB;AAEhC,UAAO;EACR,SAAQ,OAAO;AACd,OACE,MAAM,iBAAiB;IACrB;IACA;IACA;IACA;IACA;GACD,EAAC,EAEF;EAEH;CACF;AAGD,OAAM,IAAI,MAAM;AACjB"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { isNetworkError } from "../is-network-error/index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/util/p-retry/index.js
|
|
4
|
+
function validateRetries(retries) {
|
|
5
|
+
if (typeof retries === "number") {
|
|
6
|
+
if (retries < 0) throw new TypeError("Expected `retries` to be a non-negative number.");
|
|
7
|
+
if (Number.isNaN(retries)) throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.");
|
|
8
|
+
} else if (retries !== void 0) throw new TypeError("Expected `retries` to be a number or Infinity.");
|
|
9
|
+
}
|
|
10
|
+
function validateNumberOption(name, value, { min = 0, allowInfinity = false } = {}) {
|
|
11
|
+
if (value === void 0) return;
|
|
12
|
+
if (typeof value !== "number" || Number.isNaN(value)) throw new TypeError(`Expected \`${name}\` to be a number${allowInfinity ? " or Infinity" : ""}.`);
|
|
13
|
+
if (!allowInfinity && !Number.isFinite(value)) throw new TypeError(`Expected \`${name}\` to be a finite number.`);
|
|
14
|
+
if (value < min) throw new TypeError(`Expected \`${name}\` to be \u2265 ${min}.`);
|
|
15
|
+
}
|
|
16
|
+
var AbortError = class extends Error {
|
|
17
|
+
constructor(message) {
|
|
18
|
+
super();
|
|
19
|
+
if (message instanceof Error) {
|
|
20
|
+
this.originalError = message;
|
|
21
|
+
({message} = message);
|
|
22
|
+
} else {
|
|
23
|
+
this.originalError = new Error(message);
|
|
24
|
+
this.originalError.stack = this.stack;
|
|
25
|
+
}
|
|
26
|
+
this.name = "AbortError";
|
|
27
|
+
this.message = message;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
function calculateDelay(retriesConsumed, options) {
|
|
31
|
+
const attempt = Math.max(1, retriesConsumed + 1);
|
|
32
|
+
const random = options.randomize ? Math.random() + 1 : 1;
|
|
33
|
+
let timeout = Math.round(random * options.minTimeout * options.factor ** (attempt - 1));
|
|
34
|
+
timeout = Math.min(timeout, options.maxTimeout);
|
|
35
|
+
return timeout;
|
|
36
|
+
}
|
|
37
|
+
function calculateRemainingTime(start, max) {
|
|
38
|
+
if (!Number.isFinite(max)) return max;
|
|
39
|
+
return max - (performance.now() - start);
|
|
40
|
+
}
|
|
41
|
+
async function onAttemptFailure({ error, attemptNumber, retriesConsumed, startTime, options }) {
|
|
42
|
+
const normalizedError = error instanceof Error ? error : /* @__PURE__ */ new TypeError(`Non-error was thrown: "${error}". You should only throw errors.`);
|
|
43
|
+
if (normalizedError instanceof AbortError) throw normalizedError.originalError;
|
|
44
|
+
const retriesLeft = Number.isFinite(options.retries) ? Math.max(0, options.retries - retriesConsumed) : options.retries;
|
|
45
|
+
const maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;
|
|
46
|
+
const context = Object.freeze({
|
|
47
|
+
error: normalizedError,
|
|
48
|
+
attemptNumber,
|
|
49
|
+
retriesLeft,
|
|
50
|
+
retriesConsumed
|
|
51
|
+
});
|
|
52
|
+
await options.onFailedAttempt(context);
|
|
53
|
+
if (calculateRemainingTime(startTime, maxRetryTime) <= 0) throw normalizedError;
|
|
54
|
+
const consumeRetry = await options.shouldConsumeRetry(context);
|
|
55
|
+
const remainingTime = calculateRemainingTime(startTime, maxRetryTime);
|
|
56
|
+
if (remainingTime <= 0 || retriesLeft <= 0) throw normalizedError;
|
|
57
|
+
if (normalizedError instanceof TypeError && !isNetworkError(normalizedError)) {
|
|
58
|
+
if (consumeRetry) throw normalizedError;
|
|
59
|
+
options.signal?.throwIfAborted();
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
if (!await options.shouldRetry(context)) throw normalizedError;
|
|
63
|
+
if (!consumeRetry) {
|
|
64
|
+
options.signal?.throwIfAborted();
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
const delayTime = calculateDelay(retriesConsumed, options);
|
|
68
|
+
const finalDelay = Math.min(delayTime, remainingTime);
|
|
69
|
+
if (finalDelay > 0) await new Promise((resolve, reject) => {
|
|
70
|
+
const onAbort = () => {
|
|
71
|
+
clearTimeout(timeoutToken);
|
|
72
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
73
|
+
reject(options.signal.reason);
|
|
74
|
+
};
|
|
75
|
+
const timeoutToken = setTimeout(() => {
|
|
76
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
77
|
+
resolve();
|
|
78
|
+
}, finalDelay);
|
|
79
|
+
if (options.unref) timeoutToken.unref?.();
|
|
80
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
81
|
+
});
|
|
82
|
+
options.signal?.throwIfAborted();
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
async function pRetry(input, options = {}) {
|
|
86
|
+
options = { ...options };
|
|
87
|
+
validateRetries(options.retries);
|
|
88
|
+
if (Object.hasOwn(options, "forever")) throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");
|
|
89
|
+
options.retries ??= 10;
|
|
90
|
+
options.factor ??= 2;
|
|
91
|
+
options.minTimeout ??= 1e3;
|
|
92
|
+
options.maxTimeout ??= Number.POSITIVE_INFINITY;
|
|
93
|
+
options.maxRetryTime ??= Number.POSITIVE_INFINITY;
|
|
94
|
+
options.randomize ??= false;
|
|
95
|
+
options.onFailedAttempt ??= () => {};
|
|
96
|
+
options.shouldRetry ??= () => true;
|
|
97
|
+
options.shouldConsumeRetry ??= () => true;
|
|
98
|
+
validateNumberOption("factor", options.factor, {
|
|
99
|
+
min: 0,
|
|
100
|
+
allowInfinity: false
|
|
101
|
+
});
|
|
102
|
+
validateNumberOption("minTimeout", options.minTimeout, {
|
|
103
|
+
min: 0,
|
|
104
|
+
allowInfinity: false
|
|
105
|
+
});
|
|
106
|
+
validateNumberOption("maxTimeout", options.maxTimeout, {
|
|
107
|
+
min: 0,
|
|
108
|
+
allowInfinity: true
|
|
109
|
+
});
|
|
110
|
+
validateNumberOption("maxRetryTime", options.maxRetryTime, {
|
|
111
|
+
min: 0,
|
|
112
|
+
allowInfinity: true
|
|
113
|
+
});
|
|
114
|
+
if (!(options.factor > 0)) options.factor = 1;
|
|
115
|
+
options.signal?.throwIfAborted();
|
|
116
|
+
let attemptNumber = 0;
|
|
117
|
+
let retriesConsumed = 0;
|
|
118
|
+
const startTime = performance.now();
|
|
119
|
+
while (Number.isFinite(options.retries) ? retriesConsumed <= options.retries : true) {
|
|
120
|
+
attemptNumber++;
|
|
121
|
+
try {
|
|
122
|
+
options.signal?.throwIfAborted();
|
|
123
|
+
const result = await input(attemptNumber);
|
|
124
|
+
options.signal?.throwIfAborted();
|
|
125
|
+
return result;
|
|
126
|
+
} catch (error) {
|
|
127
|
+
if (await onAttemptFailure({
|
|
128
|
+
error,
|
|
129
|
+
attemptNumber,
|
|
130
|
+
retriesConsumed,
|
|
131
|
+
startTime,
|
|
132
|
+
options
|
|
133
|
+
})) retriesConsumed++;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
throw new Error("Retry attempts exhausted without throwing an error.");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
//#endregion
|
|
140
|
+
export { pRetry };
|
|
141
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/util/p-retry/index.js"],"sourcesContent":["/* eslint-disable */\nimport isNetworkError from \"../is-network-error/index.js\";\n\nfunction validateRetries(retries) {\n if (typeof retries === \"number\") {\n if (retries < 0) {\n throw new TypeError(\"Expected `retries` to be a non-negative number.\");\n }\n\n if (Number.isNaN(retries)) {\n throw new TypeError(\n \"Expected `retries` to be a valid number or Infinity, got NaN.\"\n );\n }\n } else if (retries !== undefined) {\n throw new TypeError(\"Expected `retries` to be a number or Infinity.\");\n }\n}\n\nfunction validateNumberOption(\n name,\n value,\n { min = 0, allowInfinity = false } = {}\n) {\n if (value === undefined) {\n return;\n }\n\n if (typeof value !== \"number\" || Number.isNaN(value)) {\n throw new TypeError(\n `Expected \\`${name}\\` to be a number${\n allowInfinity ? \" or Infinity\" : \"\"\n }.`\n );\n }\n\n if (!allowInfinity && !Number.isFinite(value)) {\n throw new TypeError(`Expected \\`${name}\\` to be a finite number.`);\n }\n\n if (value < min) {\n throw new TypeError(`Expected \\`${name}\\` to be \\u2265 ${min}.`);\n }\n}\n\nexport class AbortError extends Error {\n constructor(message) {\n super();\n\n if (message instanceof Error) {\n this.originalError = message;\n ({ message } = message);\n } else {\n this.originalError = new Error(message);\n this.originalError.stack = this.stack;\n }\n\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n\nfunction calculateDelay(retriesConsumed, options) {\n const attempt = Math.max(1, retriesConsumed + 1);\n const random = options.randomize ? Math.random() + 1 : 1;\n\n let timeout = Math.round(\n random * options.minTimeout * options.factor ** (attempt - 1)\n );\n timeout = Math.min(timeout, options.maxTimeout);\n\n return timeout;\n}\n\nfunction calculateRemainingTime(start, max) {\n if (!Number.isFinite(max)) {\n return max;\n }\n\n return max - (performance.now() - start);\n}\n\nasync function onAttemptFailure({\n error,\n attemptNumber,\n retriesConsumed,\n startTime,\n options,\n}) {\n const normalizedError =\n error instanceof Error\n ? error\n : new TypeError(\n `Non-error was thrown: \"${error}\". You should only throw errors.`\n );\n\n if (normalizedError instanceof AbortError) {\n throw normalizedError.originalError;\n }\n\n const retriesLeft = Number.isFinite(options.retries)\n ? Math.max(0, options.retries - retriesConsumed)\n : options.retries;\n\n const maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;\n\n const context = Object.freeze({\n error: normalizedError,\n attemptNumber,\n retriesLeft,\n retriesConsumed,\n });\n\n await options.onFailedAttempt(context);\n\n if (calculateRemainingTime(startTime, maxRetryTime) <= 0) {\n throw normalizedError;\n }\n\n const consumeRetry = await options.shouldConsumeRetry(context);\n\n const remainingTime = calculateRemainingTime(startTime, maxRetryTime);\n\n if (remainingTime <= 0 || retriesLeft <= 0) {\n throw normalizedError;\n }\n\n if (\n normalizedError instanceof TypeError &&\n !isNetworkError(normalizedError)\n ) {\n if (consumeRetry) {\n throw normalizedError;\n }\n\n options.signal?.throwIfAborted();\n return false;\n }\n\n if (!(await options.shouldRetry(context))) {\n throw normalizedError;\n }\n\n if (!consumeRetry) {\n options.signal?.throwIfAborted();\n return false;\n }\n\n const delayTime = calculateDelay(retriesConsumed, options);\n const finalDelay = Math.min(delayTime, remainingTime);\n\n if (finalDelay > 0) {\n await new Promise((resolve, reject) => {\n const onAbort = () => {\n clearTimeout(timeoutToken);\n options.signal?.removeEventListener(\"abort\", onAbort);\n reject(options.signal.reason);\n };\n\n const timeoutToken = setTimeout(() => {\n options.signal?.removeEventListener(\"abort\", onAbort);\n resolve();\n }, finalDelay);\n\n if (options.unref) {\n timeoutToken.unref?.();\n }\n\n options.signal?.addEventListener(\"abort\", onAbort, { once: true });\n });\n }\n\n options.signal?.throwIfAborted();\n\n return true;\n}\n\nexport default async function pRetry(input, options = {}) {\n options = { ...options };\n\n validateRetries(options.retries);\n\n if (Object.hasOwn(options, \"forever\")) {\n throw new Error(\n \"The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.\"\n );\n }\n\n options.retries ??= 10;\n options.factor ??= 2;\n options.minTimeout ??= 1000;\n options.maxTimeout ??= Number.POSITIVE_INFINITY;\n options.maxRetryTime ??= Number.POSITIVE_INFINITY;\n options.randomize ??= false;\n options.onFailedAttempt ??= () => {};\n options.shouldRetry ??= () => true;\n options.shouldConsumeRetry ??= () => true;\n\n // Validate numeric options and normalize edge cases\n validateNumberOption(\"factor\", options.factor, {\n min: 0,\n allowInfinity: false,\n });\n validateNumberOption(\"minTimeout\", options.minTimeout, {\n min: 0,\n allowInfinity: false,\n });\n validateNumberOption(\"maxTimeout\", options.maxTimeout, {\n min: 0,\n allowInfinity: true,\n });\n validateNumberOption(\"maxRetryTime\", options.maxRetryTime, {\n min: 0,\n allowInfinity: true,\n });\n\n // Treat non-positive factor as 1 to avoid zero backoff or negative behavior\n if (!(options.factor > 0)) {\n options.factor = 1;\n }\n\n options.signal?.throwIfAborted();\n\n let attemptNumber = 0;\n let retriesConsumed = 0;\n const startTime = performance.now();\n\n while (\n Number.isFinite(options.retries) ? retriesConsumed <= options.retries : true\n ) {\n attemptNumber++;\n\n try {\n options.signal?.throwIfAborted();\n\n const result = await input(attemptNumber);\n\n options.signal?.throwIfAborted();\n\n return result;\n } catch (error) {\n if (\n await onAttemptFailure({\n error,\n attemptNumber,\n retriesConsumed,\n startTime,\n options,\n })\n ) {\n retriesConsumed++;\n }\n }\n }\n\n // Should not reach here, but in case it does, throw an error\n throw new Error(\"Retry attempts exhausted without throwing an error.\");\n}\n\nexport function makeRetriable(function_, options) {\n return function (...arguments_) {\n return pRetry(() => function_.apply(this, arguments_), options);\n };\n}\n"],"mappings":";;;AAGA,SAAS,gBAAgB,SAAS;AAChC,KAAI,OAAO,YAAY,UAAU;AAC/B,MAAI,UAAU,EACZ,OAAM,IAAI,UAAU;AAGtB,MAAI,OAAO,MAAM,QAAQ,CACvB,OAAM,IAAI,UACR;CAGL,WAAU,YAAY,OACrB,OAAM,IAAI,UAAU;AAEvB;AAED,SAAS,qBACP,MACA,OACA,EAAE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