Compare commits
63 Commits
v2025.10.0
...
actions-sy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
986143c4ae | ||
|
|
50b0e23d53 | ||
|
|
c4ce458f79 | ||
|
|
f02ae35634 | ||
|
|
c2f068970b | ||
|
|
eec2d6bc38 | ||
|
|
efa22e470e | ||
|
|
c00d2e981f | ||
|
|
9c45254952 | ||
|
|
d031ff231a | ||
|
|
f056894ddb | ||
|
|
1b0315165f | ||
|
|
bd7e840a57 | ||
|
|
8969748c3c | ||
|
|
4e15ac10a6 | ||
|
|
47a3d44888 | ||
|
|
eb10910d20 | ||
|
|
6ba83d424d | ||
|
|
beb47a6b6a | ||
|
|
1893b8f8dd | ||
|
|
7a5bca7aae | ||
|
|
9a75bc2ae7 | ||
|
|
65514e3882 | ||
|
|
9ddaafb79f | ||
|
|
de47ee19ec | ||
|
|
ea730d0184 | ||
|
|
fe706998d4 | ||
|
|
99209e088f | ||
|
|
3eb29ff2fe | ||
|
|
b759003c83 | ||
|
|
6cba38ac89 | ||
|
|
ba8f85baaf | ||
|
|
9970d5fa6f | ||
|
|
d550b42ca3 | ||
|
|
2e1f0cb53f | ||
|
|
eead422ada | ||
|
|
b5753da3b7 | ||
|
|
ae2f2459e9 | ||
|
|
306e6f358a | ||
|
|
822d52a57e | ||
|
|
e665ce04df | ||
|
|
e4828e1b17 | ||
|
|
42143249a2 | ||
|
|
72a7e6963d | ||
|
|
494e9efb64 | ||
|
|
9fe077f598 | ||
|
|
a6eca1cf2e | ||
|
|
31edd1013f | ||
|
|
28e9657ea5 | ||
|
|
ff084a224a | ||
|
|
bbcae34575 | ||
|
|
2a5587c128 | ||
|
|
c41e173a63 | ||
|
|
2b43407ddf | ||
|
|
4d75b8ef06 | ||
|
|
aa79fb05f9 | ||
|
|
fe01796536 | ||
|
|
6654d6c346 | ||
|
|
4c8f768624 | ||
|
|
47c5ef1464 | ||
|
|
2bf7cf5eeb | ||
|
|
f2be52bfec | ||
|
|
ef80216ca1 |
72
.claude-context.md
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
# Claude Context: Detaching Tauri from Yaak
|
||||||
|
|
||||||
|
## Goal
|
||||||
|
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/`.
|
||||||
|
|
||||||
|
## Project Structure
|
||||||
|
```
|
||||||
|
crates/ # Core crates - should NOT depend on Tauri
|
||||||
|
crates-tauri/ # Tauri-specific crates (yaak-app, yaak-tauri-utils, etc.)
|
||||||
|
crates-cli/ # CLI crate (yaak-cli)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Completed Work
|
||||||
|
|
||||||
|
### 1. Folder Restructure
|
||||||
|
- Moved Tauri-dependent app code to `crates-tauri/yaak-app/`
|
||||||
|
- Created `crates-tauri/yaak-tauri-utils/` for shared Tauri utilities (window traits, api_client, error handling)
|
||||||
|
- Created `crates-cli/yaak-cli/` for the standalone CLI
|
||||||
|
|
||||||
|
### 2. Decoupled Crates (no longer depend on Tauri)
|
||||||
|
- **yaak-models**: Uses `init_standalone()` pattern for CLI database access
|
||||||
|
- **yaak-http**: Removed Tauri plugin, HttpConnectionManager initialized in yaak-app setup
|
||||||
|
- **yaak-common**: Only contains Tauri-free utilities (serde, platform)
|
||||||
|
- **yaak-crypto**: Removed Tauri plugin, EncryptionManager initialized in yaak-app setup, commands moved to yaak-app
|
||||||
|
- **yaak-grpc**: Replaced AppHandle with GrpcConfig struct, uses tokio::process::Command instead of Tauri sidecar
|
||||||
|
|
||||||
|
### 3. CLI Implementation
|
||||||
|
- Basic CLI at `crates-cli/yaak-cli/src/main.rs`
|
||||||
|
- Commands: workspaces, requests, send (by ID), get (ad-hoc URL), create
|
||||||
|
- Uses same database as Tauri app via `yaak_models::init_standalone()`
|
||||||
|
|
||||||
|
## Remaining Work
|
||||||
|
|
||||||
|
### Crates Still Depending on Tauri (in `crates/`)
|
||||||
|
1. **yaak-git** (3 files) - Moderate complexity
|
||||||
|
2. **yaak-plugins** (13 files) - **Hardest** - deeply integrated with Tauri for plugin-to-window communication
|
||||||
|
3. **yaak-sync** (4 files) - Moderate complexity
|
||||||
|
4. **yaak-ws** (5 files) - Moderate complexity
|
||||||
|
|
||||||
|
### Pattern for Decoupling
|
||||||
|
1. Remove Tauri plugin `init()` function from the crate
|
||||||
|
2. Move commands to `yaak-app/src/commands.rs` or keep inline in `lib.rs`
|
||||||
|
3. Move extension traits (e.g., `SomethingManagerExt`) to yaak-app or yaak-tauri-utils
|
||||||
|
4. Initialize managers in yaak-app's `.setup()` block
|
||||||
|
5. Remove `tauri` from Cargo.toml dependencies
|
||||||
|
6. Update `crates-tauri/yaak-app/capabilities/default.json` to remove the plugin permission
|
||||||
|
7. Replace `tauri::async_runtime::block_on` with `tokio::runtime::Handle::current().block_on()`
|
||||||
|
|
||||||
|
## Key Files
|
||||||
|
- `crates-tauri/yaak-app/src/lib.rs` - Main Tauri app, setup block initializes managers
|
||||||
|
- `crates-tauri/yaak-app/src/commands.rs` - Migrated Tauri commands
|
||||||
|
- `crates-tauri/yaak-app/src/models_ext.rs` - Database plugin and extension traits
|
||||||
|
- `crates-tauri/yaak-tauri-utils/src/window.rs` - WorkspaceWindowTrait for window state
|
||||||
|
- `crates/yaak-models/src/lib.rs` - Contains `init_standalone()` for CLI usage
|
||||||
|
|
||||||
|
## Git Branch
|
||||||
|
Working on `detach-tauri` branch.
|
||||||
|
|
||||||
|
## Recent Commits
|
||||||
|
```
|
||||||
|
c40cff40 Remove Tauri dependencies from yaak-crypto and yaak-grpc
|
||||||
|
df495f1d Move Tauri utilities from yaak-common to yaak-tauri-utils
|
||||||
|
481e0273 Remove Tauri dependencies from yaak-http and yaak-common
|
||||||
|
10568ac3 Add HTTP request sending to yaak-cli
|
||||||
|
bcb7d600 Add yaak-cli stub with basic database access
|
||||||
|
e718a5f1 Refactor models_ext to use init_standalone from yaak-models
|
||||||
|
```
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
- Run `cargo check -p <crate>` to verify a crate builds without Tauri
|
||||||
|
- Run `npm run app-dev` to test the Tauri app still works
|
||||||
|
- Run `cargo run -p yaak-cli -- --help` to test the CLI
|
||||||
@@ -37,3 +37,11 @@ The skill generates markdown-formatted release notes following this structure:
|
|||||||
|
|
||||||
**IMPORTANT**: Always add a blank lines around the markdown code fence and output the markdown code block last
|
**IMPORTANT**: Always add a blank lines around the markdown code fence and output the markdown code block last
|
||||||
**IMPORTANT**: PRs by `@gschier` should not mention the @username
|
**IMPORTANT**: PRs by `@gschier` should not mention the @username
|
||||||
|
|
||||||
|
## After Generating Release Notes
|
||||||
|
|
||||||
|
After outputting the release notes, ask the user if they would like to create a draft GitHub release with these notes. If they confirm, create the release using:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gh release create <tag> --draft --prerelease --title "<tag>" --notes '<release notes>'
|
||||||
|
```
|
||||||
|
|||||||
@@ -1,22 +1,27 @@
|
|||||||
# Project Rules
|
# Project Rules
|
||||||
|
|
||||||
## General Development
|
## General Development
|
||||||
|
|
||||||
- **NEVER** commit or push without explicit confirmation
|
- **NEVER** commit or push without explicit confirmation
|
||||||
|
|
||||||
## Build and Lint
|
## Build and Lint
|
||||||
|
|
||||||
- **ALWAYS** run `npm run lint` after modifying TypeScript or JavaScript files
|
- **ALWAYS** run `npm run lint` after modifying TypeScript or JavaScript files
|
||||||
- Run `npm run bootstrap` after changing plugin runtime or MCP server code
|
- Run `npm run bootstrap` after changing plugin runtime or MCP server code
|
||||||
|
|
||||||
## Plugin System
|
## Plugin System
|
||||||
|
|
||||||
### Backend Constraints
|
### Backend Constraints
|
||||||
|
|
||||||
- Always use `UpdateSource::Plugin` when calling database methods from plugin events
|
- Always use `UpdateSource::Plugin` when calling database methods from plugin events
|
||||||
- Never send timestamps (`createdAt`, `updatedAt`) from TypeScript - Rust backend controls these
|
- Never send timestamps (`createdAt`, `updatedAt`) from TypeScript - Rust backend controls these
|
||||||
- Backend uses `NaiveDateTime` (no timezone) so avoid sending ISO timestamp strings
|
- Backend uses `NaiveDateTime` (no timezone) so avoid sending ISO timestamp strings
|
||||||
|
|
||||||
### MCP Server
|
### MCP Server
|
||||||
|
|
||||||
- MCP server has **no active window context** - cannot call `window.workspaceId()`
|
- MCP server has **no active window context** - cannot call `window.workspaceId()`
|
||||||
- Get workspace ID from `workspaceCtx.yaak.workspace.list()` instead
|
- Get workspace ID from `workspaceCtx.yaak.workspace.list()` instead
|
||||||
|
|
||||||
## Rust Type Generation
|
## Rust Type Generation
|
||||||
- Run `cd src-tauri && cargo test --package yaak-plugins` to regenerate TypeScript bindings after modifying Rust event types
|
|
||||||
|
- Run `cargo test --package yaak-plugins` (and for other crates) to regenerate TypeScript bindings after modifying Rust event types
|
||||||
|
|||||||
8
.gitattributes
vendored
@@ -1,7 +1,7 @@
|
|||||||
src-tauri/vendored/**/* linguist-generated=true
|
crates-tauri/yaak-app/vendored/**/* linguist-generated=true
|
||||||
src-tauri/gen/schemas/**/* linguist-generated=true
|
crates-tauri/yaak-app/gen/schemas/**/* linguist-generated=true
|
||||||
**/bindings/* linguist-generated=true
|
**/bindings/* linguist-generated=true
|
||||||
src-tauri/yaak-templates/pkg/* linguist-generated=true
|
crates/yaak-templates/pkg/* linguist-generated=true
|
||||||
|
|
||||||
# Ensure consistent line endings for test files that check exact content
|
# Ensure consistent line endings for test files that check exact content
|
||||||
src-tauri/yaak-http/tests/test.txt text eol=lf
|
crates/yaak-http/tests/test.txt text eol=lf
|
||||||
|
|||||||
3
.github/workflows/ci.yml
vendored
@@ -18,14 +18,13 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
workspaces: 'src-tauri'
|
|
||||||
shared-key: ci
|
shared-key: ci
|
||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm run bootstrap
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- name: Run JS Tests
|
- name: Run JS Tests
|
||||||
run: npm test
|
run: npm test
|
||||||
- name: Run Rust Tests
|
- name: Run Rust Tests
|
||||||
run: cargo test --all
|
run: cargo test --all
|
||||||
working-directory: src-tauri
|
|
||||||
|
|||||||
98
.github/workflows/release.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: Generate Artifacts
|
name: Generate Artifacts
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: [ v* ]
|
tags: [v*]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-artifacts:
|
build-artifacts:
|
||||||
@@ -13,37 +13,37 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- platform: 'macos-latest' # for Arm-based Macs (M1 and above).
|
- platform: "macos-latest" # for Arm-based Macs (M1 and above).
|
||||||
args: '--target aarch64-apple-darwin'
|
args: "--target aarch64-apple-darwin"
|
||||||
yaak_arch: 'arm64'
|
yaak_arch: "arm64"
|
||||||
os: 'macos'
|
os: "macos"
|
||||||
targets: 'aarch64-apple-darwin'
|
targets: "aarch64-apple-darwin"
|
||||||
- platform: 'macos-latest' # for Intel-based Macs.
|
- platform: "macos-latest" # for Intel-based Macs.
|
||||||
args: '--target x86_64-apple-darwin'
|
args: "--target x86_64-apple-darwin"
|
||||||
yaak_arch: 'x64'
|
yaak_arch: "x64"
|
||||||
os: 'macos'
|
os: "macos"
|
||||||
targets: 'x86_64-apple-darwin'
|
targets: "x86_64-apple-darwin"
|
||||||
- platform: 'ubuntu-22.04'
|
- platform: "ubuntu-22.04"
|
||||||
args: ''
|
args: ""
|
||||||
yaak_arch: 'x64'
|
yaak_arch: "x64"
|
||||||
os: 'ubuntu'
|
os: "ubuntu"
|
||||||
targets: ''
|
targets: ""
|
||||||
- platform: 'ubuntu-22.04-arm'
|
- platform: "ubuntu-22.04-arm"
|
||||||
args: ''
|
args: ""
|
||||||
yaak_arch: 'arm64'
|
yaak_arch: "arm64"
|
||||||
os: 'ubuntu'
|
os: "ubuntu"
|
||||||
targets: ''
|
targets: ""
|
||||||
- platform: 'windows-latest'
|
- platform: "windows-latest"
|
||||||
args: ''
|
args: ""
|
||||||
yaak_arch: 'x64'
|
yaak_arch: "x64"
|
||||||
os: 'windows'
|
os: "windows"
|
||||||
targets: ''
|
targets: ""
|
||||||
# Windows ARM64
|
# Windows ARM64
|
||||||
- platform: 'windows-latest'
|
- platform: "windows-latest"
|
||||||
args: '--target aarch64-pc-windows-msvc'
|
args: "--target aarch64-pc-windows-msvc"
|
||||||
yaak_arch: 'arm64'
|
yaak_arch: "arm64"
|
||||||
os: 'windows'
|
os: "windows"
|
||||||
targets: 'aarch64-pc-windows-msvc'
|
targets: "aarch64-pc-windows-msvc"
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 40
|
timeout-minutes: 40
|
||||||
steps:
|
steps:
|
||||||
@@ -60,7 +60,6 @@ jobs:
|
|||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
workspaces: 'src-tauri'
|
|
||||||
shared-key: ci
|
shared-key: ci
|
||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
|
|
||||||
@@ -89,18 +88,43 @@ jobs:
|
|||||||
& $exe --version
|
& $exe --version
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm run bootstrap
|
||||||
|
env:
|
||||||
|
YAAK_TARGET_ARCH: ${{ matrix.yaak_arch }}
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- name: Run JS Tests
|
- name: Run JS Tests
|
||||||
run: npm test
|
run: npm test
|
||||||
- name: Run Rust Tests
|
- name: Run Rust Tests
|
||||||
run: cargo test --all
|
run: cargo test --all
|
||||||
working-directory: src-tauri
|
|
||||||
|
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: npm run replace-version
|
run: npm run replace-version
|
||||||
env:
|
env:
|
||||||
YAAK_VERSION: ${{ github.ref_name }}
|
YAAK_VERSION: ${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Sign vendored binaries (macOS only)
|
||||||
|
if: matrix.os == 'macos'
|
||||||
|
env:
|
||||||
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
||||||
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
||||||
|
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
# Create keychain
|
||||||
|
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
|
||||||
|
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
||||||
|
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
|
||||||
|
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
||||||
|
|
||||||
|
# Import certificate
|
||||||
|
echo "$APPLE_CERTIFICATE" | base64 --decode > certificate.p12
|
||||||
|
security import certificate.p12 -P "$APPLE_CERTIFICATE_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
||||||
|
security list-keychain -d user -s $KEYCHAIN_PATH
|
||||||
|
|
||||||
|
# Sign vendored binaries with hardened runtime and their specific entitlements
|
||||||
|
codesign --force --options runtime --entitlements crates-tauri/yaak-app/macos/entitlements.yaakprotoc.plist --sign "$APPLE_SIGNING_IDENTITY" crates-tauri/yaak-app/vendored/protoc/yaakprotoc || true
|
||||||
|
codesign --force --options runtime --entitlements crates-tauri/yaak-app/macos/entitlements.yaaknode.plist --sign "$APPLE_SIGNING_IDENTITY" crates-tauri/yaak-app/vendored/node/yaaknode || true
|
||||||
|
|
||||||
- uses: tauri-apps/tauri-action@v0
|
- uses: tauri-apps/tauri-action@v0
|
||||||
env:
|
env:
|
||||||
YAAK_TARGET_ARCH: ${{ matrix.yaak_arch }}
|
YAAK_TARGET_ARCH: ${{ matrix.yaak_arch }}
|
||||||
@@ -123,9 +147,9 @@ jobs:
|
|||||||
AZURE_CLIENT_SECRET: ${{ matrix.os == 'windows' && secrets.AZURE_CLIENT_SECRET }}
|
AZURE_CLIENT_SECRET: ${{ matrix.os == 'windows' && secrets.AZURE_CLIENT_SECRET }}
|
||||||
AZURE_TENANT_ID: ${{ matrix.os == 'windows' && secrets.AZURE_TENANT_ID }}
|
AZURE_TENANT_ID: ${{ matrix.os == 'windows' && secrets.AZURE_TENANT_ID }}
|
||||||
with:
|
with:
|
||||||
tagName: 'v__VERSION__'
|
tagName: "v__VERSION__"
|
||||||
releaseName: 'Release __VERSION__'
|
releaseName: "Release __VERSION__"
|
||||||
releaseBody: '[Changelog __VERSION__](https://yaak.app/blog/__VERSION__)'
|
releaseBody: "[Changelog __VERSION__](https://yaak.app/blog/__VERSION__)"
|
||||||
releaseDraft: true
|
releaseDraft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
args: '${{ matrix.args }} --config ./src-tauri/tauri.release.conf.json'
|
args: "${{ matrix.args }} --config ./crates-tauri/yaak-app/tauri.release.conf.json"
|
||||||
|
|||||||
6
.gitignore
vendored
@@ -39,4 +39,8 @@ codebook.toml
|
|||||||
target
|
target
|
||||||
|
|
||||||
# Per-worktree Tauri config (generated by post-checkout hook)
|
# Per-worktree Tauri config (generated by post-checkout hook)
|
||||||
src-tauri/tauri.worktree.conf.json
|
crates-tauri/yaak-app/tauri.worktree.conf.json
|
||||||
|
|
||||||
|
# Tauri auto-generated permission files
|
||||||
|
**/permissions/autogenerated
|
||||||
|
**/permissions/schemas
|
||||||
|
|||||||
267
src-tauri/Cargo.lock → Cargo.lock
generated
@@ -102,6 +102,56 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anstream"
|
||||||
|
version = "0.6.21"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
|
||||||
|
dependencies = [
|
||||||
|
"anstyle",
|
||||||
|
"anstyle-parse",
|
||||||
|
"anstyle-query",
|
||||||
|
"anstyle-wincon",
|
||||||
|
"colorchoice",
|
||||||
|
"is_terminal_polyfill",
|
||||||
|
"utf8parse",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anstyle"
|
||||||
|
version = "1.0.13"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anstyle-parse"
|
||||||
|
version = "0.2.7"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
|
||||||
|
dependencies = [
|
||||||
|
"utf8parse",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anstyle-query"
|
||||||
|
version = "1.1.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
||||||
|
dependencies = [
|
||||||
|
"windows-sys 0.61.2",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anstyle-wincon"
|
||||||
|
version = "3.0.11"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
||||||
|
dependencies = [
|
||||||
|
"anstyle",
|
||||||
|
"once_cell_polyfill",
|
||||||
|
"windows-sys 0.61.2",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anyhow"
|
name = "anyhow"
|
||||||
version = "1.0.98"
|
version = "1.0.98"
|
||||||
@@ -850,6 +900,46 @@ dependencies = [
|
|||||||
"zeroize",
|
"zeroize",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "clap"
|
||||||
|
version = "4.5.54"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "c6e6ff9dcd79cff5cd969a17a545d79e84ab086e444102a591e288a8aa3ce394"
|
||||||
|
dependencies = [
|
||||||
|
"clap_builder",
|
||||||
|
"clap_derive",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "clap_builder"
|
||||||
|
version = "4.5.54"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "fa42cf4d2b7a41bc8f663a7cab4031ebafa1bf3875705bfaf8466dc60ab52c00"
|
||||||
|
dependencies = [
|
||||||
|
"anstream",
|
||||||
|
"anstyle",
|
||||||
|
"clap_lex",
|
||||||
|
"strsim",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "clap_derive"
|
||||||
|
version = "4.5.49"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671"
|
||||||
|
dependencies = [
|
||||||
|
"heck 0.5.0",
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.101",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "clap_lex"
|
||||||
|
version = "0.7.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clipboard-win"
|
name = "clipboard-win"
|
||||||
version = "5.4.0"
|
version = "5.4.0"
|
||||||
@@ -897,6 +987,12 @@ dependencies = [
|
|||||||
"objc",
|
"objc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "colorchoice"
|
||||||
|
version = "1.0.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "colored"
|
name = "colored"
|
||||||
version = "2.2.0"
|
version = "2.2.0"
|
||||||
@@ -1478,6 +1574,19 @@ dependencies = [
|
|||||||
"regex",
|
"regex",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "env_logger"
|
||||||
|
version = "0.11.8"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f"
|
||||||
|
dependencies = [
|
||||||
|
"anstream",
|
||||||
|
"anstyle",
|
||||||
|
"env_filter",
|
||||||
|
"jiff",
|
||||||
|
"log",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "equivalent"
|
name = "equivalent"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
@@ -2684,6 +2793,12 @@ dependencies = [
|
|||||||
"once_cell",
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "is_terminal_polyfill"
|
||||||
|
version = "1.70.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "itertools"
|
name = "itertools"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
@@ -2722,6 +2837,30 @@ dependencies = [
|
|||||||
"system-deps",
|
"system-deps",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "jiff"
|
||||||
|
version = "0.2.18"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e67e8da4c49d6d9909fe03361f9b620f58898859f5c7aded68351e85e71ecf50"
|
||||||
|
dependencies = [
|
||||||
|
"jiff-static",
|
||||||
|
"log",
|
||||||
|
"portable-atomic",
|
||||||
|
"portable-atomic-util",
|
||||||
|
"serde_core",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "jiff-static"
|
||||||
|
version = "0.2.18"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e0c84ee7f197eca9a86c6fd6cb771e55eb991632f15f2bc3ca6ec838929e6e78"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.101",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jni"
|
name = "jni"
|
||||||
version = "0.21.1"
|
version = "0.21.1"
|
||||||
@@ -3614,6 +3753,12 @@ version = "1.21.3"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "once_cell_polyfill"
|
||||||
|
version = "1.70.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "opaque-debug"
|
name = "opaque-debug"
|
||||||
version = "0.3.1"
|
version = "0.3.1"
|
||||||
@@ -4100,6 +4245,21 @@ dependencies = [
|
|||||||
"universal-hash",
|
"universal-hash",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "portable-atomic"
|
||||||
|
version = "1.13.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "portable-atomic-util"
|
||||||
|
version = "0.2.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
|
||||||
|
dependencies = [
|
||||||
|
"portable-atomic",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "potential_utf"
|
name = "potential_utf"
|
||||||
version = "0.1.2"
|
version = "0.1.2"
|
||||||
@@ -6817,6 +6977,12 @@ version = "1.0.4"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "utf8parse"
|
||||||
|
version = "0.2.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "uuid"
|
name = "uuid"
|
||||||
version = "1.17.0"
|
version = "1.17.0"
|
||||||
@@ -7828,6 +7994,33 @@ dependencies = [
|
|||||||
"rustix 1.0.7",
|
"rustix 1.0.7",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yaak-actions"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"thiserror 2.0.17",
|
||||||
|
"tokio",
|
||||||
|
"ts-rs",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yaak-actions-builtin"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"log",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"tokio",
|
||||||
|
"yaak-actions",
|
||||||
|
"yaak-crypto",
|
||||||
|
"yaak-http",
|
||||||
|
"yaak-models",
|
||||||
|
"yaak-plugins",
|
||||||
|
"yaak-templates",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yaak-app"
|
name = "yaak-app"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
@@ -7841,6 +8034,8 @@ dependencies = [
|
|||||||
"md5 0.8.0",
|
"md5 0.8.0",
|
||||||
"mime_guess",
|
"mime_guess",
|
||||||
"openssl-sys",
|
"openssl-sys",
|
||||||
|
"r2d2",
|
||||||
|
"r2d2_sqlite",
|
||||||
"rand 0.9.1",
|
"rand 0.9.1",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -7861,10 +8056,13 @@ dependencies = [
|
|||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
|
"tokio-tungstenite",
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
"ts-rs",
|
"ts-rs",
|
||||||
|
"url",
|
||||||
"uuid",
|
"uuid",
|
||||||
"yaak-common",
|
"yaak-common",
|
||||||
|
"yaak-core",
|
||||||
"yaak-crypto",
|
"yaak-crypto",
|
||||||
"yaak-fonts",
|
"yaak-fonts",
|
||||||
"yaak-git",
|
"yaak-git",
|
||||||
@@ -7876,20 +8074,43 @@ dependencies = [
|
|||||||
"yaak-plugins",
|
"yaak-plugins",
|
||||||
"yaak-sse",
|
"yaak-sse",
|
||||||
"yaak-sync",
|
"yaak-sync",
|
||||||
|
"yaak-tauri-utils",
|
||||||
"yaak-templates",
|
"yaak-templates",
|
||||||
"yaak-tls",
|
"yaak-tls",
|
||||||
"yaak-ws",
|
"yaak-ws",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yaak-cli"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"clap",
|
||||||
|
"dirs",
|
||||||
|
"env_logger",
|
||||||
|
"log",
|
||||||
|
"serde_json",
|
||||||
|
"tokio",
|
||||||
|
"yaak-actions",
|
||||||
|
"yaak-actions-builtin",
|
||||||
|
"yaak-crypto",
|
||||||
|
"yaak-http",
|
||||||
|
"yaak-models",
|
||||||
|
"yaak-plugins",
|
||||||
|
"yaak-templates",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yaak-common"
|
name = "yaak-common"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"regex",
|
|
||||||
"reqwest",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tauri",
|
"tokio",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yaak-core"
|
||||||
|
version = "0.0.0"
|
||||||
|
dependencies = [
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -7903,8 +8124,6 @@ dependencies = [
|
|||||||
"keyring",
|
"keyring",
|
||||||
"log",
|
"log",
|
||||||
"serde",
|
"serde",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"yaak-models",
|
"yaak-models",
|
||||||
]
|
]
|
||||||
@@ -7931,10 +8150,11 @@ dependencies = [
|
|||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"serde_yaml",
|
"serde_yaml",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
|
"tokio",
|
||||||
"ts-rs",
|
"ts-rs",
|
||||||
|
"url",
|
||||||
|
"yaak-common",
|
||||||
"yaak-models",
|
"yaak-models",
|
||||||
"yaak-sync",
|
"yaak-sync",
|
||||||
]
|
]
|
||||||
@@ -7955,14 +8175,13 @@ dependencies = [
|
|||||||
"prost-types",
|
"prost-types",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin-shell",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
"tonic",
|
"tonic",
|
||||||
"tonic-reflection",
|
"tonic-reflection",
|
||||||
"uuid",
|
"uuid",
|
||||||
|
"yaak-common",
|
||||||
"yaak-tls",
|
"yaak-tls",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -7984,7 +8203,6 @@ dependencies = [
|
|||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tauri",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
@@ -8012,6 +8230,7 @@ dependencies = [
|
|||||||
"ts-rs",
|
"ts-rs",
|
||||||
"yaak-common",
|
"yaak-common",
|
||||||
"yaak-models",
|
"yaak-models",
|
||||||
|
"yaak-tauri-utils",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -8044,12 +8263,9 @@ dependencies = [
|
|||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin",
|
|
||||||
"tauri-plugin-dialog",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"ts-rs",
|
"ts-rs",
|
||||||
"yaak-common",
|
"yaak-core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -8071,9 +8287,6 @@ dependencies = [
|
|||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin",
|
|
||||||
"tauri-plugin-shell",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-tungstenite",
|
"tokio-tungstenite",
|
||||||
@@ -8106,14 +8319,24 @@ dependencies = [
|
|||||||
"serde_path_to_error",
|
"serde_path_to_error",
|
||||||
"serde_yaml",
|
"serde_yaml",
|
||||||
"sha1",
|
"sha1",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"ts-rs",
|
"ts-rs",
|
||||||
"yaak-models",
|
"yaak-models",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yaak-tauri-utils"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"regex",
|
||||||
|
"reqwest",
|
||||||
|
"serde",
|
||||||
|
"tauri",
|
||||||
|
"thiserror 2.0.17",
|
||||||
|
"yaak-common",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yaak-templates"
|
name = "yaak-templates"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
@@ -8149,19 +8372,17 @@ name = "yaak-ws"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-util",
|
"futures-util",
|
||||||
|
"http",
|
||||||
"log",
|
"log",
|
||||||
"md5 0.8.0",
|
"md5 0.8.0",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tauri",
|
|
||||||
"tauri-plugin",
|
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-tungstenite",
|
"tokio-tungstenite",
|
||||||
"url",
|
"url",
|
||||||
"yaak-http",
|
"yaak-http",
|
||||||
"yaak-models",
|
"yaak-models",
|
||||||
"yaak-plugins",
|
|
||||||
"yaak-templates",
|
"yaak-templates",
|
||||||
"yaak-tls",
|
"yaak-tls",
|
||||||
]
|
]
|
||||||
73
Cargo.toml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
[workspace]
|
||||||
|
resolver = "2"
|
||||||
|
members = [
|
||||||
|
# Shared crates (no Tauri dependency)
|
||||||
|
"crates/yaak-actions",
|
||||||
|
"crates/yaak-actions-builtin",
|
||||||
|
"crates/yaak-core",
|
||||||
|
"crates/yaak-common",
|
||||||
|
"crates/yaak-crypto",
|
||||||
|
"crates/yaak-git",
|
||||||
|
"crates/yaak-grpc",
|
||||||
|
"crates/yaak-http",
|
||||||
|
"crates/yaak-models",
|
||||||
|
"crates/yaak-plugins",
|
||||||
|
"crates/yaak-sse",
|
||||||
|
"crates/yaak-sync",
|
||||||
|
"crates/yaak-templates",
|
||||||
|
"crates/yaak-tls",
|
||||||
|
"crates/yaak-ws",
|
||||||
|
# CLI crates
|
||||||
|
"crates-cli/yaak-cli",
|
||||||
|
# Tauri-specific crates
|
||||||
|
"crates-tauri/yaak-app",
|
||||||
|
"crates-tauri/yaak-fonts",
|
||||||
|
"crates-tauri/yaak-license",
|
||||||
|
"crates-tauri/yaak-mac-window",
|
||||||
|
"crates-tauri/yaak-tauri-utils",
|
||||||
|
]
|
||||||
|
|
||||||
|
[workspace.dependencies]
|
||||||
|
chrono = "0.4.42"
|
||||||
|
hex = "0.4.3"
|
||||||
|
keyring = "3.6.3"
|
||||||
|
log = "0.4.29"
|
||||||
|
reqwest = "0.12.20"
|
||||||
|
rustls = { version = "0.23.34", default-features = false }
|
||||||
|
rustls-platform-verifier = "0.6.2"
|
||||||
|
serde = "1.0.228"
|
||||||
|
serde_json = "1.0.145"
|
||||||
|
sha2 = "0.10.9"
|
||||||
|
tauri = "2.9.5"
|
||||||
|
tauri-plugin = "2.5.2"
|
||||||
|
tauri-plugin-dialog = "2.4.2"
|
||||||
|
tauri-plugin-shell = "2.3.3"
|
||||||
|
thiserror = "2.0.17"
|
||||||
|
tokio = "1.48.0"
|
||||||
|
ts-rs = "11.1.0"
|
||||||
|
|
||||||
|
# Internal crates - shared
|
||||||
|
yaak-actions = { path = "crates/yaak-actions" }
|
||||||
|
yaak-actions-builtin = { path = "crates/yaak-actions-builtin" }
|
||||||
|
yaak-core = { path = "crates/yaak-core" }
|
||||||
|
yaak-common = { path = "crates/yaak-common" }
|
||||||
|
yaak-crypto = { path = "crates/yaak-crypto" }
|
||||||
|
yaak-git = { path = "crates/yaak-git" }
|
||||||
|
yaak-grpc = { path = "crates/yaak-grpc" }
|
||||||
|
yaak-http = { path = "crates/yaak-http" }
|
||||||
|
yaak-models = { path = "crates/yaak-models" }
|
||||||
|
yaak-plugins = { path = "crates/yaak-plugins" }
|
||||||
|
yaak-sse = { path = "crates/yaak-sse" }
|
||||||
|
yaak-sync = { path = "crates/yaak-sync" }
|
||||||
|
yaak-templates = { path = "crates/yaak-templates" }
|
||||||
|
yaak-tls = { path = "crates/yaak-tls" }
|
||||||
|
yaak-ws = { path = "crates/yaak-ws" }
|
||||||
|
|
||||||
|
# Internal crates - Tauri-specific
|
||||||
|
yaak-fonts = { path = "crates-tauri/yaak-fonts" }
|
||||||
|
yaak-license = { path = "crates-tauri/yaak-license" }
|
||||||
|
yaak-mac-window = { path = "crates-tauri/yaak-mac-window" }
|
||||||
|
yaak-tauri-utils = { path = "crates-tauri/yaak-tauri-utils" }
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
strip = false
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/JamesIves/github-sponsors-readme-action">
|
<a href="https://github.com/JamesIves/github-sponsors-readme-action">
|
||||||
<img width="200px" src="https://github.com/mountain-loop/yaak/raw/main/src-tauri/icons/icon.png">
|
<img width="200px" src="https://github.com/mountain-loop/yaak/raw/main/crates-tauri/yaak-app/icons/icon.png">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ visit [`DEVELOPMENT.md`](DEVELOPMENT.md) for tips on setting up your environment
|
|||||||
## Useful Resources
|
## Useful Resources
|
||||||
|
|
||||||
- [Feedback and Bug Reports](https://feedback.yaak.app)
|
- [Feedback and Bug Reports](https://feedback.yaak.app)
|
||||||
- [Documentation](https://feedback.yaak.app/help)
|
- [Documentation](https://yaak.app/docs)
|
||||||
- [Yaak vs Postman](https://yaak.app/alternatives/postman)
|
- [Yaak vs Postman](https://yaak.app/alternatives/postman)
|
||||||
- [Yaak vs Bruno](https://yaak.app/alternatives/bruno)
|
- [Yaak vs Bruno](https://yaak.app/alternatives/bruno)
|
||||||
- [Yaak vs Insomnia](https://yaak.app/alternatives/insomnia)
|
- [Yaak vs Insomnia](https://yaak.app/alternatives/insomnia)
|
||||||
|
|||||||
@@ -38,8 +38,10 @@
|
|||||||
"!**/node_modules",
|
"!**/node_modules",
|
||||||
"!**/dist",
|
"!**/dist",
|
||||||
"!**/build",
|
"!**/build",
|
||||||
|
"!target",
|
||||||
"!scripts",
|
"!scripts",
|
||||||
"!src-tauri",
|
"!crates",
|
||||||
|
"!crates-tauri",
|
||||||
"!src-web/tailwind.config.cjs",
|
"!src-web/tailwind.config.cjs",
|
||||||
"!src-web/postcss.config.cjs",
|
"!src-web/postcss.config.cjs",
|
||||||
"!src-web/vite.config.ts",
|
"!src-web/vite.config.ts",
|
||||||
|
|||||||
24
crates-cli/yaak-cli/Cargo.toml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
[package]
|
||||||
|
name = "yaak-cli"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "yaakcli"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
clap = { version = "4", features = ["derive"] }
|
||||||
|
dirs = "6"
|
||||||
|
env_logger = "0.11"
|
||||||
|
log = { workspace = true }
|
||||||
|
serde_json = { workspace = true }
|
||||||
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
|
||||||
|
yaak-actions = { workspace = true }
|
||||||
|
yaak-actions-builtin = { workspace = true }
|
||||||
|
yaak-crypto = { workspace = true }
|
||||||
|
yaak-http = { workspace = true }
|
||||||
|
yaak-models = { workspace = true }
|
||||||
|
yaak-plugins = { workspace = true }
|
||||||
|
yaak-templates = { workspace = true }
|
||||||
290
crates-cli/yaak-cli/src/main.rs
Normal file
@@ -0,0 +1,290 @@
|
|||||||
|
use clap::{Parser, Subcommand};
|
||||||
|
use std::path::PathBuf;
|
||||||
|
use std::sync::Arc;
|
||||||
|
use tokio::sync::mpsc;
|
||||||
|
use yaak_http::sender::{HttpSender, ReqwestSender};
|
||||||
|
use yaak_http::types::{SendableHttpRequest, SendableHttpRequestOptions};
|
||||||
|
use yaak_models::models::HttpRequest;
|
||||||
|
use yaak_models::util::UpdateSource;
|
||||||
|
use yaak_plugins::events::PluginContext;
|
||||||
|
use yaak_plugins::manager::PluginManager;
|
||||||
|
|
||||||
|
#[derive(Parser)]
|
||||||
|
#[command(name = "yaakcli")]
|
||||||
|
#[command(about = "Yaak CLI - API client from the command line")]
|
||||||
|
struct Cli {
|
||||||
|
/// Use a custom data directory
|
||||||
|
#[arg(long, global = true)]
|
||||||
|
data_dir: Option<PathBuf>,
|
||||||
|
|
||||||
|
/// Environment ID to use for variable substitution
|
||||||
|
#[arg(long, short, global = true)]
|
||||||
|
environment: Option<String>,
|
||||||
|
|
||||||
|
/// Enable verbose logging
|
||||||
|
#[arg(long, short, global = true)]
|
||||||
|
verbose: bool,
|
||||||
|
|
||||||
|
#[command(subcommand)]
|
||||||
|
command: Commands,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subcommand)]
|
||||||
|
enum Commands {
|
||||||
|
/// List all workspaces
|
||||||
|
Workspaces,
|
||||||
|
/// List requests in a workspace
|
||||||
|
Requests {
|
||||||
|
/// Workspace ID
|
||||||
|
workspace_id: String,
|
||||||
|
},
|
||||||
|
/// Send an HTTP request by ID
|
||||||
|
Send {
|
||||||
|
/// Request ID
|
||||||
|
request_id: String,
|
||||||
|
},
|
||||||
|
/// Send a GET request to a URL
|
||||||
|
Get {
|
||||||
|
/// URL to request
|
||||||
|
url: String,
|
||||||
|
},
|
||||||
|
/// Create a new HTTP request
|
||||||
|
Create {
|
||||||
|
/// Workspace ID
|
||||||
|
workspace_id: String,
|
||||||
|
/// Request name
|
||||||
|
#[arg(short, long)]
|
||||||
|
name: String,
|
||||||
|
/// HTTP method
|
||||||
|
#[arg(short, long, default_value = "GET")]
|
||||||
|
method: String,
|
||||||
|
/// URL
|
||||||
|
#[arg(short, long)]
|
||||||
|
url: String,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() {
|
||||||
|
let cli = Cli::parse();
|
||||||
|
|
||||||
|
// Initialize logging
|
||||||
|
if cli.verbose {
|
||||||
|
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use the same app_id for both data directory and keyring
|
||||||
|
let app_id = if cfg!(debug_assertions) { "app.yaak.desktop.dev" } else { "app.yaak.desktop" };
|
||||||
|
|
||||||
|
let data_dir = cli.data_dir.unwrap_or_else(|| {
|
||||||
|
dirs::data_dir().expect("Could not determine data directory").join(app_id)
|
||||||
|
});
|
||||||
|
|
||||||
|
let db_path = data_dir.join("db.sqlite");
|
||||||
|
let blob_path = data_dir.join("blobs.sqlite");
|
||||||
|
|
||||||
|
let (query_manager, _blob_manager, _rx) =
|
||||||
|
yaak_models::init_standalone(&db_path, &blob_path).expect("Failed to initialize database");
|
||||||
|
|
||||||
|
let db = query_manager.connect();
|
||||||
|
|
||||||
|
// Initialize plugin manager for template functions
|
||||||
|
let vendored_plugin_dir = data_dir.join("vendored-plugins");
|
||||||
|
let installed_plugin_dir = data_dir.join("installed-plugins");
|
||||||
|
|
||||||
|
// Use system node for CLI (must be in PATH)
|
||||||
|
let node_bin_path = PathBuf::from("node");
|
||||||
|
|
||||||
|
// Find the plugin runtime - check YAAK_PLUGIN_RUNTIME env var, then fallback to development path
|
||||||
|
let plugin_runtime_main =
|
||||||
|
std::env::var("YAAK_PLUGIN_RUNTIME").map(PathBuf::from).unwrap_or_else(|_| {
|
||||||
|
// Development fallback: look relative to crate root
|
||||||
|
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||||
|
.join("../../crates-tauri/yaak-app/vendored/plugin-runtime/index.cjs")
|
||||||
|
});
|
||||||
|
|
||||||
|
// Create plugin manager (plugins may not be available in CLI context)
|
||||||
|
let plugin_manager = Arc::new(
|
||||||
|
PluginManager::new(
|
||||||
|
vendored_plugin_dir.clone(),
|
||||||
|
installed_plugin_dir.clone(),
|
||||||
|
node_bin_path.clone(),
|
||||||
|
plugin_runtime_main,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.await,
|
||||||
|
);
|
||||||
|
|
||||||
|
// Initialize plugins from database
|
||||||
|
let plugins = db.list_plugins().unwrap_or_default();
|
||||||
|
if !plugins.is_empty() {
|
||||||
|
let errors =
|
||||||
|
plugin_manager.initialize_all_plugins(plugins, &PluginContext::new_empty()).await;
|
||||||
|
for (plugin_dir, error_msg) in errors {
|
||||||
|
eprintln!("Warning: Failed to initialize plugin '{}': {}", plugin_dir, error_msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
match cli.command {
|
||||||
|
Commands::Workspaces => {
|
||||||
|
let workspaces = db.list_workspaces().expect("Failed to list workspaces");
|
||||||
|
if workspaces.is_empty() {
|
||||||
|
println!("No workspaces found");
|
||||||
|
} else {
|
||||||
|
for ws in workspaces {
|
||||||
|
println!("{} - {}", ws.id, ws.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Commands::Requests { workspace_id } => {
|
||||||
|
let requests = db.list_http_requests(&workspace_id).expect("Failed to list requests");
|
||||||
|
if requests.is_empty() {
|
||||||
|
println!("No requests found in workspace {}", workspace_id);
|
||||||
|
} else {
|
||||||
|
for req in requests {
|
||||||
|
println!("{} - {} {}", req.id, req.method, req.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Commands::Send { request_id } => {
|
||||||
|
use yaak_actions::{
|
||||||
|
ActionExecutor, ActionId, ActionParams, ActionResult, ActionTarget, CurrentContext,
|
||||||
|
};
|
||||||
|
use yaak_actions_builtin::{BuiltinActionDependencies, register_http_actions};
|
||||||
|
|
||||||
|
// Create dependencies
|
||||||
|
let deps = BuiltinActionDependencies::new_standalone(
|
||||||
|
&db_path,
|
||||||
|
&blob_path,
|
||||||
|
&app_id,
|
||||||
|
vendored_plugin_dir.clone(),
|
||||||
|
installed_plugin_dir.clone(),
|
||||||
|
node_bin_path.clone(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.expect("Failed to initialize dependencies");
|
||||||
|
|
||||||
|
// Create executor and register actions
|
||||||
|
let executor = ActionExecutor::new();
|
||||||
|
executor.register_builtin_groups().await.expect("Failed to register groups");
|
||||||
|
register_http_actions(&executor, &deps).await.expect("Failed to register HTTP actions");
|
||||||
|
|
||||||
|
// Prepare context
|
||||||
|
let context = CurrentContext {
|
||||||
|
target: Some(ActionTarget::HttpRequest { id: request_id.clone() }),
|
||||||
|
environment_id: cli.environment.clone(),
|
||||||
|
workspace_id: None,
|
||||||
|
has_window: false,
|
||||||
|
can_prompt: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Prepare params
|
||||||
|
let params = ActionParams {
|
||||||
|
data: serde_json::json!({
|
||||||
|
"render": true,
|
||||||
|
"follow_redirects": false,
|
||||||
|
"timeout_ms": 30000,
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
|
||||||
|
// Invoke action
|
||||||
|
let action_id = ActionId::builtin("http", "send-request");
|
||||||
|
let result = executor.invoke(&action_id, context, params).await.expect("Action failed");
|
||||||
|
|
||||||
|
// Handle result
|
||||||
|
match result {
|
||||||
|
ActionResult::Success { data, message } => {
|
||||||
|
if let Some(msg) = message {
|
||||||
|
println!("{}", msg);
|
||||||
|
}
|
||||||
|
if let Some(data) = data {
|
||||||
|
println!("{}", serde_json::to_string_pretty(&data).unwrap());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ActionResult::RequiresInput { .. } => {
|
||||||
|
eprintln!("Action requires input (not supported in CLI)");
|
||||||
|
}
|
||||||
|
ActionResult::Cancelled => {
|
||||||
|
eprintln!("Action cancelled");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Commands::Get { url } => {
|
||||||
|
if cli.verbose {
|
||||||
|
println!("> GET {}", url);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build a simple GET request
|
||||||
|
let sendable = SendableHttpRequest {
|
||||||
|
url: url.clone(),
|
||||||
|
method: "GET".to_string(),
|
||||||
|
headers: vec![],
|
||||||
|
body: None,
|
||||||
|
options: SendableHttpRequestOptions::default(),
|
||||||
|
};
|
||||||
|
|
||||||
|
// Create event channel for progress
|
||||||
|
let (event_tx, mut event_rx) = mpsc::channel(100);
|
||||||
|
|
||||||
|
// Spawn task to print events if verbose
|
||||||
|
let verbose = cli.verbose;
|
||||||
|
let verbose_handle = if verbose {
|
||||||
|
Some(tokio::spawn(async move {
|
||||||
|
while let Some(event) = event_rx.recv().await {
|
||||||
|
println!("{}", event);
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
} else {
|
||||||
|
tokio::spawn(async move { while event_rx.recv().await.is_some() {} });
|
||||||
|
None
|
||||||
|
};
|
||||||
|
|
||||||
|
// Send the request
|
||||||
|
let sender = ReqwestSender::new().expect("Failed to create HTTP client");
|
||||||
|
let response = sender.send(sendable, event_tx).await.expect("Failed to send request");
|
||||||
|
|
||||||
|
if let Some(handle) = verbose_handle {
|
||||||
|
let _ = handle.await;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print response
|
||||||
|
if verbose {
|
||||||
|
println!();
|
||||||
|
}
|
||||||
|
println!(
|
||||||
|
"HTTP {} {}",
|
||||||
|
response.status,
|
||||||
|
response.status_reason.as_deref().unwrap_or("")
|
||||||
|
);
|
||||||
|
|
||||||
|
if verbose {
|
||||||
|
for (name, value) in &response.headers {
|
||||||
|
println!("{}: {}", name, value);
|
||||||
|
}
|
||||||
|
println!();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print body
|
||||||
|
let (body, _stats) = response.text().await.expect("Failed to read response body");
|
||||||
|
println!("{}", body);
|
||||||
|
}
|
||||||
|
Commands::Create { workspace_id, name, method, url } => {
|
||||||
|
let request = HttpRequest {
|
||||||
|
workspace_id,
|
||||||
|
name,
|
||||||
|
method: method.to_uppercase(),
|
||||||
|
url,
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
|
|
||||||
|
let created = db
|
||||||
|
.upsert_http_request(&request, &UpdateSource::Sync)
|
||||||
|
.expect("Failed to create request");
|
||||||
|
|
||||||
|
println!("Created request: {}", created.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Terminate plugin manager gracefully
|
||||||
|
plugin_manager.terminate().await;
|
||||||
|
}
|
||||||
@@ -1,21 +1,3 @@
|
|||||||
[workspace]
|
|
||||||
members = [
|
|
||||||
"yaak-crypto",
|
|
||||||
"yaak-fonts",
|
|
||||||
"yaak-git",
|
|
||||||
"yaak-grpc",
|
|
||||||
"yaak-http",
|
|
||||||
"yaak-license",
|
|
||||||
"yaak-mac-window",
|
|
||||||
"yaak-models",
|
|
||||||
"yaak-plugins",
|
|
||||||
"yaak-sse",
|
|
||||||
"yaak-sync",
|
|
||||||
"yaak-templates",
|
|
||||||
"yaak-tls",
|
|
||||||
"yaak-ws",
|
|
||||||
]
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "yaak-app"
|
name = "yaak-app"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
@@ -28,11 +10,6 @@ publish = false
|
|||||||
name = "tauri_app_lib"
|
name = "tauri_app_lib"
|
||||||
crate-type = ["staticlib", "cdylib", "lib"]
|
crate-type = ["staticlib", "cdylib", "lib"]
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
# Currently disabled due to:
|
|
||||||
# Warn Failed to add bundler type to the binary: __TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date and that symbol stripping is disabled (https://doc.rust-lang.org/cargo/reference/profiles.html#strip). Updater plugin may not be able to update this package. This shouldn't normally happen, please report it to https://github.com/tauri-apps/tauri/issues
|
|
||||||
strip = false
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
cargo-clippy = []
|
cargo-clippy = []
|
||||||
default = []
|
default = []
|
||||||
@@ -53,6 +30,8 @@ eventsource-client = { git = "https://github.com/yaakapp/rust-eventsource-client
|
|||||||
http = { version = "1.2.0", default-features = false }
|
http = { version = "1.2.0", default-features = false }
|
||||||
log = { workspace = true }
|
log = { workspace = true }
|
||||||
md5 = "0.8.0"
|
md5 = "0.8.0"
|
||||||
|
r2d2 = "0.8.10"
|
||||||
|
r2d2_sqlite = "0.25.0"
|
||||||
mime_guess = "2.0.5"
|
mime_guess = "2.0.5"
|
||||||
rand = "0.9.0"
|
rand = "0.9.0"
|
||||||
reqwest = { workspace = true, features = ["multipart", "gzip", "brotli", "deflate", "json", "rustls-tls-manual-roots-no-provider", "socks", "http2"] }
|
reqwest = { workspace = true, features = ["multipart", "gzip", "brotli", "deflate", "json", "rustls-tls-manual-roots-no-provider", "socks", "http2"] }
|
||||||
@@ -73,50 +52,25 @@ tauri-plugin-window-state = "2.4.1"
|
|||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
tokio = { workspace = true, features = ["sync"] }
|
tokio = { workspace = true, features = ["sync"] }
|
||||||
tokio-stream = "0.1.17"
|
tokio-stream = "0.1.17"
|
||||||
|
tokio-tungstenite = { version = "0.26.2", default-features = false }
|
||||||
|
url = "2"
|
||||||
tokio-util = { version = "0.7", features = ["codec"] }
|
tokio-util = { version = "0.7", features = ["codec"] }
|
||||||
ts-rs = { workspace = true }
|
ts-rs = { workspace = true }
|
||||||
uuid = "1.12.1"
|
uuid = "1.12.1"
|
||||||
yaak-common = { workspace = true }
|
yaak-common = { workspace = true }
|
||||||
|
yaak-tauri-utils = { workspace = true }
|
||||||
|
yaak-core = { workspace = true }
|
||||||
yaak-crypto = { workspace = true }
|
yaak-crypto = { workspace = true }
|
||||||
yaak-fonts = { workspace = true }
|
yaak-fonts = { workspace = true }
|
||||||
yaak-git = { path = "yaak-git" }
|
yaak-git = { workspace = true }
|
||||||
yaak-grpc = { path = "yaak-grpc" }
|
yaak-grpc = { workspace = true }
|
||||||
yaak-http = { workspace = true }
|
yaak-http = { workspace = true }
|
||||||
yaak-license = { path = "yaak-license", optional = true }
|
yaak-license = { workspace = true, optional = true }
|
||||||
yaak-mac-window = { path = "yaak-mac-window" }
|
yaak-mac-window = { workspace = true }
|
||||||
yaak-models = { workspace = true }
|
yaak-models = { workspace = true }
|
||||||
yaak-plugins = { workspace = true }
|
yaak-plugins = { workspace = true }
|
||||||
yaak-sse = { workspace = true }
|
yaak-sse = { workspace = true }
|
||||||
yaak-sync = { workspace = true }
|
yaak-sync = { workspace = true }
|
||||||
yaak-templates = { workspace = true }
|
yaak-templates = { workspace = true }
|
||||||
yaak-tls = { workspace = true }
|
yaak-tls = { workspace = true }
|
||||||
yaak-ws = { path = "yaak-ws" }
|
yaak-ws = { workspace = true }
|
||||||
|
|
||||||
[workspace.dependencies]
|
|
||||||
chrono = "0.4.42"
|
|
||||||
hex = "0.4.3"
|
|
||||||
keyring = "3.6.3"
|
|
||||||
reqwest = "0.12.20"
|
|
||||||
rustls = { version = "0.23.34", default-features = false }
|
|
||||||
rustls-platform-verifier = "0.6.2"
|
|
||||||
serde = "1.0.228"
|
|
||||||
serde_json = "1.0.145"
|
|
||||||
sha2 = "0.10.9"
|
|
||||||
log = "0.4.29"
|
|
||||||
tauri = "2.9.5"
|
|
||||||
tauri-plugin = "2.5.2"
|
|
||||||
tauri-plugin-dialog = "2.4.2"
|
|
||||||
tauri-plugin-shell = "2.3.3"
|
|
||||||
thiserror = "2.0.17"
|
|
||||||
tokio = "1.48.0"
|
|
||||||
ts-rs = "11.1.0"
|
|
||||||
yaak-common = { path = "yaak-common" }
|
|
||||||
yaak-crypto = { path = "yaak-crypto" }
|
|
||||||
yaak-fonts = { path = "yaak-fonts" }
|
|
||||||
yaak-http = { path = "yaak-http" }
|
|
||||||
yaak-models = { path = "yaak-models" }
|
|
||||||
yaak-plugins = { path = "yaak-plugins" }
|
|
||||||
yaak-sse = { path = "yaak-sse" }
|
|
||||||
yaak-sync = { path = "yaak-sync" }
|
|
||||||
yaak-templates = { path = "yaak-templates" }
|
|
||||||
yaak-tls = { path = "yaak-tls" }
|
|
||||||
3
crates-tauri/yaak-app/bindings/gen_watch.ts
generated
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
|
export type WatchResult = { unlistenEvent: string, };
|
||||||
@@ -10,6 +10,8 @@ export type UpdateResponse = { "type": "ack" } | { "type": "action", action: Upd
|
|||||||
|
|
||||||
export type UpdateResponseAction = "install" | "skip";
|
export type UpdateResponseAction = "install" | "skip";
|
||||||
|
|
||||||
|
export type WatchResult = { unlistenEvent: string, };
|
||||||
|
|
||||||
export type YaakNotification = { timestamp: string, timeout: number | null, id: string, title: string | null, message: string, color: string | null, action: YaakNotificationAction | null, };
|
export type YaakNotification = { timestamp: string, timeout: number | null, id: string, title: string | null, message: string, color: string | null, action: YaakNotificationAction | null, };
|
||||||
|
|
||||||
export type YaakNotificationAction = { label: string, url: string, };
|
export type YaakNotificationAction = { label: string, url: string, };
|
||||||
5
crates-tauri/yaak-app/bindings/plugins_ext.ts
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
|
export type PluginUpdateInfo = { name: string, currentVersion: string, latestVersion: string, };
|
||||||
|
|
||||||
|
export type PluginUpdateNotification = { updateCount: number, plugins: Array<PluginUpdateInfo>, };
|
||||||
@@ -51,13 +51,7 @@
|
|||||||
"opener:allow-open-url",
|
"opener:allow-open-url",
|
||||||
"opener:allow-reveal-item-in-dir",
|
"opener:allow-reveal-item-in-dir",
|
||||||
"shell:allow-open",
|
"shell:allow-open",
|
||||||
"yaak-crypto:default",
|
|
||||||
"yaak-fonts:default",
|
"yaak-fonts:default",
|
||||||
"yaak-git:default",
|
"yaak-mac-window:default"
|
||||||
"yaak-mac-window:default",
|
|
||||||
"yaak-models:default",
|
|
||||||
"yaak-plugins:default",
|
|
||||||
"yaak-sync:default",
|
|
||||||
"yaak-ws:default"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 848 B After Width: | Height: | Size: 848 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 356 KiB After Width: | Height: | Size: 356 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |