Skip to content

Commit ef67f6f

Browse files
author
ComputelessComputer
committed
restructure repository into apps/tui and apps/web monorepo
1 parent 653c749 commit ef67f6f

34 files changed

Lines changed: 3503 additions & 30 deletions

.github/workflows/ci.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- 'src/**'
8-
- 'Cargo.toml'
9-
- 'Cargo.lock'
7+
- 'apps/tui/src/**'
8+
- 'apps/tui/Cargo.toml'
9+
- 'apps/tui/Cargo.lock'
1010
- '.github/workflows/ci.yml'
1111
pull_request:
1212
branches: [main]
1313
paths:
14-
- 'src/**'
15-
- 'Cargo.toml'
16-
- 'Cargo.lock'
14+
- 'apps/tui/src/**'
15+
- 'apps/tui/Cargo.toml'
16+
- 'apps/tui/Cargo.lock'
1717
- '.github/workflows/ci.yml'
1818

1919
env:
@@ -23,6 +23,9 @@ jobs:
2323
check:
2424
name: Check
2525
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: apps/tui
2629
steps:
2730
- uses: actions/checkout@v4
2831
- uses: dtolnay/rust-toolchain@stable
@@ -32,6 +35,9 @@ jobs:
3235
fmt:
3336
name: Rustfmt
3437
runs-on: ubuntu-latest
38+
defaults:
39+
run:
40+
working-directory: apps/tui
3541
steps:
3642
- uses: actions/checkout@v4
3743
- uses: dtolnay/rust-toolchain@stable
@@ -42,6 +48,9 @@ jobs:
4248
clippy:
4349
name: Clippy
4450
runs-on: ubuntu-latest
51+
defaults:
52+
run:
53+
working-directory: apps/tui
4554
steps:
4655
- uses: actions/checkout@v4
4756
- uses: dtolnay/rust-toolchain@stable
@@ -56,6 +65,9 @@ jobs:
5665
strategy:
5766
matrix:
5867
os: [ubuntu-latest, macos-latest]
68+
defaults:
69+
run:
70+
working-directory: apps/tui
5971
steps:
6072
- uses: actions/checkout@v4
6173
- uses: dtolnay/rust-toolchain@stable
@@ -68,6 +80,9 @@ jobs:
6880
strategy:
6981
matrix:
7082
os: [ubuntu-latest, macos-latest]
83+
defaults:
84+
run:
85+
working-directory: apps/tui
7186
steps:
7287
- uses: actions/checkout@v4
7388
- uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
build:
1313
name: Build (${{ matrix.target }})
1414
runs-on: ${{ matrix.runner }}
15+
defaults:
16+
run:
17+
working-directory: apps/tui
1518
strategy:
1619
matrix:
1720
include:
@@ -58,7 +61,7 @@ jobs:
5861
- uses: actions/upload-artifact@v4
5962
with:
6063
name: ${{ matrix.archive }}
61-
path: ${{ matrix.archive }}
64+
path: apps/tui/${{ matrix.archive }}
6265

6366
release:
6467
name: Create Release
@@ -97,15 +100,15 @@ jobs:
97100
env:
98101
TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
99102
run: |
100-
sed -i 's|url ".*"|url "https://github.com/ComputelessComputer/aipm/archive/refs/tags/'"${GITHUB_REF_NAME}"'.tar.gz"|' Formula/aipm.rb
101-
sed -i 's|sha256 ".*"|sha256 "${{ steps.sha.outputs.sha256 }}"|' Formula/aipm.rb
103+
sed -i 's|url ".*"|url "https://github.com/ComputelessComputer/aipm/archive/refs/tags/'"${GITHUB_REF_NAME}"'.tar.gz"|' apps/tui/Formula/aipm.rb
104+
sed -i 's|sha256 ".*"|sha256 "${{ steps.sha.outputs.sha256 }}"|' apps/tui/Formula/aipm.rb
102105
103106
git clone "https://x-access-token:${TAP_TOKEN}@github.com/ComputelessComputer/homebrew-aipm.git" tap || {
104107
mkdir tap && cd tap && git init && git remote add origin "https://x-access-token:${TAP_TOKEN}@github.com/ComputelessComputer/homebrew-aipm.git"
105108
}
106109
107110
mkdir -p tap/Formula
108-
cp Formula/aipm.rb tap/Formula/
111+
cp apps/tui/Formula/aipm.rb tap/Formula/
109112
110113
cd tap
111114
git config user.name "github-actions[bot]"

