Skip to content
Snippets Groups Projects
Commit fd34c947 authored by thucpn's avatar thucpn
Browse files

remove @llamaindex/server

parent f039b873
No related branches found
No related tags found
No related merge requests found
{
"name": "@llamaindex/server",
"description": "LlamaIndex Server",
"version": "0.0.1",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/run-llama/LlamaIndexTS.git",
"directory": "packages/server"
},
"scripts": {
"build": "bunchee",
"dev": "bunchee --watch",
"test": "vitest run"
},
"devDependencies": {
"bunchee": "6.4.0",
"vitest": "^2.1.5",
"@types/node": "^22.9.0"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*"
}
}
export { LlamaIndexServer } from "./server.js";
import express, { Express } from "express";
export interface LlamaIndexServerConfig {
modules?: LlamaIndexServerModule[];
storage?: StorageService;
}
/**
* Goal:
* - user can get the whole server instance to run (express server)
* - user can get controllers and add to their current router
* - provide adapter to route handlers in Nextjs able to use it also
* - by default, we provide chat module, user can config addOn to use LlamaCloud, Sandbox, etc.
* - by default, we use filesystem storage, user can config to use other storage
*/
export class LlamaIndexServer {
app: Express;
constructor() {
this.app = express();
}
}
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/type",
"tsBuildInfoFile": "./dist/.tsbuildinfo",
"emitDeclarationOnly": true,
"moduleResolution": "Bundler",
"skipLibCheck": true,
"strict": true,
"types": ["node"]
},
"include": ["./src"],
"exclude": ["node_modules"]
}
......@@ -1712,25 +1712,6 @@ importers:
specifier: ^13.4.8
version: 13.4.8
 
packages/server:
dependencies:
'@llamaindex/core':
specifier: workspace:*
version: link:../core
'@llamaindex/env':
specifier: workspace:*
version: link:../env
devDependencies:
'@types/node':
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.4.0
version: 6.4.0(typescript@5.7.3)
vitest:
specifier: ^2.1.5
version: 2.1.5(@edge-runtime/vm@4.0.4)(@types/node@22.9.0)(happy-dom@15.11.7)(lightningcss@1.29.1)(msw@2.7.0(@types/node@22.9.0)(typescript@5.7.3))(terser@5.38.2)
packages/tools:
dependencies:
'@apidevtools/swagger-parser':
......
......@@ -191,9 +191,6 @@
{
"path": "./packages/providers/perplexity/tsconfig.json"
},
{
"path": "./packages/server/tsconfig.json"
},
{
"path": "./packages/tools/tsconfig.json"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment