Skip to content

Commit 7088d6c

Browse files
refactor: consolidate apps/ai into apps/api (#3852)
Co-authored-by: yujonglee <yujonglee.dev@gmail.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 435a647 commit 7088d6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+646
-4259
lines changed

.github/workflows/ai_cd.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/ai_ci.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/api_cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
2222
deploy:
2323
needs: compute-version
24-
runs-on: depot-ubuntu-24.04-8
24+
runs-on: ubuntu-latest
2525
timeout-minutes: 60
2626
concurrency: api-fly-deploy
2727
steps:
2828
- uses: actions/checkout@v4
2929
- uses: superfly/flyctl-actions/setup-flyctl@master
30-
- run: flyctl deploy --config apps/api/fly.toml --dockerfile apps/api/Dockerfile --remote-only -e APP_VERSION=${{ needs.compute-version.outputs.version }}
30+
- run: flyctl deploy --config apps/api/fly.ai.toml --dockerfile apps/api/Dockerfile --remote-only --build-arg APP_VERSION=${{ needs.compute-version.outputs.version }}
3131
env:
3232
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
3333

.github/workflows/api_ci.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ on:
55
- main
66
paths:
77
- apps/api/**
8+
- crates/llm-proxy/**
9+
- crates/transcribe-proxy/**
810
pull_request:
911
branches-ignore:
1012
- "**/graphite-base/**"
1113
paths:
1214
- apps/api/**
15+
- crates/llm-proxy/**
16+
- crates/transcribe-proxy/**
1317
jobs:
1418
optimize_ci:
1519
runs-on: ubuntu-latest
@@ -28,13 +32,7 @@ jobs:
2832
runs-on: ubuntu-latest
2933
steps:
3034
- uses: actions/checkout@v4
31-
- uses: ./.github/actions/pnpm_install
32-
- uses: ./.github/actions/bun_install
33-
- run: pnpm -F @hypr/api typecheck
34-
- name: Run tests if they exist
35-
run: |
36-
if find apps/api/src -name "*.test.ts" -o -name "*.spec.ts" | grep -q .; then
37-
pnpm -F @hypr/api test
38-
else
39-
echo "No test files found, skipping tests"
40-
fi
35+
- uses: ./.github/actions/rust_install
36+
with:
37+
platform: linux
38+
- run: cargo check -p api

.github/workflows/k6.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/stripe_backfill.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

Cargo.lock

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ debug = false
1010
[workspace]
1111
resolver = "2"
1212
members = [
13-
"apps/ai",
13+
"apps/api",
1414
"apps/desktop/src-tauri",
1515
"apps/eval-cli",
1616
"apps/granola",

Taskfile.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ dotenv: [".env"]
33
includes:
44
web:
55
taskfile: ./apps/web
6-
api:
7-
taskfile: ./apps/api
86

97
tasks:
108
py:init: POETRY_VIRTUALENVS_IN_PROJECT=true poetry install --no-cache --no-interaction --all-extras

apps/ai/AGENTS.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)