run-llama / llamaindexts Goto Github PK
View Code? Open in Web Editor NEWLlamaIndex in TypeScript
Home Page: https://ts.llamaindex.ai
License: MIT License
LlamaIndex in TypeScript
Home Page: https://ts.llamaindex.ai
License: MIT License
In packages/core/src/indices/BaseIndex.ts
there is no check for the keyword index struct type.
So, loading a saved keyword index results in Uncaught Error Error: Unknown index struct type: keyword_table
Follow the style of other docstrings. Be concise and provide examples for complex functions.
Great library! We understand JSON is not yet supported in the way it is in Python.
However, do you know if there is a workaround to create a Document that can interpret it as-is?
var jsonData = {
"macros": [
{
"value": "Hey, ABC...",
"title": "ABC"
},
{
"value": "Hey, DEF...",
"title": "DEF"
},
...}
const nodes = getNodesFromDocument(
new Document({ text: jsonData }), // tried jsonData.toString()
new SentenceSplitter(1024, 20),
);
const nodesWithEmbeddings = await VectorStoreIndex.getNodeEmbeddingResults(
nodes,
serviceContextFromDefaults(),
true,
);
...
const query = "Answer only with the macro value I should use to reply to this text: ...";
const result = await queryEngine.query(query);
The answer is pretty much always: { "reply": "macro_1" }
. When converted to text, such as "Macro: Hey, ABC.\nMacro: Hey, DEF.", it works fine. Can we assume the sourceNodes' metadataSeparator
is the culprit here? It seems to work on the playground demo though.
Cheers,
packages/core/src/JsonDocument.ts
- Define a new class JsonDocument that extends the Document class.
• In the constructor, take a JSON object as input and store it in a suitable format.
• Override the necessary methods of the Document class to handle JSON data.
packages/core/src/NodeParser.ts
- Modify the getNodesFromDocument function to check if the document is an instance of JsonDocument.
• If it is, parse the JSON data and generate nodes accordingly.
packages/core/src/ResponseSynthesizer.ts
- Modify the synthesize method to handle nodes generated from JSON data.
packages/core/src/indices/list/ListIndex.ts
- Modify the fromDocuments method to handle documents that are instances of JsonDocument.
packages/core/src/OutputParser.ts
- Modify the parse and format methods of the SubQuestionOutputParser class to handle output related to JSON data.
We noticed the error "Missing source node from TextNode" a lot after getting each embedding.
After looking in this repo and the original Python, we did not really found anything.
It does not seem to affect the results though. Can you help clarify the issue?
We initially though this may be linked to MetadataMode, but it's not.
getting embedding for node 0/3
getting embedding for node 1/3
getting embedding for node 2/3
Missing source node from TextNode.
Missing source node from TextNode.
Missing source node from TextNode.
const nodes = getNodesFromDocument(
new Document({ text: doc }),
new SentenceSplitter(split0, split1),
);
const nodesWithEmbeddings = await VectorStoreIndex.getNodeEmbeddingResults(
nodes,
serviceContextFromDefaults(),
true,
);
var embed = nodesWithEmbeddings.map((nodeWithEmbedding) => ({
text: nodeWithEmbedding.node.getContent(MetadataMode.NONE),
embedding: nodeWithEmbedding.embedding,
}));
const embeddingResults = embed.map((config) => {
return {
node: new TextNode({ text: config.text }),
embedding: config.embedding,
};
});
const indexDict = new IndexDict();
for (const { node } of embeddingResults) {
indexDict.addNode(node);
}
const index = await VectorStoreIndex.init({
indexStruct: indexDict,
serviceContext: serviceContextFromDefaults({
llm: new OpenAI({ apiKey: openaikey, model: llmodel, temperature: temperature, topP: topP }),
}),
});
index.vectorStore.add(embeddingResults);
if (!index.vectorStore.storesText) {
await index.docStore.addDocuments(
embeddingResults.map((result) => result.node),
true,
);
}
await index.indexStore?.addIndexStruct(indexDict);
index.indexStruct = indexDict;
const retriever = index.asRetriever();
retriever.similarityTopK = topK;
const queryEngine = new RetrieverQueryEngine(retriever);
const result = await queryEngine.query(query);
packages/core/src/Node.ts
- Add a new property to the TextNode class called sourceNode. This property should be of type Node and should be optional.
• Modify the constructor of the TextNode class to accept an additional parameter called sourceNode. This parameter should be of type Node and should be optional.
• In the constructor of the TextNode class, set the sourceNode property to the value of the sourceNode parameter.
• Modify the code where the TextNode instances are created to pass in the source node when creating the new TextNode instances.
Hey!
Right now, when you load a document of a set of nodes from a storage context the metadata field is empty. I guess it is missing here in this function.
packages/core/src/storage/docStore/SimpleDocumentStore.ts
• Add a new parameter to the
load
function to accept metadata. The parameter should be an object with keys and values corresponding to the metadata.
• Inside theload
function, after the documents or nodes are loaded, assign the metadata to them. This can be done by looping over the documents or nodes and setting theirmetadata
property to the provided metadata.
packages/core/src/storage/docStore/SimpleDocumentStore.ts
• Modify the
save
function to also save the metadata of the documents or nodes. This can be done by including the metadata in the data that is written to the storage.
packages/core/src/storage/StorageContext.ts
• Modify the
getDocuments
andgetNodes
functions to also return the metadata of the documents or nodes. This can be done by including the metadata in the objects that are returned by these functions.
In LlamaIndex we have https://gradient.ai integration for LLM and Embeddings.
Would it be possible to add gradient.ai in llamaindexTS?
packages/core/src/llm/gradient.ts
✓ 237b631packages/core/src/llm/gradient.ts
✗CI/CD configuration file
✓ 8c9493fCI/CD configuration file
✗CI/CD configuration file
! No changes madeCI/CD configuration file
✗packages/core/src/llm/gradient.ts
✗packages/core/src/llm/LLM.ts
✓ c3e0782packages/core/src/llm/LLM.ts
✗packages/core/src/llm/LLM.ts
✓ bb969e5packages/core/src/llm/LLM.ts
✗packages/core/src/llm/LLM.ts
✗i'm following the workflow:
i can see the .env
file with the openai_api_key, in the /backend folder. but for some reason it's not finding it (after poetry install
, poetry shell
, python main.py
) (error below)
i've tried 3 times in 3 different locations with create-llama, same error. even tried one with sudo in front of everything just in case it was a file permission issue, no dice.
Traceback (most recent call last):
File "/Users/raw/Library/Caches/pypoetry/virtualenvs/llamaindex-fastapi-streaming-FzlxdCA4-py3.11/lib/python3.11/site-packages/llama_index/embeddings/utils.py", line 42, in resolve_embed_model
validate_openai_api_key(embed_model.api_key)
File "/Users/raw/Library/Caches/pypoetry/virtualenvs/llamaindex-fastapi-streaming-FzlxdCA4-py3.11/lib/python3.11/site-packages/llama_index/llms/openai_utils.py", line 371, in validate_openai_api_key
raise ValueError(MISSING_API_KEY_ERROR_MESSAGE)
ValueError: No API key found for OpenAI.
Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.
API keys can be found or created at https://platform.openai.com/account/api-keys
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/raw/sudollama/backend/main.py", line 4, in <module>
from app.api.routers.chat import chat_router
File "/Users/raw/sudollama/backend/app/api/routers/chat.py", line 6, in <module>
from app.utils.index import get_index
File "/Users/raw/sudollama/backend/app/utils/index.py", line 17, in <module>
service_context = ServiceContext.from_defaults(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/raw/Library/Caches/pypoetry/virtualenvs/llamaindex-fastapi-streaming-FzlxdCA4-py3.11/lib/python3.11/site-packages/llama_index/indices/service_context.py", line 168, in from_defaults
embed_model = resolve_embed_model(embed_model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/raw/Library/Caches/pypoetry/virtualenvs/llamaindex-fastapi-streaming-FzlxdCA4-py3.11/lib/python3.11/site-packages/llama_index/embeddings/utils.py", line 44, in resolve_embed_model
raise ValueError(
ValueError:
******
Could not load OpenAI embedding model. If you intended to use OpenAI, please check your OPENAI_API_KEY.
Original error:
No API key found for OpenAI.
Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.
API keys can be found or created at https://platform.openai.com/account/api-keys
Consider using embed_model='local'.
Visit our documentation for more embedding options: https://docs.llamaindex.ai/en/stable/module_guides/models/embeddings.html#modules
******
Python library has evealution method to verify response , but it is msssing in this library
https://gpt-index.readthedocs.io/en/v0.6.33/how_to/evaluation/evaluation.html
packages/core/src/ResponseEvaluator.ts
✓ 60d0864packages/core/src/ResponseEvaluator.ts
✗CONTRIBUTING.md
✓ 96a7ed1CONTRIBUTING.md
✗CI/CD configuration file
✓ 6b83163CI/CD configuration file
✗CI/CD configuration file
! No changes madeCI/CD configuration file
✗CONTRIBUTING.md
✗packages/core/src/ResponseEvaluator.ts
✗packages/core/src/QueryResponseEvaluator.ts
✓ 06a7a6bpackages/core/src/QueryResponseEvaluator.ts
✗CONTRIBUTING.md
✓ c1c1910CONTRIBUTING.md
✗CI/CD configuration file
✓ cdc129aCI/CD configuration file
✗CI/CD configuration file
✓ 2102442CI/CD configuration file
✗CI/CD configuration file
✗CONTRIBUTING.md
▶packages/core/src/QueryResponseEvaluator.ts
▶packages/core/src/QueryEngine.ts
▶Created a new app and then tried npm run start
, noticed the below error:
❯ npm run start
> [email protected] start
> next start
[Error: ENOENT: no such file or directory, open '/private/tmp/foo/.next/BUILD_ID'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/private/tmp/foo/.next/BUILD_ID'
}
Some of the links in the documentation https://ts.llamaindex.ai/ referencing not found. For example for class VectorStoreIndex.
apps/docs/docs/modules/high_level/data_index.md
✅ Commit 4a8a603
• Check if the link to the VectorStoreIndex class documentation is correct. If it is not, correct the link. • If the documentation for the VectorStoreIndex class does not exist, create a new markdown file for it in the appropriate location and link it in the data_index.md file.
trunk init
1/1 ✅⡿ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ⣯ Downloading Trunk 1.15.0... ⣟ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ✔ Downloading Trunk 1.15.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 14 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.25 (2 github-workflow files) checkov 2.4.9 (16 json, 12 yaml files) eslint 8.49.0 (7 javascript, 111 typescript files) git-diff-check (207 files) markdownlint 0.36.0 (32 markdown files) (created .markdownlint.yaml) osv-scanner 1.3.6 (1 lockfile file) oxipng 8.0.0 (2 png files) prettier 3.0.3 (3 css, 7 javascript, 16 json, 32 markdown, 111 typescript, 11 yaml files) shellcheck 0.9.0 (2 shell files) (created .shellcheckrc) shfmt 3.6.0 (2 shell files) svgo 3.0.2 (5 svg files) (created svgo.config.js) trivy 0.45.0 (1 lockfile, 11 yaml files) trufflehog 3.55.1 (208 files) yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
I noticed a "File not found" issue when navigating to the Summary Index. It appears that there is a typo in the provided link in the end_to_end.md file for "Summary Index."
Current Broken Link: https://github.com/run-llama/LlamaIndexTS/blob/main/apps/simple/summarIndex.ts
Corrected Link: https://github.com/run-llama/LlamaIndexTS/blob/main/apps/simple/summaryIndex.ts
apps/docs/docs/end_to_end.md
• Locate the hyperlink to the Summary Index example in the end_to_end.md file.
• Replace the incorrect filename "summarIndex.ts" in the hyperlink with the correct filename "summaryIndex.ts".
• Check all other hyperlinks in the end_to_end.md file to ensure they are not broken. Correct any other broken links found.
Steps to reproduce
1.) Created project using $ npx create-llama --use-pnpm
2.) When prompted entered my OpenAI API key directly from OAI
3.) output ran but failed at pnpm run generate
Results
pnpm run generate
but I get the same errornpm run generate
also fails with the same error$ ls -la | grep ".env"
-rw-r--r-- 1 ray staff 67 Nov 14 08:58 .env.local
$ cat .env.local
OPENAI_API_KEY=sk-BK....
Invocation
$ npx create-llama --use-pnpm
✔ What is your project named? … llama-pdf
✔ Which template would you like to use? › Chat with streaming
✔ Which framework would you like to use? › NextJS
✔ Which UI would you like to use? › Shadcn
✔ Which chat engine would you like to use? › ContextChatEngine
✔ Please provide your OpenAI API key (leave blank to skip): … sk-BK.......
✔ Would you like to use ESLint? … No / Yes
Creating a new LlamaIndex app in /Users/ray/workspace/llama-pdf.
Output
Using pnpm.
Initializing project with template: streaming
Using chat engine: context
Using UI: shadcn
Installing dependencies:
- ai
- llamaindex
- next
- react
- react-dom
- tailwind-merge
- @radix-ui/react-slot
- class-variance-authority
- lucide-react
- remark
- remark-code-import
- remark-gfm
- remark-math
- react-markdown
- react-syntax-highlighter
Installing devDependencies:
- @types/node
- @types/react
- @types/react-dom
- autoprefixer
- eslint
- eslint-config-next
- postcss
- tailwindcss
- typescript
- @types/react-syntax-highlighter
Downloading registry.npmjs.org/pdf-parse/1.1.1: 11.85 MB/11.85 MB, done
WARN 1 deprecated subdependencies found: [email protected]
Packages: +592
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 600, reused 507, downloaded 85, added 592, done
dependencies:
+ @radix-ui/react-slot 1.0.2
+ ai 2.2.22
+ class-variance-authority 0.7.0
+ llamaindex 0.0.35
+ lucide-react 0.291.0 (0.292.0 is available)
+ next 13.5.6 (14.0.2 is available)
+ react 18.2.0
+ react-dom 18.2.0
+ react-markdown 8.0.7 (9.0.1 is available)
+ react-syntax-highlighter 15.5.0
+ remark 14.0.3 (15.0.1 is available)
+ remark-code-import 1.2.0
+ remark-gfm 3.0.1 (4.0.0 is available)
+ remark-math 5.1.1 (6.0.0 is available)
+ tailwind-merge 2.0.0
devDependencies:
+ @types/node 20.9.0
+ @types/react 18.2.37
+ @types/react-dom 18.2.15
+ @types/react-syntax-highlighter 15.5.10
+ autoprefixer 10.4.16
+ eslint 8.53.0
+ eslint-config-next 13.5.6 (14.0.2 is available)
+ postcss 8.4.31
+ tailwindcss 3.3.5
+ typescript 5.2.2
Done in 22.3s
Created '.env.local' file containing OPENAI_API_KEY
Copying test data to /Users/ray/workspace/llama-pdf/data
Running npm run generate to generate the context data.
> [email protected] generate /Users/ray/workspace/llama-pdf
> node app/api/chat/engine/generate.mjs
/Users/ray/workspace/llama-pdf/node_modules/.pnpm/[email protected]/node_modules/llamaindex/dist/index.js:605
throw new Error("Set OpenAI Key in OPENAI_API_KEY env variable");
^
Error: Set OpenAI Key in OPENAI_API_KEY env variable
at new OpenAISession (/Users/ray/workspace/llama-pdf/node_modules/.pnpm/[email protected]/node_modules/llamaindex/dist/index.js:605:13)
at getOpenAISession (/Users/ray/workspace/llama-pdf/node_modules/.pnpm/[email protected]/node_modules/llamaindex/dist/index.js:621:15)
at new OpenAI2 (/Users/ray/workspace/llama-pdf/node_modules/.pnpm/[email protected]/node_modules/llamaindex/dist/index.js:1540:81)
at serviceContextFromDefaults (/Users/ray/workspace/llama-pdf/node_modules/.pnpm/[email protected]/node_modules/llamaindex/dist/index.js:2083:71)
at file:///Users/ray/workspace/llama-pdf/app/api/chat/engine/generate.mjs:41:26
at file:///Users/ray/workspace/llama-pdf/app/api/chat/engine/generate.mjs:48:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Node.js v18.18.2
ELIFECYCLE Command failed with exit code 1.
Aborting installation.
pnpm run generate has failed.
I am trying to use Llamaindex with Plasmo framework on a Windows machine and tiktoken is throwing the above error.
No transformers found for __node\_modules/tiktoken-node/dist/tiktoken-node.win32-x64-msvc.node
Any idea how to fix it?
No response
packages/core/src/llm/LLM.ts
• Check where the context window is being set for each model. If it's being set to the default context window size instead of the maximum context window size for the model, change this to use the maximum context window size for the model.
packages/core/src/PromptHelper.ts
• Investigate the getAvailableContextSize method. If it's not correctly calculating the available context size, modify this method to correctly calculate the available context size.
packages/core/src/tests/contextWindowSizeTest.ts
• Write tests to ensure that the correct context window size is being used for each model. These tests should check that the context window size is not the default context window size unless the maximum context window size for the model is the same as the default context window size.
The error was introduced with the latest llama-index update.
Getting an error with Asyncio in python 3.9.
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/mount/src/justbyai/Home.py", line 1, in
from query_news import query_news
File "/mount/src/justbyai/query_news.py", line 6, in
from llama_index import (
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/init.py", line 20, in
from llama_index.indices.keyword_table import (
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/indices/init.py", line 4, in
from llama_index.indices.keyword_table.base import (
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/indices/keyword_table/init.py", line 4, in
from llama_index.indices.keyword_table.base import (
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/indices/keyword_table/base.py", line 18, in
from llama_index.indices.base import BaseIndex
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/indices/base.py", line 6, in
from llama_index.chat_engine.types import BaseChatEngine, ChatMode
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/chat_engine/init.py", line 1, in
from llama_index.chat_engine.condense_question import CondenseQuestionChatEngine
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/chat_engine/condense_question.py", line 5, in
from llama_index.chat_engine.types import (
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/chat_engine/types.py", line 51, in
class StreamingAgentChatResponse:
File "/home/adminuser/venv/lib/python3.9/site-packages/llama_index/chat_engine/types.py", line 60, in StreamingAgentChatResponse
_aqueue: asyncio.Queue = asyncio.Queue()
File "/usr/local/lib/python3.9/asyncio/queues.py", line 36, in init
self._loop = events.get_event_loop()
File "/usr/local/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
packages/core/src/chat_engine/types.py
- Move the instantiation of the _aqueue attribute from the class level to the init method of the StreamingAgentChatResponse class. It should look like this:
class StreamingAgentChatResponse: def __init__(self): self._aqueue: asyncio.Queue = asyncio.Queue()
I noticed that tweet https://twitter.com/jerryjliu0/status/1724956092340613281. Found that there is no loading UI when you send the message. This looks weird since llm needs time to process the data.
packages/create-llama/templates/types/streaming/nextjs/app/components/chat-section.tsx
✓ f4d3d81packages/create-llama/templates/types/streaming/nextjs/app/components/chat-section.tsx
✗packages/create-llama/package.json
! No changes madepackages/create-llama/templates/types/streaming/nextjs/app/components/chat-section.tsx
✗Would this PR be welcome? Chroma has a first party typescript client
The integration of various Large Language Model (LLM) providers, including support for local models, appears to be an inevitable addition in the near future.
To facilitate this, I propose implementing an additional configuration step in the project creation process. This step would allow users to select their preferred model provider.
Subsequently, based on the chosen provider, the system would prompt for the specific environment variables necessary for that provider.
OpenAIEmbedding Fails to Retrieve Session from Parameters When Not Using Azure
packages/core/src/Embedding.ts
- In the OpenAIEmbedding class constructor, add a condition to check if a session is provided in the parameters when not using Azure.
• If a session is provided, use that session instead of creating a new one.
• If a session is not provided, continue with the existing logic of creating a new session.
apps/docs/docs/api/classes/OpenAIEmbedding.md
- Update the documentation for the OpenAIEmbedding class constructor to mention that it now retrieves the session from the parameters even when not using Azure.
• Specify that if a session is not provided in the parameters, a new session will be created.
Is it possible to use custom LLM like https://github.com/EvanZhouDev/bard-ai with Llamaindex?
When copying the code from the following demo:
https://github.com/run-llama/LlamaIndexTS/blob/main/apps/simple/storageContext.ts#L31-L41
I am getting the error: Cannot initialize index with both indexStruct and indexStore
, while trying to create an index from a persisted store. The some store was created and runs fine in the latest llama_index python version, but can't get past this. Any ideas or is this a bug?
async function ask(query: string): Promise<string | unknown> {
try {
const storageContext = await storageContextFromDefaults({
persistDir: './app/api/ask/llm_index',
})
const index = await VectorStoreIndex.init({
storageContext,
})
const queryEngine = index.asQueryEngine()
const response = (await queryEngine.query(query)).response
return response
} catch (error) {
return error
}
}
Here's what I think about testing existing and new abstractions in LlamaIndex. The outline is as follows:
As a SDK, LlamaIndex is a collection of clever abstractions built over specific prompts.
Warning: Since prompts are so flexible, we can only almost-guarantee that LlamaIndex works under the "recommended settings". (Running LlamaIndex using the default prompts)
However, there are two core questions we must answer for developers before they trust LlamaIndex as a SDK.
Prompts serve as the foundation for our abstractions so we need to make them rock-solid. What does that mean?
Abstractions in LlamaIndex may seem confusing, but they can be boiled down to 4 different categories:
Let's call them Type 1,2,3,4 respectively.
Type 1 examples:
Type 2 examples:
Type 3 examples:
Type 4 examples:
Type 1:
If in-memory, write unit tests. If out of memory, write integration tests. Unit Tests or Integration Tests
Type 2:
Regular unit tests will do. Unit Tests
Type 3:
These tests need to be two-sided. One side needs to test the default prompts for correctness. The other side will mock the llm.complete output and check that our data comes out in the correct format (just to check that the outputs are reasonable). Benchmark Tests, Unit Tests
Type 4:
Interfaces alone can't enforce correct behavior for these larger abstractions.
One approach is to mock the LLM completions and the child abstractions. Then we enforce which functions get called using unit tests. Currently trying this out to see how much work this takes.
Update: Forget mocks, need integration tests. Integration Tests
I tried this example here, but when I run it the first time, I get the following error,
TypeError: node.node.getContent is not a function
at [ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:1812:29
at Array.map (<anonymous>)
at ResponseSynthesizer.<anonymous> ([ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:1811:30)
at Generator.next (<anonymous>)
at [ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:71:61
at new Promise (<anonymous>)
at __async ([ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:55:10)
at ResponseSynthesizer.synthesize ([ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:1810:12)
at RetrieverQueryEngine.<anonymous> ([ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:1843:39)
at Generator.next (<anonymous>)
and the second time I run it, I get the following error.
Error: Cannot initialize VectorStoreIndex with both nodes and indexStruct
at Function.<anonymous> ([ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:3119:17)
at Generator.next (<anonymous>)
at fulfilled ([ABSOLUTE_PATH_TO_YOUR_PROJECT]/node_modules/llamaindex/dist/index.js:58:24)
I have initialized and executed the procedure as per the instructions, but is there any other step I need to take?
Currently, the ChatEngine
implementations always send all messages to the LLM. If the chat history is too large, this approach quickly exceeds the maximum token size.
#100 proposes to summarize the chat history to address this issue.
packages/core/src/ChatEngine.ts
• Add a new property
chatHistorySummarizer
to theChatEngine
interface. This property should be an instance of a new interfaceChatHistorySummarizer
that we will define. TheChatHistorySummarizer
interface should have a methodsummarize
that takes a chat history and returns a summarized chat history.
• In thechat
method of eachChatEngine
implementation, check if the size of the chat history exceeds a certain threshold. If it does, use thechatHistorySummarizer
to summarize the chat history before sending it to the LLM.
packages/core/src/Prompt.ts
• Add a new prompt
SummarizeChatHistoryPrompt
that takes a chat history and returns a summarized chat history. This prompt will be used by theChatHistorySummarizer
.
packages/core/src/llm/LLM.ts
• In the
chat
method of eachLLM
implementation, check if the chat history is a summarized chat history. If it is, handle it appropriately.
The default filename for docstore file is docstore.json
in the Python module. In this repo it's doc_store.json
.
packages/core/src/storage/constants.ts
✅ Commit 47cc3ee
• Change the value of the constant `DEFAULT_DOC_STORE_PERSIST_FILENAME` from `"doc_store.json"` to `"docstore.json"`.
trunk init
1/1 ✅⡿ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ⣯ Downloading Trunk 1.15.0... ⣟ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ✔ Downloading Trunk 1.15.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 14 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.25 (2 github-workflow files) checkov 2.4.9 (16 json, 12 yaml files) eslint 8.49.0 (7 javascript, 111 typescript files) git-diff-check (207 files) markdownlint 0.36.0 (32 markdown files) (created .markdownlint.yaml) osv-scanner 1.3.6 (1 lockfile file) oxipng 8.0.0 (2 png files) prettier 3.0.3 (3 css, 7 javascript, 16 json, 32 markdown, 111 typescript, 11 yaml files) shellcheck 0.9.0 (2 shell files) (created .shellcheckrc) shfmt 3.6.0 (2 shell files) svgo 3.0.2 (5 svg files) (created svgo.config.js) trivy 0.45.0 (1 lockfile, 11 yaml files) trufflehog 3.55.1 (208 files) yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
No response
packages/core/src/readers/PptxReader.ts
• Create a new class called PptxReader that extends the base reader class.
• Implement a method in the PptxReader class that can read pptx files and convert them into a format that can be indexed and queried by the LlamaIndexTS project.
packages/core/src/QueryEngine.ts
• Modify the QueryEngine class to handle the format that pptx files are converted into by the PptxReader class.
• This will involve adding a new case to the switch statement in the query method that handles pptx files.
apps/docs/docusaurus.config.js
• Update the documentation to include information about pptx support.
• This will involve adding a new section to the documentation that explains how to load pptx files and how to query them.
packages/core/src/tests/PptxReader.test.ts
• Create a new test file for the PptxReader class.
• Implement tests that specifically test the loading and querying of pptx files.
❯ npx create-llama
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
✔ What is your project named? … foo
✔ Which template would you like to use? › Chat with streaming
✔ Which framework would you like to use? › NextJS
✔ Which UI would you like to use? › Shadcn
✔ Which chat engine would you like to use? › SimpleChatEngine
✔ **Please provide your llm of choice (leave blank to skip): …**
✔ Please provide your API key (leave blank to skip): …
✔ Would you like to use ESLint? … No / Yes
P.S: Would be happy to contribute.
packages/create-llama/create-app.ts
✓ 6c2fc21packages/create-llama/create-app.ts
✗packages/create-llama/package.json
! No changes madepackages/create-llama/create-app.ts
✗packages/create-llama/index.ts
✓ 962126bpackages/create-llama/index.ts
✗packages/create-llama/package.json
✓ f8eecbepackages/create-llama/package.json
✗packages/create-llama/package.json
✓ af12adbpackages/create-llama/package.json
✗packages/create-llama/package.json
✗packages/create-llama/index.ts
✗packages/create-llama/README.md
✓ e6a0c54packages/create-llama/README.md
✗packages/create-llama/package.json
✓ 02c34bapackages/create-llama/README.md
✗packages/create-llama/package.json
! No changes madepackages/create-llama/README.md
✗packages/create-llama/CHANGELOG.md
✓ 0266c3dNeed support for Vercel Edge Runtime
possibly resolved by using this package
https://www.npmjs.com/package/@dqbd/tiktoken#vercel-edge-runtime
Error: Missing tiktoken_bg.wasm
at 79251 (/var/task/.next/server/chunks/670.js:160:47344)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:1:161)
at 95670 (/var/task/.next/server/chunks/670.js:114:1089)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:1:161)
at 54703 (/var/task/.next/server/app/api/v1/llamaIndex/route.js:1:1217)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:1:161)
at __webpack_exec__ (/var/task/.next/server/app/api/v1/llamaIndex/route.js:1:2164)
at /var/task/.next/server/app/api/v1/llamaIndex/route.js:1:2207
at __webpack_require__.X (/var/task/.next/server/webpack-runtime.js:1:1735)
at /var/task/.next/server/app/api/v1/llamaIndex/route.js:1:2177 {
page: '/api/v1/llamaIndex'
}
I'm trying to contribute to the project, but it's stuck installing packages because the lockfile isn't compatible with the current version of pnpm.
The package.json file says to use [email protected]
which is the version that I'm using, but it's giving me these warnings and no packages ever get installed.
Scope: all 6 workspace projects
WARN Ignoring broken lockfile at /Users/niels/LlamaIndexTS: Lockfile /Users/niels/LlamaIndexTS/pnpm-lock.yaml not compatible with current pnpm
WARN GET https://registry.npmjs.org/@docusaurus%2Ftypes error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@tsconfig%2Fdocusaurus error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/docusaurus-plugin-typedoc error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/typedoc error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/typedoc-plugin-markdown error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/typescript error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@docusaurus%2Fremark-plugin-npm2yarn error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@mdx-js%2Freact error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/clsx error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/postcss error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/prism-react-renderer error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/raw-loader error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/react error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@docusaurus%2Fmodule-type-aliases error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@docusaurus%2Fcore error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@docusaurus%2Fpreset-classic error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/@docusaurus%2Ftypes error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/@tsconfig%2Fdocusaurus error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
WARN GET https://registry.npmjs.org/docusaurus-plugin-typedoc error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
...
How do we fix the lockfile, or am I supposed to use a different version of pnpm?
CONTRIBUTING.md
✓ 3f46953CONTRIBUTING.md
✗CI/CD configuration file
✓ 898c828CI/CD configuration file
✗.github/workflows/ci.yml
✓ a1f2247.github/workflows/ci.yml
✗.github/workflows/ci.yml
✓ 179ce39.github/workflows/ci.yml
✗.github/workflows/ci.yml
✗CI/CD configuration file
✗CONTRIBUTING.md
✗It would be great to port the LlamaIndex MongoDocumentStore function to TS.
It's the only tool not in TS that I would allow me to fully migrate across from python to nodejs.
Perhaps there's a work around - but would be great to have!
Best,
sjcengine
.
I was running the starter tutorial from the docs. I am getting rate limit error from OpenAI.
It should not be happening because I have a paid plan.
Here are the information that may help you:
llamaindex: 0.0.12
typescript: 5.1.6
here is the error from the console:
var error = new Error(message); ^ Error: Request failed with status code 429 at createError (C:\Users\sidmi\Documents\llama-index-ts\node_modules\llamaindex\dist\index.js:452:19) at settle (C:\Users\sidmi\Documents\llama-index-ts\node_modules\llamaindex\dist\index.js:468:16) at C:\Users\sidmi\Documents\llama-index-ts\node_modules\llamaindex\dist\index.js:3017:124 at new Promise (<anonymous>) at C:\Users\sidmi\Documents\llama-index-ts\node_modules\llamaindex\dist\index.js:3013:16 at Generator.next (<anonymous>) at fulfilled (C:\Users\sidmi\Documents\llama-index-ts\node_modules\llamaindex\dist\index.js:61:24) at processTicksAndRejections (node:internal/process/task_queues:95:5) { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: fetchAdapter2], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'User-Agent': 'OpenAI/NodeJS/3.3.0', Authorization: 'Bearer <my key>' }, method: 'post', data: '{"model":"text-embedding-ada-002","input":"I started this decade as a first-year college student fresh out of high school. I was 17, didn’t have a job, didn’t have any industry connections, and really didn’t know shit. And now you’re reading my blog! I would have been proud. I’ve told bits and pieces of my story on different podcasts. Now feels like an appropriate time to write down the parts that were most memorable to me. Every person’s story is unique and not directly reproducible. I’ve benefited immensely from the privilege of being born in an upper middle class family and looking like a typical coder stereotype. People took chances on me. Still, I hope that sharing my story can be helpful to compare our experiences. Even if our circumstances are too different, at least you might find some of it entertaining. 2010 I was born in Russia and I finished the high school there in 2009. In Russia, higher education is free if you do well enough at tests. I tried my chances with a few colleges. I was particularly hoping to get into one college whose students often won programming competitions (which I thought was cool at the time). However, it turned out my math exam scores weren’t good enough. So there were not many options I could choose from that had to do with programming. From the remaining options, I picked a college that gave Macbooks to students. (Remember the white plastic ones with GarageBand? They were the best.) By the summer of 2010, I had just finished my first year there. It turned out that there wasn’t going to be much programming in the curriculum for two more years. But there was a lot of linear algebra, physics, and other subjects I didn’t find particularly interesting. Everything was well in the beginning, but I started slacking off and skipping lectures that I had to wake up early for. My gaps in knowledge gradually snowballed, and most of what I remember from my first year in the university is the anxiety associated with feeling like a total failure. Even for subjects I knew well, things didn’t quite go as I planned. Our English classes were very rudimentary, and I got a verbal approval from the teacher to skip most of them. But when I came for the final test, I wasn’t allowed to turn it in unless I pay money for hours of “catch up training” with the same teacher. This experience left me resentful and suspicious of higher education. Aside from being a lousy student, I was also in my first serious relationship — and it wasn’t going very well either. I was unhappy, but I thought that you can solve this by continuing to be unhappy and “fixing” it. Unfortunately, I didn’t have the wisdom to get out of a non-working relationship for a few more years. Now onto the bright side. Professionally, 2010 was an exciting year for me. I got my first job as a software developer! Here’s how that happened. There was a small venue close to my college that hosted different events. This venue was a “business incubator” — mind you, not a Silicon Valley kind of business incubator — but a tiny Russian one. I have no idea what businesses they “incubated”. However, they hosted a talk about software development, and I decided to check it out because I was starving for that kind of content. I didn’t know any programmers in real life, and I didn’t know meetups existed! I don’t remember what the talk was about now. But I knew the person who gave it was an executive in a Russian-American outsourcing company. I’ve been programming since 12, so I approached him and asked if they’re hiring. He gave me an email, I went through their test exercises, and in a few weeks got the job. I started at my first job during the summer of 2010. My salary was $18k/year (yes that’s 18 and not 180). This is peanuts in the developed world, but again, this was Russia — so the rent was cheap too. I immediately moved out of my mom’s apartment and started renting a room for $150 a month. I was excited. With my first salary, I bought an iPhone and marvelled at how good the UI was. Summer came and went, and then the second college year started. But it started without me. Now that I was doing actual work and people payed me for it, I lost my last bits of motivation for sitting at lectures and doing exercises."}', url: 'https://api.openai.com/v1/embeddings' }, request: Request { [Symbol(realm)]: { settingsObject: [Object] }, [Symbol(state)]: { method: 'POST', localURLsOnly: false, unsafeRequest: false, body: [Object], client: [Object], reservedClient: null, replacesClientId: '', window: 'client', keepalive: false, serviceWorkers: 'all', initiator: '', destination: '', priority: null, origin: 'client', policyContainer: 'client', referrer: 'client', referrerPolicy: '', mode: 'cors', useCORSPreflightFlag: false, credentials: 'same-origin', useCredentials: false, cache: 'default', redirect: 'follow', integrity: '', cryptoGraphicsNonceMetadata: '', parserMetadata: '', reloadNavigation: false, historyNavigation: false, userActivation: false, taintedOrigin: false, redirectCount: 0, responseTainting: 'basic', preventNoCacheCacheControlHeaderModification: false, done: false, timingAllowFailed: false, headersList: [HeadersList], urlList: [Array], url: [URL] }, [Symbol(signal)]: AbortSignal { [Symbol(kEvents)]: [SafeMap [Map]], [Symbol(events.maxEventTargetListeners)]: 10, [Symbol(events.maxEventTargetListenersWarned)]: false, [Symbol(kAborted)]: false, [Symbol(kReason)]: undefined, [Symbol(realm)]: [Object] }, [Symbol(headers)]: Headers { [Symbol(headers list)]: [HeadersList], [Symbol(guard)]: 'request', [Symbol(realm)]: [Object] } }, response: { ok: false, status: 429, statusText: 'Too Many Requests', headers: Headers { [Symbol(headers list)]: [HeadersList], [Symbol(guard)]: 'none' }, config: { transitional: [Object], adapter: [Function: fetchAdapter2], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: [Object], method: 'post', data: '{"model":"text-embedding-ada-002","input":"I started this decade as a first-year college student fresh out of high school. I was 17, didn’t have a job, didn’t have any industry connections, and really didn’t know shit. And now you’re reading my blog! I would have been proud. I’ve told bits and pieces of my story on different podcasts. Now feels like an appropriate time to write down the parts that were most memorable to me. Every person’s story is unique and not directly reproducible. I’ve benefited immensely from the privilege of being born in an upper middle class family and looking like a typical coder stereotype. People took chances on me. Still, I hope that sharing my story can be helpful to compare our experiences. Even if our circumstances are too different, at least you might find some of it entertaining. 2010 I was born in Russia and I finished the high school there in 2009. In Russia, higher education is free if you do well enough at tests. I tried my chances with a few colleges. I was particularly hoping to get into one college whose students often won programming competitions (which I thought was cool at the time). However, it turned out my math exam scores weren’t good enough. So there were not many options I could choose from that had to do with programming. From the remaining options, I picked a college that gave Macbooks to students. (Remember the white plastic ones with GarageBand? They were the best.) By the summer of 2010, I had just finished my first year there. It turned out that there wasn’t going to be much programming in the curriculum for two more years. But there was a lot of linear algebra, physics, and other subjects I didn’t find particularly interesting. Everything was well in the beginning, but I started slacking off and skipping lectures that I had to wake up early for. My gaps in knowledge gradually snowballed, and most of what I remember from my first year in the university is the anxiety associated with feeling like a total failure. Even for subjects I knew well, things didn’t quite go as I planned. Our English classes were very rudimentary, and I got a verbal approval from the teacher to skip most of them. But when I came for the final test, I wasn’t allowed to turn it in unless I pay money for hours of “catch up training” with the same teacher. This experience left me resentful and suspicious of higher education. Aside from being a lousy student, I was also in my first serious relationship — and it wasn’t going very well either. I was unhappy, but I thought that you can solve this by continuing to be unhappy and “fixing” it. Unfortunately, I didn’t have the wisdom to get out of a non-working relationship for a few more years. Now onto the bright side. Professionally, 2010 was an exciting year for me. I got my first job as a software developer! Here’s how that happened. There was a small venue close to my college that hosted different events. This venue was a “business incubator” — mind you, not a Silicon Valley kind of business incubator — but a tiny Russian one. I have no idea what businesses they “incubated”. However, they hosted a talk about software development, and I decided to check it out because I was starving for that kind of content. I didn’t know any programmers in real life, and I didn’t know meetups existed! I don’t remember what the talk was about now. But I knew the person who gave it was an executive in a Russian-American outsourcing company. I’ve been programming since 12, so I approached him and asked if they’re hiring. He gave me an email, I went through their test exercises, and in a few weeks got the job. I started at my first job during the summer of 2010. My salary was $18k/year (yes that’s 18 and not 180). This is peanuts in the developed world, but again, this was Russia — so the rent was cheap too. I immediately moved out of my mom’s apartment and started renting a room for $150 a month. I was excited. With my first salary, I bought an iPhone and marvelled at how good the UI was. Summer came and went, and then the second college year started. But it started without me. Now that I was doing actual work and people payed me for it, I lost my last bits of motivation for sitting at lectures and doing exercises."}', url: 'https://api.openai.com/v1/embeddings' }, request: Request { [Symbol(realm)]: [Object], [Symbol(state)]: [Object], [Symbol(signal)]: [AbortSignal], [Symbol(headers)]: [Headers] }, data: { error: [Object] } }, isAxiosError: true, toJSON: [Function: toJSON] }
Version 4 of the openai
package allows streaming responses:
https://github.com/openai/openai-node#streaming-responses
Would it be possible to utilize streaming with the Query/Chat engine?
packages/core/src/llm/LLM.ts
• In the OpenAI class, modify the chat method to support streaming responses. Specifically, when calling the chat.completions.create method of the OpenAI API, set the stream parameter to true.
• Still in the chat method, after calling the chat.completions.create method, pass the response to the handleOpenAIStream function. This function will handle the streaming response and return the final result.
Didn’t see a different forum for asking questions so apologize if it missed that. Curious if this supports external data storage like mongoDB (similar to the python package). If not, wondering if it is on the roadmap.
It would be great to port the LlamaIndex MongoDocumentStore function to TS.
It's the only tool not in TS that I would allow me to fully migrate across from python to nodejs.
Perhaps there's a work around - but would be great to have!
Best,
sjcengine
Take a look at packages/core/src/test
No response
I'm trying to create a VectorStoreIndex from a vector_store.json file
I'm able to create the SimpleVectorStore, but when I try to use VectorStoreIndex.fromVectorStore, I receive an error
if I use "fromPersistPath", the error changes
packages/core/src/indices/vectorStore/VectorStoreIndex.ts
✅ Commit 32a482d
packages/core/src/indices/vectorStore/VectorStoreIndex.ts
❌ Sandbox failed so I made additional changespackages/core/src/indices/vectorStore/VectorStoreIndex.ts
❌ Sandbox failed so I made additional changespackages/core/src/indices/vectorStore/VectorStoreIndex.ts
❌ Sandbox failed so I made additional changespackages/core/src/indices/vectorStore/VectorStoreIndex.ts
✅ Sandbox ran successfullypackages/core/src/indices/vectorStore/VectorStoreIndex.ts
✅ Sandbox ran successfullypackages/core/src/indices/vectorStore/VectorStoreIndex.ts
✅ Sandbox ran successfullyapps/docs/docs/starter.md
apps/docs/docs/modules/low_level/storage.md
packages/core/src/storage/vectorStore/types.ts
✅ Commit 328e8c6
packages/core/src/storage/vectorStore/types.ts
❌ Sandbox failed so I made additional changespackages/core/src/storage/vectorStore/SimpleVectorStore.ts
✅ Commit b8e6441
packages/core/src/storage/vectorStore/SimpleVectorStore.ts
❌ Sandbox failed so I made additional changespackages/core/src/storage/vectorStore/SimpleVectorStore.ts
✅ Sandbox ran successfullyHi guys great work.
I was looking if you are going to support connector for:
Edit: is any example to look at?
packages/core/src/llm/pythonLlamaCpp.ts
✅ Commit c070855
• Create a new class
PythonLlamaCpp
that implements the necessary methods to interact with the python llama cpp API.Sandbox Execution Logs
Sandbox logs 1/1
⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ⣯ Downloading Trunk 1.15.0... ⣟ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ✔ Downloading Trunk 1.15.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done
✔ 14 linters were enabled (.trunk/trunk.yaml)
actionlint 1.6.25 (2 github-workflow files)
checkov 2.4.9 (16 json, 12 yaml files)
eslint 8.49.0 (7 javascript, 110 typescript files)
git-diff-check (204 files)
markdownlint 0.36.0 (30 markdown files) (created .markdownlint.yaml)
osv-scanner 1.3.6 (1 lockfile file)
oxipng 8.0.0 (2 png files)
prettier 3.0.3 (3 css, 7 javascript, 16 json, 30 markdown, 110 typescript, 11 yaml files)
shellcheck 0.9.0 (2 shell files) (created .shellcheckrc)
shfmt 3.6.0 (2 shell files)
svgo 3.0.2 (5 svg files) (created svgo.config.js)
trivy 0.45.0 (1 lockfile, 11 yaml files)
trufflehog 3.54.4 (205 files)
yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)Next Steps
Read documentation
Our documentation can be found at https://docs.trunk.ioGet help and give feedback
Join the Trunk community at https://slack.trunk.io</details> </details>
packages/core/src/llm/huggingFacesTextGeneration.ts
✅ Commit c070855
• Create a new class
HuggingFacesTextGeneration
that implements the necessary methods to interact with the hugging faces text generation inference API.Sandbox Execution Logs
Sandbox logs 1/1
⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ⣯ Downloading Trunk 1.15.0... ⣟ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ✔ Downloading Trunk 1.15.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done
✔ 14 linters were enabled (.trunk/trunk.yaml)
actionlint 1.6.25 (2 github-workflow files)
checkov 2.4.9 (16 json, 12 yaml files)
eslint 8.49.0 (7 javascript, 110 typescript files)
git-diff-check (204 files)
markdownlint 0.36.0 (30 markdown files) (created .markdownlint.yaml)
osv-scanner 1.3.6 (1 lockfile file)
oxipng 8.0.0 (2 png files)
prettier 3.0.3 (3 css, 7 javascript, 16 json, 30 markdown, 110 typescript, 11 yaml files)
shellcheck 0.9.0 (2 shell files) (created .shellcheckrc)
shfmt 3.6.0 (2 shell files)
svgo 3.0.2 (5 svg files) (created svgo.config.js)
trivy 0.45.0 (1 lockfile, 11 yaml files)
trufflehog 3.54.4 (205 files)
yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)Next Steps
Read documentation
Our documentation can be found at https://docs.trunk.ioGet help and give feedback
Join the Trunk community at https://slack.trunk.io</details> </details>
packages/core/src/llm/oobaTextGeneration.ts
✅ Commit 84ad529
• Create a new class
OobaTextGeneration
that implements the necessary methods to interact with the ooba text generation API.
packages/core/src/index.ts
✅ Commit 1378388
• Add exports for the new
PythonLlamaCpp
,HuggingFacesTextGeneration
, andOobaTextGeneration
classes.Sandbox Execution Logs
Sandbox logs 1/1
⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ⣯ Downloading Trunk 1.15.0... ⣟ Downloading Trunk 1.15.0... ⡿ Downloading Trunk 1.15.0... ⢿ Downloading Trunk 1.15.0... ⣻ Downloading Trunk 1.15.0... ⣽ Downloading Trunk 1.15.0... ⣾ Downloading Trunk 1.15.0... ⣷ Downloading Trunk 1.15.0... ✔ Downloading Trunk 1.15.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done
✔ 14 linters were enabled (.trunk/trunk.yaml)
actionlint 1.6.25 (2 github-workflow files)
checkov 2.4.9 (16 json, 12 yaml files)
eslint 8.49.0 (7 javascript, 109 typescript files)
git-diff-check (203 files)
markdownlint 0.36.0 (30 markdown files) (created .markdownlint.yaml)
osv-scanner 1.3.6 (1 lockfile file)
oxipng 8.0.0 (2 png files)
prettier 3.0.3 (3 css, 7 javascript, 16 json, 30 markdown, 109 typescript, 11 yaml files)
shellcheck 0.9.0 (2 shell files) (created .shellcheckrc)
shfmt 3.6.0 (2 shell files)
svgo 3.0.2 (5 svg files) (created svgo.config.js)
trivy 0.45.0 (1 lockfile, 11 yaml files)
trufflehog 3.54.4 (204 files)
yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)Next Steps
Read documentation
Our documentation can be found at https://docs.trunk.ioGet help and give feedback
Join the Trunk community at https://slack.trunk.io</details> </details>
README.md
✅ Commit e764c05
• Add a new section "Supported APIs" and list the new APIs along with a brief description of each.
I had provided my OpenAI API key during setup, and followed the instructions in the README exactly. However it still failed as it doesn't automatically load the .env
file using dot-env or any other package. If that's the case the instructions should tell you to export this file before running, otherwise someone who follows the instructions exactly will have their first experience be triggering an error and having to debug it despite following the golden path.
PaLM API would be a good addon?
P.S: Would be happy to contribute.
No response
apps/simple/condenseQuestionChatEngineExample.ts
✓ 92a470aapps/simple/condenseQuestionChatEngineExample.ts
✗apps/simple/condenseQuestionChatEngineExample.ts
✓ a8ba11bapps/simple/condenseQuestionChatEngineExample.ts
✗apps/simple/condenseQuestionChatEngineExample.ts
✓ c5c6c8fapps/simple/condenseQuestionChatEngineExample.ts
✗apps/simple/condenseQuestionChatEngineExample.ts
✓ 0c9ff40apps/simple/condenseQuestionChatEngineExample.ts
✗apps/simple/condenseQuestionChatEngineExample.ts
✗apps/simple/condenseQuestionChatEngineExample.ts
✗apps/simple/condenseQuestionChatEngineExample.ts
✗Would be great to see support for Ollama in the same way that the Python version of Llama Index does.
Useful links:
https://github.com/jmorganca/ollama
https://gpt-index.readthedocs.io/en/v0.8.30/examples/llm/ollama.html
packages/core/src/llm/Ollama.ts
✅ Commit 52d94d4
packages/core/src/llm/Ollama.ts
❌ Sandbox failed so I made additional changespackages/core/src/llm/Ollama.ts
❌ Sandbox failed so I made additional changespackages/core/src/llm/Ollama.ts
❌ Sandbox failed so I made additional changespackages/core/src/llm/Ollama.ts
❌ Sandbox failed so I made additional changespackages/core/src/llm/Ollama.ts
❌ Sandbox failed so I made additional changespackages/core/src/llm/LLM.ts
✅ Commit 8675a14
packages/core/src/llm/LLM.ts
❌ Sandbox failed so I made additional changespackages/core/src/tests/Ollama.test.ts
After quite a bit of thought, here's what I think about testing existing and new abstractions in LlamaIndex.
As a SDK, LlamaIndex is a collection of clever abstractions built over specific prompts.
Warning: Since prompts are so flexible, we can only almost-guarantee that LlamaIndex works under the "recommended settings". (Running LlamaIndex using the default prompts)
However, there are two core questions we must answer for developers before they trust LlamaIndex as a SDK.
Prompts serve as the foundation for our abstractions so we need to make them rock-solid. What does that mean?
Abstractions in LlamaIndex may seem confusing, but they can be boiled down to 4 different categories:
Let's call them Type 1,2,3,4 respectively.
Type 1 examples:
Type 2 examples:
Type 3 examples:
Type 4 examples:
Type 1:
If in-memory, write unit tests. If out of memory, write integration tests. Unit Tests or Integration Tests
Type 2:
Regular unit tests will do. Unit Tests
Type 3:
These tests need to be two-sided. One side needs to test the default prompts for correctness. The other side will mock the llm.complete output and check that our data comes out in the correct format (just to check that the outputs are reasonable). Benchmark Tests, Unit Tests
Type 4:
Interfaces alone can't enforce correct behavior for these larger abstractions. One approach is to mock the LLM completions and the child abstractions. Then we enforce which functions get called using unit tests. Currently trying this out to see how much work this takes. Unit Tests
packages/core/src/tests
❌ Failed• Create a new directory for tests in the core package.
packages/core/src/tests/Selector.test.ts
✅ Commit b713d7b
• Write unit tests for the Selector class. Test all the methods and ensure that they work as expected. • Mock the LLM completions and check that the data comes out in the correct format.
npm install -g pnpm
1/48 ✓changed 1 package in 3s 1 package is looking for funding run `npm fund` for details
pnpm i
2/48 ✓Scope: all 6 workspace projects Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 1720, reused 0, downloaded 0, added 0 Progress: resolved 1720, reused 0, downloaded 64, added 53 Progress: resolved 1720, reused 0, downloaded 213, added 219 Progress: resolved 1720, reused 0, downloaded 335, added 351 Progress: resolved 1720, reused 0, downloaded 477, added 484 Progress: resolved 1720, reused 0, downloaded 637, added 644 Progress: resolved 1720, reused 0, downloaded 793, added 800 Progress: resolved 1720, reused 0, downloaded 943, added 953 Progress: resolved 1720, reused 0, downloaded 1022, added 1033 Progress: resolved 1720, reused 0, downloaded 1081, added 1085 Progress: resolved 1720, reused 0, downloaded 1091, added 1098 Progress: resolved 1720, reused 0, downloaded 1182, added 1190 Progress: resolved 1720, reused 0, downloaded 1288, added 1298 Progress: resolved 1720, reused 0, downloaded 1309, added 1314 Progress: resolved 1720, reused 0, downloaded 1310, added 1314 Progress: resolved 1720, reused 0, downloaded 1371, added 1375 Progress: resolved 1720, reused 0, downloaded 1491, added 1500 Progress: resolved 1720, reused 0, downloaded 1648, added 1657 Progress: resolved 1720, reused 0, downloaded 1702, added 1720, done .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting core-js: .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock .../node_modules/core-js-pure postinstall: > https://boosty.to/zloirock .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../node_modules/core-js-pure postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../node_modules/core-js-pure postinstall: Done .../[email protected]/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../[email protected]/node_modules/core-js postinstall: The project needs your help! Please consider supporting core-js: .../[email protected]/node_modules/core-js postinstall: > https://opencollective.com/core-js .../[email protected]/node_modules/core-js postinstall: > https://patreon.com/zloirock .../[email protected]/node_modules/core-js postinstall: > https://boosty.to/zloirock .../[email protected]/node_modules/core-js postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../[email protected]/node_modules/core-js postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../[email protected]/node_modules/core-js postinstall: Done .../[email protected]/node_modules/esbuild postinstall$ node install.js .../[email protected]/node_modules/esbuild postinstall: Done dependencies: + @changesets/cli 2.26.2 devDependencies: + @turbo/gen 1.10.13 + @types/jest 29.5.4 + eslint 7.32.0 + eslint-config-custom 0.0.0 <- packages/eslint-config-custom + husky 8.0.3 + jest 29.6.4 + prettier 3.0.3 + prettier-plugin-organize-imports 3.2.3 + ts-jest 29.1.1 + turbo 1.10.13 . prepare$ husky install . prepare: husky - Git hooks installed . prepare: Done Done in 23.4s
pnpm add --save-dev prettier -w
3/48 ✓Progress: resolved 0, reused 1, downloaded 0, added 0 Progress: resolved 62, reused 62, downloaded 0, added 0 Progress: resolved 197, reused 176, downloaded 0, added 0 packages/core | WARN deprecated [email protected] Progress: resolved 354, reused 308, downloaded 0, added 0 Progress: resolved 663, reused 627, downloaded 0, added 0 Progress: resolved 944, reused 910, downloaded 0, added 0 Progress: resolved 1449, reused 1415, downloaded 0, added 0 apps/docs | WARN deprecated [email protected] apps/docs | WARN deprecated [email protected] Progress: resolved 1729, reused 1695, downloaded 0, added 0 Progress: resolved 1736, reused 1701, downloaded 0, added 0 Already up to date Progress: resolved 1736, reused 1702, downloaded 0, added 0, done Done in 11s
pnpx prettier --write packages/core/src/tests/Selector.test.ts
4/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 250ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
5/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
6/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 17, downloaded 1, added 18 Progress: resolved 19, reused 17, downloaded 2, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,22): error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module '../Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-199/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
7/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 257ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
8/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
9/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,10): error TS2305: Module '"jest"' has no exported member 'jest'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-299/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2305 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
10/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 283ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
11/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
12/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 19, reused 18, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,10): error TS2305: Module '"jest"' has no exported member 'jest'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-401/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2305 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
13/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 243ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
14/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
15/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 13, reused 13, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,18): error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-503/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
16/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 280ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
17/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
18/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 0 Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,10): error TS2305: Module '"jest"' has no exported member 'jest'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-602/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2305 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
19/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 311ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
20/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
21/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 19, reused 18, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-702/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
22/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 200ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
23/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
24/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,22): error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-801/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
25/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 195ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
26/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
27/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,10): error TS2305: Module '"jest"' has no exported member 'jest'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-901/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2305 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
28/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 182ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
29/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
30/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,24): error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1000/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
31/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 339ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
32/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
33/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 19, reused 18, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,10): error TS2305: Module '"jest"' has no exported member 'jest'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1099/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2305 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
34/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 346ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
35/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
36/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 19, reused 18, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,18): error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module 'correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module 'correct/path/to/Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1198/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
37/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 289ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
38/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
39/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 5 Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,22): error TS2307: Cannot find module '../jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module '../Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1297/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
40/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 298ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
41/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
42/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,22): error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module './LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module './Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1397/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
43/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 225ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
44/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
45/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 19, reused 18, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,10): error TS2305: Module '"jest"' has no exported member 'jest'. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module '../src/LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module '../src/Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1498/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305, 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/Selector.test.ts
46/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Selector.test.ts 321ms
pnpm eslint --fix packages/core/src/tests/Selector.test.ts
47/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Selector.test.ts
48/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 19, reused 11, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 0 Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Selector.test.ts(1,10): error TS2305: Module '"jest"' has no exported member 'jest'. packages/core/src/tests/Selector.test.ts(2,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/Selector.test.ts(3,26): error TS2307: Cannot find module '../Selector' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1598/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305, 2307, 2307 ] }
packages/core/src/tests/RouterQueryEngine.test.ts
✅ Commit c826265
• Write unit tests for the RouterQueryEngine class. Test all the methods and ensure that they work as expected. • Mock the LLM completions and the child abstractions. Then enforce which functions get called using unit tests.
npm install -g pnpm
1/48 ✓changed 1 package in 3s 1 package is looking for funding run `npm fund` for details
pnpm i
2/48 ✓Scope: all 6 workspace projects Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 1720, reused 0, downloaded 35, added 20 Progress: resolved 1720, reused 0, downloaded 259, added 271 Progress: resolved 1720, reused 0, downloaded 499, added 509 Progress: resolved 1720, reused 0, downloaded 720, added 725 Progress: resolved 1720, reused 0, downloaded 976, added 992 Progress: resolved 1720, reused 0, downloaded 1102, added 1109 Progress: resolved 1720, reused 0, downloaded 1296, added 1302 Progress: resolved 1720, reused 0, downloaded 1323, added 1331 Progress: resolved 1720, reused 0, downloaded 1447, added 1457 Progress: resolved 1720, reused 0, downloaded 1689, added 1707 Progress: resolved 1720, reused 0, downloaded 1702, added 1720, done .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting core-js: .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock .../node_modules/core-js-pure postinstall: > https://boosty.to/zloirock .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../node_modules/core-js-pure postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../node_modules/core-js-pure postinstall: Done .../[email protected]/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../[email protected]/node_modules/core-js postinstall: The project needs your help! Please consider supporting core-js: .../[email protected]/node_modules/core-js postinstall: > https://opencollective.com/core-js .../[email protected]/node_modules/core-js postinstall: > https://patreon.com/zloirock .../[email protected]/node_modules/core-js postinstall: > https://boosty.to/zloirock .../[email protected]/node_modules/core-js postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../[email protected]/node_modules/core-js postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../[email protected]/node_modules/core-js postinstall: Done .../[email protected]/node_modules/esbuild postinstall$ node install.js .../[email protected]/node_modules/esbuild postinstall: Done dependencies: + @changesets/cli 2.26.2 devDependencies: + @turbo/gen 1.10.13 + @types/jest 29.5.4 + eslint 7.32.0 + eslint-config-custom 0.0.0 <- packages/eslint-config-custom + husky 8.0.3 + jest 29.6.4 + prettier 3.0.3 + prettier-plugin-organize-imports 3.2.3 + ts-jest 29.1.1 + turbo 1.10.13 . prepare$ husky install . prepare: husky - Git hooks installed . prepare: Done Done in 14.2s
pnpm add --save-dev prettier -w
3/48 ✓Progress: resolved 0, reused 1, downloaded 0, added 0 Progress: resolved 116, reused 101, downloaded 0, added 0 packages/core | WARN deprecated [email protected] Progress: resolved 399, reused 353, downloaded 0, added 0 Progress: resolved 884, reused 848, downloaded 0, added 0 Progress: resolved 1349, reused 1315, downloaded 0, added 0 apps/docs | WARN deprecated [email protected] apps/docs | WARN deprecated [email protected] Progress: resolved 1733, reused 1698, downloaded 0, added 0 Already up to date Progress: resolved 1736, reused 1702, downloaded 0, added 0, done Done in 7.3s
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
4/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 216ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
5/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
6/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 17, downloaded 2, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-197/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
7/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 181ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
8/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
9/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module './LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module './RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-296/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
10/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 183ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
11/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
12/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-396/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
13/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 283ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
14/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
15/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module './LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module './RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-496/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
16/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 175ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
17/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
18/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-596/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
19/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 182ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
20/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
21/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module './LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module './RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-695/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
22/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 188ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
23/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
24/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-794/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
25/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 193ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
26/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
27/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module './LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module './RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-893/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
28/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 182ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
29/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
30/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-992/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
31/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 189ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
32/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
33/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 0 Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module './LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module './RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1091/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
34/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 183ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
35/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
36/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1191/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
37/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 191ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
38/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
39/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1290/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
40/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 197ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
41/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
42/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../correct/path/to/RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1389/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
43/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 195ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
44/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
45/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../correct/path/to/RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1488/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
pnpx prettier --write packages/core/src/tests/RouterQueryEngine.test.ts
46/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/RouterQueryEngine.test.ts 190ms
pnpm eslint --fix packages/core/src/tests/RouterQueryEngine.test.ts
47/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/RouterQueryEngine.test.ts
48/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/RouterQueryEngine.test.ts(1,21): error TS2307: Cannot find module '../correct/path/to/LLM' or its corresponding type declarations. packages/core/src/tests/RouterQueryEngine.test.ts(2,35): error TS2307: Cannot find module '../correct/path/to/RouterQueryEngine' or its corresponding type declarations. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1587/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2307, 2307 ] }
packages/core/src/tests/Node.test.ts
✅ Commit 37d5bc0
• Write unit tests for the Node class. Test all the methods and ensure that they work as expected. • Mock the LLM completions and check that the data comes out in the correct format.
npm install -g pnpm
1/48 ✓changed 1 package in 3s 1 package is looking for funding run `npm fund` for details
pnpm i
2/48 ✓Scope: all 6 workspace projects Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 1720, reused 0, downloaded 30, added 21 Progress: resolved 1720, reused 0, downloaded 199, added 203 Progress: resolved 1720, reused 0, downloaded 403, added 410 Progress: resolved 1720, reused 0, downloaded 667, added 673 Progress: resolved 1720, reused 0, downloaded 883, added 894 Progress: resolved 1720, reused 0, downloaded 926, added 938 Progress: resolved 1720, reused 0, downloaded 1076, added 1091 Progress: resolved 1720, reused 0, downloaded 1273, added 1281 Progress: resolved 1720, reused 0, downloaded 1331, added 1338 Progress: resolved 1720, reused 0, downloaded 1402, added 1411 Progress: resolved 1720, reused 0, downloaded 1542, added 1557 Progress: resolved 1720, reused 0, downloaded 1702, added 1720, done .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting core-js: .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock .../node_modules/core-js-pure postinstall: > https://boosty.to/zloirock .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../node_modules/core-js-pure postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../node_modules/core-js-pure postinstall: Done .../[email protected]/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../[email protected]/node_modules/core-js postinstall: The project needs your help! Please consider supporting core-js: .../[email protected]/node_modules/core-js postinstall: > https://opencollective.com/core-js .../[email protected]/node_modules/core-js postinstall: > https://patreon.com/zloirock .../[email protected]/node_modules/core-js postinstall: > https://boosty.to/zloirock .../[email protected]/node_modules/core-js postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../[email protected]/node_modules/core-js postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../[email protected]/node_modules/core-js postinstall: Done .../[email protected]/node_modules/esbuild postinstall$ node install.js .../[email protected]/node_modules/esbuild postinstall: Done dependencies: + @changesets/cli 2.26.2 devDependencies: + @turbo/gen 1.10.13 + @types/jest 29.5.4 + eslint 7.32.0 + eslint-config-custom 0.0.0 <- packages/eslint-config-custom + husky 8.0.3 + jest 29.6.4 + prettier 3.0.3 + prettier-plugin-organize-imports 3.2.3 + ts-jest 29.1.1 + turbo 1.10.13 . prepare$ husky install . prepare: husky - Git hooks installed . prepare: Done Done in 15.1s
pnpm add --save-dev prettier -w
3/48 ✓Progress: resolved 0, reused 1, downloaded 0, added 0 Progress: resolved 110, reused 95, downloaded 0, added 0 packages/core | WARN deprecated [email protected] Progress: resolved 405, reused 359, downloaded 0, added 0 Progress: resolved 942, reused 908, downloaded 0, added 0 apps/docs | WARN deprecated [email protected] apps/docs | WARN deprecated [email protected] Progress: resolved 1727, reused 1692, downloaded 0, added 0 Progress: resolved 1736, reused 1701, downloaded 0, added 0 Already up to date Progress: resolved 1736, reused 1702, downloaded 0, added 0, done Done in 7s
pnpx prettier --write packages/core/src/tests/Node.test.ts
4/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 183ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
5/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
6/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 17, downloaded 1, added 18 Progress: resolved 19, reused 17, downloaded 2, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-195/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
7/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 201ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
8/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
9/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-295/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
10/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 190ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
11/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
12/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-395/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
13/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 189ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
14/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
15/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-494/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
16/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 188ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
17/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
18/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-595/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
19/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 182ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
20/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
21/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-694/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
22/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 186ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
23/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
24/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-793/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
25/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 200ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
26/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
27/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-892/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
28/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 199ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
29/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
30/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-991/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
31/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 187ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
32/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
33/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1090/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
34/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 200ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
35/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
36/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1189/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
37/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 197ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
38/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
39/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1288/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
40/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 180ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
41/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
42/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1388/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
43/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 195ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
44/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
45/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1487/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
pnpx prettier --write packages/core/src/tests/Node.test.ts
46/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Node.test.ts 188ms
pnpm eslint --fix packages/core/src/tests/Node.test.ts
47/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Node.test.ts
48/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: packages/core/src/tests/Node.test.ts(1,24): error TS2305: Module '"../Node"' has no exported member 'Node'. at createTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:859:12) at reportTSError (/root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:863:19) at getOutput (/root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1077:36) at Object.compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1586/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticCodes: [ 2305 ] }
packages/core/src/tests/Embedding.test.ts
✅ Commit f1fbcb6
• Write unit tests for the Embedding class. Test all the methods and ensure that they work as expected. • Mock the LLM completions and check that the data comes out in the correct format.
npm install -g pnpm
1/48 ✓changed 1 package in 3s 1 package is looking for funding run `npm fund` for details
pnpm i
2/48 ✓Scope: all 6 workspace projects Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 1720, reused 0, downloaded 30, added 15 Progress: resolved 1720, reused 0, downloaded 248, added 262 Progress: resolved 1720, reused 0, downloaded 478, added 484 Progress: resolved 1720, reused 0, downloaded 734, added 745 Progress: resolved 1720, reused 0, downloaded 785, added 793 Progress: resolved 1720, reused 0, downloaded 929, added 937 Progress: resolved 1720, reused 0, downloaded 1079, added 1086 Progress: resolved 1720, reused 0, downloaded 1277, added 1282 Progress: resolved 1720, reused 0, downloaded 1326, added 1333 Progress: resolved 1720, reused 0, downloaded 1380, added 1387 Progress: resolved 1720, reused 0, downloaded 1577, added 1591 Progress: resolved 1720, reused 0, downloaded 1702, added 1720, done .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting core-js: .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock .../node_modules/core-js-pure postinstall: > https://boosty.to/zloirock .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../node_modules/core-js-pure postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../node_modules/core-js-pure postinstall: Done .../[email protected]/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../[email protected]/node_modules/core-js postinstall: The project needs your help! Please consider supporting core-js: .../[email protected]/node_modules/core-js postinstall: > https://opencollective.com/core-js .../[email protected]/node_modules/core-js postinstall: > https://patreon.com/zloirock .../[email protected]/node_modules/core-js postinstall: > https://boosty.to/zloirock .../[email protected]/node_modules/core-js postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz .../[email protected]/node_modules/core-js postinstall: I highly recommend reading this: https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md .../[email protected]/node_modules/core-js postinstall: Done .../[email protected]/node_modules/esbuild postinstall$ node install.js .../[email protected]/node_modules/esbuild postinstall: Done dependencies: + @changesets/cli 2.26.2 devDependencies: + @turbo/gen 1.10.13 + @types/jest 29.5.4 + eslint 7.32.0 + eslint-config-custom 0.0.0 <- packages/eslint-config-custom + husky 8.0.3 + jest 29.6.4 + prettier 3.0.3 + prettier-plugin-organize-imports 3.2.3 + ts-jest 29.1.1 + turbo 1.10.13 . prepare$ husky install . prepare: husky - Git hooks installed . prepare: Done Done in 15.3s
pnpm add --save-dev prettier -w
3/48 ✓Progress: resolved 0, reused 1, downloaded 0, added 0 Progress: resolved 108, reused 100, downloaded 0, added 0 packages/core | WARN deprecated [email protected] Progress: resolved 336, reused 302, downloaded 0, added 0 Progress: resolved 796, reused 760, downloaded 0, added 0 Progress: resolved 1463, reused 1429, downloaded 0, added 0 apps/docs | WARN deprecated [email protected] apps/docs | WARN deprecated [email protected] Progress: resolved 1734, reused 1700, downloaded 0, added 0 Already up to date Progress: resolved 1736, reused 1702, downloaded 0, added 0, done Done in 7.7s
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
4/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 215ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
5/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
6/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 17, downloaded 2, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:3 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:3:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-193/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-193/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-193/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-193/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
7/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 210ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
8/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
9/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-294/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-294/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-294/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-294/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
10/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 205ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
11/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
12/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-393/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-393/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-393/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-393/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
13/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 212ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
14/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
15/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-492/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-492/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-492/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-492/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
16/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 224ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
17/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
18/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-592/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-592/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-592/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-592/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
19/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 204ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
20/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
21/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-691/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-691/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-691/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-691/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
22/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 223ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
23/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
24/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-790/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-790/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-790/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-790/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
25/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 218ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
26/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
27/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-890/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-890/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-890/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-890/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
28/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 213ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
29/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
30/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-990/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-990/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-990/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-990/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
31/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 224ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
32/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
33/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1089/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1089/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-1089/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-1089/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
34/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 200ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
35/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
36/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1188/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1188/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-1188/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-1188/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
37/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 213ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
38/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
39/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1287/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1287/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-1287/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-1287/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
40/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 223ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
41/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
42/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1385/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1385/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-1385/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-1385/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
43/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 228ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
44/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
45/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1486/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1486/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-1486/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-1486/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
pnpx prettier --write packages/core/src/tests/Embedding.test.ts
46/48 ✓Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1 + Progress: resolved 1, reused 1, downloaded 0, added 1, done packages/core/src/tests/Embedding.test.ts 233ms
pnpm eslint --fix packages/core/src/tests/Embedding.test.ts
47/48 ✓Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
pnpx ts-node --type-check packages/core/src/tests/Embedding.test.ts
48/48 ❌ (`1`)Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +19 +++++++++++++++++++ Progress: resolved 19, reused 19, downloaded 0, added 19, done /repo/packages/core/src/tests/Embedding.test.ts:4 describe("similarity", () => { ^ ReferenceError: describe is not defined at Object. (/repo/packages/core/src/tests/Embedding.test.ts:4:1) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module.m._compile (/root/.local/share/pnpm/store/v3/tmp/dlx-1585/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/store/v3/tmp/dlx-1585/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1119:32) at Function.Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at phase4 (/root/.local/share/pnpm/store/v3/tmp/dlx-1585/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:649:14) at bootstrap (/root/.local/share/pnpm/store/v3/tmp/dlx-1585/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/src/bin.ts:95:10)
In llama index python, I see that there is SimpleMongoReader. In the nodejs version, I don't see that in documentation. Can you add it? Or is there other way to use Mongo data?
packages/core/src/readers/SimpleMongoReader.ts
! No changes madepackages/core/src/tests/SimpleMongoReader.test.ts
✓ 94961e8packages/core/src/tests/SimpleMongoReader.test.ts
✗packages/core/tsconfig.json
✓ 59169d6packages/core/tsconfig.json
✗.eslintrc.json
! No changes madepackages/core/tsconfig.json
✗packages/core/src/tests/SimpleMongoReader.test.ts
✗I created a new app with npx create-llama
edited route.ts
to use the below:
const llm = new LlamaDeuce({
model: "Llama-2-70b-chat-4bit",
});
But seeing the error:
[LlamaIndex] Error: Set Replicate token in REPLICATE_API_TOKEN env variable
at new ReplicateSession (/private/tmp/specsplain/node_modules/llamaindex/dist/index.js:1478:13)
at new LlamaDeuce (/private/tmp/specsplain/node_modules/llamaindex/dist/index.js:1733:97)
at POST (webpack-internal:///(rsc)/./app/api/chat/route.ts:32:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /private/tmp/specsplain/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:62499
REPLICATE_API_TOKEN
is a must to load llama
? The doc doesn't mention it.
It would be great if we could use the Ollama models in the typescript version similar to how we can in the python library
packages/core/src/llm/OllamaModel.ts
✓ fd07772packages/core/src/llm/OllamaModel.ts
✗packages/core/src/llm/OllamaModel.ts
✓ 9170535packages/core/src/llm/OllamaModel.ts
✗packages/core/src/llm/OllamaModel.ts
✗packages/core/src/llm/LLM.ts
✓ cfe834fpackages/core/src/llm/LLM.ts
✗package.json
✓ 4c3d153package.json
✗package.json
✓ ac648b1package.json
✗package.json
✗packages/core/src/llm/LLM.ts
✗packages/core/src/llm/index.ts
✓ 500cda8packages/core/src/llm/index.ts
✗A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.