@langchain/classic 1.0.0-alpha.1
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/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/_virtual/rolldown_runtime.cjs +38 -0
- package/dist/_virtual/rolldown_runtime.js +34 -0
- package/dist/agents/agent.cjs +390 -0
- package/dist/agents/agent.cjs.map +1 -0
- package/dist/agents/agent.d.cts +274 -0
- package/dist/agents/agent.d.cts.map +1 -0
- package/dist/agents/agent.d.ts +274 -0
- package/dist/agents/agent.d.ts.map +1 -0
- package/dist/agents/agent.js +381 -0
- package/dist/agents/agent.js.map +1 -0
- package/dist/agents/chat/index.cjs +123 -0
- package/dist/agents/chat/index.cjs.map +1 -0
- package/dist/agents/chat/index.d.cts +88 -0
- package/dist/agents/chat/index.d.cts.map +1 -0
- package/dist/agents/chat/index.d.ts +88 -0
- package/dist/agents/chat/index.d.ts.map +1 -0
- package/dist/agents/chat/index.js +122 -0
- package/dist/agents/chat/index.js.map +1 -0
- package/dist/agents/chat/outputParser.cjs +93 -0
- package/dist/agents/chat/outputParser.cjs.map +1 -0
- package/dist/agents/chat/outputParser.d.cts +75 -0
- package/dist/agents/chat/outputParser.d.cts.map +1 -0
- package/dist/agents/chat/outputParser.d.ts +75 -0
- package/dist/agents/chat/outputParser.d.ts.map +1 -0
- package/dist/agents/chat/outputParser.js +92 -0
- package/dist/agents/chat/outputParser.js.map +1 -0
- package/dist/agents/chat/prompt.cjs +33 -0
- package/dist/agents/chat/prompt.cjs.map +1 -0
- package/dist/agents/chat/prompt.js +30 -0
- package/dist/agents/chat/prompt.js.map +1 -0
- package/dist/agents/chat_convo/index.cjs +136 -0
- package/dist/agents/chat_convo/index.cjs.map +1 -0
- package/dist/agents/chat_convo/index.d.cts +86 -0
- package/dist/agents/chat_convo/index.d.cts.map +1 -0
- package/dist/agents/chat_convo/index.d.ts +86 -0
- package/dist/agents/chat_convo/index.d.ts.map +1 -0
- package/dist/agents/chat_convo/index.js +135 -0
- package/dist/agents/chat_convo/index.js.map +1 -0
- package/dist/agents/chat_convo/outputParser.cjs +131 -0
- package/dist/agents/chat_convo/outputParser.cjs.map +1 -0
- package/dist/agents/chat_convo/outputParser.d.cts +80 -0
- package/dist/agents/chat_convo/outputParser.d.cts.map +1 -0
- package/dist/agents/chat_convo/outputParser.d.ts +80 -0
- package/dist/agents/chat_convo/outputParser.d.ts.map +1 -0
- package/dist/agents/chat_convo/outputParser.js +129 -0
- package/dist/agents/chat_convo/outputParser.js.map +1 -0
- package/dist/agents/chat_convo/prompt.cjs +67 -0
- package/dist/agents/chat_convo/prompt.cjs.map +1 -0
- package/dist/agents/chat_convo/prompt.js +62 -0
- package/dist/agents/chat_convo/prompt.js.map +1 -0
- package/dist/agents/executor.cjs +445 -0
- package/dist/agents/executor.cjs.map +1 -0
- package/dist/agents/executor.d.cts +107 -0
- package/dist/agents/executor.d.cts.map +1 -0
- package/dist/agents/executor.d.ts +107 -0
- package/dist/agents/executor.d.ts.map +1 -0
- package/dist/agents/executor.js +444 -0
- package/dist/agents/executor.js.map +1 -0
- package/dist/agents/format_scratchpad/log.cjs +30 -0
- package/dist/agents/format_scratchpad/log.cjs.map +1 -0
- package/dist/agents/format_scratchpad/log.d.cts +15 -0
- package/dist/agents/format_scratchpad/log.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/log.d.ts +15 -0
- package/dist/agents/format_scratchpad/log.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/log.js +24 -0
- package/dist/agents/format_scratchpad/log.js.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.cjs +28 -0
- package/dist/agents/format_scratchpad/log_to_message.cjs.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.d.cts +8 -0
- package/dist/agents/format_scratchpad/log_to_message.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.d.ts +8 -0
- package/dist/agents/format_scratchpad/log_to_message.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/log_to_message.js +22 -0
- package/dist/agents/format_scratchpad/log_to_message.js.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.cjs +54 -0
- package/dist/agents/format_scratchpad/openai_functions.cjs.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.d.cts +26 -0
- package/dist/agents/format_scratchpad/openai_functions.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.d.ts +26 -0
- package/dist/agents/format_scratchpad/openai_functions.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/openai_functions.js +47 -0
- package/dist/agents/format_scratchpad/openai_functions.js.map +1 -0
- package/dist/agents/format_scratchpad/openai_tools.cjs +16 -0
- package/dist/agents/format_scratchpad/openai_tools.cjs.map +1 -0
- package/dist/agents/format_scratchpad/openai_tools.d.cts +2 -0
- package/dist/agents/format_scratchpad/openai_tools.d.ts +2 -0
- package/dist/agents/format_scratchpad/openai_tools.js +10 -0
- package/dist/agents/format_scratchpad/openai_tools.js.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.cjs +32 -0
- package/dist/agents/format_scratchpad/tool_calling.cjs.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.d.cts +9 -0
- package/dist/agents/format_scratchpad/tool_calling.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.d.ts +9 -0
- package/dist/agents/format_scratchpad/tool_calling.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/tool_calling.js +31 -0
- package/dist/agents/format_scratchpad/tool_calling.js.map +1 -0
- package/dist/agents/format_scratchpad/xml.cjs +23 -0
- package/dist/agents/format_scratchpad/xml.cjs.map +1 -0
- package/dist/agents/format_scratchpad/xml.d.cts +7 -0
- package/dist/agents/format_scratchpad/xml.d.cts.map +1 -0
- package/dist/agents/format_scratchpad/xml.d.ts +7 -0
- package/dist/agents/format_scratchpad/xml.d.ts.map +1 -0
- package/dist/agents/format_scratchpad/xml.js +17 -0
- package/dist/agents/format_scratchpad/xml.js.map +1 -0
- package/dist/agents/helpers.cjs +20 -0
- package/dist/agents/helpers.cjs.map +1 -0
- package/dist/agents/helpers.js +20 -0
- package/dist/agents/helpers.js.map +1 -0
- package/dist/agents/index.cjs +117 -0
- package/dist/agents/index.cjs.map +1 -0
- package/dist/agents/index.d.cts +23 -0
- package/dist/agents/index.d.ts +23 -0
- package/dist/agents/index.js +69 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/initialize.cjs +119 -0
- package/dist/agents/initialize.cjs.map +1 -0
- package/dist/agents/initialize.d.cts +62 -0
- package/dist/agents/initialize.d.cts.map +1 -0
- package/dist/agents/initialize.d.ts +62 -0
- package/dist/agents/initialize.d.ts.map +1 -0
- package/dist/agents/initialize.js +118 -0
- package/dist/agents/initialize.js.map +1 -0
- package/dist/agents/load.cjs +31 -0
- package/dist/agents/load.cjs.map +1 -0
- package/dist/agents/load.d.cts +14 -0
- package/dist/agents/load.d.cts.map +1 -0
- package/dist/agents/load.d.ts +14 -0
- package/dist/agents/load.d.ts.map +1 -0
- package/dist/agents/load.js +25 -0
- package/dist/agents/load.js.map +1 -0
- package/dist/agents/mrkl/index.cjs +139 -0
- package/dist/agents/mrkl/index.cjs.map +1 -0
- package/dist/agents/mrkl/index.d.cts +97 -0
- package/dist/agents/mrkl/index.d.cts.map +1 -0
- package/dist/agents/mrkl/index.d.ts +97 -0
- package/dist/agents/mrkl/index.d.ts.map +1 -0
- package/dist/agents/mrkl/index.js +138 -0
- package/dist/agents/mrkl/index.js.map +1 -0
- package/dist/agents/mrkl/outputParser.cjs +58 -0
- package/dist/agents/mrkl/outputParser.cjs.map +1 -0
- package/dist/agents/mrkl/outputParser.d.cts +42 -0
- package/dist/agents/mrkl/outputParser.d.cts.map +1 -0
- package/dist/agents/mrkl/outputParser.d.ts +42 -0
- package/dist/agents/mrkl/outputParser.d.ts.map +1 -0
- package/dist/agents/mrkl/outputParser.js +57 -0
- package/dist/agents/mrkl/outputParser.js.map +1 -0
- package/dist/agents/mrkl/prompt.cjs +23 -0
- package/dist/agents/mrkl/prompt.cjs.map +1 -0
- package/dist/agents/mrkl/prompt.js +20 -0
- package/dist/agents/mrkl/prompt.js.map +1 -0
- package/dist/agents/openai/output_parser.cjs +21 -0
- package/dist/agents/openai/output_parser.cjs.map +1 -0
- package/dist/agents/openai/output_parser.d.cts +4 -0
- package/dist/agents/openai/output_parser.d.ts +4 -0
- package/dist/agents/openai/output_parser.js +14 -0
- package/dist/agents/openai/output_parser.js.map +1 -0
- package/dist/agents/openai_functions/index.cjs +217 -0
- package/dist/agents/openai_functions/index.cjs.map +1 -0
- package/dist/agents/openai_functions/index.d.cts +162 -0
- package/dist/agents/openai_functions/index.d.cts.map +1 -0
- package/dist/agents/openai_functions/index.d.ts +162 -0
- package/dist/agents/openai_functions/index.d.ts.map +1 -0
- package/dist/agents/openai_functions/index.js +214 -0
- package/dist/agents/openai_functions/index.js.map +1 -0
- package/dist/agents/openai_functions/output_parser.cjs +88 -0
- package/dist/agents/openai_functions/output_parser.cjs.map +1 -0
- package/dist/agents/openai_functions/output_parser.d.cts +62 -0
- package/dist/agents/openai_functions/output_parser.d.cts.map +1 -0
- package/dist/agents/openai_functions/output_parser.d.ts +62 -0
- package/dist/agents/openai_functions/output_parser.d.ts.map +1 -0
- package/dist/agents/openai_functions/output_parser.js +87 -0
- package/dist/agents/openai_functions/output_parser.js.map +1 -0
- package/dist/agents/openai_functions/prompt.cjs +7 -0
- package/dist/agents/openai_functions/prompt.cjs.map +1 -0
- package/dist/agents/openai_functions/prompt.js +6 -0
- package/dist/agents/openai_functions/prompt.js.map +1 -0
- package/dist/agents/openai_tools/index.cjs +84 -0
- package/dist/agents/openai_tools/index.cjs.map +1 -0
- package/dist/agents/openai_tools/index.d.cts +102 -0
- package/dist/agents/openai_tools/index.d.cts.map +1 -0
- package/dist/agents/openai_tools/index.d.ts +102 -0
- package/dist/agents/openai_tools/index.d.ts.map +1 -0
- package/dist/agents/openai_tools/index.js +83 -0
- package/dist/agents/openai_tools/index.js.map +1 -0
- package/dist/agents/openai_tools/output_parser.cjs +92 -0
- package/dist/agents/openai_tools/output_parser.cjs.map +1 -0
- package/dist/agents/openai_tools/output_parser.d.cts +54 -0
- package/dist/agents/openai_tools/output_parser.d.cts.map +1 -0
- package/dist/agents/openai_tools/output_parser.d.ts +54 -0
- package/dist/agents/openai_tools/output_parser.d.ts.map +1 -0
- package/dist/agents/openai_tools/output_parser.js +91 -0
- package/dist/agents/openai_tools/output_parser.js.map +1 -0
- package/dist/agents/react/index.cjs +80 -0
- package/dist/agents/react/index.cjs.map +1 -0
- package/dist/agents/react/index.d.cts +81 -0
- package/dist/agents/react/index.d.cts.map +1 -0
- package/dist/agents/react/index.d.ts +81 -0
- package/dist/agents/react/index.d.ts.map +1 -0
- package/dist/agents/react/index.js +79 -0
- package/dist/agents/react/index.js.map +1 -0
- package/dist/agents/react/output_parser.cjs +111 -0
- package/dist/agents/react/output_parser.cjs.map +1 -0
- package/dist/agents/react/output_parser.d.cts +68 -0
- package/dist/agents/react/output_parser.d.cts.map +1 -0
- package/dist/agents/react/output_parser.d.ts +68 -0
- package/dist/agents/react/output_parser.d.ts.map +1 -0
- package/dist/agents/react/output_parser.js +105 -0
- package/dist/agents/react/output_parser.js.map +1 -0
- package/dist/agents/react/prompt.cjs +16 -0
- package/dist/agents/react/prompt.cjs.map +1 -0
- package/dist/agents/react/prompt.js +15 -0
- package/dist/agents/react/prompt.js.map +1 -0
- package/dist/agents/structured_chat/index.cjs +243 -0
- package/dist/agents/structured_chat/index.cjs.map +1 -0
- package/dist/agents/structured_chat/index.d.cts +182 -0
- package/dist/agents/structured_chat/index.d.cts.map +1 -0
- package/dist/agents/structured_chat/index.d.ts +182 -0
- package/dist/agents/structured_chat/index.d.ts.map +1 -0
- package/dist/agents/structured_chat/index.js +241 -0
- package/dist/agents/structured_chat/index.js.map +1 -0
- package/dist/agents/structured_chat/outputParser.cjs +136 -0
- package/dist/agents/structured_chat/outputParser.cjs.map +1 -0
- package/dist/agents/structured_chat/outputParser.d.cts +95 -0
- package/dist/agents/structured_chat/outputParser.d.cts.map +1 -0
- package/dist/agents/structured_chat/outputParser.d.ts +95 -0
- package/dist/agents/structured_chat/outputParser.d.ts.map +1 -0
- package/dist/agents/structured_chat/outputParser.js +134 -0
- package/dist/agents/structured_chat/outputParser.js.map +1 -0
- package/dist/agents/structured_chat/prompt.cjs +68 -0
- package/dist/agents/structured_chat/prompt.cjs.map +1 -0
- package/dist/agents/structured_chat/prompt.js +64 -0
- package/dist/agents/structured_chat/prompt.js.map +1 -0
- package/dist/agents/tool_calling/index.cjs +84 -0
- package/dist/agents/tool_calling/index.cjs.map +1 -0
- package/dist/agents/tool_calling/index.d.cts +89 -0
- package/dist/agents/tool_calling/index.d.cts.map +1 -0
- package/dist/agents/tool_calling/index.d.ts +89 -0
- package/dist/agents/tool_calling/index.d.ts.map +1 -0
- package/dist/agents/tool_calling/index.js +83 -0
- package/dist/agents/tool_calling/index.js.map +1 -0
- package/dist/agents/tool_calling/output_parser.cjs +65 -0
- package/dist/agents/tool_calling/output_parser.cjs.map +1 -0
- package/dist/agents/tool_calling/output_parser.d.cts +19 -0
- package/dist/agents/tool_calling/output_parser.d.cts.map +1 -0
- package/dist/agents/tool_calling/output_parser.d.ts +19 -0
- package/dist/agents/tool_calling/output_parser.d.ts.map +1 -0
- package/dist/agents/tool_calling/output_parser.js +64 -0
- package/dist/agents/tool_calling/output_parser.js.map +1 -0
- package/dist/agents/toolkits/base.cjs +2 -0
- package/dist/agents/toolkits/base.d.cts +2 -0
- package/dist/agents/toolkits/base.d.ts +2 -0
- package/dist/agents/toolkits/base.js +3 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.cjs +45 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.cjs.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts +27 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts +27 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.js +45 -0
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.js.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.cjs +90 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.cjs.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.cts +59 -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 +59 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.js +89 -0
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.js.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.cjs +22 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.cjs.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.cts +13 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.cts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts +13 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts.map +1 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.js +21 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.js.map +1 -0
- package/dist/agents/toolkits/index.cjs +45 -0
- package/dist/agents/toolkits/index.cjs.map +1 -0
- package/dist/agents/toolkits/index.d.cts +7 -0
- package/dist/agents/toolkits/index.d.ts +7 -0
- package/dist/agents/toolkits/index.js +28 -0
- package/dist/agents/toolkits/index.js.map +1 -0
- package/dist/agents/toolkits/json/json.cjs +67 -0
- package/dist/agents/toolkits/json/json.cjs.map +1 -0
- package/dist/agents/toolkits/json/json.d.cts +40 -0
- package/dist/agents/toolkits/json/json.d.cts.map +1 -0
- package/dist/agents/toolkits/json/json.d.ts +40 -0
- package/dist/agents/toolkits/json/json.d.ts.map +1 -0
- package/dist/agents/toolkits/json/json.js +65 -0
- package/dist/agents/toolkits/json/json.js.map +1 -0
- package/dist/agents/toolkits/json/prompt.cjs +31 -0
- package/dist/agents/toolkits/json/prompt.cjs.map +1 -0
- package/dist/agents/toolkits/json/prompt.js +29 -0
- package/dist/agents/toolkits/json/prompt.js.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.cjs +107 -0
- package/dist/agents/toolkits/openapi/openapi.cjs.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.d.cts +67 -0
- package/dist/agents/toolkits/openapi/openapi.d.cts.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.d.ts +67 -0
- package/dist/agents/toolkits/openapi/openapi.d.ts.map +1 -0
- package/dist/agents/toolkits/openapi/openapi.js +104 -0
- package/dist/agents/toolkits/openapi/openapi.js.map +1 -0
- package/dist/agents/toolkits/openapi/prompt.cjs +37 -0
- package/dist/agents/toolkits/openapi/prompt.cjs.map +1 -0
- package/dist/agents/toolkits/openapi/prompt.js +34 -0
- package/dist/agents/toolkits/openapi/prompt.js.map +1 -0
- package/dist/agents/toolkits/sql/index.cjs +25 -0
- package/dist/agents/toolkits/sql/index.cjs.map +1 -0
- package/dist/agents/toolkits/sql/index.d.cts +3 -0
- package/dist/agents/toolkits/sql/index.d.ts +3 -0
- package/dist/agents/toolkits/sql/index.js +16 -0
- package/dist/agents/toolkits/sql/index.js.map +1 -0
- package/dist/agents/toolkits/sql/prompt.cjs +24 -0
- package/dist/agents/toolkits/sql/prompt.cjs.map +1 -0
- package/dist/agents/toolkits/sql/prompt.d.cts +6 -0
- package/dist/agents/toolkits/sql/prompt.d.cts.map +1 -0
- package/dist/agents/toolkits/sql/prompt.d.ts +6 -0
- package/dist/agents/toolkits/sql/prompt.d.ts.map +1 -0
- package/dist/agents/toolkits/sql/prompt.js +22 -0
- package/dist/agents/toolkits/sql/prompt.js.map +1 -0
- package/dist/agents/toolkits/sql/sql.cjs +68 -0
- package/dist/agents/toolkits/sql/sql.cjs.map +1 -0
- package/dist/agents/toolkits/sql/sql.d.cts +38 -0
- package/dist/agents/toolkits/sql/sql.d.cts.map +1 -0
- package/dist/agents/toolkits/sql/sql.d.ts +38 -0
- package/dist/agents/toolkits/sql/sql.d.ts.map +1 -0
- package/dist/agents/toolkits/sql/sql.js +66 -0
- package/dist/agents/toolkits/sql/sql.js.map +1 -0
- package/dist/agents/toolkits/vectorstore/prompt.cjs +15 -0
- package/dist/agents/toolkits/vectorstore/prompt.cjs.map +1 -0
- package/dist/agents/toolkits/vectorstore/prompt.js +13 -0
- package/dist/agents/toolkits/vectorstore/prompt.js.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.cjs +117 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.cjs.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.cts +59 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.cts.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.ts +59 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.d.ts.map +1 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.js +113 -0
- package/dist/agents/toolkits/vectorstore/vectorstore.js.map +1 -0
- package/dist/agents/types.cjs +20 -0
- package/dist/agents/types.cjs.map +1 -0
- package/dist/agents/types.d.cts +89 -0
- package/dist/agents/types.d.cts.map +1 -0
- package/dist/agents/types.d.ts +89 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +18 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/agents/xml/index.cjs +154 -0
- package/dist/agents/xml/index.cjs.map +1 -0
- package/dist/agents/xml/index.d.cts +130 -0
- package/dist/agents/xml/index.d.cts.map +1 -0
- package/dist/agents/xml/index.d.ts +130 -0
- package/dist/agents/xml/index.d.ts.map +1 -0
- package/dist/agents/xml/index.js +152 -0
- package/dist/agents/xml/index.js.map +1 -0
- package/dist/agents/xml/output_parser.cjs +77 -0
- package/dist/agents/xml/output_parser.cjs.map +1 -0
- package/dist/agents/xml/output_parser.d.cts +41 -0
- package/dist/agents/xml/output_parser.d.cts.map +1 -0
- package/dist/agents/xml/output_parser.d.ts +41 -0
- package/dist/agents/xml/output_parser.d.ts.map +1 -0
- package/dist/agents/xml/output_parser.js +71 -0
- package/dist/agents/xml/output_parser.js.map +1 -0
- package/dist/agents/xml/prompt.cjs +26 -0
- package/dist/agents/xml/prompt.cjs.map +1 -0
- package/dist/agents/xml/prompt.js +25 -0
- package/dist/agents/xml/prompt.js.map +1 -0
- package/dist/cache/file_system.cjs +68 -0
- package/dist/cache/file_system.cjs.map +1 -0
- package/dist/cache/file_system.d.cts +40 -0
- package/dist/cache/file_system.d.cts.map +1 -0
- package/dist/cache/file_system.d.ts +40 -0
- package/dist/cache/file_system.d.ts.map +1 -0
- package/dist/cache/file_system.js +62 -0
- package/dist/cache/file_system.js.map +1 -0
- package/dist/callbacks/handlers/console.cjs +22 -0
- package/dist/callbacks/handlers/console.cjs.map +1 -0
- package/dist/callbacks/handlers/console.d.cts +10 -0
- package/dist/callbacks/handlers/console.d.cts.map +1 -0
- package/dist/callbacks/handlers/console.d.ts +10 -0
- package/dist/callbacks/handlers/console.d.ts.map +1 -0
- package/dist/callbacks/handlers/console.js +12 -0
- package/dist/callbacks/handlers/console.js.map +1 -0
- package/dist/callbacks/handlers/run_collector.cjs +22 -0
- package/dist/callbacks/handlers/run_collector.cjs.map +1 -0
- package/dist/callbacks/handlers/run_collector.d.cts +10 -0
- package/dist/callbacks/handlers/run_collector.d.cts.map +1 -0
- package/dist/callbacks/handlers/run_collector.d.ts +10 -0
- package/dist/callbacks/handlers/run_collector.d.ts.map +1 -0
- package/dist/callbacks/handlers/run_collector.js +12 -0
- package/dist/callbacks/handlers/run_collector.js.map +1 -0
- package/dist/callbacks/handlers/tracer.cjs +22 -0
- package/dist/callbacks/handlers/tracer.cjs.map +1 -0
- package/dist/callbacks/handlers/tracer.d.cts +10 -0
- package/dist/callbacks/handlers/tracer.d.cts.map +1 -0
- package/dist/callbacks/handlers/tracer.d.ts +10 -0
- package/dist/callbacks/handlers/tracer.d.ts.map +1 -0
- package/dist/callbacks/handlers/tracer.js +12 -0
- package/dist/callbacks/handlers/tracer.js.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.cjs +22 -0
- package/dist/callbacks/handlers/tracer_langchain.cjs.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.cts +10 -0
- package/dist/callbacks/handlers/tracer_langchain.d.cts.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.ts +10 -0
- package/dist/callbacks/handlers/tracer_langchain.d.ts.map +1 -0
- package/dist/callbacks/handlers/tracer_langchain.js +12 -0
- package/dist/callbacks/handlers/tracer_langchain.js.map +1 -0
- package/dist/callbacks/index.cjs +62 -0
- package/dist/callbacks/index.cjs.map +1 -0
- package/dist/callbacks/index.d.cts +6 -0
- package/dist/callbacks/index.d.ts +6 -0
- package/dist/callbacks/index.js +27 -0
- package/dist/callbacks/index.js.map +1 -0
- package/dist/callbacks/promises.cjs +22 -0
- package/dist/callbacks/promises.cjs.map +1 -0
- package/dist/callbacks/promises.d.cts +10 -0
- package/dist/callbacks/promises.d.cts.map +1 -0
- package/dist/callbacks/promises.d.ts +10 -0
- package/dist/callbacks/promises.d.ts.map +1 -0
- package/dist/callbacks/promises.js +12 -0
- package/dist/callbacks/promises.js.map +1 -0
- package/dist/chains/analyze_documents_chain.cjs +83 -0
- package/dist/chains/analyze_documents_chain.cjs.map +1 -0
- package/dist/chains/analyze_documents_chain.d.cts +58 -0
- package/dist/chains/analyze_documents_chain.d.cts.map +1 -0
- package/dist/chains/analyze_documents_chain.d.ts +58 -0
- package/dist/chains/analyze_documents_chain.d.ts.map +1 -0
- package/dist/chains/analyze_documents_chain.js +82 -0
- package/dist/chains/analyze_documents_chain.js.map +1 -0
- package/dist/chains/api/api_chain.cjs +100 -0
- package/dist/chains/api/api_chain.cjs.map +1 -0
- package/dist/chains/api/api_chain.d.cts +63 -0
- package/dist/chains/api/api_chain.d.cts.map +1 -0
- package/dist/chains/api/api_chain.d.ts +63 -0
- package/dist/chains/api/api_chain.d.ts.map +1 -0
- package/dist/chains/api/api_chain.js +100 -0
- package/dist/chains/api/api_chain.js.map +1 -0
- package/dist/chains/api/prompts.cjs +38 -0
- package/dist/chains/api/prompts.cjs.map +1 -0
- package/dist/chains/api/prompts.js +36 -0
- package/dist/chains/api/prompts.js.map +1 -0
- package/dist/chains/base.cjs +180 -0
- package/dist/chains/base.cjs.map +1 -0
- package/dist/chains/base.d.cts +88 -0
- package/dist/chains/base.d.cts.map +1 -0
- package/dist/chains/base.d.ts +88 -0
- package/dist/chains/base.d.ts.map +1 -0
- package/dist/chains/base.js +179 -0
- package/dist/chains/base.js.map +1 -0
- package/dist/chains/chat_vector_db_chain.cjs +130 -0
- package/dist/chains/chat_vector_db_chain.cjs.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.cts +62 -0
- package/dist/chains/chat_vector_db_chain.d.cts.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.ts +62 -0
- package/dist/chains/chat_vector_db_chain.d.ts.map +1 -0
- package/dist/chains/chat_vector_db_chain.js +129 -0
- package/dist/chains/chat_vector_db_chain.js.map +1 -0
- package/dist/chains/combine_docs_chain.cjs +275 -0
- package/dist/chains/combine_docs_chain.cjs.map +1 -0
- package/dist/chains/combine_docs_chain.d.cts +126 -0
- package/dist/chains/combine_docs_chain.d.cts.map +1 -0
- package/dist/chains/combine_docs_chain.d.ts +126 -0
- package/dist/chains/combine_docs_chain.d.ts.map +1 -0
- package/dist/chains/combine_docs_chain.js +272 -0
- package/dist/chains/combine_docs_chain.js.map +1 -0
- package/dist/chains/combine_documents/base.cjs +22 -0
- package/dist/chains/combine_documents/base.cjs.map +1 -0
- package/dist/chains/combine_documents/base.js +18 -0
- package/dist/chains/combine_documents/base.js.map +1 -0
- package/dist/chains/combine_documents/index.cjs +16 -0
- package/dist/chains/combine_documents/index.cjs.map +1 -0
- package/dist/chains/combine_documents/index.d.cts +2 -0
- package/dist/chains/combine_documents/index.d.ts +2 -0
- package/dist/chains/combine_documents/index.js +10 -0
- package/dist/chains/combine_documents/index.js.map +1 -0
- package/dist/chains/combine_documents/reduce.cjs +73 -0
- package/dist/chains/combine_documents/reduce.cjs.map +1 -0
- package/dist/chains/combine_documents/reduce.d.cts +36 -0
- package/dist/chains/combine_documents/reduce.d.cts.map +1 -0
- package/dist/chains/combine_documents/reduce.d.ts +36 -0
- package/dist/chains/combine_documents/reduce.d.ts.map +1 -0
- package/dist/chains/combine_documents/reduce.js +66 -0
- package/dist/chains/combine_documents/reduce.js.map +1 -0
- package/dist/chains/combine_documents/stuff.cjs +41 -0
- package/dist/chains/combine_documents/stuff.cjs.map +1 -0
- package/dist/chains/combine_documents/stuff.d.cts +40 -0
- package/dist/chains/combine_documents/stuff.d.cts.map +1 -0
- package/dist/chains/combine_documents/stuff.d.ts +40 -0
- package/dist/chains/combine_documents/stuff.d.ts.map +1 -0
- package/dist/chains/combine_documents/stuff.js +40 -0
- package/dist/chains/combine_documents/stuff.js.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.cjs +131 -0
- package/dist/chains/constitutional_ai/constitutional_chain.cjs.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts +79 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts +79 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.js +131 -0
- package/dist/chains/constitutional_ai/constitutional_chain.js.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.cjs +322 -0
- package/dist/chains/constitutional_ai/constitutional_principle.cjs.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts +50 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts +50 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.js +320 -0
- package/dist/chains/constitutional_ai/constitutional_principle.js.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_prompts.cjs +96 -0
- package/dist/chains/constitutional_ai/constitutional_prompts.cjs.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_prompts.js +94 -0
- package/dist/chains/constitutional_ai/constitutional_prompts.js.map +1 -0
- package/dist/chains/conversation.cjs +50 -0
- package/dist/chains/conversation.cjs.map +1 -0
- package/dist/chains/conversation.d.cts +34 -0
- package/dist/chains/conversation.d.cts.map +1 -0
- package/dist/chains/conversation.d.ts +34 -0
- package/dist/chains/conversation.d.ts.map +1 -0
- package/dist/chains/conversation.js +48 -0
- package/dist/chains/conversation.js.map +1 -0
- package/dist/chains/conversational_retrieval_chain.cjs +215 -0
- package/dist/chains/conversational_retrieval_chain.cjs.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.cts +149 -0
- package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.ts +149 -0
- package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.js +214 -0
- package/dist/chains/conversational_retrieval_chain.js.map +1 -0
- package/dist/chains/graph_qa/cypher.cjs +133 -0
- package/dist/chains/graph_qa/cypher.cjs.map +1 -0
- package/dist/chains/graph_qa/cypher.d.cts +76 -0
- package/dist/chains/graph_qa/cypher.d.cts.map +1 -0
- package/dist/chains/graph_qa/cypher.d.ts +76 -0
- package/dist/chains/graph_qa/cypher.d.ts.map +1 -0
- package/dist/chains/graph_qa/cypher.js +126 -0
- package/dist/chains/graph_qa/cypher.js.map +1 -0
- package/dist/chains/graph_qa/prompts.cjs +46 -0
- package/dist/chains/graph_qa/prompts.cjs.map +1 -0
- package/dist/chains/graph_qa/prompts.js +44 -0
- package/dist/chains/graph_qa/prompts.js.map +1 -0
- package/dist/chains/history_aware_retriever.cjs +55 -0
- package/dist/chains/history_aware_retriever.cjs.map +1 -0
- package/dist/chains/history_aware_retriever.d.cts +64 -0
- package/dist/chains/history_aware_retriever.d.cts.map +1 -0
- package/dist/chains/history_aware_retriever.d.ts +64 -0
- package/dist/chains/history_aware_retriever.d.ts.map +1 -0
- package/dist/chains/history_aware_retriever.js +49 -0
- package/dist/chains/history_aware_retriever.js.map +1 -0
- package/dist/chains/index.cjs +106 -0
- package/dist/chains/index.cjs.map +1 -0
- package/dist/chains/index.d.cts +25 -0
- package/dist/chains/index.d.ts +25 -0
- package/dist/chains/index.js +67 -0
- package/dist/chains/index.js.map +1 -0
- package/dist/chains/llm_chain.cjs +152 -0
- package/dist/chains/llm_chain.cjs.map +1 -0
- package/dist/chains/llm_chain.d.cts +94 -0
- package/dist/chains/llm_chain.d.cts.map +1 -0
- package/dist/chains/llm_chain.d.ts +94 -0
- package/dist/chains/llm_chain.d.ts.map +1 -0
- package/dist/chains/llm_chain.js +151 -0
- package/dist/chains/llm_chain.js.map +1 -0
- package/dist/chains/load.cjs +46 -0
- package/dist/chains/load.cjs.map +1 -0
- package/dist/chains/load.d.cts +28 -0
- package/dist/chains/load.d.cts.map +1 -0
- package/dist/chains/load.d.ts +28 -0
- package/dist/chains/load.d.ts.map +1 -0
- package/dist/chains/load.js +40 -0
- package/dist/chains/load.js.map +1 -0
- package/dist/chains/openai_functions/base.cjs +139 -0
- package/dist/chains/openai_functions/base.cjs.map +1 -0
- package/dist/chains/openai_functions/base.d.cts +172 -0
- package/dist/chains/openai_functions/base.d.cts.map +1 -0
- package/dist/chains/openai_functions/base.d.ts +172 -0
- package/dist/chains/openai_functions/base.d.ts.map +1 -0
- package/dist/chains/openai_functions/base.js +137 -0
- package/dist/chains/openai_functions/base.js.map +1 -0
- package/dist/chains/openai_functions/extraction.cjs +71 -0
- package/dist/chains/openai_functions/extraction.cjs.map +1 -0
- package/dist/chains/openai_functions/extraction.d.cts +29 -0
- package/dist/chains/openai_functions/extraction.d.cts.map +1 -0
- package/dist/chains/openai_functions/extraction.d.ts +29 -0
- package/dist/chains/openai_functions/extraction.d.ts.map +1 -0
- package/dist/chains/openai_functions/extraction.js +69 -0
- package/dist/chains/openai_functions/extraction.js.map +1 -0
- package/dist/chains/openai_functions/index.cjs +33 -0
- package/dist/chains/openai_functions/index.cjs.map +1 -0
- package/dist/chains/openai_functions/index.d.cts +5 -0
- package/dist/chains/openai_functions/index.d.ts +5 -0
- package/dist/chains/openai_functions/index.js +21 -0
- package/dist/chains/openai_functions/index.js.map +1 -0
- package/dist/chains/openai_functions/openapi.cjs +290 -0
- package/dist/chains/openai_functions/openapi.cjs.map +1 -0
- package/dist/chains/openai_functions/openapi.d.cts +61 -0
- package/dist/chains/openai_functions/openapi.d.cts.map +1 -0
- package/dist/chains/openai_functions/openapi.d.ts +61 -0
- package/dist/chains/openai_functions/openapi.d.ts.map +1 -0
- package/dist/chains/openai_functions/openapi.js +288 -0
- package/dist/chains/openai_functions/openapi.js.map +1 -0
- package/dist/chains/openai_functions/tagging.cjs +72 -0
- package/dist/chains/openai_functions/tagging.cjs.map +1 -0
- package/dist/chains/openai_functions/tagging.d.cts +47 -0
- package/dist/chains/openai_functions/tagging.d.cts.map +1 -0
- package/dist/chains/openai_functions/tagging.d.ts +47 -0
- package/dist/chains/openai_functions/tagging.d.ts.map +1 -0
- package/dist/chains/openai_functions/tagging.js +70 -0
- package/dist/chains/openai_functions/tagging.js.map +1 -0
- package/dist/chains/query_constructor/index.cjs +145 -0
- package/dist/chains/query_constructor/index.cjs.map +1 -0
- package/dist/chains/query_constructor/index.d.cts +82 -0
- package/dist/chains/query_constructor/index.d.cts.map +1 -0
- package/dist/chains/query_constructor/index.d.ts +82 -0
- package/dist/chains/query_constructor/index.d.ts.map +1 -0
- package/dist/chains/query_constructor/index.js +130 -0
- package/dist/chains/query_constructor/index.js.map +1 -0
- package/dist/chains/query_constructor/ir.cjs +22 -0
- package/dist/chains/query_constructor/ir.cjs.map +1 -0
- package/dist/chains/query_constructor/ir.d.cts +1 -0
- package/dist/chains/query_constructor/ir.d.ts +1 -0
- package/dist/chains/query_constructor/ir.js +12 -0
- package/dist/chains/query_constructor/ir.js.map +1 -0
- package/dist/chains/query_constructor/parser.cjs +80 -0
- package/dist/chains/query_constructor/parser.cjs.map +1 -0
- package/dist/chains/query_constructor/parser.d.cts +43 -0
- package/dist/chains/query_constructor/parser.d.cts.map +1 -0
- package/dist/chains/query_constructor/parser.d.ts +43 -0
- package/dist/chains/query_constructor/parser.d.ts.map +1 -0
- package/dist/chains/query_constructor/parser.js +79 -0
- package/dist/chains/query_constructor/parser.js.map +1 -0
- package/dist/chains/query_constructor/prompt.cjs +137 -0
- package/dist/chains/query_constructor/prompt.cjs.map +1 -0
- package/dist/chains/query_constructor/prompt.d.cts +22 -0
- package/dist/chains/query_constructor/prompt.d.cts.map +1 -0
- package/dist/chains/query_constructor/prompt.d.ts +22 -0
- package/dist/chains/query_constructor/prompt.d.ts.map +1 -0
- package/dist/chains/query_constructor/prompt.js +132 -0
- package/dist/chains/query_constructor/prompt.js.map +1 -0
- package/dist/chains/question_answering/load.cjs +99 -0
- package/dist/chains/question_answering/load.cjs.map +1 -0
- package/dist/chains/question_answering/load.d.cts +72 -0
- package/dist/chains/question_answering/load.d.cts.map +1 -0
- package/dist/chains/question_answering/load.d.ts +72 -0
- package/dist/chains/question_answering/load.d.ts.map +1 -0
- package/dist/chains/question_answering/load.js +96 -0
- package/dist/chains/question_answering/load.js.map +1 -0
- package/dist/chains/question_answering/map_reduce_prompts.cjs +61 -0
- package/dist/chains/question_answering/map_reduce_prompts.cjs.map +1 -0
- package/dist/chains/question_answering/map_reduce_prompts.js +59 -0
- package/dist/chains/question_answering/map_reduce_prompts.js.map +1 -0
- package/dist/chains/question_answering/refine_prompts.cjs +60 -0
- package/dist/chains/question_answering/refine_prompts.cjs.map +1 -0
- package/dist/chains/question_answering/refine_prompts.js +58 -0
- package/dist/chains/question_answering/refine_prompts.js.map +1 -0
- package/dist/chains/question_answering/stuff_prompts.cjs +20 -0
- package/dist/chains/question_answering/stuff_prompts.cjs.map +1 -0
- package/dist/chains/question_answering/stuff_prompts.js +19 -0
- package/dist/chains/question_answering/stuff_prompts.js.map +1 -0
- package/dist/chains/retrieval.cjs +55 -0
- package/dist/chains/retrieval.cjs.map +1 -0
- package/dist/chains/retrieval.d.cts +77 -0
- package/dist/chains/retrieval.d.cts.map +1 -0
- package/dist/chains/retrieval.d.ts +77 -0
- package/dist/chains/retrieval.d.ts.map +1 -0
- package/dist/chains/retrieval.js +49 -0
- package/dist/chains/retrieval.js.map +1 -0
- package/dist/chains/retrieval_qa.cjs +104 -0
- package/dist/chains/retrieval_qa.cjs.map +1 -0
- package/dist/chains/retrieval_qa.d.cts +79 -0
- package/dist/chains/retrieval_qa.d.cts.map +1 -0
- package/dist/chains/retrieval_qa.d.ts +79 -0
- package/dist/chains/retrieval_qa.d.ts.map +1 -0
- package/dist/chains/retrieval_qa.js +104 -0
- package/dist/chains/retrieval_qa.js.map +1 -0
- package/dist/chains/router/llm_router.cjs +50 -0
- package/dist/chains/router/llm_router.cjs.map +1 -0
- package/dist/chains/router/llm_router.d.cts +54 -0
- package/dist/chains/router/llm_router.d.cts.map +1 -0
- package/dist/chains/router/llm_router.d.ts +54 -0
- package/dist/chains/router/llm_router.d.ts.map +1 -0
- package/dist/chains/router/llm_router.js +50 -0
- package/dist/chains/router/llm_router.js.map +1 -0
- package/dist/chains/router/multi_prompt.cjs +116 -0
- package/dist/chains/router/multi_prompt.cjs.map +1 -0
- package/dist/chains/router/multi_prompt.d.cts +76 -0
- package/dist/chains/router/multi_prompt.d.cts.map +1 -0
- package/dist/chains/router/multi_prompt.d.ts +76 -0
- package/dist/chains/router/multi_prompt.d.ts.map +1 -0
- package/dist/chains/router/multi_prompt.js +115 -0
- package/dist/chains/router/multi_prompt.js.map +1 -0
- package/dist/chains/router/multi_prompt_prompt.cjs +22 -0
- package/dist/chains/router/multi_prompt_prompt.cjs.map +1 -0
- package/dist/chains/router/multi_prompt_prompt.js +21 -0
- package/dist/chains/router/multi_prompt_prompt.js.map +1 -0
- package/dist/chains/router/multi_retrieval_prompt.cjs +22 -0
- package/dist/chains/router/multi_retrieval_prompt.cjs.map +1 -0
- package/dist/chains/router/multi_retrieval_prompt.js +21 -0
- package/dist/chains/router/multi_retrieval_prompt.js.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.cjs +137 -0
- package/dist/chains/router/multi_retrieval_qa.cjs.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.cts +100 -0
- package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.ts +100 -0
- package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.js +136 -0
- package/dist/chains/router/multi_retrieval_qa.js.map +1 -0
- package/dist/chains/router/multi_route.cjs +69 -0
- package/dist/chains/router/multi_route.cjs.map +1 -0
- package/dist/chains/router/multi_route.d.cts +69 -0
- package/dist/chains/router/multi_route.d.cts.map +1 -0
- package/dist/chains/router/multi_route.d.ts +69 -0
- package/dist/chains/router/multi_route.d.ts.map +1 -0
- package/dist/chains/router/multi_route.js +68 -0
- package/dist/chains/router/multi_route.js.map +1 -0
- package/dist/chains/router/utils.cjs +18 -0
- package/dist/chains/router/utils.cjs.map +1 -0
- package/dist/chains/router/utils.js +17 -0
- package/dist/chains/router/utils.js.map +1 -0
- package/dist/chains/sequential_chain.cjs +250 -0
- package/dist/chains/sequential_chain.cjs.map +1 -0
- package/dist/chains/sequential_chain.d.cts +148 -0
- package/dist/chains/sequential_chain.d.cts.map +1 -0
- package/dist/chains/sequential_chain.d.ts +148 -0
- package/dist/chains/sequential_chain.d.ts.map +1 -0
- package/dist/chains/sequential_chain.js +249 -0
- package/dist/chains/sequential_chain.js.map +1 -0
- package/dist/chains/serde.d.cts +156 -0
- package/dist/chains/serde.d.cts.map +1 -0
- package/dist/chains/serde.d.ts +156 -0
- package/dist/chains/serde.d.ts.map +1 -0
- package/dist/chains/sql_db/index.cjs +35 -0
- package/dist/chains/sql_db/index.cjs.map +1 -0
- package/dist/chains/sql_db/index.d.cts +3 -0
- package/dist/chains/sql_db/index.d.ts +3 -0
- package/dist/chains/sql_db/index.js +21 -0
- package/dist/chains/sql_db/index.js.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.cjs +196 -0
- package/dist/chains/sql_db/sql_db_chain.cjs.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.cts +124 -0
- package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.ts +124 -0
- package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.js +194 -0
- package/dist/chains/sql_db/sql_db_chain.js.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.cjs +194 -0
- package/dist/chains/sql_db/sql_db_prompt.cjs.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.cts +44 -0
- package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.ts +44 -0
- package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.js +186 -0
- package/dist/chains/sql_db/sql_db_prompt.js.map +1 -0
- package/dist/chains/summarization/load.cjs +74 -0
- package/dist/chains/summarization/load.cjs.map +1 -0
- package/dist/chains/summarization/load.d.cts +33 -0
- package/dist/chains/summarization/load.d.cts.map +1 -0
- package/dist/chains/summarization/load.d.ts +33 -0
- package/dist/chains/summarization/load.d.ts.map +1 -0
- package/dist/chains/summarization/load.js +74 -0
- package/dist/chains/summarization/load.js.map +1 -0
- package/dist/chains/summarization/refine_prompts.cjs +24 -0
- package/dist/chains/summarization/refine_prompts.cjs.map +1 -0
- package/dist/chains/summarization/refine_prompts.js +23 -0
- package/dist/chains/summarization/refine_prompts.js.map +1 -0
- package/dist/chains/summarization/stuff_prompts.cjs +19 -0
- package/dist/chains/summarization/stuff_prompts.cjs.map +1 -0
- package/dist/chains/summarization/stuff_prompts.js +18 -0
- package/dist/chains/summarization/stuff_prompts.js.map +1 -0
- package/dist/chains/transform.cjs +39 -0
- package/dist/chains/transform.cjs.map +1 -0
- package/dist/chains/transform.d.cts +36 -0
- package/dist/chains/transform.d.cts.map +1 -0
- package/dist/chains/transform.d.ts +36 -0
- package/dist/chains/transform.d.ts.map +1 -0
- package/dist/chains/transform.js +39 -0
- package/dist/chains/transform.js.map +1 -0
- package/dist/chains/vector_db_qa.cjs +91 -0
- package/dist/chains/vector_db_qa.cjs.map +1 -0
- package/dist/chains/vector_db_qa.d.cts +58 -0
- package/dist/chains/vector_db_qa.d.cts.map +1 -0
- package/dist/chains/vector_db_qa.d.ts +58 -0
- package/dist/chains/vector_db_qa.d.ts.map +1 -0
- package/dist/chains/vector_db_qa.js +91 -0
- package/dist/chains/vector_db_qa.js.map +1 -0
- package/dist/chat_models/universal.cjs +551 -0
- package/dist/chat_models/universal.cjs.map +1 -0
- package/dist/chat_models/universal.d.cts +218 -0
- package/dist/chat_models/universal.d.cts.map +1 -0
- package/dist/chat_models/universal.d.ts +218 -0
- package/dist/chat_models/universal.d.ts.map +1 -0
- package/dist/chat_models/universal.js +541 -0
- package/dist/chat_models/universal.js.map +1 -0
- package/dist/document.cjs +21 -0
- package/dist/document.cjs.map +1 -0
- package/dist/document.d.cts +2 -0
- package/dist/document.d.ts +2 -0
- package/dist/document.js +10 -0
- package/dist/document.js.map +1 -0
- package/dist/document_loaders/base.cjs +22 -0
- package/dist/document_loaders/base.cjs.map +1 -0
- package/dist/document_loaders/base.d.cts +1 -0
- package/dist/document_loaders/base.d.ts +1 -0
- package/dist/document_loaders/base.js +12 -0
- package/dist/document_loaders/base.js.map +1 -0
- package/dist/document_loaders/fs/buffer.cjs +69 -0
- package/dist/document_loaders/fs/buffer.cjs.map +1 -0
- package/dist/document_loaders/fs/buffer.d.cts +46 -0
- package/dist/document_loaders/fs/buffer.d.cts.map +1 -0
- package/dist/document_loaders/fs/buffer.d.ts +46 -0
- package/dist/document_loaders/fs/buffer.d.ts.map +1 -0
- package/dist/document_loaders/fs/buffer.js +63 -0
- package/dist/document_loaders/fs/buffer.js.map +1 -0
- package/dist/document_loaders/fs/directory.cjs +116 -0
- package/dist/document_loaders/fs/directory.cjs.map +1 -0
- package/dist/document_loaders/fs/directory.d.cts +76 -0
- package/dist/document_loaders/fs/directory.d.cts.map +1 -0
- package/dist/document_loaders/fs/directory.d.ts +76 -0
- package/dist/document_loaders/fs/directory.d.ts.map +1 -0
- package/dist/document_loaders/fs/directory.js +109 -0
- package/dist/document_loaders/fs/directory.js.map +1 -0
- package/dist/document_loaders/fs/json.cjs +128 -0
- package/dist/document_loaders/fs/json.cjs.map +1 -0
- package/dist/document_loaders/fs/json.d.cts +65 -0
- package/dist/document_loaders/fs/json.d.cts.map +1 -0
- package/dist/document_loaders/fs/json.d.ts +65 -0
- package/dist/document_loaders/fs/json.d.ts.map +1 -0
- package/dist/document_loaders/fs/json.js +121 -0
- package/dist/document_loaders/fs/json.js.map +1 -0
- package/dist/document_loaders/fs/multi_file.cjs +82 -0
- package/dist/document_loaders/fs/multi_file.cjs.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.cts +43 -0
- package/dist/document_loaders/fs/multi_file.d.cts.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.ts +43 -0
- package/dist/document_loaders/fs/multi_file.d.ts.map +1 -0
- package/dist/document_loaders/fs/multi_file.js +76 -0
- package/dist/document_loaders/fs/multi_file.js.map +1 -0
- package/dist/document_loaders/fs/text.cjs +101 -0
- package/dist/document_loaders/fs/text.cjs.map +1 -0
- package/dist/document_loaders/fs/text.d.cts +57 -0
- package/dist/document_loaders/fs/text.d.cts.map +1 -0
- package/dist/document_loaders/fs/text.d.ts +57 -0
- package/dist/document_loaders/fs/text.d.ts.map +1 -0
- package/dist/document_loaders/fs/text.js +95 -0
- package/dist/document_loaders/fs/text.js.map +1 -0
- package/dist/document_transformers/openai_functions.cjs +60 -0
- package/dist/document_transformers/openai_functions.cjs.map +1 -0
- package/dist/document_transformers/openai_functions.d.cts +29 -0
- package/dist/document_transformers/openai_functions.d.cts.map +1 -0
- package/dist/document_transformers/openai_functions.d.ts +29 -0
- package/dist/document_transformers/openai_functions.d.ts.map +1 -0
- package/dist/document_transformers/openai_functions.js +52 -0
- package/dist/document_transformers/openai_functions.js.map +1 -0
- package/dist/embeddings/cache_backed.cjs +140 -0
- package/dist/embeddings/cache_backed.cjs.map +1 -0
- package/dist/embeddings/cache_backed.d.cts +107 -0
- package/dist/embeddings/cache_backed.d.cts.map +1 -0
- package/dist/embeddings/cache_backed.d.ts +107 -0
- package/dist/embeddings/cache_backed.d.ts.map +1 -0
- package/dist/embeddings/cache_backed.js +134 -0
- package/dist/embeddings/cache_backed.js.map +1 -0
- package/dist/embeddings/fake.cjs +22 -0
- package/dist/embeddings/fake.cjs.map +1 -0
- package/dist/embeddings/fake.d.cts +1 -0
- package/dist/embeddings/fake.d.ts +1 -0
- package/dist/embeddings/fake.js +12 -0
- package/dist/embeddings/fake.js.map +1 -0
- package/dist/evaluation/agents/index.cjs +1 -0
- package/dist/evaluation/agents/index.js +1 -0
- package/dist/evaluation/agents/prompt.cjs +132 -0
- package/dist/evaluation/agents/prompt.cjs.map +1 -0
- package/dist/evaluation/agents/prompt.js +130 -0
- package/dist/evaluation/agents/prompt.js.map +1 -0
- package/dist/evaluation/agents/trajectory.cjs +132 -0
- package/dist/evaluation/agents/trajectory.cjs.map +1 -0
- package/dist/evaluation/agents/trajectory.d.cts +61 -0
- package/dist/evaluation/agents/trajectory.d.cts.map +1 -0
- package/dist/evaluation/agents/trajectory.d.ts +61 -0
- package/dist/evaluation/agents/trajectory.d.ts.map +1 -0
- package/dist/evaluation/agents/trajectory.js +130 -0
- package/dist/evaluation/agents/trajectory.js.map +1 -0
- package/dist/evaluation/base.cjs +169 -0
- package/dist/evaluation/base.cjs.map +1 -0
- package/dist/evaluation/base.d.cts +240 -0
- package/dist/evaluation/base.d.cts.map +1 -0
- package/dist/evaluation/base.d.ts +240 -0
- package/dist/evaluation/base.d.ts.map +1 -0
- package/dist/evaluation/base.js +164 -0
- package/dist/evaluation/base.js.map +1 -0
- package/dist/evaluation/comparison/index.cjs +1 -0
- package/dist/evaluation/comparison/index.js +1 -0
- package/dist/evaluation/comparison/pairwise.cjs +178 -0
- package/dist/evaluation/comparison/pairwise.cjs.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.cts +56 -0
- package/dist/evaluation/comparison/pairwise.d.cts.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.ts +56 -0
- package/dist/evaluation/comparison/pairwise.d.ts.map +1 -0
- package/dist/evaluation/comparison/pairwise.js +175 -0
- package/dist/evaluation/comparison/pairwise.js.map +1 -0
- package/dist/evaluation/comparison/prompt.cjs +77 -0
- package/dist/evaluation/comparison/prompt.cjs.map +1 -0
- package/dist/evaluation/comparison/prompt.js +75 -0
- package/dist/evaluation/comparison/prompt.js.map +1 -0
- package/dist/evaluation/criteria/criteria.cjs +164 -0
- package/dist/evaluation/criteria/criteria.cjs.map +1 -0
- package/dist/evaluation/criteria/criteria.d.cts +85 -0
- package/dist/evaluation/criteria/criteria.d.cts.map +1 -0
- package/dist/evaluation/criteria/criteria.d.ts +85 -0
- package/dist/evaluation/criteria/criteria.d.ts.map +1 -0
- package/dist/evaluation/criteria/criteria.js +161 -0
- package/dist/evaluation/criteria/criteria.js.map +1 -0
- package/dist/evaluation/criteria/index.cjs +1 -0
- package/dist/evaluation/criteria/index.js +1 -0
- package/dist/evaluation/criteria/prompt.cjs +50 -0
- package/dist/evaluation/criteria/prompt.cjs.map +1 -0
- package/dist/evaluation/criteria/prompt.js +48 -0
- package/dist/evaluation/criteria/prompt.js.map +1 -0
- package/dist/evaluation/embedding_distance/base.cjs +108 -0
- package/dist/evaluation/embedding_distance/base.cjs.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.cts +82 -0
- package/dist/evaluation/embedding_distance/base.d.cts.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.ts +82 -0
- package/dist/evaluation/embedding_distance/base.d.ts.map +1 -0
- package/dist/evaluation/embedding_distance/base.js +105 -0
- package/dist/evaluation/embedding_distance/base.js.map +1 -0
- package/dist/evaluation/embedding_distance/index.cjs +1 -0
- package/dist/evaluation/embedding_distance/index.js +1 -0
- package/dist/evaluation/index.cjs +54 -0
- package/dist/evaluation/index.cjs.map +1 -0
- package/dist/evaluation/index.d.cts +8 -0
- package/dist/evaluation/index.d.ts +8 -0
- package/dist/evaluation/index.js +35 -0
- package/dist/evaluation/index.js.map +1 -0
- package/dist/evaluation/loader.cjs +57 -0
- package/dist/evaluation/loader.cjs.map +1 -0
- package/dist/evaluation/loader.d.cts +38 -0
- package/dist/evaluation/loader.d.cts.map +1 -0
- package/dist/evaluation/loader.d.ts +38 -0
- package/dist/evaluation/loader.d.ts.map +1 -0
- package/dist/evaluation/loader.js +56 -0
- package/dist/evaluation/loader.js.map +1 -0
- package/dist/evaluation/qa/eval_chain.cjs +41 -0
- package/dist/evaluation/qa/eval_chain.cjs.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.cts +22 -0
- package/dist/evaluation/qa/eval_chain.d.cts.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.ts +22 -0
- package/dist/evaluation/qa/eval_chain.d.ts.map +1 -0
- package/dist/evaluation/qa/eval_chain.js +41 -0
- package/dist/evaluation/qa/eval_chain.js.map +1 -0
- package/dist/evaluation/qa/index.cjs +1 -0
- package/dist/evaluation/qa/index.js +1 -0
- package/dist/evaluation/qa/prompt.cjs +31 -0
- package/dist/evaluation/qa/prompt.cjs.map +1 -0
- package/dist/evaluation/qa/prompt.js +30 -0
- package/dist/evaluation/qa/prompt.js.map +1 -0
- package/dist/evaluation/types.d.cts +40 -0
- package/dist/evaluation/types.d.cts.map +1 -0
- package/dist/evaluation/types.d.ts +40 -0
- package/dist/evaluation/types.d.ts.map +1 -0
- package/dist/experimental/autogpt/agent.cjs +152 -0
- package/dist/experimental/autogpt/agent.cjs.map +1 -0
- package/dist/experimental/autogpt/agent.d.cts +102 -0
- package/dist/experimental/autogpt/agent.d.cts.map +1 -0
- package/dist/experimental/autogpt/agent.d.ts +102 -0
- package/dist/experimental/autogpt/agent.d.ts.map +1 -0
- package/dist/experimental/autogpt/agent.js +151 -0
- package/dist/experimental/autogpt/agent.js.map +1 -0
- package/dist/experimental/autogpt/index.cjs +26 -0
- package/dist/experimental/autogpt/index.cjs.map +1 -0
- package/dist/experimental/autogpt/index.d.cts +5 -0
- package/dist/experimental/autogpt/index.d.ts +5 -0
- package/dist/experimental/autogpt/index.js +17 -0
- package/dist/experimental/autogpt/index.js.map +1 -0
- package/dist/experimental/autogpt/output_parser.cjs +77 -0
- package/dist/experimental/autogpt/output_parser.cjs.map +1 -0
- package/dist/experimental/autogpt/output_parser.d.cts +39 -0
- package/dist/experimental/autogpt/output_parser.d.cts.map +1 -0
- package/dist/experimental/autogpt/output_parser.d.ts +39 -0
- package/dist/experimental/autogpt/output_parser.d.ts.map +1 -0
- package/dist/experimental/autogpt/output_parser.js +75 -0
- package/dist/experimental/autogpt/output_parser.js.map +1 -0
- package/dist/experimental/autogpt/prompt.cjs +110 -0
- package/dist/experimental/autogpt/prompt.cjs.map +1 -0
- package/dist/experimental/autogpt/prompt.d.cts +69 -0
- package/dist/experimental/autogpt/prompt.d.cts.map +1 -0
- package/dist/experimental/autogpt/prompt.d.ts +69 -0
- package/dist/experimental/autogpt/prompt.d.ts.map +1 -0
- package/dist/experimental/autogpt/prompt.js +109 -0
- package/dist/experimental/autogpt/prompt.js.map +1 -0
- package/dist/experimental/autogpt/prompt_generator.cjs +119 -0
- package/dist/experimental/autogpt/prompt_generator.cjs.map +1 -0
- package/dist/experimental/autogpt/prompt_generator.js +118 -0
- package/dist/experimental/autogpt/prompt_generator.js.map +1 -0
- package/dist/experimental/autogpt/schema.cjs +7 -0
- package/dist/experimental/autogpt/schema.cjs.map +1 -0
- package/dist/experimental/autogpt/schema.d.cts +24 -0
- package/dist/experimental/autogpt/schema.d.cts.map +1 -0
- package/dist/experimental/autogpt/schema.d.ts +24 -0
- package/dist/experimental/autogpt/schema.d.ts.map +1 -0
- package/dist/experimental/autogpt/schema.js +6 -0
- package/dist/experimental/autogpt/schema.js.map +1 -0
- package/dist/experimental/babyagi/agent.cjs +242 -0
- package/dist/experimental/babyagi/agent.cjs.map +1 -0
- package/dist/experimental/babyagi/agent.d.cts +159 -0
- package/dist/experimental/babyagi/agent.d.cts.map +1 -0
- package/dist/experimental/babyagi/agent.d.ts +159 -0
- package/dist/experimental/babyagi/agent.d.ts.map +1 -0
- package/dist/experimental/babyagi/agent.js +241 -0
- package/dist/experimental/babyagi/agent.js.map +1 -0
- package/dist/experimental/babyagi/index.cjs +27 -0
- package/dist/experimental/babyagi/index.cjs.map +1 -0
- package/dist/experimental/babyagi/index.d.cts +5 -0
- package/dist/experimental/babyagi/index.d.ts +5 -0
- package/dist/experimental/babyagi/index.js +18 -0
- package/dist/experimental/babyagi/index.js.map +1 -0
- package/dist/experimental/babyagi/task_creation.cjs +41 -0
- package/dist/experimental/babyagi/task_creation.cjs.map +1 -0
- package/dist/experimental/babyagi/task_creation.d.cts +21 -0
- package/dist/experimental/babyagi/task_creation.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_creation.d.ts +21 -0
- package/dist/experimental/babyagi/task_creation.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_creation.js +40 -0
- package/dist/experimental/babyagi/task_creation.js.map +1 -0
- package/dist/experimental/babyagi/task_execution.cjs +39 -0
- package/dist/experimental/babyagi/task_execution.cjs.map +1 -0
- package/dist/experimental/babyagi/task_execution.d.cts +20 -0
- package/dist/experimental/babyagi/task_execution.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_execution.d.ts +20 -0
- package/dist/experimental/babyagi/task_execution.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_execution.js +38 -0
- package/dist/experimental/babyagi/task_execution.js.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.cjs +38 -0
- package/dist/experimental/babyagi/task_prioritization.cjs.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.d.cts +19 -0
- package/dist/experimental/babyagi/task_prioritization.d.cts.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.d.ts +19 -0
- package/dist/experimental/babyagi/task_prioritization.d.ts.map +1 -0
- package/dist/experimental/babyagi/task_prioritization.js +37 -0
- package/dist/experimental/babyagi/task_prioritization.js.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/index.cjs +16 -0
- package/dist/experimental/chains/violation_of_expectations/index.cjs.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/index.d.cts +2 -0
- package/dist/experimental/chains/violation_of_expectations/index.d.ts +2 -0
- package/dist/experimental/chains/violation_of_expectations/index.js +10 -0
- package/dist/experimental/chains/violation_of_expectations/index.js.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.cjs +53 -0
- package/dist/experimental/chains/violation_of_expectations/types.cjs.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.cts +19 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.cts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.ts +19 -0
- package/dist/experimental/chains/violation_of_expectations/types.d.ts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/types.js +51 -0
- package/dist/experimental/chains/violation_of_expectations/types.js.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.cjs +263 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.cjs.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.cts +102 -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 +102 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.js +262 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.js.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.cjs +52 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.cjs.map +1 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.js +48 -0
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.js.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.cjs +319 -0
- package/dist/experimental/generative_agents/generative_agent.cjs.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.d.cts +174 -0
- package/dist/experimental/generative_agents/generative_agent.d.cts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.d.ts +174 -0
- package/dist/experimental/generative_agents/generative_agent.d.ts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent.js +318 -0
- package/dist/experimental/generative_agents/generative_agent.js.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.cjs +364 -0
- package/dist/experimental/generative_agents/generative_agent_memory.cjs.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts +205 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts +205 -0
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts.map +1 -0
- package/dist/experimental/generative_agents/generative_agent_memory.js +363 -0
- package/dist/experimental/generative_agents/generative_agent_memory.js.map +1 -0
- package/dist/experimental/generative_agents/index.cjs +21 -0
- package/dist/experimental/generative_agents/index.cjs.map +1 -0
- package/dist/experimental/generative_agents/index.d.cts +3 -0
- package/dist/experimental/generative_agents/index.d.ts +3 -0
- package/dist/experimental/generative_agents/index.js +14 -0
- package/dist/experimental/generative_agents/index.js.map +1 -0
- package/dist/experimental/masking/index.cjs +24 -0
- package/dist/experimental/masking/index.cjs.map +1 -0
- package/dist/experimental/masking/index.d.cts +5 -0
- package/dist/experimental/masking/index.d.ts +5 -0
- package/dist/experimental/masking/index.js +16 -0
- package/dist/experimental/masking/index.js.map +1 -0
- package/dist/experimental/masking/parser.cjs +79 -0
- package/dist/experimental/masking/parser.cjs.map +1 -0
- package/dist/experimental/masking/parser.d.cts +50 -0
- package/dist/experimental/masking/parser.d.cts.map +1 -0
- package/dist/experimental/masking/parser.d.ts +50 -0
- package/dist/experimental/masking/parser.d.ts.map +1 -0
- package/dist/experimental/masking/parser.js +78 -0
- package/dist/experimental/masking/parser.js.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.cjs +91 -0
- package/dist/experimental/masking/regex_masking_transformer.cjs.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.d.cts +54 -0
- package/dist/experimental/masking/regex_masking_transformer.d.cts.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.d.ts +54 -0
- package/dist/experimental/masking/regex_masking_transformer.d.ts.map +1 -0
- package/dist/experimental/masking/regex_masking_transformer.js +91 -0
- package/dist/experimental/masking/regex_masking_transformer.js.map +1 -0
- package/dist/experimental/masking/transformer.cjs +10 -0
- package/dist/experimental/masking/transformer.cjs.map +1 -0
- package/dist/experimental/masking/transformer.d.cts +11 -0
- package/dist/experimental/masking/transformer.d.cts.map +1 -0
- package/dist/experimental/masking/transformer.d.ts +11 -0
- package/dist/experimental/masking/transformer.d.ts.map +1 -0
- package/dist/experimental/masking/transformer.js +9 -0
- package/dist/experimental/masking/transformer.js.map +1 -0
- package/dist/experimental/masking/types.d.cts +31 -0
- package/dist/experimental/masking/types.d.cts.map +1 -0
- package/dist/experimental/masking/types.d.ts +31 -0
- package/dist/experimental/masking/types.d.ts.map +1 -0
- package/dist/experimental/openai_assistant/index.cjs +236 -0
- package/dist/experimental/openai_assistant/index.cjs.map +1 -0
- package/dist/experimental/openai_assistant/index.d.cts +93 -0
- package/dist/experimental/openai_assistant/index.d.cts.map +1 -0
- package/dist/experimental/openai_assistant/index.d.ts +93 -0
- package/dist/experimental/openai_assistant/index.d.ts.map +1 -0
- package/dist/experimental/openai_assistant/index.js +229 -0
- package/dist/experimental/openai_assistant/index.js.map +1 -0
- package/dist/experimental/openai_assistant/schema.d.cts +17 -0
- package/dist/experimental/openai_assistant/schema.d.cts.map +1 -0
- package/dist/experimental/openai_assistant/schema.d.ts +17 -0
- package/dist/experimental/openai_assistant/schema.d.ts.map +1 -0
- package/dist/experimental/openai_files/index.cjs +92 -0
- package/dist/experimental/openai_files/index.cjs.map +1 -0
- package/dist/experimental/openai_files/index.d.cts +105 -0
- package/dist/experimental/openai_files/index.d.cts.map +1 -0
- package/dist/experimental/openai_files/index.d.ts +105 -0
- package/dist/experimental/openai_files/index.d.ts.map +1 -0
- package/dist/experimental/openai_files/index.js +86 -0
- package/dist/experimental/openai_files/index.js.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.cjs +144 -0
- package/dist/experimental/plan_and_execute/agent_executor.cjs.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.cts +97 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.ts +97 -0
- package/dist/experimental/plan_and_execute/agent_executor.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/agent_executor.js +144 -0
- package/dist/experimental/plan_and_execute/agent_executor.js.map +1 -0
- package/dist/experimental/plan_and_execute/base.cjs +76 -0
- package/dist/experimental/plan_and_execute/base.cjs.map +1 -0
- package/dist/experimental/plan_and_execute/base.d.cts +90 -0
- package/dist/experimental/plan_and_execute/base.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/base.d.ts +90 -0
- package/dist/experimental/plan_and_execute/base.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/base.js +70 -0
- package/dist/experimental/plan_and_execute/base.js.map +1 -0
- package/dist/experimental/plan_and_execute/index.cjs +34 -0
- package/dist/experimental/plan_and_execute/index.cjs.map +1 -0
- package/dist/experimental/plan_and_execute/index.d.cts +4 -0
- package/dist/experimental/plan_and_execute/index.d.ts +4 -0
- package/dist/experimental/plan_and_execute/index.js +21 -0
- package/dist/experimental/plan_and_execute/index.js.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.cjs +40 -0
- package/dist/experimental/plan_and_execute/outputParser.cjs.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.d.cts +31 -0
- package/dist/experimental/plan_and_execute/outputParser.d.cts.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.d.ts +31 -0
- package/dist/experimental/plan_and_execute/outputParser.d.ts.map +1 -0
- package/dist/experimental/plan_and_execute/outputParser.js +39 -0
- package/dist/experimental/plan_and_execute/outputParser.js.map +1 -0
- package/dist/experimental/plan_and_execute/prompt.cjs +43 -0
- package/dist/experimental/plan_and_execute/prompt.cjs.map +1 -0
- package/dist/experimental/plan_and_execute/prompt.js +40 -0
- package/dist/experimental/plan_and_execute/prompt.js.map +1 -0
- package/dist/experimental/prompts/custom_format.cjs +58 -0
- package/dist/experimental/prompts/custom_format.cjs.map +1 -0
- package/dist/experimental/prompts/custom_format.d.cts +38 -0
- package/dist/experimental/prompts/custom_format.d.cts.map +1 -0
- package/dist/experimental/prompts/custom_format.d.ts +38 -0
- package/dist/experimental/prompts/custom_format.d.ts.map +1 -0
- package/dist/experimental/prompts/custom_format.js +52 -0
- package/dist/experimental/prompts/custom_format.js.map +1 -0
- package/dist/experimental/prompts/handlebars.cjs +72 -0
- package/dist/experimental/prompts/handlebars.cjs.map +1 -0
- package/dist/experimental/prompts/handlebars.d.cts +22 -0
- package/dist/experimental/prompts/handlebars.d.cts.map +1 -0
- package/dist/experimental/prompts/handlebars.d.ts +22 -0
- package/dist/experimental/prompts/handlebars.d.ts.map +1 -0
- package/dist/experimental/prompts/handlebars.js +64 -0
- package/dist/experimental/prompts/handlebars.js.map +1 -0
- package/dist/hub/base.cjs +112 -0
- package/dist/hub/base.cjs.map +1 -0
- package/dist/hub/base.d.cts +29 -0
- package/dist/hub/base.d.cts.map +1 -0
- package/dist/hub/base.d.ts +29 -0
- package/dist/hub/base.d.ts.map +1 -0
- package/dist/hub/base.js +107 -0
- package/dist/hub/base.js.map +1 -0
- package/dist/hub/index.cjs +49 -0
- package/dist/hub/index.cjs.map +1 -0
- package/dist/hub/index.d.cts +32 -0
- package/dist/hub/index.d.cts.map +1 -0
- package/dist/hub/index.d.ts +32 -0
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +48 -0
- package/dist/hub/index.js.map +1 -0
- package/dist/hub/node.cjs +35 -0
- package/dist/hub/node.cjs.map +1 -0
- package/dist/hub/node.d.cts +23 -0
- package/dist/hub/node.d.cts.map +1 -0
- package/dist/hub/node.d.ts +23 -0
- package/dist/hub/node.d.ts.map +1 -0
- package/dist/hub/node.js +34 -0
- package/dist/hub/node.js.map +1 -0
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes/index.cjs +28 -0
- package/dist/indexes/index.cjs.map +1 -0
- package/dist/indexes/index.d.cts +2 -0
- package/dist/indexes/index.d.ts +2 -0
- package/dist/indexes/index.js +17 -0
- package/dist/indexes/index.js.map +1 -0
- package/dist/langchain-core/dist/load/map_keys.d.cts +10 -0
- package/dist/langchain-core/dist/load/map_keys.d.cts.map +1 -0
- package/dist/langchain-core/dist/load/serializable.d.cts +82 -0
- package/dist/langchain-core/dist/load/serializable.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/base.d.cts +125 -0
- package/dist/langchain-core/dist/messages/base.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/base.d.cts +22 -0
- package/dist/langchain-core/dist/messages/content/base.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/data.d.cts +96 -0
- package/dist/langchain-core/dist/messages/content/data.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/index.d.cts +121 -0
- package/dist/langchain-core/dist/messages/content/index.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts +110 -0
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/tools.d.cts +130 -0
- package/dist/langchain-core/dist/messages/content/tools.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/message.d.cts +598 -0
- package/dist/langchain-core/dist/messages/message.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/metadata.d.cts +100 -0
- package/dist/langchain-core/dist/messages/metadata.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/utils.d.cts +75 -0
- package/dist/langchain-core/dist/messages/utils.d.cts.map +1 -0
- package/dist/langchain-core/dist/prompt_values.d.cts +13 -0
- package/dist/langchain-core/dist/prompt_values.d.cts.map +1 -0
- package/dist/langchain-core/dist/tools/types.d.cts +41 -0
- package/dist/langchain-core/dist/tools/types.d.cts.map +1 -0
- package/dist/langchain-core/dist/utils/types/index.d.cts +8 -0
- package/dist/langchain-core/dist/utils/types/index.d.cts.map +1 -0
- package/dist/libs/langchain-core/dist/callbacks/base.d.ts +1 -0
- package/dist/libs/langchain-core/dist/callbacks/manager.d.ts +2 -0
- package/dist/libs/langchain-core/dist/language_models/base.d.ts +6 -0
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts +10 -0
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/load/serializable.d.ts +82 -0
- package/dist/libs/langchain-core/dist/load/serializable.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/base.d.ts +125 -0
- package/dist/libs/langchain-core/dist/messages/base.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts +22 -0
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts +96 -0
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts +121 -0
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +110 -0
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +130 -0
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/message.d.ts +598 -0
- package/dist/libs/langchain-core/dist/messages/message.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/metadata.d.ts +100 -0
- package/dist/libs/langchain-core/dist/messages/metadata.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/utils.d.ts +75 -0
- package/dist/libs/langchain-core/dist/messages/utils.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/prompt_values.d.ts +13 -0
- package/dist/libs/langchain-core/dist/prompt_values.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/runnables/base.d.ts +8 -0
- package/dist/libs/langchain-core/dist/runnables/graph.d.ts +1 -0
- package/dist/libs/langchain-core/dist/runnables/types.d.ts +2 -0
- package/dist/libs/langchain-core/dist/tools/types.d.ts +47 -0
- package/dist/libs/langchain-core/dist/tools/types.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/tracers/base.d.ts +2 -0
- package/dist/libs/langchain-core/dist/tracers/event_stream.d.ts +1 -0
- package/dist/libs/langchain-core/dist/tracers/log_stream.d.ts +3 -0
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts +10 -0
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/utils/types/zod.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseTypes.d.ts +16 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/array.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/date.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/enum.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/literal.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/map.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/number.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/object.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/record.d.ts +4 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/set.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/string.d.ts +1 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +2 -0
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/union.d.ts +2 -0
- package/dist/load/import_constants.cjs +32 -0
- package/dist/load/import_constants.cjs.map +1 -0
- package/dist/load/import_constants.js +31 -0
- package/dist/load/import_constants.js.map +1 -0
- package/dist/load/import_map.cjs +200 -0
- package/dist/load/import_map.cjs.map +1 -0
- package/dist/load/import_map.js +195 -0
- package/dist/load/import_map.js.map +1 -0
- package/dist/load/import_type.d.cts +6 -0
- package/dist/load/import_type.d.cts.map +1 -0
- package/dist/load/import_type.d.ts +6 -0
- package/dist/load/import_type.d.ts.map +1 -0
- package/dist/load/index.cjs +30 -0
- package/dist/load/index.cjs.map +1 -0
- package/dist/load/index.d.cts +23 -0
- package/dist/load/index.d.cts.map +1 -0
- package/dist/load/index.d.ts +23 -0
- package/dist/load/index.d.ts.map +1 -0
- package/dist/load/index.js +29 -0
- package/dist/load/index.js.map +1 -0
- package/dist/load/map_keys.d.cts +8 -0
- package/dist/load/map_keys.d.cts.map +1 -0
- package/dist/load/map_keys.d.ts +8 -0
- package/dist/load/map_keys.d.ts.map +1 -0
- package/dist/load/serializable.cjs +22 -0
- package/dist/load/serializable.cjs.map +1 -0
- package/dist/load/serializable.d.cts +10 -0
- package/dist/load/serializable.d.cts.map +1 -0
- package/dist/load/serializable.d.ts +10 -0
- package/dist/load/serializable.d.ts.map +1 -0
- package/dist/load/serializable.js +12 -0
- package/dist/load/serializable.js.map +1 -0
- package/dist/memory/buffer_memory.cjs +80 -0
- package/dist/memory/buffer_memory.cjs.map +1 -0
- package/dist/memory/buffer_memory.d.cts +67 -0
- package/dist/memory/buffer_memory.d.cts.map +1 -0
- package/dist/memory/buffer_memory.d.ts +67 -0
- package/dist/memory/buffer_memory.d.ts.map +1 -0
- package/dist/memory/buffer_memory.js +79 -0
- package/dist/memory/buffer_memory.js.map +1 -0
- package/dist/memory/buffer_token_memory.cjs +80 -0
- package/dist/memory/buffer_token_memory.cjs.map +1 -0
- package/dist/memory/buffer_token_memory.d.cts +67 -0
- package/dist/memory/buffer_token_memory.d.cts.map +1 -0
- package/dist/memory/buffer_token_memory.d.ts +67 -0
- package/dist/memory/buffer_token_memory.d.ts.map +1 -0
- package/dist/memory/buffer_token_memory.js +79 -0
- package/dist/memory/buffer_token_memory.js.map +1 -0
- package/dist/memory/buffer_window_memory.cjs +77 -0
- package/dist/memory/buffer_window_memory.cjs.map +1 -0
- package/dist/memory/buffer_window_memory.d.cts +64 -0
- package/dist/memory/buffer_window_memory.d.cts.map +1 -0
- package/dist/memory/buffer_window_memory.d.ts +64 -0
- package/dist/memory/buffer_window_memory.d.ts.map +1 -0
- package/dist/memory/buffer_window_memory.js +76 -0
- package/dist/memory/buffer_window_memory.js.map +1 -0
- package/dist/memory/chat_memory.cjs +53 -0
- package/dist/memory/chat_memory.cjs.map +1 -0
- package/dist/memory/chat_memory.d.cts +42 -0
- package/dist/memory/chat_memory.d.cts.map +1 -0
- package/dist/memory/chat_memory.d.ts +42 -0
- package/dist/memory/chat_memory.d.ts.map +1 -0
- package/dist/memory/chat_memory.js +47 -0
- package/dist/memory/chat_memory.js.map +1 -0
- package/dist/memory/combined_memory.cjs +88 -0
- package/dist/memory/combined_memory.cjs.map +1 -0
- package/dist/memory/combined_memory.d.cts +60 -0
- package/dist/memory/combined_memory.d.cts.map +1 -0
- package/dist/memory/combined_memory.d.ts +60 -0
- package/dist/memory/combined_memory.d.ts.map +1 -0
- package/dist/memory/combined_memory.js +88 -0
- package/dist/memory/combined_memory.js.map +1 -0
- package/dist/memory/entity_memory.cjs +144 -0
- package/dist/memory/entity_memory.cjs.map +1 -0
- package/dist/memory/entity_memory.d.cts +99 -0
- package/dist/memory/entity_memory.d.cts.map +1 -0
- package/dist/memory/entity_memory.d.ts +99 -0
- package/dist/memory/entity_memory.d.ts.map +1 -0
- package/dist/memory/entity_memory.js +143 -0
- package/dist/memory/entity_memory.js.map +1 -0
- package/dist/memory/index.cjs +85 -0
- package/dist/memory/index.cjs.map +1 -0
- package/dist/memory/index.d.cts +14 -0
- package/dist/memory/index.d.ts +14 -0
- package/dist/memory/index.js +39 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/prompt.cjs +124 -0
- package/dist/memory/prompt.cjs.map +1 -0
- package/dist/memory/prompt.d.cts +12 -0
- package/dist/memory/prompt.d.cts.map +1 -0
- package/dist/memory/prompt.d.ts +12 -0
- package/dist/memory/prompt.d.ts.map +1 -0
- package/dist/memory/prompt.js +120 -0
- package/dist/memory/prompt.js.map +1 -0
- package/dist/memory/stores/entity/base.cjs +13 -0
- package/dist/memory/stores/entity/base.cjs.map +1 -0
- package/dist/memory/stores/entity/base.d.cts +18 -0
- package/dist/memory/stores/entity/base.d.cts.map +1 -0
- package/dist/memory/stores/entity/base.d.ts +18 -0
- package/dist/memory/stores/entity/base.d.ts.map +1 -0
- package/dist/memory/stores/entity/base.js +12 -0
- package/dist/memory/stores/entity/base.js.map +1 -0
- package/dist/memory/stores/entity/in_memory.cjs +64 -0
- package/dist/memory/stores/entity/in_memory.cjs.map +1 -0
- package/dist/memory/stores/entity/in_memory.js +64 -0
- package/dist/memory/stores/entity/in_memory.js.map +1 -0
- package/dist/memory/summary.cjs +127 -0
- package/dist/memory/summary.cjs.map +1 -0
- package/dist/memory/summary.d.cts +101 -0
- package/dist/memory/summary.d.cts.map +1 -0
- package/dist/memory/summary.d.ts +101 -0
- package/dist/memory/summary.d.ts.map +1 -0
- package/dist/memory/summary.js +125 -0
- package/dist/memory/summary.js.map +1 -0
- package/dist/memory/summary_buffer.cjs +117 -0
- package/dist/memory/summary_buffer.cjs.map +1 -0
- package/dist/memory/summary_buffer.d.cts +90 -0
- package/dist/memory/summary_buffer.d.cts.map +1 -0
- package/dist/memory/summary_buffer.d.ts +90 -0
- package/dist/memory/summary_buffer.d.ts.map +1 -0
- package/dist/memory/summary_buffer.js +116 -0
- package/dist/memory/summary_buffer.js.map +1 -0
- package/dist/memory/vector_store.cjs +87 -0
- package/dist/memory/vector_store.cjs.map +1 -0
- package/dist/memory/vector_store.d.cts +81 -0
- package/dist/memory/vector_store.d.cts.map +1 -0
- package/dist/memory/vector_store.d.ts +81 -0
- package/dist/memory/vector_store.d.ts.map +1 -0
- package/dist/memory/vector_store.js +86 -0
- package/dist/memory/vector_store.js.map +1 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +248 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +244 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/client.cjs +3040 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/client.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/client.js +3039 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/client.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/env.cjs +12 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/env.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/env.js +12 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/env.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/constants.cjs +71 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/constants.js +38 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/translator.cjs +221 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/translator.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/translator.js +221 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/experimental/otel/translator.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/index.cjs +11 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/run_trees.cjs +701 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/run_trees.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/run_trees.js +700 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/run_trees.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/constants.cjs +7 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/constants.js +6 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/fetch.cjs +29 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/fetch.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/fetch.js +28 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/fetch.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/otel.cjs +115 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/otel.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/otel.js +113 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/singletons/otel.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/_uuid.cjs +14 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/_uuid.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/_uuid.js +13 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/_uuid.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/async_caller.cjs +94 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/async_caller.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/async_caller.js +94 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/async_caller.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/env.cjs +140 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/env.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/env.js +135 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/env.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/error.cjs +89 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/error.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/error.js +86 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/error.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +140 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +140 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/messages.cjs +18 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/messages.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/messages.js +16 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/messages.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/project.cjs +10 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/project.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/project.js +10 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/project.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/prompts.cjs +30 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/prompts.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/prompts.js +30 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/prompts.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/warn.cjs +13 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/warn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/warn.js +12 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/dist/utils/warn.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/index.cjs +6 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@4.1.11_/node_modules/langsmith/index.js +6 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +27 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +23 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +267 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +263 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +32 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +28 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +49 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +45 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +1 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +52 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +48 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +90 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +86 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +294 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +290 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +191 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +187 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +51 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +47 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +48 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +44 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +43 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +39 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +32 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +29 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +146 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +142 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +15 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +32 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +47 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +43 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +94 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +90 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +37 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +37 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +55 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +51 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +74 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +70 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +48 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +44 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +112 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +108 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +27 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +23 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/output_parsers/combining.cjs +61 -0
- package/dist/output_parsers/combining.cjs.map +1 -0
- package/dist/output_parsers/combining.d.cts +46 -0
- package/dist/output_parsers/combining.d.cts.map +1 -0
- package/dist/output_parsers/combining.d.ts +46 -0
- package/dist/output_parsers/combining.d.ts.map +1 -0
- package/dist/output_parsers/combining.js +60 -0
- package/dist/output_parsers/combining.js.map +1 -0
- package/dist/output_parsers/datetime.cjs +46 -0
- package/dist/output_parsers/datetime.cjs.map +1 -0
- package/dist/output_parsers/datetime.d.cts +33 -0
- package/dist/output_parsers/datetime.d.cts.map +1 -0
- package/dist/output_parsers/datetime.d.ts +33 -0
- package/dist/output_parsers/datetime.d.ts.map +1 -0
- package/dist/output_parsers/datetime.js +45 -0
- package/dist/output_parsers/datetime.js.map +1 -0
- package/dist/output_parsers/expression.cjs +86 -0
- package/dist/output_parsers/expression.cjs.map +1 -0
- package/dist/output_parsers/expression.d.cts +53 -0
- package/dist/output_parsers/expression.d.cts.map +1 -0
- package/dist/output_parsers/expression.d.ts +53 -0
- package/dist/output_parsers/expression.d.ts.map +1 -0
- package/dist/output_parsers/expression.js +79 -0
- package/dist/output_parsers/expression.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.cjs +38 -0
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.js +38 -0
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.cjs +130 -0
- package/dist/output_parsers/expression_type_handlers/base.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.cts +108 -0
- package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.ts +108 -0
- package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.js +129 -0
- package/dist/output_parsers/expression_type_handlers/base.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.cjs +38 -0
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.js +38 -0
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.cjs +64 -0
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.js +64 -0
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.cjs +68 -0
- package/dist/output_parsers/expression_type_handlers/factory.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.cts +35 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.ts +35 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.js +68 -0
- package/dist/output_parsers/expression_type_handlers/factory.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.cjs +299 -0
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.js +298 -0
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/identifier_handler.cjs +40 -0
- package/dist/output_parsers/expression_type_handlers/identifier_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/identifier_handler.js +40 -0
- package/dist/output_parsers/expression_type_handlers/identifier_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.cjs +48 -0
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.js +48 -0
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.cjs +36 -0
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.js +36 -0
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.cjs +40 -0
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.js +40 -0
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.cjs +45 -0
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.js +45 -0
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.cjs +37 -0
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.js +37 -0
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.cts +95 -0
- package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.ts +95 -0
- package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -0
- package/dist/output_parsers/fix.cjs +92 -0
- package/dist/output_parsers/fix.cjs.map +1 -0
- package/dist/output_parsers/fix.d.cts +60 -0
- package/dist/output_parsers/fix.d.cts.map +1 -0
- package/dist/output_parsers/fix.d.ts +60 -0
- package/dist/output_parsers/fix.d.ts.map +1 -0
- package/dist/output_parsers/fix.js +91 -0
- package/dist/output_parsers/fix.js.map +1 -0
- package/dist/output_parsers/http_response.cjs +53 -0
- package/dist/output_parsers/http_response.cjs.map +1 -0
- package/dist/output_parsers/http_response.d.cts +33 -0
- package/dist/output_parsers/http_response.d.cts.map +1 -0
- package/dist/output_parsers/http_response.d.ts +33 -0
- package/dist/output_parsers/http_response.d.ts.map +1 -0
- package/dist/output_parsers/http_response.js +52 -0
- package/dist/output_parsers/http_response.js.map +1 -0
- package/dist/output_parsers/index.cjs +74 -0
- package/dist/output_parsers/index.cjs.map +1 -0
- package/dist/output_parsers/index.d.cts +11 -0
- package/dist/output_parsers/index.d.ts +11 -0
- package/dist/output_parsers/index.js +37 -0
- package/dist/output_parsers/index.js.map +1 -0
- package/dist/output_parsers/noop.cjs +43 -0
- package/dist/output_parsers/noop.cjs.map +1 -0
- package/dist/output_parsers/noop.js +42 -0
- package/dist/output_parsers/noop.js.map +1 -0
- package/dist/output_parsers/openai_functions.cjs +145 -0
- package/dist/output_parsers/openai_functions.cjs.map +1 -0
- package/dist/output_parsers/openai_functions.d.cts +85 -0
- package/dist/output_parsers/openai_functions.d.cts.map +1 -0
- package/dist/output_parsers/openai_functions.d.ts +85 -0
- package/dist/output_parsers/openai_functions.d.ts.map +1 -0
- package/dist/output_parsers/openai_functions.js +142 -0
- package/dist/output_parsers/openai_functions.js.map +1 -0
- package/dist/output_parsers/openai_tools.cjs +89 -0
- package/dist/output_parsers/openai_tools.cjs.map +1 -0
- package/dist/output_parsers/openai_tools.d.cts +69 -0
- package/dist/output_parsers/openai_tools.d.cts.map +1 -0
- package/dist/output_parsers/openai_tools.d.ts +69 -0
- package/dist/output_parsers/openai_tools.d.ts.map +1 -0
- package/dist/output_parsers/openai_tools.js +87 -0
- package/dist/output_parsers/openai_tools.js.map +1 -0
- package/dist/output_parsers/prompts.cjs +25 -0
- package/dist/output_parsers/prompts.cjs.map +1 -0
- package/dist/output_parsers/prompts.js +24 -0
- package/dist/output_parsers/prompts.js.map +1 -0
- package/dist/output_parsers/regex.cjs +74 -0
- package/dist/output_parsers/regex.cjs.map +1 -0
- package/dist/output_parsers/regex.d.cts +49 -0
- package/dist/output_parsers/regex.d.cts.map +1 -0
- package/dist/output_parsers/regex.d.ts +49 -0
- package/dist/output_parsers/regex.d.ts.map +1 -0
- package/dist/output_parsers/regex.js +73 -0
- package/dist/output_parsers/regex.js.map +1 -0
- package/dist/output_parsers/router.cjs +40 -0
- package/dist/output_parsers/router.cjs.map +1 -0
- package/dist/output_parsers/router.d.cts +36 -0
- package/dist/output_parsers/router.d.cts.map +1 -0
- package/dist/output_parsers/router.d.ts +36 -0
- package/dist/output_parsers/router.d.ts.map +1 -0
- package/dist/output_parsers/router.js +39 -0
- package/dist/output_parsers/router.js.map +1 -0
- package/dist/output_parsers/structured.cjs +164 -0
- package/dist/output_parsers/structured.cjs.map +1 -0
- package/dist/output_parsers/structured.d.cts +91 -0
- package/dist/output_parsers/structured.d.cts.map +1 -0
- package/dist/output_parsers/structured.d.ts +91 -0
- package/dist/output_parsers/structured.d.ts.map +1 -0
- package/dist/output_parsers/structured.js +161 -0
- package/dist/output_parsers/structured.js.map +1 -0
- package/dist/retrievers/contextual_compression.cjs +53 -0
- package/dist/retrievers/contextual_compression.cjs.map +1 -0
- package/dist/retrievers/contextual_compression.d.cts +42 -0
- package/dist/retrievers/contextual_compression.d.cts.map +1 -0
- package/dist/retrievers/contextual_compression.d.ts +42 -0
- package/dist/retrievers/contextual_compression.d.ts.map +1 -0
- package/dist/retrievers/contextual_compression.js +47 -0
- package/dist/retrievers/contextual_compression.js.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.cjs +103 -0
- package/dist/retrievers/document_compressors/chain_extract.cjs.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.cts +47 -0
- package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.ts +47 -0
- package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.js +97 -0
- package/dist/retrievers/document_compressors/chain_extract.js.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract_prompt.cjs +16 -0
- package/dist/retrievers/document_compressors/chain_extract_prompt.cjs.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract_prompt.js +15 -0
- package/dist/retrievers/document_compressors/chain_extract_prompt.js.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.cjs +74 -0
- package/dist/retrievers/document_compressors/embeddings_filter.cjs.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts +58 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts +58 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.js +68 -0
- package/dist/retrievers/document_compressors/embeddings_filter.js.map +1 -0
- package/dist/retrievers/document_compressors/index.cjs +69 -0
- package/dist/retrievers/document_compressors/index.cjs.map +1 -0
- package/dist/retrievers/document_compressors/index.d.cts +61 -0
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/index.d.ts +61 -0
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/index.js +62 -0
- package/dist/retrievers/document_compressors/index.js.map +1 -0
- package/dist/retrievers/ensemble.cjs +76 -0
- package/dist/retrievers/ensemble.cjs.map +1 -0
- package/dist/retrievers/ensemble.d.cts +39 -0
- package/dist/retrievers/ensemble.d.cts.map +1 -0
- package/dist/retrievers/ensemble.d.ts +39 -0
- package/dist/retrievers/ensemble.d.ts.map +1 -0
- package/dist/retrievers/ensemble.js +70 -0
- package/dist/retrievers/ensemble.js.map +1 -0
- package/dist/retrievers/hyde.cjs +128 -0
- package/dist/retrievers/hyde.cjs.map +1 -0
- package/dist/retrievers/hyde.d.cts +61 -0
- package/dist/retrievers/hyde.d.cts.map +1 -0
- package/dist/retrievers/hyde.d.ts +61 -0
- package/dist/retrievers/hyde.d.ts.map +1 -0
- package/dist/retrievers/hyde.js +121 -0
- package/dist/retrievers/hyde.js.map +1 -0
- package/dist/retrievers/matryoshka_retriever.cjs +116 -0
- package/dist/retrievers/matryoshka_retriever.cjs.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.cts +99 -0
- package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.ts +99 -0
- package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.js +110 -0
- package/dist/retrievers/matryoshka_retriever.js.map +1 -0
- package/dist/retrievers/multi_query.cjs +150 -0
- package/dist/retrievers/multi_query.cjs.map +1 -0
- package/dist/retrievers/multi_query.d.cts +59 -0
- package/dist/retrievers/multi_query.d.cts.map +1 -0
- package/dist/retrievers/multi_query.d.ts +59 -0
- package/dist/retrievers/multi_query.d.ts.map +1 -0
- package/dist/retrievers/multi_query.js +144 -0
- package/dist/retrievers/multi_query.js.map +1 -0
- package/dist/retrievers/multi_vector.cjs +67 -0
- package/dist/retrievers/multi_vector.cjs.map +1 -0
- package/dist/retrievers/multi_vector.d.cts +51 -0
- package/dist/retrievers/multi_vector.d.cts.map +1 -0
- package/dist/retrievers/multi_vector.d.ts +51 -0
- package/dist/retrievers/multi_vector.d.ts.map +1 -0
- package/dist/retrievers/multi_vector.js +61 -0
- package/dist/retrievers/multi_vector.js.map +1 -0
- package/dist/retrievers/parent_document.cjs +137 -0
- package/dist/retrievers/parent_document.cjs.map +1 -0
- package/dist/retrievers/parent_document.d.cts +92 -0
- package/dist/retrievers/parent_document.d.cts.map +1 -0
- package/dist/retrievers/parent_document.d.ts +92 -0
- package/dist/retrievers/parent_document.d.ts.map +1 -0
- package/dist/retrievers/parent_document.js +131 -0
- package/dist/retrievers/parent_document.js.map +1 -0
- package/dist/retrievers/score_threshold.cjs +43 -0
- package/dist/retrievers/score_threshold.cjs.map +1 -0
- package/dist/retrievers/score_threshold.d.cts +20 -0
- package/dist/retrievers/score_threshold.d.cts.map +1 -0
- package/dist/retrievers/score_threshold.d.ts +20 -0
- package/dist/retrievers/score_threshold.d.ts.map +1 -0
- package/dist/retrievers/score_threshold.js +37 -0
- package/dist/retrievers/score_threshold.js.map +1 -0
- package/dist/retrievers/self_query/functional.cjs +21 -0
- package/dist/retrievers/self_query/functional.cjs.map +1 -0
- package/dist/retrievers/self_query/functional.d.cts +2 -0
- package/dist/retrievers/self_query/functional.d.ts +2 -0
- package/dist/retrievers/self_query/functional.js +10 -0
- package/dist/retrievers/self_query/functional.js.map +1 -0
- package/dist/retrievers/self_query/index.cjs +130 -0
- package/dist/retrievers/self_query/index.cjs.map +1 -0
- package/dist/retrievers/self_query/index.d.cts +79 -0
- package/dist/retrievers/self_query/index.d.cts.map +1 -0
- package/dist/retrievers/self_query/index.d.ts +79 -0
- package/dist/retrievers/self_query/index.d.ts.map +1 -0
- package/dist/retrievers/self_query/index.js +106 -0
- package/dist/retrievers/self_query/index.js.map +1 -0
- package/dist/retrievers/time_weighted.cjs +236 -0
- package/dist/retrievers/time_weighted.cjs.map +1 -0
- package/dist/retrievers/time_weighted.d.cts +142 -0
- package/dist/retrievers/time_weighted.d.cts.map +1 -0
- package/dist/retrievers/time_weighted.d.ts +142 -0
- package/dist/retrievers/time_weighted.d.ts.map +1 -0
- package/dist/retrievers/time_weighted.js +228 -0
- package/dist/retrievers/time_weighted.js.map +1 -0
- package/dist/schema/prompt_template.cjs +36 -0
- package/dist/schema/prompt_template.cjs.map +1 -0
- package/dist/schema/prompt_template.d.cts +19 -0
- package/dist/schema/prompt_template.d.cts.map +1 -0
- package/dist/schema/prompt_template.d.ts +19 -0
- package/dist/schema/prompt_template.d.ts.map +1 -0
- package/dist/schema/prompt_template.js +30 -0
- package/dist/schema/prompt_template.js.map +1 -0
- package/dist/schema/query_constructor.cjs +27 -0
- package/dist/schema/query_constructor.cjs.map +1 -0
- package/dist/schema/query_constructor.d.cts +15 -0
- package/dist/schema/query_constructor.d.cts.map +1 -0
- package/dist/schema/query_constructor.d.ts +15 -0
- package/dist/schema/query_constructor.d.ts.map +1 -0
- package/dist/schema/query_constructor.js +21 -0
- package/dist/schema/query_constructor.js.map +1 -0
- package/dist/smith/config.cjs +70 -0
- package/dist/smith/config.cjs.map +1 -0
- package/dist/smith/config.d.cts +266 -0
- package/dist/smith/config.d.cts.map +1 -0
- package/dist/smith/config.d.ts +266 -0
- package/dist/smith/config.d.ts.map +1 -0
- package/dist/smith/config.js +65 -0
- package/dist/smith/config.js.map +1 -0
- package/dist/smith/index.cjs +29 -0
- package/dist/smith/index.cjs.map +1 -0
- package/dist/smith/index.d.cts +3 -0
- package/dist/smith/index.d.ts +3 -0
- package/dist/smith/index.js +18 -0
- package/dist/smith/index.js.map +1 -0
- package/dist/smith/name_generation.cjs +728 -0
- package/dist/smith/name_generation.cjs.map +1 -0
- package/dist/smith/name_generation.js +727 -0
- package/dist/smith/name_generation.js.map +1 -0
- package/dist/smith/progress.cjs +49 -0
- package/dist/smith/progress.cjs.map +1 -0
- package/dist/smith/progress.js +48 -0
- package/dist/smith/progress.js.map +1 -0
- package/dist/smith/runner_utils.cjs +411 -0
- package/dist/smith/runner_utils.cjs.map +1 -0
- package/dist/smith/runner_utils.d.cts +99 -0
- package/dist/smith/runner_utils.d.cts.map +1 -0
- package/dist/smith/runner_utils.d.ts +99 -0
- package/dist/smith/runner_utils.d.ts.map +1 -0
- package/dist/smith/runner_utils.js +410 -0
- package/dist/smith/runner_utils.js.map +1 -0
- package/dist/sql_db.cjs +119 -0
- package/dist/sql_db.cjs.map +1 -0
- package/dist/sql_db.d.cts +60 -0
- package/dist/sql_db.d.cts.map +1 -0
- package/dist/sql_db.d.ts +60 -0
- package/dist/sql_db.d.ts.map +1 -0
- package/dist/sql_db.js +113 -0
- package/dist/sql_db.js.map +1 -0
- package/dist/storage/encoder_backed.cjs +94 -0
- package/dist/storage/encoder_backed.cjs.map +1 -0
- package/dist/storage/encoder_backed.d.cts +54 -0
- package/dist/storage/encoder_backed.d.cts.map +1 -0
- package/dist/storage/encoder_backed.d.ts +54 -0
- package/dist/storage/encoder_backed.d.ts.map +1 -0
- package/dist/storage/encoder_backed.js +87 -0
- package/dist/storage/encoder_backed.js.map +1 -0
- package/dist/storage/file_system.cjs +157 -0
- package/dist/storage/file_system.cjs.map +1 -0
- package/dist/storage/file_system.d.cts +83 -0
- package/dist/storage/file_system.d.cts.map +1 -0
- package/dist/storage/file_system.d.ts +83 -0
- package/dist/storage/file_system.d.ts.map +1 -0
- package/dist/storage/file_system.js +151 -0
- package/dist/storage/file_system.js.map +1 -0
- package/dist/storage/in_memory.cjs +21 -0
- package/dist/storage/in_memory.cjs.map +1 -0
- package/dist/storage/in_memory.d.cts +2 -0
- package/dist/storage/in_memory.d.ts +2 -0
- package/dist/storage/in_memory.js +10 -0
- package/dist/storage/in_memory.js.map +1 -0
- package/dist/stores/doc/base.cjs +20 -0
- package/dist/stores/doc/base.cjs.map +1 -0
- package/dist/stores/doc/base.d.cts +15 -0
- package/dist/stores/doc/base.d.cts.map +1 -0
- package/dist/stores/doc/base.d.ts +15 -0
- package/dist/stores/doc/base.d.ts.map +1 -0
- package/dist/stores/doc/base.js +14 -0
- package/dist/stores/doc/base.js.map +1 -0
- package/dist/stores/doc/in_memory.cjs +94 -0
- package/dist/stores/doc/in_memory.cjs.map +1 -0
- package/dist/stores/doc/in_memory.d.cts +53 -0
- package/dist/stores/doc/in_memory.d.cts.map +1 -0
- package/dist/stores/doc/in_memory.d.ts +53 -0
- package/dist/stores/doc/in_memory.d.ts.map +1 -0
- package/dist/stores/doc/in_memory.js +87 -0
- package/dist/stores/doc/in_memory.js.map +1 -0
- package/dist/stores/file/base.cjs +13 -0
- package/dist/stores/file/base.cjs.map +1 -0
- package/dist/stores/file/base.d.cts +15 -0
- package/dist/stores/file/base.d.cts.map +1 -0
- package/dist/stores/file/base.d.ts +15 -0
- package/dist/stores/file/base.d.ts.map +1 -0
- package/dist/stores/file/base.js +12 -0
- package/dist/stores/file/base.js.map +1 -0
- package/dist/stores/file/in_memory.cjs +53 -0
- package/dist/stores/file/in_memory.cjs.map +1 -0
- package/dist/stores/file/in_memory.d.cts +33 -0
- package/dist/stores/file/in_memory.d.cts.map +1 -0
- package/dist/stores/file/in_memory.d.ts +33 -0
- package/dist/stores/file/in_memory.d.ts.map +1 -0
- package/dist/stores/file/in_memory.js +47 -0
- package/dist/stores/file/in_memory.js.map +1 -0
- package/dist/stores/file/node.cjs +52 -0
- package/dist/stores/file/node.cjs.map +1 -0
- package/dist/stores/file/node.d.cts +29 -0
- package/dist/stores/file/node.d.cts.map +1 -0
- package/dist/stores/file/node.d.ts +29 -0
- package/dist/stores/file/node.d.ts.map +1 -0
- package/dist/stores/file/node.js +46 -0
- package/dist/stores/file/node.js.map +1 -0
- package/dist/stores/message/in_memory.cjs +21 -0
- package/dist/stores/message/in_memory.cjs.map +1 -0
- package/dist/stores/message/in_memory.d.cts +2 -0
- package/dist/stores/message/in_memory.d.ts +2 -0
- package/dist/stores/message/in_memory.js +10 -0
- package/dist/stores/message/in_memory.js.map +1 -0
- package/dist/text_splitter.cjs +22 -0
- package/dist/text_splitter.cjs.map +1 -0
- package/dist/text_splitter.d.cts +10 -0
- package/dist/text_splitter.d.cts.map +1 -0
- package/dist/text_splitter.d.ts +10 -0
- package/dist/text_splitter.d.ts.map +1 -0
- package/dist/text_splitter.js +12 -0
- package/dist/text_splitter.js.map +1 -0
- package/dist/tools/chain.cjs +35 -0
- package/dist/tools/chain.cjs.map +1 -0
- package/dist/tools/chain.d.cts +30 -0
- package/dist/tools/chain.d.cts.map +1 -0
- package/dist/tools/chain.d.ts +30 -0
- package/dist/tools/chain.d.ts.map +1 -0
- package/dist/tools/chain.js +29 -0
- package/dist/tools/chain.js.map +1 -0
- package/dist/tools/fs.cjs +56 -0
- package/dist/tools/fs.cjs.map +1 -0
- package/dist/tools/fs.d.cts +92 -0
- package/dist/tools/fs.d.cts.map +1 -0
- package/dist/tools/fs.d.ts +92 -0
- package/dist/tools/fs.d.ts.map +1 -0
- package/dist/tools/fs.js +54 -0
- package/dist/tools/fs.js.map +1 -0
- package/dist/tools/index.cjs +68 -0
- package/dist/tools/index.cjs.map +1 -0
- package/dist/tools/index.d.cts +8 -0
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +30 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/json.cjs +107 -0
- package/dist/tools/json.cjs.map +1 -0
- package/dist/tools/json.d.cts +65 -0
- package/dist/tools/json.d.cts.map +1 -0
- package/dist/tools/json.d.ts +65 -0
- package/dist/tools/json.d.ts.map +1 -0
- package/dist/tools/json.js +104 -0
- package/dist/tools/json.js.map +1 -0
- package/dist/tools/render.cjs +55 -0
- package/dist/tools/render.cjs.map +1 -0
- package/dist/tools/render.d.cts +32 -0
- package/dist/tools/render.d.cts.map +1 -0
- package/dist/tools/render.d.ts +32 -0
- package/dist/tools/render.d.ts.map +1 -0
- package/dist/tools/render.js +48 -0
- package/dist/tools/render.js.map +1 -0
- package/dist/tools/requests.cjs +73 -0
- package/dist/tools/requests.cjs.map +1 -0
- package/dist/tools/requests.d.cts +56 -0
- package/dist/tools/requests.d.cts.map +1 -0
- package/dist/tools/requests.d.ts +56 -0
- package/dist/tools/requests.d.ts.map +1 -0
- package/dist/tools/requests.js +71 -0
- package/dist/tools/requests.js.map +1 -0
- package/dist/tools/retriever.cjs +30 -0
- package/dist/tools/retriever.cjs.map +1 -0
- package/dist/tools/retriever.d.cts +8 -0
- package/dist/tools/retriever.d.cts.map +1 -0
- package/dist/tools/retriever.d.ts +8 -0
- package/dist/tools/retriever.d.ts.map +1 -0
- package/dist/tools/retriever.js +24 -0
- package/dist/tools/retriever.js.map +1 -0
- package/dist/tools/sql.cjs +165 -0
- package/dist/tools/sql.cjs.map +1 -0
- package/dist/tools/sql.d.cts +86 -0
- package/dist/tools/sql.d.cts.map +1 -0
- package/dist/tools/sql.d.ts +86 -0
- package/dist/tools/sql.d.ts.map +1 -0
- package/dist/tools/sql.js +156 -0
- package/dist/tools/sql.js.map +1 -0
- package/dist/tools/vectorstore.cjs +45 -0
- package/dist/tools/vectorstore.cjs.map +1 -0
- package/dist/tools/vectorstore.d.cts +40 -0
- package/dist/tools/vectorstore.d.cts.map +1 -0
- package/dist/tools/vectorstore.d.ts +40 -0
- package/dist/tools/vectorstore.d.ts.map +1 -0
- package/dist/tools/vectorstore.js +44 -0
- package/dist/tools/vectorstore.js.map +1 -0
- package/dist/tools/webbrowser.cjs +176 -0
- package/dist/tools/webbrowser.cjs.map +1 -0
- package/dist/tools/webbrowser.d.cts +69 -0
- package/dist/tools/webbrowser.d.cts.map +1 -0
- package/dist/tools/webbrowser.d.ts +69 -0
- package/dist/tools/webbrowser.d.ts.map +1 -0
- package/dist/tools/webbrowser.js +168 -0
- package/dist/tools/webbrowser.js.map +1 -0
- package/dist/types/expression-parser.d.cts +91 -0
- package/dist/types/expression-parser.d.cts.map +1 -0
- package/dist/types/expression-parser.d.ts +91 -0
- package/dist/types/expression-parser.d.ts.map +1 -0
- package/dist/types/type-utils.d.cts +7 -0
- package/dist/types/type-utils.d.cts.map +1 -0
- package/dist/types/type-utils.d.ts +7 -0
- package/dist/types/type-utils.d.ts.map +1 -0
- package/dist/util/document.cjs +23 -0
- package/dist/util/document.cjs.map +1 -0
- package/dist/util/document.d.cts +15 -0
- package/dist/util/document.d.cts.map +1 -0
- package/dist/util/document.d.ts +15 -0
- package/dist/util/document.d.ts.map +1 -0
- package/dist/util/document.js +17 -0
- package/dist/util/document.js.map +1 -0
- package/dist/util/entrypoint_deprecation.cjs +1 -0
- package/dist/util/entrypoint_deprecation.js +1 -0
- package/dist/util/env.cjs +2 -0
- package/dist/util/env.js +1 -0
- package/dist/util/extname.cjs +7 -0
- package/dist/util/extname.cjs.map +1 -0
- package/dist/util/extname.js +6 -0
- package/dist/util/extname.js.map +1 -0
- package/dist/util/hub.cjs +39 -0
- package/dist/util/hub.cjs.map +1 -0
- package/dist/util/hub.js +38 -0
- package/dist/util/hub.js.map +1 -0
- package/dist/util/load.cjs +15 -0
- package/dist/util/load.cjs.map +1 -0
- package/dist/util/load.d.cts +6 -0
- package/dist/util/load.d.cts.map +1 -0
- package/dist/util/load.d.ts +6 -0
- package/dist/util/load.d.ts.map +1 -0
- package/dist/util/load.js +14 -0
- package/dist/util/load.js.map +1 -0
- package/dist/util/math.cjs +22 -0
- package/dist/util/math.cjs.map +1 -0
- package/dist/util/math.d.cts +1 -0
- package/dist/util/math.d.ts +1 -0
- package/dist/util/math.js +12 -0
- package/dist/util/math.js.map +1 -0
- package/dist/util/ml-distance/distances.cjs +35 -0
- package/dist/util/ml-distance/distances.cjs.map +1 -0
- package/dist/util/ml-distance/distances.js +33 -0
- package/dist/util/ml-distance/distances.js.map +1 -0
- package/dist/util/ml-distance/similarities.cjs +23 -0
- package/dist/util/ml-distance/similarities.cjs.map +1 -0
- package/dist/util/ml-distance/similarities.d.cts +11 -0
- package/dist/util/ml-distance/similarities.d.cts.map +1 -0
- package/dist/util/ml-distance/similarities.d.ts +11 -0
- package/dist/util/ml-distance/similarities.d.ts.map +1 -0
- package/dist/util/ml-distance/similarities.js +22 -0
- package/dist/util/ml-distance/similarities.js.map +1 -0
- package/dist/util/ml-distance-euclidean/euclidean.cjs +14 -0
- package/dist/util/ml-distance-euclidean/euclidean.cjs.map +1 -0
- package/dist/util/ml-distance-euclidean/euclidean.js +13 -0
- package/dist/util/ml-distance-euclidean/euclidean.js.map +1 -0
- package/dist/util/openapi.cjs +149 -0
- package/dist/util/openapi.cjs.map +1 -0
- package/dist/util/openapi.d.cts +83 -0
- package/dist/util/openapi.d.cts.map +1 -0
- package/dist/util/openapi.d.ts +83 -0
- package/dist/util/openapi.d.ts.map +1 -0
- package/dist/util/openapi.js +148 -0
- package/dist/util/openapi.js.map +1 -0
- package/dist/util/parse.cjs +22 -0
- package/dist/util/parse.cjs.map +1 -0
- package/dist/util/parse.js +21 -0
- package/dist/util/parse.js.map +1 -0
- package/dist/util/set.cjs +35 -0
- package/dist/util/set.cjs.map +1 -0
- package/dist/util/set.js +32 -0
- package/dist/util/set.js.map +1 -0
- package/dist/util/sql_utils.cjs +178 -0
- package/dist/util/sql_utils.cjs.map +1 -0
- package/dist/util/sql_utils.d.cts +31 -0
- package/dist/util/sql_utils.d.cts.map +1 -0
- package/dist/util/sql_utils.d.ts +31 -0
- package/dist/util/sql_utils.d.ts.map +1 -0
- package/dist/util/sql_utils.js +173 -0
- package/dist/util/sql_utils.js.map +1 -0
- package/dist/util/time.cjs +25 -0
- package/dist/util/time.cjs.map +1 -0
- package/dist/util/time.d.cts +10 -0
- package/dist/util/time.d.cts.map +1 -0
- package/dist/util/time.d.ts +10 -0
- package/dist/util/time.d.ts.map +1 -0
- package/dist/util/time.js +19 -0
- package/dist/util/time.js.map +1 -0
- package/dist/vectorstores/memory.cjs +265 -0
- package/dist/vectorstores/memory.cjs.map +1 -0
- package/dist/vectorstores/memory.d.cts +216 -0
- package/dist/vectorstores/memory.d.cts.map +1 -0
- package/dist/vectorstores/memory.d.ts +216 -0
- package/dist/vectorstores/memory.d.ts.map +1 -0
- package/dist/vectorstores/memory.js +259 -0
- package/dist/vectorstores/memory.js.map +1 -0
- package/package.json +1233 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const js_yaml = require_rolldown_runtime.__toESM(require("js-yaml"));
|
|
3
|
+
|
|
4
|
+
//#region src/util/openapi.ts
|
|
5
|
+
var OpenAPISpec = class OpenAPISpec {
|
|
6
|
+
constructor(document) {
|
|
7
|
+
this.document = document;
|
|
8
|
+
}
|
|
9
|
+
get baseUrl() {
|
|
10
|
+
return this.document.servers ? this.document.servers[0].url : void 0;
|
|
11
|
+
}
|
|
12
|
+
getPathsStrict() {
|
|
13
|
+
if (!this.document.paths) throw new Error("No paths found in spec");
|
|
14
|
+
return this.document.paths;
|
|
15
|
+
}
|
|
16
|
+
getParametersStrict() {
|
|
17
|
+
if (!this.document.components?.parameters) throw new Error("No parameters found in spec");
|
|
18
|
+
return this.document.components.parameters;
|
|
19
|
+
}
|
|
20
|
+
getSchemasStrict() {
|
|
21
|
+
if (!this.document.components?.schemas) throw new Error("No schemas found in spec.");
|
|
22
|
+
return this.document.components.schemas;
|
|
23
|
+
}
|
|
24
|
+
getRequestBodiesStrict() {
|
|
25
|
+
if (!this.document.components?.requestBodies) throw new Error("No request body found in spec.");
|
|
26
|
+
return this.document.components.requestBodies;
|
|
27
|
+
}
|
|
28
|
+
getPathStrict(path) {
|
|
29
|
+
const pathItem = this.getPathsStrict()[path];
|
|
30
|
+
if (pathItem === void 0) throw new Error(`No path found for "${path}".`);
|
|
31
|
+
return pathItem;
|
|
32
|
+
}
|
|
33
|
+
getReferencedParameter(ref) {
|
|
34
|
+
const refComponents = ref.$ref.split("/");
|
|
35
|
+
const refName = refComponents[refComponents.length - 1];
|
|
36
|
+
if (this.getParametersStrict()[refName] === void 0) throw new Error(`No parameter found for "${refName}".`);
|
|
37
|
+
return this.getParametersStrict()[refName];
|
|
38
|
+
}
|
|
39
|
+
getRootReferencedParameter(ref) {
|
|
40
|
+
let parameter = this.getReferencedParameter(ref);
|
|
41
|
+
while (parameter.$ref !== void 0) parameter = this.getReferencedParameter(parameter);
|
|
42
|
+
return parameter;
|
|
43
|
+
}
|
|
44
|
+
getReferencedSchema(ref) {
|
|
45
|
+
const refComponents = ref.$ref.split("/");
|
|
46
|
+
const refName = refComponents[refComponents.length - 1];
|
|
47
|
+
const schema = this.getSchemasStrict()[refName];
|
|
48
|
+
if (schema === void 0) throw new Error(`No schema found for "${refName}".`);
|
|
49
|
+
return schema;
|
|
50
|
+
}
|
|
51
|
+
getSchema(schema) {
|
|
52
|
+
if (schema.$ref !== void 0) return this.getReferencedSchema(schema);
|
|
53
|
+
return schema;
|
|
54
|
+
}
|
|
55
|
+
getRootReferencedSchema(ref) {
|
|
56
|
+
let schema = this.getReferencedSchema(ref);
|
|
57
|
+
while (schema.$ref !== void 0) schema = this.getReferencedSchema(schema);
|
|
58
|
+
return schema;
|
|
59
|
+
}
|
|
60
|
+
getReferencedRequestBody(ref) {
|
|
61
|
+
const refComponents = ref.$ref.split("/");
|
|
62
|
+
const refName = refComponents[refComponents.length - 1];
|
|
63
|
+
const requestBodies = this.getRequestBodiesStrict();
|
|
64
|
+
if (requestBodies[refName] === void 0) throw new Error(`No request body found for "${refName}"`);
|
|
65
|
+
return requestBodies[refName];
|
|
66
|
+
}
|
|
67
|
+
getRootReferencedRequestBody(ref) {
|
|
68
|
+
let requestBody = this.getReferencedRequestBody(ref);
|
|
69
|
+
while (requestBody.$ref !== void 0) requestBody = this.getReferencedRequestBody(requestBody);
|
|
70
|
+
return requestBody;
|
|
71
|
+
}
|
|
72
|
+
getMethodsForPath(path) {
|
|
73
|
+
const pathItem = this.getPathStrict(path);
|
|
74
|
+
const possibleMethods = [
|
|
75
|
+
"get",
|
|
76
|
+
"put",
|
|
77
|
+
"post",
|
|
78
|
+
"delete",
|
|
79
|
+
"options",
|
|
80
|
+
"head",
|
|
81
|
+
"patch",
|
|
82
|
+
"trace"
|
|
83
|
+
];
|
|
84
|
+
return possibleMethods.filter((possibleMethod) => pathItem[possibleMethod] !== void 0);
|
|
85
|
+
}
|
|
86
|
+
getParametersForPath(path) {
|
|
87
|
+
const pathItem = this.getPathStrict(path);
|
|
88
|
+
if (pathItem.parameters === void 0) return [];
|
|
89
|
+
return pathItem.parameters.map((parameter) => {
|
|
90
|
+
if (parameter.$ref !== void 0) return this.getRootReferencedParameter(parameter);
|
|
91
|
+
return parameter;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
getOperation(path, method) {
|
|
95
|
+
const pathItem = this.getPathStrict(path);
|
|
96
|
+
if (pathItem[method] === void 0) throw new Error(`No ${method} method found for "path".`);
|
|
97
|
+
return pathItem[method];
|
|
98
|
+
}
|
|
99
|
+
getParametersForOperation(operation) {
|
|
100
|
+
if (operation.parameters === void 0) return [];
|
|
101
|
+
return operation.parameters.map((parameter) => {
|
|
102
|
+
if (parameter.$ref !== void 0) return this.getRootReferencedParameter(parameter);
|
|
103
|
+
return parameter;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
getRequestBodyForOperation(operation) {
|
|
107
|
+
const { requestBody } = operation;
|
|
108
|
+
if (requestBody?.$ref !== void 0) return this.getRootReferencedRequestBody(requestBody);
|
|
109
|
+
return requestBody;
|
|
110
|
+
}
|
|
111
|
+
static getCleanedOperationId(operation, path, method) {
|
|
112
|
+
let { operationId } = operation;
|
|
113
|
+
if (operationId === void 0) {
|
|
114
|
+
const updatedPath = path.replaceAll(/[^a-zA-Z0-9]/g, "_");
|
|
115
|
+
operationId = `${updatedPath.startsWith("/") ? updatedPath.slice(1) : updatedPath}_${method}`;
|
|
116
|
+
}
|
|
117
|
+
return operationId.replaceAll(/-/g, "_").replaceAll(/\./g, "_").replaceAll(/\//g, "_");
|
|
118
|
+
}
|
|
119
|
+
static alertUnsupportedSpec(document) {
|
|
120
|
+
const warningMessage = "This may result in degraded performance. Convert your OpenAPI spec to 3.1.0 for better support.";
|
|
121
|
+
const swaggerVersion = document.swagger;
|
|
122
|
+
const openAPIVersion = document.openapi;
|
|
123
|
+
if (openAPIVersion !== void 0 && openAPIVersion !== "3.1.0") console.warn(`Attempting to load an OpenAPI ${openAPIVersion} spec. ${warningMessage}`);
|
|
124
|
+
else if (swaggerVersion !== void 0) console.warn(`Attempting to load a Swagger ${swaggerVersion} spec. ${warningMessage}`);
|
|
125
|
+
else throw new Error(`Attempting to load an unsupported spec:\n\n${JSON.stringify(document, null, 2)}.`);
|
|
126
|
+
}
|
|
127
|
+
static fromObject(document) {
|
|
128
|
+
OpenAPISpec.alertUnsupportedSpec(document);
|
|
129
|
+
return new OpenAPISpec(document);
|
|
130
|
+
}
|
|
131
|
+
static fromString(rawString) {
|
|
132
|
+
let document;
|
|
133
|
+
try {
|
|
134
|
+
document = JSON.parse(rawString);
|
|
135
|
+
} catch {
|
|
136
|
+
document = js_yaml.load(rawString);
|
|
137
|
+
}
|
|
138
|
+
return OpenAPISpec.fromObject(document);
|
|
139
|
+
}
|
|
140
|
+
static async fromURL(url) {
|
|
141
|
+
const response = await fetch(url);
|
|
142
|
+
const rawDocument = await response.text();
|
|
143
|
+
return OpenAPISpec.fromString(rawDocument);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
exports.OpenAPISpec = OpenAPISpec;
|
|
149
|
+
//# sourceMappingURL=openapi.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.cjs","names":["document: OpenAPIV3_1.Document","path: string","ref: OpenAPIV3_1.ReferenceObject","schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject","method: OpenAPIV3.HttpMethods","operation: OpenAPIV3_1.OperationObject","method: OpenAPIV3_1.HttpMethods","document: Record<string, any>","rawString: string","yaml","url: string"],"sources":["../../src/util/openapi.ts"],"sourcesContent":["import * as yaml from \"js-yaml\";\nimport { OpenAPIV3, OpenAPIV3_1 } from \"openapi-types\";\n\nexport class OpenAPISpec {\n constructor(public document: OpenAPIV3_1.Document) {}\n\n get baseUrl() {\n return this.document.servers ? this.document.servers[0].url : undefined;\n }\n\n getPathsStrict() {\n if (!this.document.paths) {\n throw new Error(\"No paths found in spec\");\n }\n return this.document.paths;\n }\n\n getParametersStrict() {\n if (!this.document.components?.parameters) {\n throw new Error(\"No parameters found in spec\");\n }\n return this.document.components.parameters;\n }\n\n getSchemasStrict() {\n if (!this.document.components?.schemas) {\n throw new Error(\"No schemas found in spec.\");\n }\n return this.document.components.schemas;\n }\n\n getRequestBodiesStrict() {\n if (!this.document.components?.requestBodies) {\n throw new Error(\"No request body found in spec.\");\n }\n return this.document.components.requestBodies;\n }\n\n getPathStrict(path: string) {\n const pathItem = this.getPathsStrict()[path];\n if (pathItem === undefined) {\n throw new Error(`No path found for \"${path}\".`);\n }\n return pathItem;\n }\n\n getReferencedParameter(ref: OpenAPIV3_1.ReferenceObject) {\n const refComponents = ref.$ref.split(\"/\");\n const refName = refComponents[refComponents.length - 1];\n if (this.getParametersStrict()[refName] === undefined) {\n throw new Error(`No parameter found for \"${refName}\".`);\n }\n return this.getParametersStrict()[refName];\n }\n\n getRootReferencedParameter(\n ref: OpenAPIV3_1.ReferenceObject\n ): OpenAPIV3_1.ParameterObject {\n let parameter = this.getReferencedParameter(ref);\n while ((parameter as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n parameter = this.getReferencedParameter(\n parameter as OpenAPIV3_1.ReferenceObject\n );\n }\n return parameter as OpenAPIV3_1.ParameterObject;\n }\n\n getReferencedSchema(\n ref: OpenAPIV3_1.ReferenceObject\n ): OpenAPIV3_1.SchemaObject {\n const refComponents = ref.$ref.split(\"/\");\n const refName = refComponents[refComponents.length - 1];\n const schema = this.getSchemasStrict()[refName];\n if (schema === undefined) {\n throw new Error(`No schema found for \"${refName}\".`);\n }\n return schema;\n }\n\n getSchema(\n schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject\n ): OpenAPIV3_1.SchemaObject {\n if ((schema as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n return this.getReferencedSchema(schema as OpenAPIV3_1.ReferenceObject);\n }\n return schema;\n }\n\n getRootReferencedSchema(ref: OpenAPIV3_1.ReferenceObject) {\n let schema = this.getReferencedSchema(ref);\n while ((schema as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n schema = this.getReferencedSchema(schema as OpenAPIV3_1.ReferenceObject);\n }\n return schema as OpenAPIV3_1.ParameterObject;\n }\n\n getReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject) {\n const refComponents = ref.$ref.split(\"/\");\n const refName = refComponents[refComponents.length - 1];\n const requestBodies = this.getRequestBodiesStrict();\n if (requestBodies[refName] === undefined) {\n throw new Error(`No request body found for \"${refName}\"`);\n }\n return requestBodies[refName];\n }\n\n getRootReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject) {\n let requestBody = this.getReferencedRequestBody(ref);\n while ((requestBody as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n requestBody = this.getReferencedRequestBody(\n requestBody as OpenAPIV3_1.ReferenceObject\n );\n }\n return requestBody as OpenAPIV3_1.RequestBodyObject;\n }\n\n getMethodsForPath(path: string): OpenAPIV3.HttpMethods[] {\n const pathItem = this.getPathStrict(path);\n // This is an enum in the underlying package.\n // Werestate here to allow \"import type\" above and not cause warnings in certain envs.\n const possibleMethods = [\n \"get\",\n \"put\",\n \"post\",\n \"delete\",\n \"options\",\n \"head\",\n \"patch\",\n \"trace\",\n ];\n return possibleMethods.filter(\n (possibleMethod) =>\n pathItem[possibleMethod as OpenAPIV3.HttpMethods] !== undefined\n ) as OpenAPIV3.HttpMethods[];\n }\n\n getParametersForPath(path: string) {\n const pathItem = this.getPathStrict(path);\n if (pathItem.parameters === undefined) {\n return [];\n }\n return pathItem.parameters.map((parameter) => {\n if ((parameter as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n return this.getRootReferencedParameter(\n parameter as OpenAPIV3_1.ReferenceObject\n );\n }\n return parameter as OpenAPIV3_1.ParameterObject;\n });\n }\n\n getOperation(path: string, method: OpenAPIV3.HttpMethods) {\n const pathItem = this.getPathStrict(path);\n if (pathItem[method] === undefined) {\n throw new Error(`No ${method} method found for \"path\".`);\n }\n return pathItem[method];\n }\n\n getParametersForOperation(operation: OpenAPIV3_1.OperationObject) {\n if (operation.parameters === undefined) {\n return [];\n }\n return operation.parameters.map((parameter) => {\n if ((parameter as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n return this.getRootReferencedParameter(\n parameter as OpenAPIV3_1.ReferenceObject\n );\n }\n return parameter as OpenAPIV3_1.ParameterObject;\n });\n }\n\n getRequestBodyForOperation(\n operation: OpenAPIV3_1.OperationObject\n ): OpenAPIV3_1.RequestBodyObject {\n const { requestBody } = operation;\n if ((requestBody as OpenAPIV3_1.ReferenceObject)?.$ref !== undefined) {\n return this.getRootReferencedRequestBody(\n requestBody as OpenAPIV3_1.ReferenceObject\n );\n }\n return requestBody as OpenAPIV3_1.RequestBodyObject;\n }\n\n static getCleanedOperationId(\n operation: OpenAPIV3_1.OperationObject,\n path: string,\n method: OpenAPIV3_1.HttpMethods\n ) {\n let { operationId } = operation;\n if (operationId === undefined) {\n const updatedPath = path.replaceAll(/[^a-zA-Z0-9]/g, \"_\");\n operationId = `${\n updatedPath.startsWith(\"/\") ? updatedPath.slice(1) : updatedPath\n }_${method}`;\n }\n return operationId\n .replaceAll(/-/g, \"_\")\n .replaceAll(/\\./g, \"_\")\n .replaceAll(/\\//g, \"_\");\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static alertUnsupportedSpec(document: Record<string, any>) {\n const warningMessage =\n \"This may result in degraded performance. Convert your OpenAPI spec to 3.1.0 for better support.\";\n const swaggerVersion = document.swagger;\n const openAPIVersion = document.openapi;\n if (openAPIVersion !== undefined && openAPIVersion !== \"3.1.0\") {\n console.warn(\n `Attempting to load an OpenAPI ${openAPIVersion} spec. ${warningMessage}`\n );\n } else if (swaggerVersion !== undefined) {\n console.warn(\n `Attempting to load a Swagger ${swaggerVersion} spec. ${warningMessage}`\n );\n } else {\n throw new Error(\n `Attempting to load an unsupported spec:\\n\\n${JSON.stringify(\n document,\n null,\n 2\n )}.`\n );\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromObject(document: Record<string, any>) {\n OpenAPISpec.alertUnsupportedSpec(document);\n return new OpenAPISpec(document as OpenAPIV3_1.Document);\n }\n\n static fromString(rawString: string) {\n let document;\n try {\n document = JSON.parse(rawString);\n } catch {\n document = yaml.load(rawString);\n }\n return OpenAPISpec.fromObject(document);\n }\n\n static async fromURL(url: string) {\n const response = await fetch(url);\n const rawDocument = await response.text();\n return OpenAPISpec.fromString(rawDocument);\n }\n}\n"],"mappings":";;;;AAGA,IAAa,cAAb,MAAa,YAAY;CACvB,YAAmBA,UAAgC;EAAhC;CAAkC;CAErD,IAAI,UAAU;AACZ,SAAO,KAAK,SAAS,UAAU,KAAK,SAAS,QAAQ,GAAG,MAAM;CAC/D;CAED,iBAAiB;AACf,MAAI,CAAC,KAAK,SAAS,MACjB,OAAM,IAAI,MAAM;AAElB,SAAO,KA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AO,YAAY,WAAW,YAAY;CAC3C;AACF"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OpenAPIV3, OpenAPIV3_1 } from "openapi-types";
|
|
2
|
+
|
|
3
|
+
//#region src/util/openapi.d.ts
|
|
4
|
+
declare class OpenAPISpec {
|
|
5
|
+
document: OpenAPIV3_1.Document;
|
|
6
|
+
constructor(document: OpenAPIV3_1.Document);
|
|
7
|
+
get baseUrl(): string | undefined;
|
|
8
|
+
getPathsStrict(): OpenAPIV3_1.PathsObject<{}, {}>;
|
|
9
|
+
getParametersStrict(): Record<string, OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject>;
|
|
10
|
+
getSchemasStrict(): Record<string, OpenAPIV3_1.SchemaObject>;
|
|
11
|
+
getRequestBodiesStrict(): Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject>;
|
|
12
|
+
getPathStrict(path: string): Omit<OpenAPIV3.PathItemObject<{}>, "parameters" | "servers"> & {
|
|
13
|
+
servers?: OpenAPIV3_1.ServerObject[] | undefined;
|
|
14
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
delete?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
17
|
+
get?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
18
|
+
head?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
19
|
+
options?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
20
|
+
patch?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
21
|
+
post?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
22
|
+
put?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
23
|
+
trace?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
24
|
+
};
|
|
25
|
+
getReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject;
|
|
26
|
+
getRootReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ParameterObject;
|
|
27
|
+
getReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.SchemaObject;
|
|
28
|
+
getSchema(schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject): OpenAPIV3_1.SchemaObject;
|
|
29
|
+
getRootReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject;
|
|
30
|
+
getReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject;
|
|
31
|
+
getRootReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.RequestBodyObject;
|
|
32
|
+
getMethodsForPath(path: string): OpenAPIV3.HttpMethods[];
|
|
33
|
+
getParametersForPath(path: string): OpenAPIV3.ParameterObject[];
|
|
34
|
+
getOperation(path: string, method: OpenAPIV3.HttpMethods): {
|
|
35
|
+
tags?: string[] | undefined;
|
|
36
|
+
summary?: string | undefined;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;
|
|
39
|
+
operationId?: string | undefined;
|
|
40
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;
|
|
41
|
+
requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;
|
|
42
|
+
responses: OpenAPIV3.ResponsesObject;
|
|
43
|
+
callbacks?: {
|
|
44
|
+
[callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;
|
|
45
|
+
} | undefined;
|
|
46
|
+
deprecated?: boolean | undefined;
|
|
47
|
+
security?: OpenAPIV3.SecurityRequirementObject[] | undefined;
|
|
48
|
+
servers?: OpenAPIV3.ServerObject[] | undefined;
|
|
49
|
+
} & Omit<{
|
|
50
|
+
tags?: string[] | undefined;
|
|
51
|
+
summary?: string | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;
|
|
54
|
+
operationId?: string | undefined;
|
|
55
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;
|
|
56
|
+
requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;
|
|
57
|
+
responses: OpenAPIV3.ResponsesObject;
|
|
58
|
+
callbacks?: {
|
|
59
|
+
[callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;
|
|
60
|
+
} | undefined;
|
|
61
|
+
deprecated?: boolean | undefined;
|
|
62
|
+
security?: OpenAPIV3.SecurityRequirementObject[] | undefined;
|
|
63
|
+
servers?: OpenAPIV3.ServerObject[] | undefined;
|
|
64
|
+
}, "callbacks" | "parameters" | "requestBody" | "responses" | "servers"> & {
|
|
65
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;
|
|
66
|
+
requestBody?: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject | undefined;
|
|
67
|
+
responses?: OpenAPIV3_1.ResponsesObject | undefined;
|
|
68
|
+
callbacks?: Record<string, OpenAPIV3_1.CallbackObject | OpenAPIV3_1.ReferenceObject> | undefined;
|
|
69
|
+
servers?: OpenAPIV3_1.ServerObject[] | undefined;
|
|
70
|
+
};
|
|
71
|
+
getParametersForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3.ParameterObject[];
|
|
72
|
+
getRequestBodyForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3_1.RequestBodyObject;
|
|
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
|
+
static alertUnsupportedSpec(document: Record<string, any>): void;
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
+
static fromObject(document: Record<string, any>): OpenAPISpec;
|
|
78
|
+
static fromString(rawString: string): OpenAPISpec;
|
|
79
|
+
static fromURL(url: string): Promise<OpenAPISpec>;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { OpenAPISpec };
|
|
83
|
+
//# sourceMappingURL=openapi.d.cts.map
|
|
@@ -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 // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static alertUnsupportedSpec(document: Record<string, any>): void;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromObject(document: Record<string, any>): OpenAPISpec;\n static fromString(rawString: string): OpenAPISpec;\n static fromURL(url: string): Promise<OpenAPISpec>;\n}\n"],"mappings":";;;cACqBE,WAAAA;YACPD,WAAAA,CAAYE;EADLD,WAAAA,CAAAA,QAAW,EAEND,WAAAA,CAAYE,QAFN;EAAA,IAAA,OAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,cAClBF,CAAAA,CAAYE,EAGJF,WAAAA,CAAYG,WAHRD,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gB,cATLA,GASsBhB,WAAAA,CAAYK,eATlCW,CAAAA,GAAAA,SAAAA;IAAiBjB,OAAAA,CAAAA,EAUzCC,WAAAA,CAAYW,YAVuCN,EAAAA,GAAAA,SAAAA;EAAe,CAAA;EAG9B,yBAC1BM,CAAAA,SAAAA,EAQaX,WAAAA,CAAYY,eARzBD,CAAAA,EAQ2CZ,SAAAA,CAAUK,eARrDO,EAAAA;EAAY,0BAdhCD,CAAAA,SAAAA,EAuBkCV,WAAAA,CAAYY,eAvB9CF,CAAAA,EAuBgEV,WAAAA,CAAYQ,iBAvB5EE;EAAI,OAgBUX,qBAAUK,CAAAA,SAAAA,EAQYJ,WAAAA,CAAYY,eARxBR,EAAAA,IAAAA,EAAAA,MAAAA,EAAAA,MAAAA,EAQ+DJ,WAAAA,CAAYa,WAR3ET,CAAAA,EAAAA,MAAAA;EAAe;EAA8B,OACvDJ,oBAAYK,CAAAA,QAAAA,EASQC,MATRD,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAAe;EAAgC,OAC7DL,UAAYe,CAAAA,QAAAA,EAUAT,MAVAS,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAUsBd,WAVtBc;EAAe,OACZf,UAAYgB,CAAAA,SAAAA,EAAAA,MAAAA,CAAAA,EAULf,WAVKe;EAAc,OAAGhB,OAAAA,CAAYK,GAAAA,EAAAA,MAAAA,CAAAA,EAW3Ca,OAX2Cb,CAWnCJ,WAXmCI,CAAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OpenAPIV3, OpenAPIV3_1 } from "openapi-types";
|
|
2
|
+
|
|
3
|
+
//#region src/util/openapi.d.ts
|
|
4
|
+
declare class OpenAPISpec {
|
|
5
|
+
document: OpenAPIV3_1.Document;
|
|
6
|
+
constructor(document: OpenAPIV3_1.Document);
|
|
7
|
+
get baseUrl(): string | undefined;
|
|
8
|
+
getPathsStrict(): OpenAPIV3_1.PathsObject<{}, {}>;
|
|
9
|
+
getParametersStrict(): Record<string, OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject>;
|
|
10
|
+
getSchemasStrict(): Record<string, OpenAPIV3_1.SchemaObject>;
|
|
11
|
+
getRequestBodiesStrict(): Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject>;
|
|
12
|
+
getPathStrict(path: string): Omit<OpenAPIV3.PathItemObject<{}>, "parameters" | "servers"> & {
|
|
13
|
+
servers?: OpenAPIV3_1.ServerObject[] | undefined;
|
|
14
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
delete?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
17
|
+
get?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
18
|
+
head?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
19
|
+
options?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
20
|
+
patch?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
21
|
+
post?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
22
|
+
put?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
23
|
+
trace?: OpenAPIV3_1.OperationObject<{}> | undefined;
|
|
24
|
+
};
|
|
25
|
+
getReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject;
|
|
26
|
+
getRootReferencedParameter(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ParameterObject;
|
|
27
|
+
getReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.SchemaObject;
|
|
28
|
+
getSchema(schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject): OpenAPIV3_1.SchemaObject;
|
|
29
|
+
getRootReferencedSchema(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3.ParameterObject;
|
|
30
|
+
getReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject;
|
|
31
|
+
getRootReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject): OpenAPIV3_1.RequestBodyObject;
|
|
32
|
+
getMethodsForPath(path: string): OpenAPIV3.HttpMethods[];
|
|
33
|
+
getParametersForPath(path: string): OpenAPIV3.ParameterObject[];
|
|
34
|
+
getOperation(path: string, method: OpenAPIV3.HttpMethods): {
|
|
35
|
+
tags?: string[] | undefined;
|
|
36
|
+
summary?: string | undefined;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;
|
|
39
|
+
operationId?: string | undefined;
|
|
40
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;
|
|
41
|
+
requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;
|
|
42
|
+
responses: OpenAPIV3.ResponsesObject;
|
|
43
|
+
callbacks?: {
|
|
44
|
+
[callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;
|
|
45
|
+
} | undefined;
|
|
46
|
+
deprecated?: boolean | undefined;
|
|
47
|
+
security?: OpenAPIV3.SecurityRequirementObject[] | undefined;
|
|
48
|
+
servers?: OpenAPIV3.ServerObject[] | undefined;
|
|
49
|
+
} & Omit<{
|
|
50
|
+
tags?: string[] | undefined;
|
|
51
|
+
summary?: string | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
externalDocs?: OpenAPIV3.ExternalDocumentationObject | undefined;
|
|
54
|
+
operationId?: string | undefined;
|
|
55
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;
|
|
56
|
+
requestBody?: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;
|
|
57
|
+
responses: OpenAPIV3.ResponsesObject;
|
|
58
|
+
callbacks?: {
|
|
59
|
+
[callback: string]: OpenAPIV3.CallbackObject | OpenAPIV3.ReferenceObject;
|
|
60
|
+
} | undefined;
|
|
61
|
+
deprecated?: boolean | undefined;
|
|
62
|
+
security?: OpenAPIV3.SecurityRequirementObject[] | undefined;
|
|
63
|
+
servers?: OpenAPIV3.ServerObject[] | undefined;
|
|
64
|
+
}, "callbacks" | "parameters" | "requestBody" | "responses" | "servers"> & {
|
|
65
|
+
parameters?: (OpenAPIV3.ParameterObject | OpenAPIV3_1.ReferenceObject)[] | undefined;
|
|
66
|
+
requestBody?: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.RequestBodyObject | undefined;
|
|
67
|
+
responses?: OpenAPIV3_1.ResponsesObject | undefined;
|
|
68
|
+
callbacks?: Record<string, OpenAPIV3_1.CallbackObject | OpenAPIV3_1.ReferenceObject> | undefined;
|
|
69
|
+
servers?: OpenAPIV3_1.ServerObject[] | undefined;
|
|
70
|
+
};
|
|
71
|
+
getParametersForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3.ParameterObject[];
|
|
72
|
+
getRequestBodyForOperation(operation: OpenAPIV3_1.OperationObject): OpenAPIV3_1.RequestBodyObject;
|
|
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
|
+
static alertUnsupportedSpec(document: Record<string, any>): void;
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
+
static fromObject(document: Record<string, any>): OpenAPISpec;
|
|
78
|
+
static fromString(rawString: string): OpenAPISpec;
|
|
79
|
+
static fromURL(url: string): Promise<OpenAPISpec>;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { OpenAPISpec };
|
|
83
|
+
//# sourceMappingURL=openapi.d.ts.map
|
|
@@ -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 // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static alertUnsupportedSpec(document: Record<string, any>): void;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromObject(document: Record<string, any>): OpenAPISpec;\n static fromString(rawString: string): OpenAPISpec;\n static fromURL(url: string): Promise<OpenAPISpec>;\n}\n"],"mappings":";;;cACqBE,WAAAA;YACPD,WAAAA,CAAYE;EADLD,WAAAA,CAAAA,QAAW,EAEND,WAAAA,CAAYE,QAFN;EAAA,IAAA,OAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,cAClBF,CAAAA,CAAYE,EAGJF,WAAAA,CAAYG,WAHRD,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,CAAAA,CAAAA;EAAQ,mBACIA,CAAAA,CAAAA,EAGXI,MAHWJ,CAAAA,MAAAA,EAGIH,SAAAA,CAAUK,eAHdF,GAGgCF,WAAAA,CAAYK,eAH5CH,CAAAA;EAAQ,gBAEZC,CAAAA,CAAAA,EAEVG,MAFUH,CAAAA,MAAAA,EAEKH,WAAAA,CAAYO,YAFjBJ,CAAAA;EAAW,sBACOC,CAAAA,CAAAA,EAEtBE,MAFsBF,CAAAA,MAAA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uBgEV,WAAAA,CAAYQ,iBAvB5EE;EAAI,OAgBUX,qBAAUK,CAAAA,SAAAA,EAQYJ,WAAAA,CAAYY,eARxBR,EAAAA,IAAAA,EAAAA,MAAAA,EAAAA,MAAAA,EAQ+DJ,WAAAA,CAAYa,WAR3ET,CAAAA,EAAAA,MAAAA;EAAe;EAA8B,OACvDJ,oBAAYK,CAAAA,QAAAA,EASQC,MATRD,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAAe;EAAgC,OAC7DL,UAAYe,CAAAA,QAAAA,EAUAT,MAVAS,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAUsBd,WAVtBc;EAAe,OACZf,UAAYgB,CAAAA,SAAAA,EAAAA,MAAAA,CAAAA,EAULf,WAVKe;EAAc,OAAGhB,OAAAA,CAAYK,GAAAA,EAAAA,MAAAA,CAAAA,EAW3Ca,OAX2Cb,CAWnCJ,WAXmCI,CAAAA"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as yaml from "js-yaml";
|
|
2
|
+
|
|
3
|
+
//#region src/util/openapi.ts
|
|
4
|
+
var OpenAPISpec = class OpenAPISpec {
|
|
5
|
+
constructor(document) {
|
|
6
|
+
this.document = document;
|
|
7
|
+
}
|
|
8
|
+
get baseUrl() {
|
|
9
|
+
return this.document.servers ? this.document.servers[0].url : void 0;
|
|
10
|
+
}
|
|
11
|
+
getPathsStrict() {
|
|
12
|
+
if (!this.document.paths) throw new Error("No paths found in spec");
|
|
13
|
+
return this.document.paths;
|
|
14
|
+
}
|
|
15
|
+
getParametersStrict() {
|
|
16
|
+
if (!this.document.components?.parameters) throw new Error("No parameters found in spec");
|
|
17
|
+
return this.document.components.parameters;
|
|
18
|
+
}
|
|
19
|
+
getSchemasStrict() {
|
|
20
|
+
if (!this.document.components?.schemas) throw new Error("No schemas found in spec.");
|
|
21
|
+
return this.document.components.schemas;
|
|
22
|
+
}
|
|
23
|
+
getRequestBodiesStrict() {
|
|
24
|
+
if (!this.document.components?.requestBodies) throw new Error("No request body found in spec.");
|
|
25
|
+
return this.document.components.requestBodies;
|
|
26
|
+
}
|
|
27
|
+
getPathStrict(path) {
|
|
28
|
+
const pathItem = this.getPathsStrict()[path];
|
|
29
|
+
if (pathItem === void 0) throw new Error(`No path found for "${path}".`);
|
|
30
|
+
return pathItem;
|
|
31
|
+
}
|
|
32
|
+
getReferencedParameter(ref) {
|
|
33
|
+
const refComponents = ref.$ref.split("/");
|
|
34
|
+
const refName = refComponents[refComponents.length - 1];
|
|
35
|
+
if (this.getParametersStrict()[refName] === void 0) throw new Error(`No parameter found for "${refName}".`);
|
|
36
|
+
return this.getParametersStrict()[refName];
|
|
37
|
+
}
|
|
38
|
+
getRootReferencedParameter(ref) {
|
|
39
|
+
let parameter = this.getReferencedParameter(ref);
|
|
40
|
+
while (parameter.$ref !== void 0) parameter = this.getReferencedParameter(parameter);
|
|
41
|
+
return parameter;
|
|
42
|
+
}
|
|
43
|
+
getReferencedSchema(ref) {
|
|
44
|
+
const refComponents = ref.$ref.split("/");
|
|
45
|
+
const refName = refComponents[refComponents.length - 1];
|
|
46
|
+
const schema = this.getSchemasStrict()[refName];
|
|
47
|
+
if (schema === void 0) throw new Error(`No schema found for "${refName}".`);
|
|
48
|
+
return schema;
|
|
49
|
+
}
|
|
50
|
+
getSchema(schema) {
|
|
51
|
+
if (schema.$ref !== void 0) return this.getReferencedSchema(schema);
|
|
52
|
+
return schema;
|
|
53
|
+
}
|
|
54
|
+
getRootReferencedSchema(ref) {
|
|
55
|
+
let schema = this.getReferencedSchema(ref);
|
|
56
|
+
while (schema.$ref !== void 0) schema = this.getReferencedSchema(schema);
|
|
57
|
+
return schema;
|
|
58
|
+
}
|
|
59
|
+
getReferencedRequestBody(ref) {
|
|
60
|
+
const refComponents = ref.$ref.split("/");
|
|
61
|
+
const refName = refComponents[refComponents.length - 1];
|
|
62
|
+
const requestBodies = this.getRequestBodiesStrict();
|
|
63
|
+
if (requestBodies[refName] === void 0) throw new Error(`No request body found for "${refName}"`);
|
|
64
|
+
return requestBodies[refName];
|
|
65
|
+
}
|
|
66
|
+
getRootReferencedRequestBody(ref) {
|
|
67
|
+
let requestBody = this.getReferencedRequestBody(ref);
|
|
68
|
+
while (requestBody.$ref !== void 0) requestBody = this.getReferencedRequestBody(requestBody);
|
|
69
|
+
return requestBody;
|
|
70
|
+
}
|
|
71
|
+
getMethodsForPath(path) {
|
|
72
|
+
const pathItem = this.getPathStrict(path);
|
|
73
|
+
const possibleMethods = [
|
|
74
|
+
"get",
|
|
75
|
+
"put",
|
|
76
|
+
"post",
|
|
77
|
+
"delete",
|
|
78
|
+
"options",
|
|
79
|
+
"head",
|
|
80
|
+
"patch",
|
|
81
|
+
"trace"
|
|
82
|
+
];
|
|
83
|
+
return possibleMethods.filter((possibleMethod) => pathItem[possibleMethod] !== void 0);
|
|
84
|
+
}
|
|
85
|
+
getParametersForPath(path) {
|
|
86
|
+
const pathItem = this.getPathStrict(path);
|
|
87
|
+
if (pathItem.parameters === void 0) return [];
|
|
88
|
+
return pathItem.parameters.map((parameter) => {
|
|
89
|
+
if (parameter.$ref !== void 0) return this.getRootReferencedParameter(parameter);
|
|
90
|
+
return parameter;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
getOperation(path, method) {
|
|
94
|
+
const pathItem = this.getPathStrict(path);
|
|
95
|
+
if (pathItem[method] === void 0) throw new Error(`No ${method} method found for "path".`);
|
|
96
|
+
return pathItem[method];
|
|
97
|
+
}
|
|
98
|
+
getParametersForOperation(operation) {
|
|
99
|
+
if (operation.parameters === void 0) return [];
|
|
100
|
+
return operation.parameters.map((parameter) => {
|
|
101
|
+
if (parameter.$ref !== void 0) return this.getRootReferencedParameter(parameter);
|
|
102
|
+
return parameter;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
getRequestBodyForOperation(operation) {
|
|
106
|
+
const { requestBody } = operation;
|
|
107
|
+
if (requestBody?.$ref !== void 0) return this.getRootReferencedRequestBody(requestBody);
|
|
108
|
+
return requestBody;
|
|
109
|
+
}
|
|
110
|
+
static getCleanedOperationId(operation, path, method) {
|
|
111
|
+
let { operationId } = operation;
|
|
112
|
+
if (operationId === void 0) {
|
|
113
|
+
const updatedPath = path.replaceAll(/[^a-zA-Z0-9]/g, "_");
|
|
114
|
+
operationId = `${updatedPath.startsWith("/") ? updatedPath.slice(1) : updatedPath}_${method}`;
|
|
115
|
+
}
|
|
116
|
+
return operationId.replaceAll(/-/g, "_").replaceAll(/\./g, "_").replaceAll(/\//g, "_");
|
|
117
|
+
}
|
|
118
|
+
static alertUnsupportedSpec(document) {
|
|
119
|
+
const warningMessage = "This may result in degraded performance. Convert your OpenAPI spec to 3.1.0 for better support.";
|
|
120
|
+
const swaggerVersion = document.swagger;
|
|
121
|
+
const openAPIVersion = document.openapi;
|
|
122
|
+
if (openAPIVersion !== void 0 && openAPIVersion !== "3.1.0") console.warn(`Attempting to load an OpenAPI ${openAPIVersion} spec. ${warningMessage}`);
|
|
123
|
+
else if (swaggerVersion !== void 0) console.warn(`Attempting to load a Swagger ${swaggerVersion} spec. ${warningMessage}`);
|
|
124
|
+
else throw new Error(`Attempting to load an unsupported spec:\n\n${JSON.stringify(document, null, 2)}.`);
|
|
125
|
+
}
|
|
126
|
+
static fromObject(document) {
|
|
127
|
+
OpenAPISpec.alertUnsupportedSpec(document);
|
|
128
|
+
return new OpenAPISpec(document);
|
|
129
|
+
}
|
|
130
|
+
static fromString(rawString) {
|
|
131
|
+
let document;
|
|
132
|
+
try {
|
|
133
|
+
document = JSON.parse(rawString);
|
|
134
|
+
} catch {
|
|
135
|
+
document = yaml.load(rawString);
|
|
136
|
+
}
|
|
137
|
+
return OpenAPISpec.fromObject(document);
|
|
138
|
+
}
|
|
139
|
+
static async fromURL(url) {
|
|
140
|
+
const response = await fetch(url);
|
|
141
|
+
const rawDocument = await response.text();
|
|
142
|
+
return OpenAPISpec.fromString(rawDocument);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
//#endregion
|
|
147
|
+
export { OpenAPISpec };
|
|
148
|
+
//# sourceMappingURL=openapi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.js","names":["document: OpenAPIV3_1.Document","path: string","ref: OpenAPIV3_1.ReferenceObject","schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject","method: OpenAPIV3.HttpMethods","operation: OpenAPIV3_1.OperationObject","method: OpenAPIV3_1.HttpMethods","document: Record<string, any>","rawString: string","url: string"],"sources":["../../src/util/openapi.ts"],"sourcesContent":["import * as yaml from \"js-yaml\";\nimport { OpenAPIV3, OpenAPIV3_1 } from \"openapi-types\";\n\nexport class OpenAPISpec {\n constructor(public document: OpenAPIV3_1.Document) {}\n\n get baseUrl() {\n return this.document.servers ? this.document.servers[0].url : undefined;\n }\n\n getPathsStrict() {\n if (!this.document.paths) {\n throw new Error(\"No paths found in spec\");\n }\n return this.document.paths;\n }\n\n getParametersStrict() {\n if (!this.document.components?.parameters) {\n throw new Error(\"No parameters found in spec\");\n }\n return this.document.components.parameters;\n }\n\n getSchemasStrict() {\n if (!this.document.components?.schemas) {\n throw new Error(\"No schemas found in spec.\");\n }\n return this.document.components.schemas;\n }\n\n getRequestBodiesStrict() {\n if (!this.document.components?.requestBodies) {\n throw new Error(\"No request body found in spec.\");\n }\n return this.document.components.requestBodies;\n }\n\n getPathStrict(path: string) {\n const pathItem = this.getPathsStrict()[path];\n if (pathItem === undefined) {\n throw new Error(`No path found for \"${path}\".`);\n }\n return pathItem;\n }\n\n getReferencedParameter(ref: OpenAPIV3_1.ReferenceObject) {\n const refComponents = ref.$ref.split(\"/\");\n const refName = refComponents[refComponents.length - 1];\n if (this.getParametersStrict()[refName] === undefined) {\n throw new Error(`No parameter found for \"${refName}\".`);\n }\n return this.getParametersStrict()[refName];\n }\n\n getRootReferencedParameter(\n ref: OpenAPIV3_1.ReferenceObject\n ): OpenAPIV3_1.ParameterObject {\n let parameter = this.getReferencedParameter(ref);\n while ((parameter as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n parameter = this.getReferencedParameter(\n parameter as OpenAPIV3_1.ReferenceObject\n );\n }\n return parameter as OpenAPIV3_1.ParameterObject;\n }\n\n getReferencedSchema(\n ref: OpenAPIV3_1.ReferenceObject\n ): OpenAPIV3_1.SchemaObject {\n const refComponents = ref.$ref.split(\"/\");\n const refName = refComponents[refComponents.length - 1];\n const schema = this.getSchemasStrict()[refName];\n if (schema === undefined) {\n throw new Error(`No schema found for \"${refName}\".`);\n }\n return schema;\n }\n\n getSchema(\n schema: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject\n ): OpenAPIV3_1.SchemaObject {\n if ((schema as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n return this.getReferencedSchema(schema as OpenAPIV3_1.ReferenceObject);\n }\n return schema;\n }\n\n getRootReferencedSchema(ref: OpenAPIV3_1.ReferenceObject) {\n let schema = this.getReferencedSchema(ref);\n while ((schema as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n schema = this.getReferencedSchema(schema as OpenAPIV3_1.ReferenceObject);\n }\n return schema as OpenAPIV3_1.ParameterObject;\n }\n\n getReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject) {\n const refComponents = ref.$ref.split(\"/\");\n const refName = refComponents[refComponents.length - 1];\n const requestBodies = this.getRequestBodiesStrict();\n if (requestBodies[refName] === undefined) {\n throw new Error(`No request body found for \"${refName}\"`);\n }\n return requestBodies[refName];\n }\n\n getRootReferencedRequestBody(ref: OpenAPIV3_1.ReferenceObject) {\n let requestBody = this.getReferencedRequestBody(ref);\n while ((requestBody as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n requestBody = this.getReferencedRequestBody(\n requestBody as OpenAPIV3_1.ReferenceObject\n );\n }\n return requestBody as OpenAPIV3_1.RequestBodyObject;\n }\n\n getMethodsForPath(path: string): OpenAPIV3.HttpMethods[] {\n const pathItem = this.getPathStrict(path);\n // This is an enum in the underlying package.\n // Werestate here to allow \"import type\" above and not cause warnings in certain envs.\n const possibleMethods = [\n \"get\",\n \"put\",\n \"post\",\n \"delete\",\n \"options\",\n \"head\",\n \"patch\",\n \"trace\",\n ];\n return possibleMethods.filter(\n (possibleMethod) =>\n pathItem[possibleMethod as OpenAPIV3.HttpMethods] !== undefined\n ) as OpenAPIV3.HttpMethods[];\n }\n\n getParametersForPath(path: string) {\n const pathItem = this.getPathStrict(path);\n if (pathItem.parameters === undefined) {\n return [];\n }\n return pathItem.parameters.map((parameter) => {\n if ((parameter as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n return this.getRootReferencedParameter(\n parameter as OpenAPIV3_1.ReferenceObject\n );\n }\n return parameter as OpenAPIV3_1.ParameterObject;\n });\n }\n\n getOperation(path: string, method: OpenAPIV3.HttpMethods) {\n const pathItem = this.getPathStrict(path);\n if (pathItem[method] === undefined) {\n throw new Error(`No ${method} method found for \"path\".`);\n }\n return pathItem[method];\n }\n\n getParametersForOperation(operation: OpenAPIV3_1.OperationObject) {\n if (operation.parameters === undefined) {\n return [];\n }\n return operation.parameters.map((parameter) => {\n if ((parameter as OpenAPIV3_1.ReferenceObject).$ref !== undefined) {\n return this.getRootReferencedParameter(\n parameter as OpenAPIV3_1.ReferenceObject\n );\n }\n return parameter as OpenAPIV3_1.ParameterObject;\n });\n }\n\n getRequestBodyForOperation(\n operation: OpenAPIV3_1.OperationObject\n ): OpenAPIV3_1.RequestBodyObject {\n const { requestBody } = operation;\n if ((requestBody as OpenAPIV3_1.ReferenceObject)?.$ref !== undefined) {\n return this.getRootReferencedRequestBody(\n requestBody as OpenAPIV3_1.ReferenceObject\n );\n }\n return requestBody as OpenAPIV3_1.RequestBodyObject;\n }\n\n static getCleanedOperationId(\n operation: OpenAPIV3_1.OperationObject,\n path: string,\n method: OpenAPIV3_1.HttpMethods\n ) {\n let { operationId } = operation;\n if (operationId === undefined) {\n const updatedPath = path.replaceAll(/[^a-zA-Z0-9]/g, \"_\");\n operationId = `${\n updatedPath.startsWith(\"/\") ? updatedPath.slice(1) : updatedPath\n }_${method}`;\n }\n return operationId\n .replaceAll(/-/g, \"_\")\n .replaceAll(/\\./g, \"_\")\n .replaceAll(/\\//g, \"_\");\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static alertUnsupportedSpec(document: Record<string, any>) {\n const warningMessage =\n \"This may result in degraded performance. Convert your OpenAPI spec to 3.1.0 for better support.\";\n const swaggerVersion = document.swagger;\n const openAPIVersion = document.openapi;\n if (openAPIVersion !== undefined && openAPIVersion !== \"3.1.0\") {\n console.warn(\n `Attempting to load an OpenAPI ${openAPIVersion} spec. ${warningMessage}`\n );\n } else if (swaggerVersion !== undefined) {\n console.warn(\n `Attempting to load a Swagger ${swaggerVersion} spec. ${warningMessage}`\n );\n } else {\n throw new Error(\n `Attempting to load an unsupported spec:\\n\\n${JSON.stringify(\n document,\n null,\n 2\n )}.`\n );\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromObject(document: Record<string, any>) {\n OpenAPISpec.alertUnsupportedSpec(document);\n return new OpenAPISpec(document as OpenAPIV3_1.Document);\n }\n\n static fromString(rawString: string) {\n let document;\n try {\n document = JSON.parse(rawString);\n } catch {\n document = yaml.load(rawString);\n }\n return OpenAPISpec.fromObject(document);\n }\n\n static async fromURL(url: string) {\n const response = await fetch(url);\n const rawDocument = await response.text();\n return OpenAPISpec.fromString(rawDocument);\n }\n}\n"],"mappings":";;;AAGA,IAAa,cAAb,MAAa,YAAY;CACvB,YAAmBA,UAAgC;EAAhC;CAAkC;CAErD,IAAI,UAAU;AACZ,SAAO,KAAK,SAAS,UAAU,KAAK,SAAS,QAAQ,GAAG,MAAM;CAC/D;CAED,iBAAiB;AACf,MAAI,CAAC,KAAK,SAAS,MACjB,OAAM,IAAI,MAAM;AAElB,SAAO,KAAK,SAAS;CACtB;CAED,sBAAsB;AACpB,MAAI,CAAC,KAAK,SAAS,YAAY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|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_extname = require('./extname.cjs');
|
|
3
|
+
const yaml = require_rolldown_runtime.__toESM(require("yaml"));
|
|
4
|
+
|
|
5
|
+
//#region src/util/parse.ts
|
|
6
|
+
const loadFileContents = (contents, format) => {
|
|
7
|
+
switch (format) {
|
|
8
|
+
case ".json": return JSON.parse(contents);
|
|
9
|
+
case ".yml":
|
|
10
|
+
case ".yaml": return yaml.parse(contents);
|
|
11
|
+
default: throw new Error(`Unsupported filetype ${format}`);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const parseFileConfig = (text, path, supportedTypes) => {
|
|
15
|
+
const suffix = require_extname.extname(path);
|
|
16
|
+
if (![".json", ".yaml"].includes(suffix) || supportedTypes && !supportedTypes.includes(suffix)) throw new Error(`Unsupported filetype ${suffix}`);
|
|
17
|
+
return loadFileContents(text, suffix);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.parseFileConfig = parseFileConfig;
|
|
22
|
+
//# sourceMappingURL=parse.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.cjs","names":["contents: string","format: string","text: string","path: string","supportedTypes?: string[]","extname"],"sources":["../../src/util/parse.ts"],"sourcesContent":["import * as yaml from \"yaml\";\nimport { extname } from \"./extname.js\";\n\nexport const loadFileContents = (contents: string, format: string) => {\n switch (format) {\n case \".json\":\n return JSON.parse(contents);\n case \".yml\":\n case \".yaml\":\n return yaml.parse(contents);\n default:\n throw new Error(`Unsupported filetype ${format}`);\n }\n};\n\nexport const parseFileConfig = (\n text: string,\n path: string,\n supportedTypes?: string[]\n) => {\n const suffix = extname(path);\n\n if (\n ![\".json\", \".yaml\"].includes(suffix) ||\n (supportedTypes && !supportedTypes.includes(suffix))\n ) {\n throw new Error(`Unsupported filetype ${suffix}`);\n }\n\n return loadFileContents(text, suffix);\n};\n"],"mappings":";;;;;AAGA,MAAa,mBAAmB,CAACA,UAAkBC,WAAmB;AACpE,SAAQ,QAAR;EACE,KAAK,QACH,QAAO,KAAK,MAAM,SAAS;EAC7B,KAAK;EACL,KAAK,QACH,QAAO,KAAK,MAAM,SAAS;EAC7B,QACE,OAAM,IAAI,MAAM,CAAC,qBAAqB,EAAE,QAAQ;CACnD;AACF;AAED,MAAa,kBAAkB,CAC7BC,MACAC,MACAC,mBACG;CACH,MAAM,SAASC,wBAAQ,KAAK;AAE5B,KACE,CAAC,CAAC,SAAS,OAAQ,EAAC,SAAS,OAAO,IACnC,kBAAkB,CAAC,eAAe,SAAS,OAAO,CAEnD,OAAM,IAAI,MAAM,CAAC,qBAAqB,EAAE,QAAQ;AAGlD,QAAO,iBAAiB,MAAM,OAAO;AACtC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { extname } from "./extname.js";
|
|
2
|
+
import * as yaml from "yaml";
|
|
3
|
+
|
|
4
|
+
//#region src/util/parse.ts
|
|
5
|
+
const loadFileContents = (contents, format) => {
|
|
6
|
+
switch (format) {
|
|
7
|
+
case ".json": return JSON.parse(contents);
|
|
8
|
+
case ".yml":
|
|
9
|
+
case ".yaml": return yaml.parse(contents);
|
|
10
|
+
default: throw new Error(`Unsupported filetype ${format}`);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const parseFileConfig = (text, path, supportedTypes) => {
|
|
14
|
+
const suffix = extname(path);
|
|
15
|
+
if (![".json", ".yaml"].includes(suffix) || supportedTypes && !supportedTypes.includes(suffix)) throw new Error(`Unsupported filetype ${suffix}`);
|
|
16
|
+
return loadFileContents(text, suffix);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { parseFileConfig };
|
|
21
|
+
//# sourceMappingURL=parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.js","names":["contents: string","format: string","text: string","path: string","supportedTypes?: string[]"],"sources":["../../src/util/parse.ts"],"sourcesContent":["import * as yaml from \"yaml\";\nimport { extname } from \"./extname.js\";\n\nexport const loadFileContents = (contents: string, format: string) => {\n switch (format) {\n case \".json\":\n return JSON.parse(contents);\n case \".yml\":\n case \".yaml\":\n return yaml.parse(contents);\n default:\n throw new Error(`Unsupported filetype ${format}`);\n }\n};\n\nexport const parseFileConfig = (\n text: string,\n path: string,\n supportedTypes?: string[]\n) => {\n const suffix = extname(path);\n\n if (\n ![\".json\", \".yaml\"].includes(suffix) ||\n (supportedTypes && !supportedTypes.includes(suffix))\n ) {\n throw new Error(`Unsupported filetype ${suffix}`);\n }\n\n return loadFileContents(text, suffix);\n};\n"],"mappings":";;;;AAGA,MAAa,mBAAmB,CAACA,UAAkBC,WAAmB;AACpE,SAAQ,QAAR;EACE,KAAK,QACH,QAAO,KAAK,MAAM,SAAS;EAC7B,KAAK;EACL,KAAK,QACH,QAAO,KAAK,MAAM,SAAS;EAC7B,QACE,OAAM,IAAI,MAAM,CAAC,qBAAqB,EAAE,QAAQ;CACnD;AACF;AAED,MAAa,kBAAkB,CAC7BC,MACAC,MACAC,mBACG;CACH,MAAM,SAAS,QAAQ,KAAK;AAE5B,KACE,CAAC,CAAC,SAAS,OAAQ,EAAC,SAAS,OAAO,IACnC,kBAAkB,CAAC,eAAe,SAAS,OAAO,CAEnD,OAAM,IAAI,MAAM,CAAC,qBAAqB,EAAE,QAAQ;AAGlD,QAAO,iBAAiB,MAAM,OAAO;AACtC"}
|