chore: move src/llama_stack/ui to src/llama_stack_ui (#4068)

# What does this PR do?
This better separates UI from backend code, which was a point of
confusion often for our beloved AI friends.


## Test Plan
CI
This commit is contained in:
ehhuang 2025-11-04 15:21:49 -08:00 committed by GitHub
parent 5850e3473f
commit 95b0493fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
156 changed files with 20 additions and 20 deletions

View file

@ -5,7 +5,7 @@ omit =
*/llama_stack/templates/* */llama_stack/templates/*
.venv/* .venv/*
*/llama_stack/cli/scripts/* */llama_stack/cli/scripts/*
*/llama_stack/ui/* */llama_stack_ui/*
*/llama_stack/distribution/ui/* */llama_stack/distribution/ui/*
*/llama_stack/strong_typing/* */llama_stack/strong_typing/*
*/llama_stack/env.py */llama_stack/env.py

View file

@ -22,7 +22,7 @@ updates:
prefix: chore(python-deps) prefix: chore(python-deps)
- package-ecosystem: npm - package-ecosystem: npm
directory: "/llama_stack/ui" directory: "/llama_stack_ui"
schedule: schedule:
interval: "weekly" interval: "weekly"
day: "saturday" day: "saturday"

View file

@ -14,7 +14,7 @@ on:
paths: paths:
- 'distributions/**' - 'distributions/**'
- 'src/llama_stack/**' - 'src/llama_stack/**'
- '!src/llama_stack/ui/**' - '!src/llama_stack_ui/**'
- 'tests/integration/**' - 'tests/integration/**'
- 'uv.lock' - 'uv.lock'
- 'pyproject.toml' - 'pyproject.toml'

View file

@ -14,7 +14,7 @@ on:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
paths: paths:
- 'src/llama_stack/**' - 'src/llama_stack/**'
- '!src/llama_stack/ui/**' - '!src/llama_stack_ui/**'
- 'tests/**' - 'tests/**'
- 'uv.lock' - 'uv.lock'
- 'pyproject.toml' - 'pyproject.toml'

View file

@ -13,7 +13,7 @@ on:
- 'release-[0-9]+.[0-9]+.x' - 'release-[0-9]+.[0-9]+.x'
paths: paths:
- 'src/llama_stack/**' - 'src/llama_stack/**'
- '!src/llama_stack/ui/**' - '!src/llama_stack_ui/**'
- 'tests/integration/vector_io/**' - 'tests/integration/vector_io/**'
- 'uv.lock' - 'uv.lock'
- 'pyproject.toml' - 'pyproject.toml'

View file

@ -43,14 +43,14 @@ jobs:
with: with:
node-version: '20' node-version: '20'
cache: 'npm' cache: 'npm'
cache-dependency-path: 'src/llama_stack/ui/' cache-dependency-path: 'src/llama_stack_ui/'
- name: Set up uv - name: Set up uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2 uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
- name: Install npm dependencies - name: Install npm dependencies
run: npm ci run: npm ci
working-directory: src/llama_stack/ui working-directory: src/llama_stack_ui
- name: Install pre-commit - name: Install pre-commit
run: python -m pip install pre-commit run: python -m pip install pre-commit

View file

@ -10,7 +10,7 @@ on:
branches: branches:
- main - main
paths-ignore: paths-ignore:
- 'src/llama_stack/ui/**' - 'src/llama_stack_ui/**'
jobs: jobs:
build: build:

View file

@ -9,7 +9,7 @@ on:
branches: [ main ] branches: [ main ]
paths: paths:
- 'src/llama_stack/**' - 'src/llama_stack/**'
- '!src/llama_stack/ui/**' - '!src/llama_stack_ui/**'
- 'tests/integration/**' - 'tests/integration/**'
- 'uv.lock' - 'uv.lock'
- 'pyproject.toml' - 'pyproject.toml'

View file

@ -8,7 +8,7 @@ on:
pull_request: pull_request:
branches: [ main ] branches: [ main ]
paths: paths:
- 'src/llama_stack/ui/**' - 'src/llama_stack_ui/**'
- '.github/workflows/ui-unit-tests.yml' # This workflow - '.github/workflows/ui-unit-tests.yml' # This workflow
workflow_dispatch: workflow_dispatch:
@ -33,22 +33,22 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
cache-dependency-path: 'src/llama_stack/ui/package-lock.json' cache-dependency-path: 'src/llama_stack_ui/package-lock.json'
- name: Install dependencies - name: Install dependencies
working-directory: src/llama_stack/ui working-directory: src/llama_stack_ui
run: npm ci run: npm ci
- name: Run linting - name: Run linting
working-directory: src/llama_stack/ui working-directory: src/llama_stack_ui
run: npm run lint run: npm run lint
- name: Run format check - name: Run format check
working-directory: src/llama_stack/ui working-directory: src/llama_stack_ui
run: npm run format:check run: npm run format:check
- name: Run unit tests - name: Run unit tests
working-directory: src/llama_stack/ui working-directory: src/llama_stack_ui
env: env:
CI: true CI: true

View file

@ -13,7 +13,7 @@ on:
- 'release-[0-9]+.[0-9]+.x' - 'release-[0-9]+.[0-9]+.x'
paths: paths:
- 'src/llama_stack/**' - 'src/llama_stack/**'
- '!src/llama_stack/ui/**' - '!src/llama_stack_ui/**'
- 'tests/unit/**' - 'tests/unit/**'
- 'uv.lock' - 'uv.lock'
- 'pyproject.toml' - 'pyproject.toml'

View file

@ -161,7 +161,7 @@ repos:
name: Format & Lint UI name: Format & Lint UI
entry: bash ./scripts/run-ui-linter.sh entry: bash ./scripts/run-ui-linter.sh
language: system language: system
files: ^src/llama_stack/ui/.*\.(ts|tsx)$ files: ^src/llama_stack_ui/.*\.(ts|tsx)$
pass_filenames: false pass_filenames: false
require_serial: true require_serial: true

View file

@ -44,7 +44,7 @@ spec:
# Navigate to the UI directory # Navigate to the UI directory
echo "Navigating to UI directory..." echo "Navigating to UI directory..."
cd /app/llama_stack/ui cd /app/llama_stack_ui
# Check if package.json exists # Check if package.json exists
if [ ! -f "package.json" ]; then if [ ! -f "package.json" ]; then

View file

@ -6,7 +6,7 @@
# the root directory of this source tree. # the root directory of this source tree.
set -e set -e
cd src/llama_stack/ui cd src/llama_stack_ui
if [ ! -d node_modules ] || [ ! -x node_modules/.bin/prettier ] || [ ! -x node_modules/.bin/eslint ]; then if [ ! -d node_modules ] || [ ! -x node_modules/.bin/prettier ] || [ ! -x node_modules/.bin/eslint ]; then
echo "UI dependencies not installed, skipping prettier/linter check" echo "UI dependencies not installed, skipping prettier/linter check"

View file

@ -253,7 +253,7 @@ class StackRun(Subcommand):
) )
return return
ui_dir = REPO_ROOT / "llama_stack" / "ui" ui_dir = REPO_ROOT / "llama_stack_ui"
logs_dir = Path("~/.llama/ui/logs").expanduser() logs_dir = Path("~/.llama/ui/logs").expanduser()
try: try:
# Create logs directory if it doesn't exist # Create logs directory if it doesn't exist

Some files were not shown because too many files have changed in this diff Show more