.gitignore

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/target
2+
/node_modules
3+
/apps/tui/target
24

3-
# Website
4-
website/node_modules/
5-
website/dist/
6-
website/.astro/
5+
# Web app
6+
/apps/web/node_modules/
7+
/apps/web/dist/
8+
/apps/web/.astro/

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ A terminal-based AI-powered project manager built in Rust.
3232
## Quick Start
3333

3434
```sh
35-
cargo build --release
36-
./target/release/aipm
35+
cargo build --manifest-path apps/tui/Cargo.toml --release
36+
./apps/tui/target/release/aipm
3737
```
3838

3939
Set up AI (required for triage and email filtering):
@@ -61,19 +61,19 @@ aipm suggestions sync --limit 5
6161
## Documentation
6262

6363
### CLI
64-
- [Task Commands](docs/cli/tasks.md) - CRUD operations for tasks
65-
- [Bucket Commands](docs/cli/buckets.md) - Manage task columns/categories
66-
- [Undo/History](docs/cli/undo.md) - Rollback operations
64+
- [Task Commands](apps/tui/docs/cli/tasks.md) - CRUD operations for tasks
65+
- [Bucket Commands](apps/tui/docs/cli/buckets.md) - Manage task columns/categories
66+
- [Undo/History](apps/tui/docs/cli/undo.md) - Rollback operations
6767

6868
### Features
69-
- [AI Triage](docs/features/ai.md) - Natural language task management
70-
- [Email Suggestions](docs/features/suggestions.md) - Apple Mail MCP integration
69+
- [AI Triage](apps/tui/docs/features/ai.md) - Natural language task management
70+
- [Email Suggestions](apps/tui/docs/features/suggestions.md) - Apple Mail MCP integration
7171

7272
### UI
73-
- [Keybindings](docs/ui/keybindings.md) - Complete keyboard reference
73+
- [Keybindings](apps/tui/docs/ui/keybindings.md) - Complete keyboard reference
7474

7575
### Data
76-
- [Storage Format](docs/data/storage.md) - File-per-task architecture details
76+
- [Storage Format](apps/tui/docs/data/storage.md) - File-per-task architecture details
7777

7878
## License
7979

agents.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ alwaysApply: true
1616

1717
## Releases
1818

19-
- When asked to create a release: bump the version in `Cargo.toml`, commit, push, then create the release with `gh release create`.
19+
- When asked to create a release: bump the version in `apps/tui/Cargo.toml`, commit, push, then create the release with `gh release create`.
2020
- Releases must be published immediately — do **not** use `--draft`.
2121
- Include release notes with concise, descriptive bullet points explaining what changed (e.g. `- Add @ autocomplete dropdown for selecting tasks by ID or title`). Do not just list version numbers or raw commit messages.
2222
- Each bullet should describe the user-facing change, not implementation details.
@@ -29,8 +29,8 @@ alwaysApply: true
2929
## General
3030

3131
- Avoid creating unnecessary structs, enums, or traits if they are not shared. Prefer inlining types when they're only used in one place.
32-
- Run `cargo fmt` before committing to ensure consistent formatting.
33-
- Run `cargo clippy` and fix any warnings before committing.
34-
- Run `cargo check` periodically while making Rust changes to catch errors early — don't wait until the end.
35-
- Run `cargo build` after code changes to verify compilation before committing.
32+
- Run `cargo fmt --manifest-path apps/tui/Cargo.toml` before committing to ensure consistent formatting.
33+
- Run `cargo clippy --manifest-path apps/tui/Cargo.toml --all-targets -- -D warnings` and fix any warnings before committing.
34+
- Run `cargo check --manifest-path apps/tui/Cargo.toml` periodically while making Rust changes to catch errors early — don't wait until the end.
35+
- Run `cargo build --manifest-path apps/tui/Cargo.toml` after code changes to verify compilation before committing.
3636
- Keep commits small and reviewable.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Aipm < Formula
88
depends_on "rust" => :build
99

1010
def install
11-
system "cargo", "install", *std_cargo_args
11+
system "cargo", "install", *std_cargo_args(path: "apps/tui")
1212
end
1313

1414
test do
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)