Skip to content

Commit b4a1c41

Browse files
gschierclaude
andcommitted
Run oxfmt across repo, add format script and docs
Add .oxfmtignore to skip generated bindings and wasm-pack output. Add npm format script, update DEVELOPMENT.md for Vite+ toolchain, and format all non-generated files with oxfmt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 45262ed commit b4a1c41

File tree

664 files changed

+13646
-13500
lines changed

Some content is hidden

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

664 files changed

+13646
-13500
lines changed

.claude-context.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Claude Context: Detaching Tauri from Yaak
22

33
## Goal
4+
45
Make Yaak runnable as a standalone CLI without Tauri as a dependency. The core Rust crates in `crates/` should be usable independently, while Tauri-specific code lives in `crates-tauri/`.
56

67
## Project Structure
8+
79
```
810
crates/ # Core crates - should NOT depend on Tauri
911
crates-tauri/ # Tauri-specific crates (yaak-app, yaak-tauri-utils, etc.)
@@ -13,31 +15,36 @@ crates-cli/ # CLI crate (yaak-cli)
1315
## Completed Work
1416

1517
### 1. Folder Restructure
18+
1619
- Moved Tauri-dependent app code to `crates-tauri/yaak-app/`
1720
- Created `crates-tauri/yaak-tauri-utils/` for shared Tauri utilities (window traits, api_client, error handling)
1821
- Created `crates-cli/yaak-cli/` for the standalone CLI
1922

2023
### 2. Decoupled Crates (no longer depend on Tauri)
24+
2125
- **yaak-models**: Uses `init_standalone()` pattern for CLI database access
2226
- **yaak-http**: Removed Tauri plugin, HttpConnectionManager initialized in yaak-app setup
2327
- **yaak-common**: Only contains Tauri-free utilities (serde, platform)
2428
- **yaak-crypto**: Removed Tauri plugin, EncryptionManager initialized in yaak-app setup, commands moved to yaak-app
2529
- **yaak-grpc**: Replaced AppHandle with GrpcConfig struct, uses tokio::process::Command instead of Tauri sidecar
2630

2731
### 3. CLI Implementation
32+
2833
- Basic CLI at `crates-cli/yaak-cli/src/main.rs`
2934
- Commands: workspaces, requests, send (by ID), get (ad-hoc URL), create
3035
- Uses same database as Tauri app via `yaak_models::init_standalone()`
3136

3237
## Remaining Work
3338

3439
### Crates Still Depending on Tauri (in `crates/`)
40+
3541
1. **yaak-git** (3 files) - Moderate complexity
3642
2. **yaak-plugins** (13 files) - **Hardest** - deeply integrated with Tauri for plugin-to-window communication
3743
3. **yaak-sync** (4 files) - Moderate complexity
3844
4. **yaak-ws** (5 files) - Moderate complexity
3945

4046
### Pattern for Decoupling
47+
4148
1. Remove Tauri plugin `init()` function from the crate
4249
2. Move commands to `yaak-app/src/commands.rs` or keep inline in `lib.rs`
4350
3. Move extension traits (e.g., `SomethingManagerExt`) to yaak-app or yaak-tauri-utils
@@ -47,16 +54,19 @@ crates-cli/ # CLI crate (yaak-cli)
4754
7. Replace `tauri::async_runtime::block_on` with `tokio::runtime::Handle::current().block_on()`
4855

4956
## Key Files
57+
5058
- `crates-tauri/yaak-app/src/lib.rs` - Main Tauri app, setup block initializes managers
5159
- `crates-tauri/yaak-app/src/commands.rs` - Migrated Tauri commands
5260
- `crates-tauri/yaak-app/src/models_ext.rs` - Database plugin and extension traits
5361
- `crates-tauri/yaak-tauri-utils/src/window.rs` - WorkspaceWindowTrait for window state
5462
- `crates/yaak-models/src/lib.rs` - Contains `init_standalone()` for CLI usage
5563

5664
## Git Branch
65+
5766
Working on `detach-tauri` branch.
5867

5968
## Recent Commits
69+
6070
```
6171
c40cff40 Remove Tauri dependencies from yaak-crypto and yaak-grpc
6272
df495f1d Move Tauri utilities from yaak-common to yaak-tauri-utils
@@ -67,6 +77,7 @@ e718a5f1 Refactor models_ext to use init_standalone from yaak-models
6777
```
6878

6979
## Testing
80+
7081
- Run `cargo check -p <crate>` to verify a crate builds without Tauri
7182
- Run `npm run app-dev` to test the Tauri app still works
7283
- Run `cargo run -p yaak-cli -- --help` to test the CLI

.claude/commands/release/generate-release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Generate formatted release notes for Yaak releases by analyzing git history and
88
## What to do
99

1010
1. Identifies the version tag and previous version
11-
2. Retrieves all commits between versions
11+
2. Retrieves all commits between versions
1212
- If the version is a beta version, it retrieves commits between the beta version and previous beta version
1313
- If the version is a stable version, it retrieves commits between the stable version and the previous stable version
1414
3. Fetches PR descriptions for linked issues to find:
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [ ] I added or updated tests when reasonable.
1212

1313
Approved feedback item (required if not a bug fix or small-scope improvement):
14+
1415
<!-- https://yaak.app/feedback/... -->
1516

1617
## Related

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: voidzero-dev/setup-vp@v1
1818
with:
19-
node-version: '24'
19+
node-version: "24"
2020
cache: true
2121
- uses: dtolnay/rust-toolchain@stable
2222
- uses: Swatinem/rust-cache@v2

.github/workflows/claude.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ jobs:
4747
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4848
# or https://code.claude.com/docs/en/cli-reference for available options
4949
# claude_args: '--allowed-tools Bash(gh pr:*)'
50-

.github/workflows/release-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Setup Vite+
5454
uses: voidzero-dev/setup-vp@v1
5555
with:
56-
node-version: '24'
56+
node-version: "24"
5757
cache: true
5858

5959
- name: install Rust stable

.github/workflows/sponsors.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ jobs:
1616
uses: JamesIves/github-sponsors-readme-action@v1
1717
with:
1818
token: ${{ secrets.SPONSORS_PAT }}
19-
file: 'README.md'
19+
file: "README.md"
2020
maximum: 1999
2121
template: '<a href="https://github.com/{{{ login }}}"><img src="{{{ avatarUrl }}}" width="50px" alt="User avatar: {{{ login }}}" /></a>&nbsp;&nbsp;'
2222
active-only: false
2323
include-private: true
24-
marker: 'sponsors-base'
24+
marker: "sponsors-base"
2525

2626
- name: Generate Sponsors
2727
uses: JamesIves/github-sponsors-readme-action@v1
2828
with:
2929
token: ${{ secrets.SPONSORS_PAT }}
30-
file: 'README.md'
30+
file: "README.md"
3131
minimum: 2000
3232
template: '<a href="https://github.com/{{{ login }}}"><img src="{{{ avatarUrl }}}" width="80px" alt="User avatar: {{{ login }}}" /></a>&nbsp;&nbsp;'
3333
active-only: false
3434
include-private: true
35-
marker: 'sponsors-premium'
35+
marker: "sponsors-premium"
3636

3737
# ⚠️ Note: You can use any deployment step here to automatically push the README
3838
# changes back to your branch.
@@ -41,4 +41,4 @@ jobs:
4141
with:
4242
branch: main
4343
force: false
44-
folder: '.'
44+
folder: "."

.oxfmtignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/bindings/**
2+
crates/yaak-templates/pkg/**

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["rust-lang.rust-analyzer", "bradlc.vscode-tailwindcss", "VoidZero.vite-plus-extension-pack"]
2+
"recommendations": [
3+
"rust-lang.rust-analyzer",
4+
"bradlc.vscode-tailwindcss",
5+
"VoidZero.vite-plus-extension-pack"
6+
]
37
}

0 commit comments

Comments
 (0)