GithubHelp home page GithubHelp logo

run-llama / llamaindexts Goto Github PK

View Code? Open in Web Editor NEW
1.8K 18.0 343.0 69.29 MB

LlamaIndex in TypeScript

Home Page: https://ts.llamaindex.ai

License: MIT License

JavaScript 8.88% TypeScript 84.71% CSS 0.55% MDX 5.86%
agent anthr chatbot claude claude-ai embedding firewo groq-ai javascript llama

llamaindexts's People

Contributors

ajamjoom avatar disiok avatar emanuelcampos avatar ezirmusitua avatar github-actions[bot] avatar hexapode avatar himself65 avatar jerryjliu avatar kindofascam avatar kkang2097 avatar leehuwuj avatar logan-markewich avatar marcusschiesser avatar metonym avatar mfortman11 avatar noble-varghese avatar parhammmm avatar petergoldstein avatar pserrer1 avatar seldo avatar sourabhdesai avatar stmtk1 avatar sweep-ai[bot] avatar swimburger avatar swk777 avatar thucpn avatar tompenguin avatar turbobot-temp avatar tyre avatar yisding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

llamaindexts's Issues

Question - JSON Support

Details

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,

Checklist
  • 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.

Missing source node from TextNode

Details

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);
Checklist
  • 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.

Sweep: Adding metadata when loading documents from JSON

Details

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.

Thx!
Screenshot 2023-08-18 at 14 03 01

Checklist
  • 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 the load 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 their metadata 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 and getNodes 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.

Sweep: Add LLM and Embeddings for gradient.ai

Details

In LlamaIndex we have https://gradient.ai integration for LLM and Embeddings.

https://github.com/run-llama/llama_index/blob/8043613e0aadcb6d5fffd4f1dc466f911088ac73/llama_index/llms/gradient.py

Would it be possible to add gradient.ai in llamaindexTS?

Checklist
  • Create packages/core/src/llm/gradient.ts237b631
  • Check packages/core/src/llm/gradient.ts
  • Create CI/CD configuration file8c9493f
  • Check CI/CD configuration file
  • Modify CI/CD configuration file ! No changes made
  • Check CI/CD configuration file
  • Check packages/core/src/llm/gradient.ts
  • Modify packages/core/src/llm/LLM.tsc3e0782
  • Check packages/core/src/llm/LLM.ts
  • Modify packages/core/src/llm/LLM.tsbb969e5
  • Check packages/core/src/llm/LLM.ts
  • Check packages/core/src/llm/LLM.ts

Flowchart

create-llama fastapi workflow not reading .env correctly....

Details

i'm following the workflow:

image

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
******

Checklist
  • Modify packages/create-llama/templates/types/streaming/fastapi/main.py55ecaaf
  • Modify packages/create-llama/templates/types/simple/fastapi/main.pye1be338

Flowchart

Sweep: Missing evaluation method to verify response

Details

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

Checklist
  • Create packages/core/src/ResponseEvaluator.ts60d0864
  • Check packages/core/src/ResponseEvaluator.ts
  • Modify CONTRIBUTING.md96a7ed1
  • Check CONTRIBUTING.md
  • Create CI/CD configuration file6b83163
  • Check CI/CD configuration file
  • Modify CI/CD configuration file ! No changes made
  • Check CI/CD configuration file
  • Check CONTRIBUTING.md
  • Check packages/core/src/ResponseEvaluator.ts
  • Create packages/core/src/QueryResponseEvaluator.ts06a7a6b
  • Check packages/core/src/QueryResponseEvaluator.ts
  • Modify CONTRIBUTING.mdc1c1910
  • Check CONTRIBUTING.md
  • Modify CI/CD configuration filecdc129a
  • Check CI/CD configuration file
  • Modify CI/CD configuration file2102442
  • Check CI/CD configuration file
  • Check CI/CD configuration file
  • Check CONTRIBUTING.md
  • Check packages/core/src/QueryResponseEvaluator.ts
  • Modify packages/core/src/QueryEngine.ts

Flowchart

Sweep [create-lamma]: npm run start fails?

Details

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'
}
Checklist
  • Modify packages/create-llama/README.md3203aad

Flowchart

Documentation Links

Details

Some of the links in the documentation https://ts.llamaindex.ai/ referencing not found. For example for class VectorStoreIndex.

Checklist
  • 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.
Sandbox Execution Logs
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

Broken Link to Summary Index in end_to_end.md: Typo Correction Needed

Details

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

Checklist
  • 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.

