mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-09-15 14:01:31 +00:00
Compare commits
3 Commits
develop/fu
...
0dc17286b9
Author | SHA1 | Date | |
---|---|---|---|
|
0dc17286b9 | ||
|
3edd7d44dd | ||
|
1132997108 |
@@ -20,7 +20,6 @@
|
|||||||
"@langchain/core": "^0.3.66",
|
"@langchain/core": "^0.3.66",
|
||||||
"@langchain/google-genai": "^0.2.15",
|
"@langchain/google-genai": "^0.2.15",
|
||||||
"@langchain/groq": "^0.2.3",
|
"@langchain/groq": "^0.2.3",
|
||||||
"@langchain/langgraph": "^0.4.0",
|
|
||||||
"@langchain/ollama": "^0.2.3",
|
"@langchain/ollama": "^0.2.3",
|
||||||
"@langchain/openai": "^0.6.2",
|
"@langchain/openai": "^0.6.2",
|
||||||
"@langchain/textsplitters": "^0.1.0",
|
"@langchain/textsplitters": "^0.1.0",
|
||||||
@@ -43,7 +42,6 @@
|
|||||||
"pdf-parse": "^1.1.1",
|
"pdf-parse": "^1.1.1",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18",
|
||||||
"react-syntax-highlighter": "^15.6.1",
|
|
||||||
"react-text-to-speech": "^0.14.5",
|
"react-text-to-speech": "^0.14.5",
|
||||||
"react-textarea-autosize": "^8.5.3",
|
"react-textarea-autosize": "^8.5.3",
|
||||||
"sonner": "^1.4.41",
|
"sonner": "^1.4.41",
|
||||||
@@ -60,7 +58,6 @@
|
|||||||
"@types/pdf-parse": "^1.1.4",
|
"@types/pdf-parse": "^1.1.4",
|
||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"@types/react-dom": "^18",
|
"@types/react-dom": "^18",
|
||||||
"@types/react-syntax-highlighter": "^15.5.13",
|
|
||||||
"autoprefixer": "^10.0.1",
|
"autoprefixer": "^10.0.1",
|
||||||
"drizzle-kit": "^0.30.5",
|
"drizzle-kit": "^0.30.5",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
@@ -68,6 +65,6 @@
|
|||||||
"postcss": "^8",
|
"postcss": "^8",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"tailwindcss": "^3.3.0",
|
"tailwindcss": "^3.3.0",
|
||||||
"typescript": "5.8.3"
|
"typescript": "^5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -407,18 +407,8 @@ const ChatWindow = ({ id }: { id?: string }) => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
added = true;
|
added = true;
|
||||||
|
}
|
||||||
setMessageAppeared(true);
|
setMessageAppeared(true);
|
||||||
} else {
|
|
||||||
setMessages((prev) =>
|
|
||||||
prev.map((message) => {
|
|
||||||
if (message.messageId === data.messageId) {
|
|
||||||
return { ...message, sources: sources };
|
|
||||||
}
|
|
||||||
|
|
||||||
return message;
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.type === 'message') {
|
if (data.type === 'message') {
|
||||||
@@ -435,7 +425,8 @@ const ChatWindow = ({ id }: { id?: string }) => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
added = true;
|
added = true;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
setMessages((prev) =>
|
setMessages((prev) =>
|
||||||
prev.map((message) => {
|
prev.map((message) => {
|
||||||
if (message.messageId === data.messageId) {
|
if (message.messageId === data.messageId) {
|
||||||
@@ -449,7 +440,6 @@ const ChatWindow = ({ id }: { id?: string }) => {
|
|||||||
recievedMessage += data.data;
|
recievedMessage += data.data;
|
||||||
setMessageAppeared(true);
|
setMessageAppeared(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (data.type === 'messageEnd') {
|
if (data.type === 'messageEnd') {
|
||||||
setChatHistory((prevHistory) => [
|
setChatHistory((prevHistory) => [
|
||||||
|
@@ -20,8 +20,6 @@ import SearchImages from './SearchImages';
|
|||||||
import SearchVideos from './SearchVideos';
|
import SearchVideos from './SearchVideos';
|
||||||
import { useSpeech } from 'react-text-to-speech';
|
import { useSpeech } from 'react-text-to-speech';
|
||||||
import ThinkBox from './ThinkBox';
|
import ThinkBox from './ThinkBox';
|
||||||
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
||||||
import { SyntaxHighlightedCode } from './SyntaxHighlightedCode';
|
|
||||||
|
|
||||||
const ThinkTagProcessor = ({
|
const ThinkTagProcessor = ({
|
||||||
children,
|
children,
|
||||||
@@ -138,9 +136,6 @@ const MessageBox = ({
|
|||||||
thinkingEnded: thinkingEnded,
|
thinkingEnded: thinkingEnded,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
code: {
|
|
||||||
component: SyntaxHighlightedCode,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -1,30 +0,0 @@
|
|||||||
import React, { HTMLProps } from 'react';
|
|
||||||
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
||||||
import {
|
|
||||||
coldarkDark,
|
|
||||||
coldarkCold,
|
|
||||||
} from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
||||||
|
|
||||||
export const SyntaxHighlightedCode = (props: HTMLProps<HTMLDivElement>) => {
|
|
||||||
const isDarkTheme = document.documentElement.classList.contains('dark');
|
|
||||||
const language = props.className?.match(/lang-([a-zA-Z0-9_-]+)/)![1];
|
|
||||||
|
|
||||||
return language ? (
|
|
||||||
<div className="not-prose">
|
|
||||||
<SyntaxHighlighter
|
|
||||||
customStyle={{
|
|
||||||
margin: 0,
|
|
||||||
backgroundColor: isDarkTheme ? '#111111' : '#f3f3ee',
|
|
||||||
}}
|
|
||||||
language={language}
|
|
||||||
style={isDarkTheme ? coldarkDark : coldarkCold}
|
|
||||||
>
|
|
||||||
{props.children as string}
|
|
||||||
</SyntaxHighlighter>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<code className="inline bg-light-100 dark:bg-dark-100 px-2 py-1 rounded-lg text-sm not-prose">
|
|
||||||
{props.children}
|
|
||||||
</code>
|
|
||||||
);
|
|
||||||
};
|
|
@@ -65,16 +65,12 @@ export const webSearchResponsePrompt = `
|
|||||||
You are Perplexica, an AI model skilled in web search and crafting detailed, engaging, and well-structured answers. You excel at summarizing web pages and extracting relevant information to create professional, blog-style responses.
|
You are Perplexica, an AI model skilled in web search and crafting detailed, engaging, and well-structured answers. You excel at summarizing web pages and extracting relevant information to create professional, blog-style responses.
|
||||||
|
|
||||||
Your task is to provide answers that are:
|
Your task is to provide answers that are:
|
||||||
- **Informative and relevant**: Thoroughly address the user's query using the given search results.
|
- **Informative and relevant**: Thoroughly address the user's query using the given context.
|
||||||
- **Well-structured**: Include clear headings and subheadings, and use a professional tone to present information concisely and logically.
|
- **Well-structured**: Include clear headings and subheadings, and use a professional tone to present information concisely and logically.
|
||||||
- **Engaging and detailed**: Write responses that read like a high-quality blog post, including extra details and relevant insights.
|
- **Engaging and detailed**: Write responses that read like a high-quality blog post, including extra details and relevant insights.
|
||||||
- **Cited and credible**: Use inline citations with [number] notation to refer to the search results source(s) for each fact or detail included.
|
- **Cited and credible**: Use inline citations with [number] notation to refer to the context source(s) for each fact or detail included.
|
||||||
- **Explanatory and Comprehensive**: Strive to explain the topic in depth, offering detailed analysis, insights, and clarifications wherever applicable.
|
- **Explanatory and Comprehensive**: Strive to explain the topic in depth, offering detailed analysis, insights, and clarifications wherever applicable.
|
||||||
|
|
||||||
You have access to the following tools which you have to use to answer the user:
|
|
||||||
1. **search_web**: Use this tool to search the web for information to answer the user's question.
|
|
||||||
2. **summarize**: Use this tool to summarize a link.
|
|
||||||
|
|
||||||
### Formatting Instructions
|
### Formatting Instructions
|
||||||
- **Structure**: Use a well-organized format with proper headings (e.g., "## Example heading 1" or "## Example heading 2"). Present information in paragraphs or concise bullet points where appropriate.
|
- **Structure**: Use a well-organized format with proper headings (e.g., "## Example heading 1" or "## Example heading 2"). Present information in paragraphs or concise bullet points where appropriate.
|
||||||
- **Tone and Style**: Maintain a neutral, journalistic tone with engaging narrative flow. Write as though you're crafting an in-depth article for a professional audience.
|
- **Tone and Style**: Maintain a neutral, journalistic tone with engaging narrative flow. Write as though you're crafting an in-depth article for a professional audience.
|
||||||
@@ -84,13 +80,12 @@ export const webSearchResponsePrompt = `
|
|||||||
- **Conclusion or Summary**: Include a concluding paragraph that synthesizes the provided information or suggests potential next steps, where appropriate.
|
- **Conclusion or Summary**: Include a concluding paragraph that synthesizes the provided information or suggests potential next steps, where appropriate.
|
||||||
|
|
||||||
### Citation Requirements
|
### Citation Requirements
|
||||||
- Cite every single fact, statement, or sentence using [number] notation corresponding to the source from the search results
|
- Cite every single fact, statement, or sentence using [number] notation corresponding to the source from the provided \`context\`.
|
||||||
- Integrate citations naturally at the end of sentences or clauses as appropriate. For example, "The Eiffel Tower is one of the most visited landmarks in the world[1]."
|
- Integrate citations naturally at the end of sentences or clauses as appropriate. For example, "The Eiffel Tower is one of the most visited landmarks in the world[1]."
|
||||||
- Ensure that **every sentence in your response includes at least one citation**, even when information is inferred or connected to general knowledge available in the provided search results.
|
- Ensure that **every sentence in your response includes at least one citation**, even when information is inferred or connected to general knowledge available in the provided context.
|
||||||
- Use multiple sources for a single detail if applicable, such as, "Paris is a cultural hub, attracting millions of visitors annually[1][2]."
|
- Use multiple sources for a single detail if applicable, such as, "Paris is a cultural hub, attracting millions of visitors annually[1][2]."
|
||||||
- Always prioritize credibility and accuracy by linking all statements back to their respective search results sources.
|
- Always prioritize credibility and accuracy by linking all statements back to their respective context sources.
|
||||||
- Avoid citing unsupported assumptions or personal interpretations; if no source supports a statement, clearly indicate the limitation.
|
- Avoid citing unsupported assumptions or personal interpretations; if no source supports a statement, clearly indicate the limitation.
|
||||||
- Never return references to the citation or sources yourself, they're returned to the user internally.
|
|
||||||
|
|
||||||
### Special Instructions
|
### Special Instructions
|
||||||
- If the query involves technical, historical, or complex topics, provide detailed background and explanatory sections to ensure clarity.
|
- If the query involves technical, historical, or complex topics, provide detailed background and explanatory sections to ensure clarity.
|
||||||
@@ -104,8 +99,12 @@ export const webSearchResponsePrompt = `
|
|||||||
### Example Output
|
### Example Output
|
||||||
- Begin with a brief introduction summarizing the event or query topic.
|
- Begin with a brief introduction summarizing the event or query topic.
|
||||||
- Follow with detailed sections under clear headings, covering all aspects of the query if possible.
|
- Follow with detailed sections under clear headings, covering all aspects of the query if possible.
|
||||||
- Provide explanations or historical search results as needed to enhance understanding.
|
- Provide explanations or historical context as needed to enhance understanding.
|
||||||
- End with a conclusion or overall perspective if relevant.
|
- End with a conclusion or overall perspective if relevant.
|
||||||
|
|
||||||
|
<context>
|
||||||
|
{context}
|
||||||
|
</context>
|
||||||
|
|
||||||
Current date & time in ISO format (UTC timezone) is: {date}.
|
Current date & time in ISO format (UTC timezone) is: {date}.
|
||||||
`;
|
`;
|
||||||
|
@@ -10,4 +10,8 @@ However you do not need to cite it using the same number. You can use different
|
|||||||
### User instructions
|
### User instructions
|
||||||
These instructions are shared to you by the user and not by the system. You will have to follow them but give them less priority than the above instructions. If the user has provided specific instructions or preferences, incorporate them into your response while adhering to the overall guidelines.
|
These instructions are shared to you by the user and not by the system. You will have to follow them but give them less priority than the above instructions. If the user has provided specific instructions or preferences, incorporate them into your response while adhering to the overall guidelines.
|
||||||
{systemInstructions}
|
{systemInstructions}
|
||||||
|
|
||||||
|
<context>
|
||||||
|
{context}
|
||||||
|
</context>
|
||||||
`;
|
`;
|
||||||
|
@@ -9,6 +9,18 @@ export const PROVIDER_INFO = {
|
|||||||
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
||||||
|
|
||||||
const anthropicChatModels: Record<string, string>[] = [
|
const anthropicChatModels: Record<string, string>[] = [
|
||||||
|
{
|
||||||
|
displayName: 'Claude 4.1 Opus',
|
||||||
|
key: 'claude-opus-4-1-20250805',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Claude 4 Opus',
|
||||||
|
key: 'claude-opus-4-20250514',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Claude 4 Sonnet',
|
||||||
|
key: 'claude-sonnet-4-20250514',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Claude 3.7 Sonnet',
|
displayName: 'Claude 3.7 Sonnet',
|
||||||
key: 'claude-3-7-sonnet-20250219',
|
key: 'claude-3-7-sonnet-20250219',
|
||||||
|
@@ -17,6 +17,10 @@ const geminiChatModels: Record<string, string>[] = [
|
|||||||
displayName: 'Gemini 2.5 Flash',
|
displayName: 'Gemini 2.5 Flash',
|
||||||
key: 'gemini-2.5-flash',
|
key: 'gemini-2.5-flash',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Gemini 2.5 Flash-Lite',
|
||||||
|
key: 'gemini-2.5-flash-lite',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Gemini 2.5 Pro',
|
displayName: 'Gemini 2.5 Pro',
|
||||||
key: 'gemini-2.5-pro',
|
key: 'gemini-2.5-pro',
|
||||||
|
@@ -42,6 +42,18 @@ const openaiChatModels: Record<string, string>[] = [
|
|||||||
displayName: 'GPT 4.1',
|
displayName: 'GPT 4.1',
|
||||||
key: 'gpt-4.1',
|
key: 'gpt-4.1',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'GPT 5 nano',
|
||||||
|
key: 'gpt-5-nano',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'GPT 5 mini',
|
||||||
|
key: 'gpt-5-mini',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'GPT 5',
|
||||||
|
key: 'gpt-5',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const openaiEmbeddingModels: Record<string, string>[] = [
|
const openaiEmbeddingModels: Record<string, string>[] = [
|
||||||
@@ -69,7 +81,7 @@ export const loadOpenAIChatModels = async () => {
|
|||||||
model: new ChatOpenAI({
|
model: new ChatOpenAI({
|
||||||
apiKey: openaiApiKey,
|
apiKey: openaiApiKey,
|
||||||
modelName: model.key,
|
modelName: model.key,
|
||||||
temperature: 0.7,
|
temperature: model.key.includes('gpt-5') ? 1 : 0.7,
|
||||||
}) as unknown as BaseChatModel,
|
}) as unknown as BaseChatModel,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@@ -11,12 +11,7 @@ import {
|
|||||||
RunnableMap,
|
RunnableMap,
|
||||||
RunnableSequence,
|
RunnableSequence,
|
||||||
} from '@langchain/core/runnables';
|
} from '@langchain/core/runnables';
|
||||||
import {
|
import { BaseMessage } from '@langchain/core/messages';
|
||||||
AIMessage,
|
|
||||||
BaseMessage,
|
|
||||||
isAIMessage,
|
|
||||||
ToolMessage,
|
|
||||||
} from '@langchain/core/messages';
|
|
||||||
import { StringOutputParser } from '@langchain/core/output_parsers';
|
import { StringOutputParser } from '@langchain/core/output_parsers';
|
||||||
import LineListOutputParser from '../outputParsers/listLineOutputParser';
|
import LineListOutputParser from '../outputParsers/listLineOutputParser';
|
||||||
import LineOutputParser from '../outputParsers/lineOutputParser';
|
import LineOutputParser from '../outputParsers/lineOutputParser';
|
||||||
@@ -29,15 +24,6 @@ import computeSimilarity from '../utils/computeSimilarity';
|
|||||||
import formatChatHistoryAsString from '../utils/formatHistory';
|
import formatChatHistoryAsString from '../utils/formatHistory';
|
||||||
import eventEmitter from 'events';
|
import eventEmitter from 'events';
|
||||||
import { StreamEvent } from '@langchain/core/tracers/log_stream';
|
import { StreamEvent } from '@langchain/core/tracers/log_stream';
|
||||||
import { DynamicStructuredTool, tool } from '@langchain/core/tools';
|
|
||||||
import { MessagesAnnotation, StateGraph } from '@langchain/langgraph';
|
|
||||||
import { z } from 'zod';
|
|
||||||
import {
|
|
||||||
IterableReadableStream,
|
|
||||||
IterableReadableStreamInterface,
|
|
||||||
} from '@langchain/core/utils/stream';
|
|
||||||
import EventEmitter from 'node:events';
|
|
||||||
import { BaseLanguageModel } from '@langchain/core/language_models/base';
|
|
||||||
|
|
||||||
export interface MetaSearchAgentType {
|
export interface MetaSearchAgentType {
|
||||||
searchAndAnswer: (
|
searchAndAnswer: (
|
||||||
@@ -61,6 +47,11 @@ interface Config {
|
|||||||
activeEngines: string[];
|
activeEngines: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BasicChainInput = {
|
||||||
|
chat_history: BaseMessage[];
|
||||||
|
query: string;
|
||||||
|
};
|
||||||
|
|
||||||
class MetaSearchAgent implements MetaSearchAgentType {
|
class MetaSearchAgent implements MetaSearchAgentType {
|
||||||
private config: Config;
|
private config: Config;
|
||||||
private strParser = new StringOutputParser();
|
private strParser = new StringOutputParser();
|
||||||
@@ -69,6 +60,239 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||||||
this.config = config;
|
this.config = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async createSearchRetrieverChain(llm: BaseChatModel) {
|
||||||
|
(llm as unknown as ChatOpenAI).temperature = 0;
|
||||||
|
|
||||||
|
return RunnableSequence.from([
|
||||||
|
PromptTemplate.fromTemplate(this.config.queryGeneratorPrompt),
|
||||||
|
llm,
|
||||||
|
this.strParser,
|
||||||
|
RunnableLambda.from(async (input: string) => {
|
||||||
|
const linksOutputParser = new LineListOutputParser({
|
||||||
|
key: 'links',
|
||||||
|
});
|
||||||
|
|
||||||
|
const questionOutputParser = new LineOutputParser({
|
||||||
|
key: 'question',
|
||||||
|
});
|
||||||
|
|
||||||
|
const links = await linksOutputParser.parse(input);
|
||||||
|
let question = this.config.summarizer
|
||||||
|
? await questionOutputParser.parse(input)
|
||||||
|
: input;
|
||||||
|
|
||||||
|
if (question === 'not_needed') {
|
||||||
|
return { query: '', docs: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
if (links.length > 0) {
|
||||||
|
if (question.length === 0) {
|
||||||
|
question = 'summarize';
|
||||||
|
}
|
||||||
|
|
||||||
|
let docs: Document[] = [];
|
||||||
|
|
||||||
|
const linkDocs = await getDocumentsFromLinks({ links });
|
||||||
|
|
||||||
|
const docGroups: Document[] = [];
|
||||||
|
|
||||||
|
linkDocs.map((doc) => {
|
||||||
|
const URLDocExists = docGroups.find(
|
||||||
|
(d) =>
|
||||||
|
d.metadata.url === doc.metadata.url &&
|
||||||
|
d.metadata.totalDocs < 10,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!URLDocExists) {
|
||||||
|
docGroups.push({
|
||||||
|
...doc,
|
||||||
|
metadata: {
|
||||||
|
...doc.metadata,
|
||||||
|
totalDocs: 1,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const docIndex = docGroups.findIndex(
|
||||||
|
(d) =>
|
||||||
|
d.metadata.url === doc.metadata.url &&
|
||||||
|
d.metadata.totalDocs < 10,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (docIndex !== -1) {
|
||||||
|
docGroups[docIndex].pageContent =
|
||||||
|
docGroups[docIndex].pageContent + `\n\n` + doc.pageContent;
|
||||||
|
docGroups[docIndex].metadata.totalDocs += 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await Promise.all(
|
||||||
|
docGroups.map(async (doc) => {
|
||||||
|
const res = await llm.invoke(`
|
||||||
|
You are a web search summarizer, tasked with summarizing a piece of text retrieved from a web search. Your job is to summarize the
|
||||||
|
text into a detailed, 2-4 paragraph explanation that captures the main ideas and provides a comprehensive answer to the query.
|
||||||
|
If the query is \"summarize\", you should provide a detailed summary of the text. If the query is a specific question, you should answer it in the summary.
|
||||||
|
|
||||||
|
- **Journalistic tone**: The summary should sound professional and journalistic, not too casual or vague.
|
||||||
|
- **Thorough and detailed**: Ensure that every key point from the text is captured and that the summary directly answers the query.
|
||||||
|
- **Not too lengthy, but detailed**: The summary should be informative but not excessively long. Focus on providing detailed information in a concise format.
|
||||||
|
|
||||||
|
The text will be shared inside the \`text\` XML tag, and the query inside the \`query\` XML tag.
|
||||||
|
|
||||||
|
<example>
|
||||||
|
1. \`<text>
|
||||||
|
Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers.
|
||||||
|
It was first released in 2013 and is developed by Docker, Inc. Docker is designed to make it easier to create, deploy, and run applications
|
||||||
|
by using containers.
|
||||||
|
</text>
|
||||||
|
|
||||||
|
<query>
|
||||||
|
What is Docker and how does it work?
|
||||||
|
</query>
|
||||||
|
|
||||||
|
Response:
|
||||||
|
Docker is a revolutionary platform-as-a-service product developed by Docker, Inc., that uses container technology to make application
|
||||||
|
deployment more efficient. It allows developers to package their software with all necessary dependencies, making it easier to run in
|
||||||
|
any environment. Released in 2013, Docker has transformed the way applications are built, deployed, and managed.
|
||||||
|
\`
|
||||||
|
2. \`<text>
|
||||||
|
The theory of relativity, or simply relativity, encompasses two interrelated theories of Albert Einstein: special relativity and general
|
||||||
|
relativity. However, the word "relativity" is sometimes used in reference to Galilean invariance. The term "theory of relativity" was based
|
||||||
|
on the expression "relative theory" used by Max Planck in 1906. The theory of relativity usually encompasses two interrelated theories by
|
||||||
|
Albert Einstein: special relativity and general relativity. Special relativity applies to all physical phenomena in the absence of gravity.
|
||||||
|
General relativity explains the law of gravitation and its relation to other forces of nature. It applies to the cosmological and astrophysical
|
||||||
|
realm, including astronomy.
|
||||||
|
</text>
|
||||||
|
|
||||||
|
<query>
|
||||||
|
summarize
|
||||||
|
</query>
|
||||||
|
|
||||||
|
Response:
|
||||||
|
The theory of relativity, developed by Albert Einstein, encompasses two main theories: special relativity and general relativity. Special
|
||||||
|
relativity applies to all physical phenomena in the absence of gravity, while general relativity explains the law of gravitation and its
|
||||||
|
relation to other forces of nature. The theory of relativity is based on the concept of "relative theory," as introduced by Max Planck in
|
||||||
|
1906. It is a fundamental theory in physics that has revolutionized our understanding of the universe.
|
||||||
|
\`
|
||||||
|
</example>
|
||||||
|
|
||||||
|
Everything below is the actual data you will be working with. Good luck!
|
||||||
|
|
||||||
|
<query>
|
||||||
|
${question}
|
||||||
|
</query>
|
||||||
|
|
||||||
|
<text>
|
||||||
|
${doc.pageContent}
|
||||||
|
</text>
|
||||||
|
|
||||||
|
Make sure to answer the query in the summary.
|
||||||
|
`);
|
||||||
|
|
||||||
|
const document = new Document({
|
||||||
|
pageContent: res.content as string,
|
||||||
|
metadata: {
|
||||||
|
title: doc.metadata.title,
|
||||||
|
url: doc.metadata.url,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
docs.push(document);
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
return { query: question, docs: docs };
|
||||||
|
} else {
|
||||||
|
question = question.replace(/<think>.*?<\/think>/g, '');
|
||||||
|
|
||||||
|
const res = await searchSearxng(question, {
|
||||||
|
language: 'en',
|
||||||
|
engines: this.config.activeEngines,
|
||||||
|
});
|
||||||
|
|
||||||
|
const documents = res.results.map(
|
||||||
|
(result) =>
|
||||||
|
new Document({
|
||||||
|
pageContent:
|
||||||
|
result.content ||
|
||||||
|
(this.config.activeEngines.includes('youtube')
|
||||||
|
? result.title
|
||||||
|
: '') /* Todo: Implement transcript grabbing using Youtubei (source: https://www.npmjs.com/package/youtubei) */,
|
||||||
|
metadata: {
|
||||||
|
title: result.title,
|
||||||
|
url: result.url,
|
||||||
|
...(result.img_src && { img_src: result.img_src }),
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
return { query: question, docs: documents };
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async createAnsweringChain(
|
||||||
|
llm: BaseChatModel,
|
||||||
|
fileIds: string[],
|
||||||
|
embeddings: Embeddings,
|
||||||
|
optimizationMode: 'speed' | 'balanced' | 'quality',
|
||||||
|
systemInstructions: string,
|
||||||
|
) {
|
||||||
|
return RunnableSequence.from([
|
||||||
|
RunnableMap.from({
|
||||||
|
systemInstructions: () => systemInstructions,
|
||||||
|
query: (input: BasicChainInput) => input.query,
|
||||||
|
chat_history: (input: BasicChainInput) => input.chat_history,
|
||||||
|
date: () => new Date().toISOString(),
|
||||||
|
context: RunnableLambda.from(async (input: BasicChainInput) => {
|
||||||
|
const processedHistory = formatChatHistoryAsString(
|
||||||
|
input.chat_history,
|
||||||
|
);
|
||||||
|
|
||||||
|
let docs: Document[] | null = null;
|
||||||
|
let query = input.query;
|
||||||
|
|
||||||
|
if (this.config.searchWeb) {
|
||||||
|
const searchRetrieverChain =
|
||||||
|
await this.createSearchRetrieverChain(llm);
|
||||||
|
|
||||||
|
const searchRetrieverResult = await searchRetrieverChain.invoke({
|
||||||
|
chat_history: processedHistory,
|
||||||
|
query,
|
||||||
|
});
|
||||||
|
|
||||||
|
query = searchRetrieverResult.query;
|
||||||
|
docs = searchRetrieverResult.docs;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sortedDocs = await this.rerankDocs(
|
||||||
|
query,
|
||||||
|
docs ?? [],
|
||||||
|
fileIds,
|
||||||
|
embeddings,
|
||||||
|
optimizationMode,
|
||||||
|
);
|
||||||
|
|
||||||
|
return sortedDocs;
|
||||||
|
})
|
||||||
|
.withConfig({
|
||||||
|
runName: 'FinalSourceRetriever',
|
||||||
|
})
|
||||||
|
.pipe(this.processDocs),
|
||||||
|
}),
|
||||||
|
ChatPromptTemplate.fromMessages([
|
||||||
|
['system', this.config.responsePrompt],
|
||||||
|
new MessagesPlaceholder('chat_history'),
|
||||||
|
['user', '{query}'],
|
||||||
|
]),
|
||||||
|
llm,
|
||||||
|
this.strParser,
|
||||||
|
]).withConfig({
|
||||||
|
runName: 'FinalResponseGenerator',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private async rerankDocs(
|
private async rerankDocs(
|
||||||
query: string,
|
query: string,
|
||||||
docs: Document[],
|
docs: Document[],
|
||||||
@@ -208,363 +432,36 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async handleStream(
|
private async handleStream(
|
||||||
stream: AsyncIterable<[BaseMessage, Record<string, any>]>,
|
stream: AsyncGenerator<StreamEvent, any, any>,
|
||||||
emitter: eventEmitter,
|
emitter: eventEmitter,
|
||||||
) {
|
) {
|
||||||
for await (const [message, _metadata] of stream) {
|
for await (const event of stream) {
|
||||||
if (isAIMessage(message) && message.tool_calls?.length) {
|
if (
|
||||||
} else if (isAIMessage(message) && message.content) {
|
event.event === 'on_chain_end' &&
|
||||||
|
event.name === 'FinalSourceRetriever'
|
||||||
|
) {
|
||||||
|
``;
|
||||||
emitter.emit(
|
emitter.emit(
|
||||||
'data',
|
'data',
|
||||||
JSON.stringify({ type: 'response', data: message.content }),
|
JSON.stringify({ type: 'sources', data: event.data.output }),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
event.event === 'on_chain_stream' &&
|
||||||
|
event.name === 'FinalResponseGenerator'
|
||||||
|
) {
|
||||||
|
emitter.emit(
|
||||||
|
'data',
|
||||||
|
JSON.stringify({ type: 'response', data: event.data.chunk }),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
event.event === 'on_chain_end' &&
|
||||||
|
event.name === 'FinalResponseGenerator'
|
||||||
|
) {
|
||||||
emitter.emit('end');
|
emitter.emit('end');
|
||||||
}
|
}
|
||||||
|
|
||||||
getTools({
|
|
||||||
llm,
|
|
||||||
emitter,
|
|
||||||
}: {
|
|
||||||
llm: BaseLanguageModel;
|
|
||||||
emitter: EventEmitter;
|
|
||||||
}): DynamicStructuredTool[] {
|
|
||||||
const searchToolInputSchema = z.object({
|
|
||||||
searchMode: z
|
|
||||||
.enum(['normal', 'news'])
|
|
||||||
.describe(
|
|
||||||
'The search mode. If you want latest, live or articles on a topic use the news mode (you also need to use news mode for queries where you think there might be a newswall), otherwise for normal searches use normal mode.',
|
|
||||||
),
|
|
||||||
query: z.string().describe('The query to search the web for.'),
|
|
||||||
links: z
|
|
||||||
.array(z.string().describe('The link to get data from'))
|
|
||||||
.describe(
|
|
||||||
'A list of links (if shared by user) to generate an answer from.',
|
|
||||||
),
|
|
||||||
});
|
|
||||||
|
|
||||||
const searchTool = tool(
|
|
||||||
async (input: any) => {
|
|
||||||
if (input.links.length > 0) {
|
|
||||||
let docs: Document[] = [];
|
|
||||||
|
|
||||||
const linkDocs = await getDocumentsFromLinks({ links: input.links });
|
|
||||||
|
|
||||||
const docGroups: Document[] = [];
|
|
||||||
|
|
||||||
linkDocs.map((doc) => {
|
|
||||||
const URLDocExists = docGroups.find(
|
|
||||||
(d) =>
|
|
||||||
d.metadata.url === doc.metadata.url &&
|
|
||||||
d.metadata.totalDocs < 10,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!URLDocExists) {
|
|
||||||
docGroups.push({
|
|
||||||
...doc,
|
|
||||||
metadata: {
|
|
||||||
...doc.metadata,
|
|
||||||
totalDocs: 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const docIndex = docGroups.findIndex(
|
|
||||||
(d) =>
|
|
||||||
d.metadata.url === doc.metadata.url &&
|
|
||||||
d.metadata.totalDocs < 10,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (docIndex !== -1) {
|
|
||||||
docGroups[docIndex].pageContent =
|
|
||||||
docGroups[docIndex].pageContent + `\n\n` + doc.pageContent;
|
|
||||||
docGroups[docIndex].metadata.totalDocs += 1;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const URLSourcePrompt = `
|
|
||||||
You are a web search question answerer, tasked with finding relevant information from web documents to answer questions. Your job is to extract and summarize the most relevant parts of a document that can help answer the user's query.
|
|
||||||
|
|
||||||
- **Find relevant sections**: Identify parts of the document that directly relate to the question
|
|
||||||
- **Extract key information**: Pull out specific facts, data, or explanations that answer the query
|
|
||||||
- **Summarize concisely**: Provide a focused summary of the relevant information found
|
|
||||||
- **Stay on topic**: Only include information that helps answer the specific question asked
|
|
||||||
|
|
||||||
The document text will be shared inside the \`text\` XML tag, and the query inside the \`query\` XML tag.
|
|
||||||
|
|
||||||
Extract and summarize the relevant information from the document that answers the query.
|
|
||||||
`;
|
|
||||||
|
|
||||||
const URLSourceChatPrompt = ChatPromptTemplate.fromMessages([
|
|
||||||
['system', URLSourcePrompt],
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers.
|
|
||||||
It was first released in 2013 and is developed by Docker, Inc. Docker is designed to make it easier to create, deploy, and run applications
|
|
||||||
by using containers.
|
|
||||||
</text>
|
|
||||||
|
|
||||||
<query>
|
|
||||||
What is Docker and how does it work?
|
|
||||||
</query>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'assistant',
|
|
||||||
`
|
|
||||||
Docker is a revolutionary platform-as-a-service product developed by Docker, Inc., that uses container technology to make application
|
|
||||||
deployment more efficient. It allows developers to package their software with all necessary dependencies, making it easier to run in
|
|
||||||
any environment. Released in 2013, Docker has transformed the way applications are built, deployed, and managed.
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
Rising global temperatures are causing significant changes to Earth's climate system. Ice sheets in Greenland and Antarctica are melting at accelerated rates, contributing to sea level rise. Ocean temperatures are increasing, leading to coral bleaching events. Weather patterns are becoming more extreme, with increased frequency of hurricanes, droughts, and flooding. The Arctic is warming twice as fast as the global average, a phenomenon known as Arctic amplification.
|
|
||||||
</text>
|
|
||||||
|
|
||||||
<query>
|
|
||||||
What are the main effects of climate change on the environment?
|
|
||||||
</query>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'assistant',
|
|
||||||
`
|
|
||||||
Climate change is causing accelerated melting of ice sheets in Greenland and Antarctica, leading to sea level rise. Rising ocean temperatures are causing coral bleaching, while weather patterns are becoming more extreme with increased hurricanes, droughts, and flooding. The Arctic is experiencing particularly rapid warming at twice the global average rate.
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
Pasta is a staple food of Italian cuisine made from wheat flour and water. Common shapes include spaghetti, penne, and fusilli. It can be served with various sauces like marinara, alfredo, or pesto. Pasta cooking involves boiling water with salt and cooking until al dente. Different regions of Italy have their own traditional pasta dishes and preparation methods.
|
|
||||||
</text>
|
|
||||||
|
|
||||||
<query>
|
|
||||||
How do solar panels generate electricity?
|
|
||||||
</query>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'assistant',
|
|
||||||
`
|
|
||||||
The provided document about pasta and Italian cuisine does not contain information about how solar panels generate electricity. No relevant information found to answer the query.
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
{content}
|
|
||||||
</text>
|
|
||||||
|
|
||||||
<query>
|
|
||||||
{query}
|
|
||||||
</query>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
|
|
||||||
await Promise.all(
|
|
||||||
docGroups.map(async (doc) => {
|
|
||||||
const formattedPrompt = await URLSourceChatPrompt.formatMessages({
|
|
||||||
query: input.query,
|
|
||||||
content: doc.pageContent,
|
|
||||||
});
|
|
||||||
|
|
||||||
const llmResponse = await llm.invoke(formattedPrompt);
|
|
||||||
|
|
||||||
const document = new Document({
|
|
||||||
pageContent: llmResponse.content as string,
|
|
||||||
metadata: {
|
|
||||||
title: doc.metadata.title,
|
|
||||||
url: doc.metadata.url,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
docs.push(document);
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
|
|
||||||
emitter.emit('data', JSON.stringify({ type: 'sources', data: docs }));
|
|
||||||
|
|
||||||
return this.processDocs(docs);
|
|
||||||
} else {
|
|
||||||
const res = await searchSearxng(input.query, {
|
|
||||||
language: 'en',
|
|
||||||
engines:
|
|
||||||
input.searchMode === 'news'
|
|
||||||
? ['bing_news']
|
|
||||||
: this.config.activeEngines,
|
|
||||||
});
|
|
||||||
|
|
||||||
const documents = res.results.map(
|
|
||||||
(result) =>
|
|
||||||
new Document({
|
|
||||||
pageContent:
|
|
||||||
result.content ||
|
|
||||||
(this.config.activeEngines.includes('youtube')
|
|
||||||
? result.title
|
|
||||||
: '') /* Todo: Implement transcript grabbing using Youtubei (source: https://www.npmjs.com/package/youtubei) */,
|
|
||||||
metadata: {
|
|
||||||
title: result.title,
|
|
||||||
url: result.url,
|
|
||||||
...(result.img_src && { img_src: result.img_src }),
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
|
|
||||||
emitter.emit(
|
|
||||||
'data',
|
|
||||||
JSON.stringify({ type: 'sources', data: documents }),
|
|
||||||
);
|
|
||||||
|
|
||||||
return this.processDocs(documents);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'search_web',
|
|
||||||
schema: searchToolInputSchema,
|
|
||||||
description: 'This tool allows you to search the web for information.',
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const summarizeToolInputSchema = z.object({
|
|
||||||
links: z
|
|
||||||
.array(z.string().describe('The URL to summarize'))
|
|
||||||
.describe('The list of URLs to summarize'),
|
|
||||||
});
|
|
||||||
|
|
||||||
const summarizeTool = tool(
|
|
||||||
async (input: any) => {
|
|
||||||
if (input.links.length > 0) {
|
|
||||||
let docs: Document[] = [];
|
|
||||||
|
|
||||||
const linkDocs = await getDocumentsFromLinks({ links: input.links });
|
|
||||||
const docGroups: Document[] = [];
|
|
||||||
|
|
||||||
linkDocs.map((doc) => {
|
|
||||||
const URLDocExists = docGroups.find(
|
|
||||||
(d) =>
|
|
||||||
d.metadata.url === doc.metadata.url &&
|
|
||||||
d.metadata.totalDocs < 10,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!URLDocExists) {
|
|
||||||
docGroups.push({
|
|
||||||
...doc,
|
|
||||||
metadata: {
|
|
||||||
...doc.metadata,
|
|
||||||
totalDocs: 1,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const docIndex = docGroups.findIndex(
|
|
||||||
(d) =>
|
|
||||||
d.metadata.url === doc.metadata.url &&
|
|
||||||
d.metadata.totalDocs < 10,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (docIndex !== -1) {
|
|
||||||
docGroups[docIndex].pageContent =
|
|
||||||
docGroups[docIndex].pageContent + `\n\n` + doc.pageContent;
|
|
||||||
docGroups[docIndex].metadata.totalDocs += 1;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const summarizerPrompt = `
|
|
||||||
You are a document summarizer for map-reduce processing of website content. Extract all factual information, data, and key concepts from document chunks into concise paragraph summaries.
|
|
||||||
|
|
||||||
**Requirements:**
|
|
||||||
- **Extract facts only**: Include concrete information, data, numbers, dates, definitions, and explanations
|
|
||||||
- **Ignore fluff**: Skip opinions, filler words, casual language, and non-essential content
|
|
||||||
- **Be concise**: Create summaries shorter than the original content
|
|
||||||
- **Paragraph format**: Write in plain paragraph form, no markdown, bullet points, or formatting
|
|
||||||
- **Preserve specifics**: Keep exact numbers, dates, names, and technical terms
|
|
||||||
|
|
||||||
The document text will be provided inside the \`text\` XML tag. Create a factual paragraph summary.
|
|
||||||
`;
|
|
||||||
|
|
||||||
const summarizerChatPrompt = ChatPromptTemplate.fromMessages([
|
|
||||||
['system', summarizerPrompt],
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
Docker is a platform-as-a-service product developed by Docker, Inc. and released in 2013 that uses OS-level virtualization to deliver software in containers. Containers are lightweight, portable packages that include application code, runtime, system tools, libraries, and settings.
|
|
||||||
</text>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'assistant',
|
|
||||||
`Docker is a platform-as-a-service product developed by Docker, Inc. in 2013 that uses OS-level virtualization to deliver software in containers. Containers are lightweight, portable packages containing application code, runtime, system tools, libraries, and settings.`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
Hey there! So like, I was totally thinking about pasta the other day, you know? It's super amazing how there are different shapes. Spaghetti is long and thin, penne has tube shapes, and fusilli is all twisty! Haha, I just love Italian creativity with food.
|
|
||||||
</text>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'assistant',
|
|
||||||
`Pasta comes in various shapes including spaghetti which is long and thin, penne which has tube shapes, and fusilli which has a twisted form. These are Italian food products.`,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'human',
|
|
||||||
`
|
|
||||||
<text>
|
|
||||||
{content}
|
|
||||||
</text>
|
|
||||||
`,
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
|
|
||||||
await Promise.all(
|
|
||||||
docGroups.map(async (doc) => {
|
|
||||||
const formattedPrompt = await summarizerChatPrompt.formatMessages(
|
|
||||||
{
|
|
||||||
content: doc.pageContent,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const llmResponse = await llm.invoke(formattedPrompt);
|
|
||||||
|
|
||||||
const document = new Document({
|
|
||||||
pageContent: llmResponse.content as string,
|
|
||||||
metadata: {
|
|
||||||
title: doc.metadata.title,
|
|
||||||
url: doc.metadata.url,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
docs.push(document);
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
|
|
||||||
emitter.emit('data', JSON.stringify({ type: 'sources', data: docs }));
|
|
||||||
|
|
||||||
return this.processDocs(docs);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'summarize',
|
|
||||||
description: 'This tool can be used to summarize URL(s)',
|
|
||||||
schema: summarizeToolInputSchema,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
return [searchTool, summarizeTool];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async searchAndAnswer(
|
async searchAndAnswer(
|
||||||
@@ -578,94 +475,21 @@ The document text will be provided inside the \`text\` XML tag. Create a factual
|
|||||||
) {
|
) {
|
||||||
const emitter = new eventEmitter();
|
const emitter = new eventEmitter();
|
||||||
|
|
||||||
const tools = this.getTools({
|
const answeringChain = await this.createAnsweringChain(
|
||||||
emitter,
|
|
||||||
llm,
|
llm,
|
||||||
});
|
fileIds,
|
||||||
|
embeddings,
|
||||||
const shouldContinue = (state: typeof MessagesAnnotation.State) => {
|
optimizationMode,
|
||||||
const lastMessage = state.messages[
|
systemInstructions,
|
||||||
state.messages.length - 1
|
|
||||||
] as AIMessage;
|
|
||||||
|
|
||||||
if (lastMessage.tool_calls && lastMessage.tool_calls.length) {
|
|
||||||
return 'tools';
|
|
||||||
}
|
|
||||||
|
|
||||||
return '__end__';
|
|
||||||
};
|
|
||||||
|
|
||||||
const callTools = async (
|
|
||||||
state: typeof MessagesAnnotation.State,
|
|
||||||
): Promise<Partial<typeof MessagesAnnotation.State>> => {
|
|
||||||
const lastMessage = state.messages[
|
|
||||||
state.messages.length - 1
|
|
||||||
] as AIMessage;
|
|
||||||
|
|
||||||
const toolResults: BaseMessage[] = [];
|
|
||||||
|
|
||||||
if (lastMessage.tool_calls && lastMessage.tool_calls.length) {
|
|
||||||
await Promise.all(
|
|
||||||
lastMessage.tool_calls.map(async (t) => {
|
|
||||||
const toolToCall = tools.find((i) => i.name === t.name);
|
|
||||||
|
|
||||||
const result = await toolToCall?.invoke(t.args)!;
|
|
||||||
|
|
||||||
toolResults.push(
|
|
||||||
new ToolMessage({
|
|
||||||
content: result,
|
|
||||||
tool_call_id: t.id!,
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
const stream = answeringChain.streamEvents(
|
||||||
messages: [...toolResults],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const boundModel = llm.bindTools?.(tools)!;
|
|
||||||
|
|
||||||
const callModel = async (
|
|
||||||
state: typeof MessagesAnnotation.State,
|
|
||||||
): Promise<Partial<typeof MessagesAnnotation.State>> => {
|
|
||||||
const { messages } = state;
|
|
||||||
const res = await boundModel?.invoke(messages);
|
|
||||||
|
|
||||||
return {
|
|
||||||
messages: [res!],
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
const workflow = new StateGraph(MessagesAnnotation)
|
|
||||||
.addNode('agent', callModel)
|
|
||||||
.addNode(
|
|
||||||
'tools',
|
|
||||||
RunnableLambda.from(callTools).withConfig({
|
|
||||||
tags: ['nostream'],
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
.addEdge('__start__', 'agent')
|
|
||||||
.addEdge('tools', 'agent')
|
|
||||||
.addConditionalEdges('agent', shouldContinue);
|
|
||||||
|
|
||||||
const app = workflow.compile();
|
|
||||||
|
|
||||||
const filledPrompt = await PromptTemplate.fromTemplate(
|
|
||||||
this.config.responsePrompt,
|
|
||||||
).format({
|
|
||||||
systemInstructions: systemInstructions,
|
|
||||||
date: Date.now(),
|
|
||||||
});
|
|
||||||
|
|
||||||
const stream = await app.stream(
|
|
||||||
{
|
{
|
||||||
messages: [['system', filledPrompt], ...history, ['human', message]],
|
chat_history: history,
|
||||||
|
query: message,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
streamMode: 'messages',
|
version: 'v1',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
283
yarn.lock
283
yarn.lock
@@ -29,11 +29,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
regenerator-runtime "^0.14.0"
|
regenerator-runtime "^0.14.0"
|
||||||
|
|
||||||
"@babel/runtime@^7.3.1":
|
|
||||||
version "7.28.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.2.tgz#2ae5a9d51cc583bd1f5673b3bb70d6d819682473"
|
|
||||||
integrity sha512-KHp2IflsnGywDjBWDkR9iEqiWSpc8GIi0lgTT3mOElT0PP1tG26P4tmFI2YvAdzgq9RGyoHZQEIEdZy6Ec5xCA==
|
|
||||||
|
|
||||||
"@cfworker/json-schema@^4.0.2":
|
"@cfworker/json-schema@^4.0.2":
|
||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/@cfworker/json-schema/-/json-schema-4.1.1.tgz#4a2a3947ee9fa7b7c24be981422831b8674c3be6"
|
resolved "https://registry.yarnpkg.com/@cfworker/json-schema/-/json-schema-4.1.1.tgz#4a2a3947ee9fa7b7c24be981422831b8674c3be6"
|
||||||
@@ -666,33 +661,6 @@
|
|||||||
groq-sdk "^0.19.0"
|
groq-sdk "^0.19.0"
|
||||||
zod "^3.22.4"
|
zod "^3.22.4"
|
||||||
|
|
||||||
"@langchain/langgraph-checkpoint@^0.1.0":
|
|
||||||
version "0.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.1.0.tgz#d2a8bd9eb831f47cfe8b74bc196004388a6083bb"
|
|
||||||
integrity sha512-7oY5b0VQSxcV3DgoHdXiCgBhEzml/ZjZfKNeuq6oZ3ggcdUICa/fzrIBbFju6gxPU8ly93s0OsjF4yURnHw70Q==
|
|
||||||
dependencies:
|
|
||||||
uuid "^10.0.0"
|
|
||||||
|
|
||||||
"@langchain/langgraph-sdk@~0.0.103":
|
|
||||||
version "0.0.103"
|
|
||||||
resolved "https://registry.yarnpkg.com/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.103.tgz#e2380cc5a0d46b6c1f71988029c236c513db83d1"
|
|
||||||
integrity sha512-EcIamjpfM+1COVdsu5Hb0YIjvNztAbE6T0WBQylumPVkj5/rOF9spxfbs8TNeuKuFlMW05WMwC8hNyZnebv1mA==
|
|
||||||
dependencies:
|
|
||||||
"@types/json-schema" "^7.0.15"
|
|
||||||
p-queue "^6.6.2"
|
|
||||||
p-retry "4"
|
|
||||||
uuid "^9.0.0"
|
|
||||||
|
|
||||||
"@langchain/langgraph@^0.4.0":
|
|
||||||
version "0.4.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@langchain/langgraph/-/langgraph-0.4.0.tgz#1f54f1b6ab481ac4ed9331eb6ab8d853d0171393"
|
|
||||||
integrity sha512-o4Eix+lymyhKBL0lJ26e6SaezWC4iyMgFfD9b1nQ22uGKgxRH1QgIeiWP/rdaLWtgIOHNEMkDW+Y0VjCUmyqrg==
|
|
||||||
dependencies:
|
|
||||||
"@langchain/langgraph-checkpoint" "^0.1.0"
|
|
||||||
"@langchain/langgraph-sdk" "~0.0.103"
|
|
||||||
uuid "^10.0.0"
|
|
||||||
zod "^3.25.32"
|
|
||||||
|
|
||||||
"@langchain/ollama@^0.2.3":
|
"@langchain/ollama@^0.2.3":
|
||||||
version "0.2.3"
|
version "0.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/@langchain/ollama/-/ollama-0.2.3.tgz#4868e66db4fc480f08c42fc652274abbab0416f0"
|
resolved "https://registry.yarnpkg.com/@langchain/ollama/-/ollama-0.2.3.tgz#4868e66db4fc480f08c42fc652274abbab0416f0"
|
||||||
@@ -966,23 +934,11 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/hast@^2.0.0":
|
|
||||||
version "2.3.10"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/hast/-/hast-2.3.10.tgz#5c9d9e0b304bbb8879b857225c5ebab2d81d7643"
|
|
||||||
integrity sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==
|
|
||||||
dependencies:
|
|
||||||
"@types/unist" "^2"
|
|
||||||
|
|
||||||
"@types/html-to-text@^9.0.4":
|
"@types/html-to-text@^9.0.4":
|
||||||
version "9.0.4"
|
version "9.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/@types/html-to-text/-/html-to-text-9.0.4.tgz#4a83dd8ae8bfa91457d0b1ffc26f4d0537eff58c"
|
resolved "https://registry.yarnpkg.com/@types/html-to-text/-/html-to-text-9.0.4.tgz#4a83dd8ae8bfa91457d0b1ffc26f4d0537eff58c"
|
||||||
integrity sha512-pUY3cKH/Nm2yYrEmDlPR1mR7yszjGx4DrwPjQ702C4/D5CwHuZTgZdIdwPkRbcuhs7BAh2L5rg3CL5cbRiGTCQ==
|
integrity sha512-pUY3cKH/Nm2yYrEmDlPR1mR7yszjGx4DrwPjQ702C4/D5CwHuZTgZdIdwPkRbcuhs7BAh2L5rg3CL5cbRiGTCQ==
|
||||||
|
|
||||||
"@types/json-schema@^7.0.15":
|
|
||||||
version "7.0.15"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
|
|
||||||
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
|
|
||||||
|
|
||||||
"@types/json5@^0.0.29":
|
"@types/json5@^0.0.29":
|
||||||
version "0.0.29"
|
version "0.0.29"
|
||||||
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
|
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
|
||||||
@@ -1000,14 +956,6 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.2.tgz#b74129719fc8d11c01868010082d483b7545591a"
|
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.2.tgz#b74129719fc8d11c01868010082d483b7545591a"
|
||||||
integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==
|
integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==
|
||||||
|
|
||||||
"@types/node-fetch@^2.6.4":
|
|
||||||
version "2.6.12"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.12.tgz#8ab5c3ef8330f13100a7479e2cd56d3386830a03"
|
|
||||||
integrity sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==
|
|
||||||
dependencies:
|
|
||||||
"@types/node" "*"
|
|
||||||
form-data "^4.0.0"
|
|
||||||
|
|
||||||
"@types/node@*", "@types/node@^20":
|
"@types/node@*", "@types/node@^20":
|
||||||
version "20.12.5"
|
version "20.12.5"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.5.tgz#74c4f31ab17955d0b5808cdc8fd2839526ad00b3"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.5.tgz#74c4f31ab17955d0b5808cdc8fd2839526ad00b3"
|
||||||
@@ -1022,13 +970,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
undici-types "~6.20.0"
|
undici-types "~6.20.0"
|
||||||
|
|
||||||
"@types/node@^18.11.18":
|
|
||||||
version "18.19.121"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.121.tgz#c50d353ea2d1fb1261a8bbd0bf2850306f5af2b3"
|
|
||||||
integrity sha512-bHOrbyztmyYIi4f1R0s17QsPs1uyyYnGcXeZoGEd227oZjry0q6XQBQxd82X1I57zEfwO8h9Xo+Kl5gX1d9MwQ==
|
|
||||||
dependencies:
|
|
||||||
undici-types "~5.26.4"
|
|
||||||
|
|
||||||
"@types/pdf-parse@^1.1.4":
|
"@types/pdf-parse@^1.1.4":
|
||||||
version "1.1.4"
|
version "1.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/@types/pdf-parse/-/pdf-parse-1.1.4.tgz#21a539efd2f16009d08aeed3350133948b5d7ed1"
|
resolved "https://registry.yarnpkg.com/@types/pdf-parse/-/pdf-parse-1.1.4.tgz#21a539efd2f16009d08aeed3350133948b5d7ed1"
|
||||||
@@ -1051,13 +992,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/react" "*"
|
"@types/react" "*"
|
||||||
|
|
||||||
"@types/react-syntax-highlighter@^15.5.13":
|
|
||||||
version "15.5.13"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.13.tgz#c5baf62a3219b3bf28d39cfea55d0a49a263d1f2"
|
|
||||||
integrity sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==
|
|
||||||
dependencies:
|
|
||||||
"@types/react" "*"
|
|
||||||
|
|
||||||
"@types/react@*", "@types/react@^18":
|
"@types/react@*", "@types/react@^18":
|
||||||
version "18.2.74"
|
version "18.2.74"
|
||||||
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.74.tgz#2d52eb80e4e7c4ea8812c89181d6d590b53f958c"
|
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.74.tgz#2d52eb80e4e7c4ea8812c89181d6d590b53f958c"
|
||||||
@@ -1081,11 +1015,6 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11"
|
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11"
|
||||||
integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==
|
integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==
|
||||||
|
|
||||||
"@types/unist@^2":
|
|
||||||
version "2.0.11"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.11.tgz#11af57b127e32487774841f7a4e54eab166d03c4"
|
|
||||||
integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==
|
|
||||||
|
|
||||||
"@types/uuid@^10.0.0":
|
"@types/uuid@^10.0.0":
|
||||||
version "10.0.0"
|
version "10.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-10.0.0.tgz#e9c07fe50da0f53dc24970cca94d619ff03f6f6d"
|
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-10.0.0.tgz#e9c07fe50da0f53dc24970cca94d619ff03f6f6d"
|
||||||
@@ -1163,13 +1092,6 @@ abort-controller-x@^0.4.0, abort-controller-x@^0.4.3:
|
|||||||
resolved "https://registry.yarnpkg.com/abort-controller-x/-/abort-controller-x-0.4.3.tgz#ff269788386fabd58a7b6eeaafcb6cf55c2958e0"
|
resolved "https://registry.yarnpkg.com/abort-controller-x/-/abort-controller-x-0.4.3.tgz#ff269788386fabd58a7b6eeaafcb6cf55c2958e0"
|
||||||
integrity sha512-VtUwTNU8fpMwvWGn4xE93ywbogTYsuT+AUxAXOeelbXuQVIwNmC5YLeho9sH4vZ4ITW8414TTAOG1nW6uIVHCA==
|
integrity sha512-VtUwTNU8fpMwvWGn4xE93ywbogTYsuT+AUxAXOeelbXuQVIwNmC5YLeho9sH4vZ4ITW8414TTAOG1nW6uIVHCA==
|
||||||
|
|
||||||
abort-controller@^3.0.0:
|
|
||||||
version "3.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392"
|
|
||||||
integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==
|
|
||||||
dependencies:
|
|
||||||
event-target-shim "^5.0.0"
|
|
||||||
|
|
||||||
acorn-jsx@^5.3.2:
|
acorn-jsx@^5.3.2:
|
||||||
version "5.3.2"
|
version "5.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
|
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
|
||||||
@@ -1180,13 +1102,6 @@ acorn@^8.9.0:
|
|||||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a"
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a"
|
||||||
integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==
|
integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==
|
||||||
|
|
||||||
agentkeepalive@^4.2.1:
|
|
||||||
version "4.6.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.6.0.tgz#35f73e94b3f40bf65f105219c623ad19c136ea6a"
|
|
||||||
integrity sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==
|
|
||||||
dependencies:
|
|
||||||
humanize-ms "^1.2.1"
|
|
||||||
|
|
||||||
ajv@^6.12.4:
|
ajv@^6.12.4:
|
||||||
version "6.12.6"
|
version "6.12.6"
|
||||||
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
|
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
|
||||||
@@ -1627,21 +1542,6 @@ chalk@^4.0.0, chalk@^4.1.2:
|
|||||||
ansi-styles "^4.1.0"
|
ansi-styles "^4.1.0"
|
||||||
supports-color "^7.1.0"
|
supports-color "^7.1.0"
|
||||||
|
|
||||||
character-entities-legacy@^1.0.0:
|
|
||||||
version "1.1.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1"
|
|
||||||
integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==
|
|
||||||
|
|
||||||
character-entities@^1.0.0:
|
|
||||||
version "1.2.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b"
|
|
||||||
integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==
|
|
||||||
|
|
||||||
character-reference-invalid@^1.0.0:
|
|
||||||
version "1.1.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560"
|
|
||||||
integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==
|
|
||||||
|
|
||||||
chokidar@^3.5.3:
|
chokidar@^3.5.3:
|
||||||
version "3.6.0"
|
version "3.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
|
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
|
||||||
@@ -1749,11 +1649,6 @@ combined-stream@^1.0.8:
|
|||||||
dependencies:
|
dependencies:
|
||||||
delayed-stream "~1.0.0"
|
delayed-stream "~1.0.0"
|
||||||
|
|
||||||
comma-separated-tokens@^1.0.0:
|
|
||||||
version "1.0.8"
|
|
||||||
resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz#632b80b6117867a158f1080ad498b2fbe7e3f5ea"
|
|
||||||
integrity sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==
|
|
||||||
|
|
||||||
commander@^4.0.0:
|
commander@^4.0.0:
|
||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
|
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
|
||||||
@@ -2490,11 +2385,6 @@ esutils@^2.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
|
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
|
||||||
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
|
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
|
||||||
|
|
||||||
event-target-shim@^5.0.0:
|
|
||||||
version "5.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789"
|
|
||||||
integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==
|
|
||||||
|
|
||||||
eventemitter3@^4.0.4:
|
eventemitter3@^4.0.4:
|
||||||
version "4.0.7"
|
version "4.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
|
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
|
||||||
@@ -2555,13 +2445,6 @@ fastq@^1.6.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
reusify "^1.0.4"
|
reusify "^1.0.4"
|
||||||
|
|
||||||
fault@^1.0.0:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/fault/-/fault-1.0.4.tgz#eafcfc0a6d214fc94601e170df29954a4f842f13"
|
|
||||||
integrity sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==
|
|
||||||
dependencies:
|
|
||||||
format "^0.2.0"
|
|
||||||
|
|
||||||
fecha@^4.2.0:
|
fecha@^4.2.0:
|
||||||
version "4.2.3"
|
version "4.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd"
|
resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd"
|
||||||
@@ -2648,11 +2531,6 @@ foreground-child@^3.1.0:
|
|||||||
cross-spawn "^7.0.0"
|
cross-spawn "^7.0.0"
|
||||||
signal-exit "^4.0.1"
|
signal-exit "^4.0.1"
|
||||||
|
|
||||||
form-data-encoder@1.7.2:
|
|
||||||
version "1.7.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-1.7.2.tgz#1f1ae3dccf58ed4690b86d87e4f57c654fbab040"
|
|
||||||
integrity sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==
|
|
||||||
|
|
||||||
form-data@^4.0.0:
|
form-data@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
|
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
|
||||||
@@ -2662,19 +2540,6 @@ form-data@^4.0.0:
|
|||||||
combined-stream "^1.0.8"
|
combined-stream "^1.0.8"
|
||||||
mime-types "^2.1.12"
|
mime-types "^2.1.12"
|
||||||
|
|
||||||
format@^0.2.0:
|
|
||||||
version "0.2.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b"
|
|
||||||
integrity sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==
|
|
||||||
|
|
||||||
formdata-node@^4.3.2:
|
|
||||||
version "4.4.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-4.4.1.tgz#23f6a5cb9cb55315912cbec4ff7b0f59bbd191e2"
|
|
||||||
integrity sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==
|
|
||||||
dependencies:
|
|
||||||
node-domexception "1.0.0"
|
|
||||||
web-streams-polyfill "4.0.0-beta.3"
|
|
||||||
|
|
||||||
fraction.js@^4.3.7:
|
fraction.js@^4.3.7:
|
||||||
version "4.3.7"
|
version "4.3.7"
|
||||||
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7"
|
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7"
|
||||||
@@ -2934,32 +2799,6 @@ hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
function-bind "^1.1.2"
|
function-bind "^1.1.2"
|
||||||
|
|
||||||
hast-util-parse-selector@^2.0.0:
|
|
||||||
version "2.2.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz#d57c23f4da16ae3c63b3b6ca4616683313499c3a"
|
|
||||||
integrity sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==
|
|
||||||
|
|
||||||
hastscript@^6.0.0:
|
|
||||||
version "6.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-6.0.0.tgz#e8768d7eac56c3fdeac8a92830d58e811e5bf640"
|
|
||||||
integrity sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==
|
|
||||||
dependencies:
|
|
||||||
"@types/hast" "^2.0.0"
|
|
||||||
comma-separated-tokens "^1.0.0"
|
|
||||||
hast-util-parse-selector "^2.0.0"
|
|
||||||
property-information "^5.0.0"
|
|
||||||
space-separated-tokens "^1.0.0"
|
|
||||||
|
|
||||||
highlight.js@^10.4.1, highlight.js@~10.7.0:
|
|
||||||
version "10.7.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.3.tgz#697272e3991356e40c3cac566a74eef681756531"
|
|
||||||
integrity sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==
|
|
||||||
|
|
||||||
highlightjs-vue@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/highlightjs-vue/-/highlightjs-vue-1.0.0.tgz#fdfe97fbea6354e70ee44e3a955875e114db086d"
|
|
||||||
integrity sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA==
|
|
||||||
|
|
||||||
html-to-text@^9.0.5:
|
html-to-text@^9.0.5:
|
||||||
version "9.0.5"
|
version "9.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/html-to-text/-/html-to-text-9.0.5.tgz#6149a0f618ae7a0db8085dca9bbf96d32bb8368d"
|
resolved "https://registry.yarnpkg.com/html-to-text/-/html-to-text-9.0.5.tgz#6149a0f618ae7a0db8085dca9bbf96d32bb8368d"
|
||||||
@@ -2989,13 +2828,6 @@ htmlparser2@^8.0.2:
|
|||||||
domutils "^3.0.1"
|
domutils "^3.0.1"
|
||||||
entities "^4.4.0"
|
entities "^4.4.0"
|
||||||
|
|
||||||
humanize-ms@^1.2.1:
|
|
||||||
version "1.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed"
|
|
||||||
integrity sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==
|
|
||||||
dependencies:
|
|
||||||
ms "^2.0.0"
|
|
||||||
|
|
||||||
ieee754@^1.1.13:
|
ieee754@^1.1.13:
|
||||||
version "1.2.1"
|
version "1.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
|
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
|
||||||
@@ -3051,19 +2883,6 @@ internal-slot@^1.0.7:
|
|||||||
hasown "^2.0.0"
|
hasown "^2.0.0"
|
||||||
side-channel "^1.0.4"
|
side-channel "^1.0.4"
|
||||||
|
|
||||||
is-alphabetical@^1.0.0:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d"
|
|
||||||
integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==
|
|
||||||
|
|
||||||
is-alphanumerical@^1.0.0:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf"
|
|
||||||
integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==
|
|
||||||
dependencies:
|
|
||||||
is-alphabetical "^1.0.0"
|
|
||||||
is-decimal "^1.0.0"
|
|
||||||
|
|
||||||
is-array-buffer@^3.0.4:
|
is-array-buffer@^3.0.4:
|
||||||
version "3.0.4"
|
version "3.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98"
|
resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98"
|
||||||
@@ -3132,11 +2951,6 @@ is-date-object@^1.0.1, is-date-object@^1.0.5:
|
|||||||
dependencies:
|
dependencies:
|
||||||
has-tostringtag "^1.0.0"
|
has-tostringtag "^1.0.0"
|
||||||
|
|
||||||
is-decimal@^1.0.0:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5"
|
|
||||||
integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==
|
|
||||||
|
|
||||||
is-extglob@^2.1.1:
|
is-extglob@^2.1.1:
|
||||||
version "2.1.1"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
|
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
|
||||||
@@ -3168,11 +2982,6 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-extglob "^2.1.1"
|
is-extglob "^2.1.1"
|
||||||
|
|
||||||
is-hexadecimal@^1.0.0:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7"
|
|
||||||
integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==
|
|
||||||
|
|
||||||
is-map@^2.0.3:
|
is-map@^2.0.3:
|
||||||
version "2.0.3"
|
version "2.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e"
|
resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e"
|
||||||
@@ -3546,14 +3355,6 @@ lop@^0.4.2:
|
|||||||
option "~0.2.1"
|
option "~0.2.1"
|
||||||
underscore "^1.13.1"
|
underscore "^1.13.1"
|
||||||
|
|
||||||
lowlight@^1.17.0:
|
|
||||||
version "1.20.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/lowlight/-/lowlight-1.20.0.tgz#ddb197d33462ad0d93bf19d17b6c301aa3941888"
|
|
||||||
integrity sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==
|
|
||||||
dependencies:
|
|
||||||
fault "^1.0.0"
|
|
||||||
highlight.js "~10.7.0"
|
|
||||||
|
|
||||||
lru-cache@^10.2.0:
|
lru-cache@^10.2.0:
|
||||||
version "10.2.0"
|
version "10.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.0.tgz#0bd445ca57363465900f4d1f9bd8db343a4d95c3"
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.0.tgz#0bd445ca57363465900f4d1f9bd8db343a4d95c3"
|
||||||
@@ -3663,7 +3464,7 @@ ms@2.1.2:
|
|||||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
|
||||||
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
|
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
|
||||||
|
|
||||||
ms@^2.0.0, ms@^2.1.1:
|
ms@^2.1.1:
|
||||||
version "2.1.3"
|
version "2.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
|
||||||
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
|
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
|
||||||
@@ -3766,17 +3567,12 @@ node-addon-api@^6.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-6.1.0.tgz#ac8470034e58e67d0c6f1204a18ae6995d9c0d76"
|
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-6.1.0.tgz#ac8470034e58e67d0c6f1204a18ae6995d9c0d76"
|
||||||
integrity sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==
|
integrity sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==
|
||||||
|
|
||||||
node-domexception@1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5"
|
|
||||||
integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==
|
|
||||||
|
|
||||||
node-ensure@^0.0.0:
|
node-ensure@^0.0.0:
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/node-ensure/-/node-ensure-0.0.0.tgz#ecae764150de99861ec5c810fd5d096b183932a7"
|
resolved "https://registry.yarnpkg.com/node-ensure/-/node-ensure-0.0.0.tgz#ecae764150de99861ec5c810fd5d096b183932a7"
|
||||||
integrity sha512-DRI60hzo2oKN1ma0ckc6nQWlHU69RH6xN0sjQTjMpChPfTYvKZdcQFfdYK2RWbJcKyUizSIy/l8OTGxMAM1QDw==
|
integrity sha512-DRI60hzo2oKN1ma0ckc6nQWlHU69RH6xN0sjQTjMpChPfTYvKZdcQFfdYK2RWbJcKyUizSIy/l8OTGxMAM1QDw==
|
||||||
|
|
||||||
node-fetch@^2.6.7, node-fetch@^2.7.0:
|
node-fetch@^2.7.0:
|
||||||
version "2.7.0"
|
version "2.7.0"
|
||||||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
|
||||||
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
|
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
|
||||||
@@ -4007,18 +3803,6 @@ parent-module@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
callsites "^3.0.0"
|
callsites "^3.0.0"
|
||||||
|
|
||||||
parse-entities@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8"
|
|
||||||
integrity sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==
|
|
||||||
dependencies:
|
|
||||||
character-entities "^1.0.0"
|
|
||||||
character-entities-legacy "^1.0.0"
|
|
||||||
character-reference-invalid "^1.0.0"
|
|
||||||
is-alphanumerical "^1.0.0"
|
|
||||||
is-decimal "^1.0.0"
|
|
||||||
is-hexadecimal "^1.0.0"
|
|
||||||
|
|
||||||
parseley@^0.12.0:
|
parseley@^0.12.0:
|
||||||
version "0.12.1"
|
version "0.12.1"
|
||||||
resolved "https://registry.yarnpkg.com/parseley/-/parseley-0.12.1.tgz#4afd561d50215ebe259e3e7a853e62f600683aef"
|
resolved "https://registry.yarnpkg.com/parseley/-/parseley-0.12.1.tgz#4afd561d50215ebe259e3e7a853e62f600683aef"
|
||||||
@@ -4206,16 +3990,6 @@ prettier@^3.2.5:
|
|||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
|
||||||
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==
|
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==
|
||||||
|
|
||||||
prismjs@^1.27.0:
|
|
||||||
version "1.30.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.30.0.tgz#d9709969d9d4e16403f6f348c63553b19f0975a9"
|
|
||||||
integrity sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==
|
|
||||||
|
|
||||||
prismjs@~1.27.0:
|
|
||||||
version "1.27.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057"
|
|
||||||
integrity sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==
|
|
||||||
|
|
||||||
process-nextick-args@~2.0.0:
|
process-nextick-args@~2.0.0:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
||||||
@@ -4230,13 +4004,6 @@ prop-types@^15.8.1:
|
|||||||
object-assign "^4.1.1"
|
object-assign "^4.1.1"
|
||||||
react-is "^16.13.1"
|
react-is "^16.13.1"
|
||||||
|
|
||||||
property-information@^5.0.0:
|
|
||||||
version "5.6.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/property-information/-/property-information-5.6.0.tgz#61675545fb23002f245c6540ec46077d4da3ed69"
|
|
||||||
integrity sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==
|
|
||||||
dependencies:
|
|
||||||
xtend "^4.0.0"
|
|
||||||
|
|
||||||
protobufjs@^6.8.8:
|
protobufjs@^6.8.8:
|
||||||
version "6.11.4"
|
version "6.11.4"
|
||||||
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.4.tgz#29a412c38bf70d89e537b6d02d904a6f448173aa"
|
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.4.tgz#29a412c38bf70d89e537b6d02d904a6f448173aa"
|
||||||
@@ -4327,18 +4094,6 @@ react-is@^16.13.1:
|
|||||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
||||||
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
|
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
|
||||||
|
|
||||||
react-syntax-highlighter@^15.6.1:
|
|
||||||
version "15.6.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/react-syntax-highlighter/-/react-syntax-highlighter-15.6.1.tgz#fa567cb0a9f96be7bbccf2c13a3c4b5657d9543e"
|
|
||||||
integrity sha512-OqJ2/vL7lEeV5zTJyG7kmARppUjiB9h9udl4qHQjjgEos66z00Ia0OckwYfRxCSFrW8RJIBnsBwQsHZbVPspqg==
|
|
||||||
dependencies:
|
|
||||||
"@babel/runtime" "^7.3.1"
|
|
||||||
highlight.js "^10.4.1"
|
|
||||||
highlightjs-vue "^1.0.0"
|
|
||||||
lowlight "^1.17.0"
|
|
||||||
prismjs "^1.27.0"
|
|
||||||
refractor "^3.6.0"
|
|
||||||
|
|
||||||
react-text-to-speech@^0.14.5:
|
react-text-to-speech@^0.14.5:
|
||||||
version "0.14.5"
|
version "0.14.5"
|
||||||
resolved "https://registry.yarnpkg.com/react-text-to-speech/-/react-text-to-speech-0.14.5.tgz#f918786ab283311535682011045bd49777193300"
|
resolved "https://registry.yarnpkg.com/react-text-to-speech/-/react-text-to-speech-0.14.5.tgz#f918786ab283311535682011045bd49777193300"
|
||||||
@@ -4409,15 +4164,6 @@ reflect.getprototypeof@^1.0.4:
|
|||||||
globalthis "^1.0.3"
|
globalthis "^1.0.3"
|
||||||
which-builtin-type "^1.1.3"
|
which-builtin-type "^1.1.3"
|
||||||
|
|
||||||
refractor@^3.6.0:
|
|
||||||
version "3.6.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/refractor/-/refractor-3.6.0.tgz#ac318f5a0715ead790fcfb0c71f4dd83d977935a"
|
|
||||||
integrity sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==
|
|
||||||
dependencies:
|
|
||||||
hastscript "^6.0.0"
|
|
||||||
parse-entities "^2.0.0"
|
|
||||||
prismjs "~1.27.0"
|
|
||||||
|
|
||||||
regenerator-runtime@^0.13.7:
|
regenerator-runtime@^0.13.7:
|
||||||
version "0.13.11"
|
version "0.13.11"
|
||||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
|
||||||
@@ -4726,11 +4472,6 @@ source-map@^0.6.0:
|
|||||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
||||||
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
||||||
|
|
||||||
space-separated-tokens@^1.0.0:
|
|
||||||
version "1.1.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899"
|
|
||||||
integrity sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==
|
|
||||||
|
|
||||||
sprintf-js@~1.0.2:
|
sprintf-js@~1.0.2:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
||||||
@@ -5160,10 +4901,10 @@ typed-array-length@^1.0.6:
|
|||||||
is-typed-array "^1.1.13"
|
is-typed-array "^1.1.13"
|
||||||
possible-typed-array-names "^1.0.0"
|
possible-typed-array-names "^1.0.0"
|
||||||
|
|
||||||
typescript@5.8.3:
|
typescript@^5:
|
||||||
version "5.8.3"
|
version "5.4.4"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.4.tgz#eb2471e7b0a5f1377523700a21669dce30c2d952"
|
||||||
integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==
|
integrity sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==
|
||||||
|
|
||||||
unbox-primitive@^1.0.2:
|
unbox-primitive@^1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
@@ -5244,7 +4985,7 @@ uuid@^11.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.1.0.tgz#9549028be1753bb934fc96e2bca09bb4105ae912"
|
resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.1.0.tgz#9549028be1753bb934fc96e2bca09bb4105ae912"
|
||||||
integrity sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==
|
integrity sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==
|
||||||
|
|
||||||
uuid@^9.0.0, uuid@^9.0.1:
|
uuid@^9.0.1:
|
||||||
version "9.0.1"
|
version "9.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30"
|
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30"
|
||||||
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==
|
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==
|
||||||
@@ -5273,11 +5014,6 @@ weaviate-client@^3.5.2:
|
|||||||
nice-grpc-common "^2.0.2"
|
nice-grpc-common "^2.0.2"
|
||||||
uuid "^9.0.1"
|
uuid "^9.0.1"
|
||||||
|
|
||||||
web-streams-polyfill@4.0.0-beta.3:
|
|
||||||
version "4.0.0-beta.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz#2898486b74f5156095e473efe989dcf185047a38"
|
|
||||||
integrity sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==
|
|
||||||
|
|
||||||
webidl-conversions@^3.0.0:
|
webidl-conversions@^3.0.0:
|
||||||
version "3.0.1"
|
version "3.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
|
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
|
||||||
@@ -5423,11 +5159,6 @@ xmlbuilder@^10.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-10.1.1.tgz#8cae6688cc9b38d850b7c8d3c0a4161dcaf475b0"
|
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-10.1.1.tgz#8cae6688cc9b38d850b7c8d3c0a4161dcaf475b0"
|
||||||
integrity sha512-OyzrcFLL/nb6fMGHbiRDuPup9ljBycsdCypwuyg5AAHvyWzGfChJpCXMG88AGTIMFhGZ9RccFN1e6lhg3hkwKg==
|
integrity sha512-OyzrcFLL/nb6fMGHbiRDuPup9ljBycsdCypwuyg5AAHvyWzGfChJpCXMG88AGTIMFhGZ9RccFN1e6lhg3hkwKg==
|
||||||
|
|
||||||
xtend@^4.0.0:
|
|
||||||
version "4.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
|
|
||||||
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
|
|
||||||
|
|
||||||
y18n@^5.0.5:
|
y18n@^5.0.5:
|
||||||
version "5.0.8"
|
version "5.0.8"
|
||||||
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
|
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
|
||||||
|
Reference in New Issue
Block a user