Skip to content

Commit 6fb944b

Browse files
committed
remove package/server from configs & update CI
1 parent 43c4cfb commit 6fb944b

File tree

8 files changed

+3
-61
lines changed

8 files changed

+3
-61
lines changed

.github/workflows/e2e.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,6 @@ jobs:
123123
run: pnpm run pack-install
124124
working-directory: packages/create-llama
125125

126-
- name: Build server
127-
run: pnpm run build
128-
working-directory: packages/server
129-
130-
- name: Pack @llamaindex/server package
131-
run: |
132-
pnpm pack --pack-destination "${{ runner.temp }}"
133-
if [ "${{ runner.os }}" == "Windows" ]; then
134-
file=$(find "${{ runner.temp }}" -name "llamaindex-server-*.tgz" | head -n 1)
135-
mv "$file" "${{ runner.temp }}/llamaindex-server.tgz"
136-
else
137-
mv ${{ runner.temp }}/llamaindex-server-*.tgz ${{ runner.temp }}/llamaindex-server.tgz
138-
fi
139-
working-directory: packages/server
140-
141126
- name: Run Playwright tests for TypeScript
142127
run: |
143128
pnpm run e2e:ts
@@ -146,7 +131,6 @@ jobs:
146131
LLAMA_CLOUD_API_KEY: ${{ secrets.LLAMA_CLOUD_API_KEY }}
147132
FRAMEWORK: ${{ matrix.frameworks }}
148133
VECTORDB: ${{ matrix.vectordbs }}
149-
SERVER_PACKAGE_PATH: ${{ runner.temp }}/llamaindex-server.tgz
150134
working-directory: packages/create-llama
151135

152136
- uses: actions/upload-artifact@v4

.github/workflows/lint_on_push_or_pull.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ jobs:
4444
- name: Run build
4545
run: pnpm run build
4646

47-
- name: Run Typecheck for examples
48-
run: pnpm run typecheck
49-
working-directory: packages/server/examples
50-
5147
- name: Run Python format check
5248
uses: chartboost/ruff-action@v1
5349
with:

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ cache/
66
build/
77
.next/
88
out/
9-
packages/server/server/
10-
packages/server/project/
119
**/playwright-report/
1210
**/test-results/
1311

CLAUDE.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Create-llama is a monorepo containing CLI tools and server frameworks for buildi
1111
### Monorepo Structure
1212

1313
- **`packages/create-llama/`**: Main CLI tool for scaffolding LlamaIndex applications
14-
- **`packages/server/`**: TypeScript/Next.js server framework (`@llamaindex/server`)
1514
- **`python/llama-index-server/`**: Python/FastAPI server framework
1615
- **Root**: Workspace configuration and shared development tools
1716

@@ -44,15 +43,6 @@ npm run e2e # Playwright tests for generated projects
4443
npm run clean # Clean build artifacts and template caches
4544
```
4645

47-
### TypeScript Server Package
48-
49-
```bash
50-
cd packages/server
51-
pnpm dev # Watch mode with bunchee
52-
pnpm build # Multi-step build: ESM/CJS + Next.js + static assets
53-
pnpm clean # Clean all build outputs
54-
```
55-
5646
### Python Server Package
5747

5848
```bash

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ non-interactively. For a list of the latest options, call `create-llama --help`.
111111
112112
The generated code is using the LlamaIndex Server, which serves LlamaIndex Workflows and Agent Workflows via an API server. See the following docs for more information:
113113
114-
- [LlamaIndex Server For TypeScript](./packages/server/README.md)
114+
- [LlamaIndex Server For TypeScript](https://github.com/run-llama/chat-ui/tree/main/packages/server)
115115
- [LlamaIndex Server For Python](./python/llama-index-server/README.md)
116116
117117
Inspired by and adapted from [create-next-app](https://github.com/vercel/next.js/tree/canary/packages/create-next-app)

eslint.config.mjs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@ export default tseslint.config(
3131
"@typescript-eslint/ban-ts-comment": "off",
3232
},
3333
},
34-
{
35-
files: ["packages/server/**"],
36-
rules: {
37-
"no-irregular-whitespace": "off",
38-
"@typescript-eslint/no-unused-vars": "off",
39-
"@typescript-eslint/no-explicit-any": [
40-
"error",
41-
{
42-
ignoreRestArgs: true,
43-
},
44-
],
45-
},
46-
},
4734
{
4835
ignores: [
4936
"python/**",
@@ -57,9 +44,6 @@ export default tseslint.config(
5744
"**/out/**",
5845
"**/node_modules/**",
5946
"**/build/**",
60-
"packages/server/server/**",
61-
"packages/server/project/**",
62-
"packages/server/bin/**",
6347
],
6448
},
6549
);

packages/create-llama/helpers/typescript.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +258,6 @@ async function updatePackageJson({
258258
};
259259
}
260260

261-
// if having custom server package tgz file, use it for testing @llamaindex/server
262-
const serverPackagePath = process.env.SERVER_PACKAGE_PATH;
263-
if (serverPackagePath) {
264-
const relativePath = path.relative(process.cwd(), serverPackagePath);
265-
packageJson.dependencies = {
266-
...packageJson.dependencies,
267-
"@llamaindex/server": `file:${relativePath}`,
268-
};
269-
}
270-
271261
await fs.writeFile(
272262
packageJsonFile,
273263
JSON.stringify(packageJson, null, 2) + os.EOL,

packages/create-llama/templates/components/use-cases/typescript/hitl/README-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The human-in-the-loop approach used here is based on a simple idea: the workflow
4242

4343
To do this, you will need to implement two custom events:
4444

45-
- [HumanInputEvent](https://github.com/run-llama/create-llama/blob/main/packages/server/src/utils/hitl/events.ts): This event is used to request input from the user.
46-
- [HumanResponseEvent](https://github.com/run-llama/create-llama/blob/main/packages/server/src/utils/hitl/events.ts): This event is sent to the workflow to resume execution with input from the user.
45+
- [HumanInputEvent](https://github.com/run-llama/chat-ui/tree/main/packages/server/src/utils/hitl/events.ts): This event is used to request input from the user.
46+
- [HumanResponseEvent](https://github.com/run-llama/chat-ui/tree/main/packages/server/src/utils/hitl/events.ts): This event is sent to the workflow to resume execution with input from the user.
4747

4848
In this example, we have implemented these two custom events in [`events.ts`](src/app/events.ts):
4949

0 commit comments

Comments
 (0)