Sweep: [create-lamma] [pnpm] Error: Set OpenAI Key in OPENAI_API_KEY env variable

Details

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

  • It looks like the .env.local file was created with my API key
  • Tried to cd into the directory and run pnpm run generate but I get the same error
  • npm 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.
Checklist
  • Modify packages/create-llama/templates/index.tsbce1694

Flowchart

Default context window is used rather max model context window

Details

No response

Checklist
  • 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.

Sweep: RuntimeError: There is no current event loop in thread 'ScriptRunner.scriptThread'.

Details

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.'

Checklist
  • 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()

Loading indicator for chatbot

Details

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.

Checklist
  • Modify packages/create-llama/templates/types/streaming/nextjs/app/components/chat-section.tsxf4d3d81
  • Check packages/create-llama/templates/types/streaming/nextjs/app/components/chat-section.tsx
  • Modify packages/create-llama/package.json ! No changes made
  • Check packages/create-llama/templates/types/streaming/nextjs/app/components/chat-section.tsx

Flowchart

Add Azure OpenAI as a provider to create-llama

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.

Sweep: OpenAIEmbedding Fails to Retrieve Session from Parameters When Not Using Azure

Details

OpenAIEmbedding Fails to Retrieve Session from Parameters When Not Using Azure
SCR-20230814-j4y

Checklist
  • 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.

`Cannot initialize index with both indexStruct and indexStore` when implementing basic demo

Details

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
  }
}
281199161-11c40670-d82d-499a-9883-821f5ac222ad
Checklist
  • Modify packages/core/src/indices/vectorStore/VectorStoreIndex.ts49574cb

Flowchart

Testing for LITS discussion

Here's what I think about testing existing and new abstractions in LlamaIndex. The outline is as follows:

  • Definition: What is LlamaIndex, what does it do
  • Requirements: What needs to happen for this to work
  • Testing: Things/how we can test
  • Action Steps

Definition: What is LlamaIndex?

As a SDK, LlamaIndex is a collection of clever abstractions built over specific prompts.

Requirements

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.

Do the prompts work?

Prompts serve as the foundation for our abstractions so we need to make them rock-solid. What does that mean?

  • Guaranteed Types Given a Prompt
    • Each prompt, when fed into a LLM and parsed, should be able to almost-guarantee a valid object that is castable to our DesiredType.
    • For example: parse( LLM completion given Prompt A ) -> (object or object[] is DesiredType)
    • LlamaIndex example: parse( LLM completion given MultiSelectionPrompt ) -> (object[] is Selection[])
  • Decent Coverage across mainstream LLMs
    • OpenAI, Llama2, etc.

Do the abstractions work?

Abstractions in LlamaIndex may seem confusing, but they can be boiled down to 4 different categories:

  • Integrations
  • Utility (manipulates data, no LLM or DB connection needed)
  • Prompt wrappers (Abstractions that take prompt output and give you a nice format, LLM connection needed)
  • Abstraction Engines (Handle interactions between multiple component abstractions)

Let's call them Type 1,2,3,4 respectively.

Type 1 examples:

  • VectorStores/DocumentStores
  • Readers

Type 2 examples:

  • Parser
  • Node
  • Embedding
  • Response
  • Textsplitter

Type 3 examples:

  • Selector
  • ResponseSynthesizer/Summarizer
  • Question/Subquestion generator
  • Retriever (only if it's LLM-based)

Type 4 examples:

  • Chat Engine
  • Query Engine

Testing: How do we test these abstractions?

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

Types of Tests We Should Have

  • Integration Tests: run occasionally, it's usually an exercise for the contributor to write robust code.
  • Benchmark Tests: battle testing prompts so that they can be reasonably robust, run rarely
  • Unit Tests: run every commit

Action Steps

In Progress

  • PR on caching LLM responses for integration testing

Sweep: Cannot initialize VectorStoreIndex on examples

Details

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?

Sweep: Summarize chat history

Details

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.

Checklist
  • packages/core/src/ChatEngine.ts

• Add a new property chatHistorySummarizer to the ChatEngine interface. This property should be an instance of a new interface ChatHistorySummarizer that we will define. The ChatHistorySummarizer interface should have a method summarize that takes a chat history and returns a summarized chat history.
• In the chat method of each ChatEngine implementation, check if the size of the chat history exceeds a certain threshold. If it does, use the chatHistorySummarizer 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 the ChatHistorySummarizer.

  • packages/core/src/llm/LLM.ts

• In the chat method of each LLM implementation, check if the chat history is a summarized chat history. If it is, handle it appropriately.

Incompatible file name

Details

The default filename for docstore file is docstore.json in the Python module. In this repo it's doc_store.json.

Checklist
  • 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"`.
Sandbox Execution Logs
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

Sweep: did the pptx loader and query supported ? if yes i can't see it in the docs

Details

No response

Checklist
  • 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.

Sweep: [create-lamma] allow model selection on CLI

Details

❯ 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.

Checklist
  • Modify packages/create-llama/create-app.ts6c2fc21
  • Check packages/create-llama/create-app.ts
  • Modify packages/create-llama/package.json ! No changes made
  • Check packages/create-llama/create-app.ts
  • Modify packages/create-llama/index.ts962126b
  • Check packages/create-llama/index.ts
  • Modify packages/create-llama/package.jsonf8eecbe
  • Check packages/create-llama/package.json
  • Modify packages/create-llama/package.jsonaf12adb
  • Check packages/create-llama/package.json
  • Check packages/create-llama/package.json
  • Check packages/create-llama/index.ts
  • Modify packages/create-llama/README.mde6a0c54
  • Check packages/create-llama/README.md
  • Modify packages/create-llama/package.json02c34ba
  • Check packages/create-llama/README.md
  • Modify packages/create-llama/package.json ! No changes made
  • Check packages/create-llama/README.md
  • Modify packages/create-llama/CHANGELOG.md0266c3d

Flowchart

Vercel Edge Runtime does not support WASM modules

Details

Need 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'
}

Checklist
  • apps/docs/docs/environments.md ✅ Commit 8b5725b
  • README.md ✅ Commit 0577bd2
  • packages/eslint-config-custom/package.json ✅ Commit 8128b6a
  • src/api/v1/llamaIndex/route.ts ✅ Commit 4853a74

Sweep: Cannot install dependencies using pnpm

Details

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?

Checklist
  • Modify CONTRIBUTING.md3f46953
  • Check CONTRIBUTING.md
  • Create CI/CD configuration file898c828
  • Check CI/CD configuration file
  • Create .github/workflows/ci.ymla1f2247
  • Check .github/workflows/ci.yml
  • Modify .github/workflows/ci.yml179ce39
  • Check .github/workflows/ci.yml
  • Check .github/workflows/ci.yml
  • Check CI/CD configuration file
  • Check CONTRIBUTING.md

Flowchart

MongoDocumentStore on LlamaIndexTS

Details

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

Checklist

Rate Limit Error with OPENAI_API_KEY

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] }

Sweep: Stream OpenAI responses

Details

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?

Checklist
  • 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.

Support for external data stores?

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.

MongoDocumentStore on TS

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

.

Details

No response

Trying to create a VectorStoreIndex from an already created VectorStore

Details

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

image

image

if I use "fromPersistPath", the error changes

image

image

Checklist
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ✅ Commit 32a482d
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ✅ Sandbox ran successfully
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ✅ Sandbox ran successfully
  • packages/core/src/indices/vectorStore/VectorStoreIndex.ts ✅ Sandbox ran successfully
  • apps/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 changes
  • packages/core/src/storage/vectorStore/SimpleVectorStore.ts ✅ Commit b8e6441
  • packages/core/src/storage/vectorStore/SimpleVectorStore.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/storage/vectorStore/SimpleVectorStore.ts ✅ Sandbox ran successfully

Flowchart

Sweep: support for llm python-llama-cpp or text generation inference

Details

Hi guys great work.

I was looking if you are going to support connector for:

Edit: is any example to look at?

Checklist
  • 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

  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

</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

  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

</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, and OobaTextGeneration 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

  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

</details>

</details>

• Add a new section "Supported APIs" and list the new APIs along with a brief description of each.

[create-llama] Backend readme doesn't mention need to export env file before running

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.

Sweep: example for how can I use CondenseQuestionChatEngine?

Details

No response

Checklist
  • Create apps/simple/condenseQuestionChatEngineExample.ts92a470a
  • Check apps/simple/condenseQuestionChatEngineExample.ts
  • Modify apps/simple/condenseQuestionChatEngineExample.tsa8ba11b
  • Check apps/simple/condenseQuestionChatEngineExample.ts
  • Modify apps/simple/condenseQuestionChatEngineExample.tsc5c6c8f
  • Check apps/simple/condenseQuestionChatEngineExample.ts
  • Modify apps/simple/condenseQuestionChatEngineExample.ts0c9ff40
  • Check apps/simple/condenseQuestionChatEngineExample.ts
  • Check apps/simple/condenseQuestionChatEngineExample.ts
  • Check apps/simple/condenseQuestionChatEngineExample.ts
  • Check apps/simple/condenseQuestionChatEngineExample.ts

Flowchart

Sweep: Add support for Ollama

Details

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

Checklist
  • packages/core/src/llm/Ollama.ts ✅ Commit 52d94d4
  • packages/core/src/llm/Ollama.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/llm/Ollama.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/llm/Ollama.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/llm/Ollama.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/llm/Ollama.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/llm/LLM.ts ✅ Commit 8675a14
  • packages/core/src/llm/LLM.ts ❌ Sandbox failed so I made additional changes
  • packages/core/src/tests/Ollama.test.ts

Flowchart

Testing for LITS

Details

After quite a bit of thought, here's what I think about testing existing and new abstractions in LlamaIndex.

What is LlamaIndex?

As a SDK, LlamaIndex is a collection of clever abstractions built over specific prompts.

Requirements

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.

Do the prompts work?

Prompts serve as the foundation for our abstractions so we need to make them rock-solid. What does that mean?

  • Guaranteed Types Given a Prompt
    • Each prompt, when fed into a LLM and parsed, should be able to almost-guarantee a valid object that is castable to our DesiredType.
    • For example: parse( LLM completion given Prompt A ) -> (object or object[] is DesiredType)
    • LlamaIndex example: parse( LLM completion given MultiSelectionPrompt ) -> (object[] is Selection[])
  • Decent Coverage across mainstream LLMs
    • OpenAI, Llama2, etc.

Do the abstractions work?

Abstractions in LlamaIndex may seem confusing, but they can be boiled down to 4 different categories:

  • Integrations
  • Utility (manipulates data, no LLM or DB connection needed)
  • Prompt wrappers (Abstractions that take prompt output and give you a nice format, LLM connection needed)
  • Abstraction Engines (Handle interactions between multiple component abstractions)

Let's call them Type 1,2,3,4 respectively.

Type 1 examples:

  • VectorStores/DocumentStores
  • Readers

Type 2 examples:

  • Parser
  • Node
  • Embedding
  • Response
  • Textsplitter

Type 3 examples:

  • Selector
  • ResponseSynthesizer/Summarizer
  • Question/Subquestion generator
  • Retriever (only if it's LLM-based)

Type 4 examples:

  • Chat Engine
  • Query Engine

How do we test these abstractions?

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

Types of Tests We Should Have

  • Integration Tests
  • Benchmark Tests
  • Unit Tests

Immediate Action Steps

  • Write unit tests for Selector & RouterQueryEngine

Future Action Steps

  • Scale this out and make a robust standard for creating new LlamaIndex abstractions
Checklist
  • 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.
Sandbox Execution Logs
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.
Sandbox Execution Logs
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.
Sandbox Execution Logs
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.
Sandbox Execution Logs
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)

Sweep: Request the SimpleMongoReader

Details

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?

Checklist
  • Modify packages/core/src/readers/SimpleMongoReader.ts ! No changes made
  • Create packages/core/src/tests/SimpleMongoReader.test.ts94961e8
  • Check packages/core/src/tests/SimpleMongoReader.test.ts
  • Modify packages/core/tsconfig.json59169d6
  • Check packages/core/tsconfig.json
  • Modify .eslintrc.json ! No changes made
  • Check packages/core/tsconfig.json
  • Check packages/core/src/tests/SimpleMongoReader.test.ts

Flowchart

Sweep: [create-lamma] REPLICATE_API_TOKEN required?

Details

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.

Checklist
  • Modify packages/create-llama/templates/types/simple/nextjs/app/api/chat/route.ts7a9ca3d
  • Modify packages/create-llama/README.md41ed301

Flowchart

Support Ollama custom models

Details

It would be great if we could use the Ollama models in the typescript version similar to how we can in the python library

Checklist
  • Create packages/core/src/llm/OllamaModel.tsfd07772
  • Check packages/core/src/llm/OllamaModel.ts
  • Modify packages/core/src/llm/OllamaModel.ts9170535
  • Check packages/core/src/llm/OllamaModel.ts
  • Check packages/core/src/llm/OllamaModel.ts
  • Modify packages/core/src/llm/LLM.tscfe834f
  • Check packages/core/src/llm/LLM.ts
  • Modify package.json4c3d153
  • Check package.json
  • Modify package.jsonac648b1
  • Check package.json
  • Check package.json
  • Check packages/core/src/llm/LLM.ts
  • Create packages/core/src/llm/index.ts500cda8
  • Check packages/core/src/llm/index.ts

Flowchart

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.