1674 Commits

Author SHA1 Message Date
Jamie Pine
21c641dddf Merge branch 'main' into release-build-fixes 2026-02-06 19:20:52 -08:00
Jamie Pine
e64e4213da Merge branch 'main' into release-build-fixes 2026-02-05 23:41:04 -08:00
StarbirdTech
abedb6a6e6 chore: fix package exports, hoist types, remove stale lockfiles
Clean up package.json files: hoist @types/react to root devDependencies
with overrides, add proper exports and type declarations to @sd/assets,
improve @sd/ts-client exports and move react/@tanstack/react-query to
peer dependencies. Fix i64/u64 type mismatch in location manager.

Delete stale lockfiles from packages/interface, packages/ts-client, and
apps/mobile/modules/sd-mobile-core that shouldn't exist in a monorepo
managed by the root lockfile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 02:19:00 -05:00
Jamie Pine
b23ae40a01 v2.0.0-alpha.2 2026-02-05 23:12:55 -08:00
Jamie Pine
9de7ee88ed Update versioning across multiple packages and enhance GitHub Actions workflow
- Changed versioning from "2.0.0-pre.1" to "2.0.0-alpha.1" in various Cargo.toml files and package.json to reflect a new alpha release.
- Added support for ARM64 builds in the GitHub Actions workflow, including a new host configuration and installation of VA-API libraries for the ARM target.
- Introduced a new `bump` command in the xtask to facilitate version updates across all relevant files, improving version management.
2026-02-05 22:58:11 -08:00
Jamie Pine
9f7edb5086 Merge pull request #3010 from StarbirdTech/build/unify-workspace-cleanup
build: unify mobile core into root workspace
2026-02-05 22:25:24 -08:00
StarbirdTech
7741f970e5 build: unify mobile core into root workspace
Merge sd-mobile-core into the root Cargo workspace so desktop and
mobile share a single dependency tree and target directory. Remove dead
[patch.crates-io] entries for iroh and netdev that stopped being applied
after the iroh v0.95.1 upgrade. Switch mobile core deps to workspace
versions, fix clippy/warnings surfaced by workspace-wide checks, and
add BINDGEN_EXTRA_CLANG_ARGS to fix errno.h not found on clean macOS
builds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 01:01:27 -05:00
Jamie Pine
d25ca1e63b Refactor inode mapping in LocationManager
- Updated the inode mapping in the LocationManager to simplify the conversion process, enhancing code clarity and maintainability.
2026-02-05 21:27:19 -08:00
Jamie Pine
2ea55d86e1 Merge branch 'main' into release-build-fixes 2026-02-05 21:12:36 -08:00
Jamie Pine
f6122414c3 Merge pull request #3003 from gedeondoescode/fix-windows
Enable Spacedrive to successfully build on Windows
2026-02-05 19:39:57 -08:00
Gedeon Sainrival
e4e53b751c Fix volume indexing
Previous implementation of `reconstruct_path` was Unix-specific and did
not work as intended on Windows. It has now been reworked to operate
well enough on all platforms and can work with Windows most importantly.
2026-01-31 19:12:52 -05:00
StarbirdTech
74d3b82a87 feat(core): add speech-to-text feature flag for optional AI dependencies
Introduces a proper feature flag hierarchy for AI-related dependencies,
allowing lite builds without heavy speech-to-text dependencies.

Feature hierarchy:
- `ai` - umbrella feature for all AI capabilities
- `speech-to-text` - transcription capability (requires ffmpeg + whisper)
- `whisper` - Whisper speech recognition engine (internal)
- `ffmpeg` - audio/video processing (existing)

Changes:
- Make whisper-rs, hound, rubato optional deps behind `whisper` feature
- Add `speech-to-text` feature that requires both ffmpeg and whisper
- Add `ai` umbrella feature that enables all AI features
- Update all cfg guards to use semantic `#[cfg(feature = "speech-to-text")]`
- Expose new features in apps/server and apps/cli
- Update release workflow to include `ai` feature (maintains existing behavior)

This enables:
- Mobile builds without STT (smaller binary, already using default-features=false)
- Desktop "lite" builds for users who want minimal size
- Future AI features can be added under the `ai` umbrella

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:07:07 -05:00
Gedeon Sainrival
d31fc97c8c Canonicalize Windows paths 2026-01-28 21:42:57 -05:00
Jamie Pine
4b5ad6508a Refactor Windows file handling in location manager and processing phases
- Updated the handling of file IDs for Windows to use `None::<u64>` for clarity.
- Adjusted the inode assignment in the processing phase to reflect the need for unstable features, falling back to `None` for compatibility.
- Improved the backend identifier logic for network volumes by using a temporary variable for the mount path string, enhancing readability and maintainability.
2026-01-28 18:00:47 -08:00
Gedeon Sainrival
14901455b2 fix tembo's bad commit 2026-01-28 20:10:17 -05:00
Gedeon
61d6acef1d Update core/src/ops/indexing/phases/processing.rs
Co-authored-by: tembo[bot] <208362400+tembo[bot]@users.noreply.github.com>
2026-01-28 19:42:20 -05:00
Gedeon Sainrival
342ea15484 detect Windows volumes 2026-01-25 18:25:45 -05:00
Gedeon Sainrival
723379a31b use windows_sys api rather than unstable windows_by_handle Metadata
method.
2026-01-25 18:25:07 -05:00
Gedeon Sainrival
97594aab7f Specify type in inode closure 2026-01-25 18:24:06 -05:00
Jamie Pine
388b4dde28 cargo fmt 2026-01-24 16:14:21 -08:00
Jamie Pine
0bee40bcce refactor(network): update connection handling in ListLibraryDevicesQuery
- Modified the connection type retrieval to use the .borrow() method for improved compatibility with the updated Iroh API.
- Enhanced the logic for determining device connection status, ensuring accurate online/offline state updates based on current network conditions.
- Added a TODO comment regarding the potential removal of the is_online column for better clarity in future refactoring.
2026-01-24 16:08:48 -08:00
Jamie Pine
c09cc5942d refactor(network): update to use EndpointId and EndpointAddr
- Replaced NodeId with EndpointId in various components to align with the new Iroh v0.95+ API.
- Updated connection handling to utilize EndpointAddr instead of NodeAddr, reflecting changes in the underlying library.
- Adjusted discovery and connection logic to accommodate the immutability of EndpointAddr, enhancing overall network functionality.
2026-01-24 15:41:10 -08:00
tembo[bot]
d4d912bc3f chore(iroh): upgrade to v0.95.1 with breaking changes and migration steps 2026-01-24 21:58:43 +00:00
Jamie Pine
7a6d79011a refactor(device): improve device data handling and UI components
- Enhanced the device model to handle null values more gracefully during data extraction, ensuring robust error handling for OS version, hardware model, CPU details, and other attributes.
- Updated the DevicePanel to include new connection status icons and tooltips for better user experience.
- Integrated TooltipProvider in the Shell component for consistent tooltip functionality across the interface.
- Minor documentation updates in the getting started guide to reflect the latest version and supported platforms.
2026-01-24 13:23:41 -08:00
Jamie Pine
67ce501b4d fixed the infinite loop bug. The bidirectional
registration now only triggers when a new device is created
  (messaging.rs:395-448), not when updating an existing device.

  What changed:
  - Moved the tokio::spawn block from after the entire match
  existing statement into the Ok(None) branch (new device
  creation)
  - When a device is updated (already exists), it no longer sends
   a registration request back
2026-01-24 12:37:44 -08:00
Jamie Pine
cb51a6c1fb add better ConnectionInfo 2026-01-24 12:13:26 -08:00
Jamie Pine
26a730c0f2 add sd sync partners CLI 2026-01-24 11:09:09 -08:00
Jamie Pine
eb1de30d26 remove pairing expiration 2026-01-24 11:06:02 -08:00
Jamie Pine
8eca2d2bc0 chore(migration): simplify device table updates by dropping unused columns
- Updated the migration to leverage SQLite's ALTER TABLE DROP COLUMN feature, eliminating the need for table recreation.
- Removed the last_sync_at, last_state_watermark, and last_shared_watermark columns from the devices table, as they are no longer utilized.
- This change streamlines the database schema and improves migration efficiency.
2026-01-22 19:37:58 -08:00
Jamie Pine
37d19adb08 chore(sync): remove legacy last_sync_at column and related functionality
- Removed the last_sync_at field from the device model and related structures, as it is now superseded by per-peer watermark tracking in sync.db.
- Updated various components, including device registration, sync setup, and messaging protocols, to eliminate references to last_sync_at.
- Introduced a migration to drop the obsolete last_sync_at column from the devices table.
- Adjusted tests and helper functions to reflect the removal of last_sync_at, ensuring they align with the new sync architecture.
2026-01-22 19:37:43 -08:00
Jamie Pine
5673bd0eb4 feat(device): enhance device registration with comprehensive hardware specifications
- Added new fields for device OS, hardware model, CPU details, memory, and storage specifications to the device registration process.
- Updated the LibraryManager to handle the new device attributes during device creation and updates.
- Modified the sync setup action to include full device information when registering devices with remote peers.
- Enhanced the messaging protocol to support the transmission of detailed hardware specs during device registration.
- Introduced a new test for transitive sync backfill to validate the complete sync process across multiple devices.
2026-01-22 18:02:07 -08:00
Jamie Pine
5f1cc9b539 dman it 2026-01-22 15:55:50 -08:00
Jamie Pine
5df40abd07 chore(migration): remove obsolete device sync migration
- Deleted the migration file for transitioning device sync to shared resources as it is no longer needed.
2026-01-22 15:54:11 -08:00
Jamie Pine
966b7fea7a feat(sync): transition device sync to shared resources
- Updated device versioning to use the `updated_at` timestamp for conflict resolution.
- Refactored sync methods to support shared changes with HLC-based conflict resolution.
- Implemented automatic device discovery via shared sync, allowing devices to propagate changes to all members in the library.
- Added migration to transition existing devices to shared sync.
- Enhanced documentation to reflect changes in device ownership and sync methods.
2026-01-22 15:52:42 -08:00
Jamie Pine
33070761d2 Update core/src/service/network/protocol/pairing/vouching_queue.rs
Co-authored-by: tembo[bot] <208362400+tembo[bot]@users.noreply.github.com>
2026-01-22 15:00:18 -08:00
Jamie Pine
1d11e121dc feat(pairing): enhance proxy pairing functionality and add tests
- Introduced new event types for proxy pairing confirmation and vouching readiness in the event summarization.
- Implemented a reload mechanism for protocol configurations to support dynamic updates during runtime.
- Enhanced the PairingProtocolHandler to manage joiner pairing handshakes and improve session handling.
- Added comprehensive unit tests for proxy pairing, covering session creation, state transitions, and vouching logic.
- Updated configuration structures to include default proxy pairing settings for better integration.
2026-01-22 14:55:58 -08:00
Jamie Pine
c6ada5a07a refactor(pairing): update proxy pairing configuration and serialization methods
- Changed the import path for ProxyPairingConfig to app_config for better organization.
- Replaced bincode serialization with encode_to_vec for improved error handling in vouch payload signing and validation.
- Updated references to AcceptedDevice and RejectedDevice to remove unnecessary super:: prefix.
- Adjusted the vouching queue to return rows_affected as a method call for consistency.
- Enhanced TestConfigBuilder to include default proxy pairing configuration.
2026-01-22 13:21:13 -08:00
Jamie Pine
38922c2765 refactor(app): improve code readability and structure in UpdateAppConfigAction
- Reformatted the valid themes array for better readability.
- Enhanced the downcast reference for PairingProtocolHandler to improve clarity.
- Streamlined the event emission for config changes to enhance code consistency.
2026-01-22 12:56:35 -08:00
Jamie Pine
f41b54fe26 Merge branch 'main' into cursor/device-proxy-pairing-651c 2026-01-22 12:46:15 -08:00
Cursor Agent
2f7a88a625 refactor useNormalizedQuery to accept query name
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-22 07:00:52 +00:00
Jamie Pine
0264add338 feat(mobile): add GlassSearchBar and JobManagerPanel components, update Xcode scheme
- Introduced GlassSearchBar component for enhanced search functionality in the mobile app.
- Added JobManagerPanel component to manage and display job statuses.
- Updated Xcode scheme to use Debug configuration and LLDB debugger for improved development experience.
- Enhanced OverviewScreen to integrate the new components, improving user interaction and job visibility.
2026-01-21 16:15:58 -08:00
Jamie Pine
59184f8849 feat(mobile): integrate LiquidGlass for enhanced UI and add sidecar statistics
- Added LiquidGlass dependency to enhance visual effects in the GlassButton component.
- Updated GlassButton to support LiquidGlass effects based on device compatibility.
- Introduced PageIndicator component for improved navigation feedback in BrowseScreen.
- Enhanced OverviewScreen and HeroStats to display sidecar statistics, including count and size.
- Updated related files and dependencies to reflect these changes.
2026-01-21 14:58:12 -08:00
Jamie Pine
0f65d672ff feat(overview, mobile): Themes and improved OverviewScreen
- Introduced a new GlassButton component for enhanced UI interactions.
- Updated OverviewScreen to include animated blur effects and improved header behavior during scrolling.
- Added expo-blur dependency to enhance visual effects in the mobile application.
- Adjusted Podfile.lock and package.json to reflect new dependencies and ensure compatibility.
2026-01-21 12:26:34 -08:00
Cursor Agent
7070f0a597 fix: unique proxy keys and auto vouch
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-21 01:51:29 +00:00
Cursor Agent
4e78a0cb6b feat: add proxy pairing flow
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-21 00:47:31 +00:00
Jamie Pine
1b04b3b431 feat(sync): implement batch event emission for applied UUIDs during backfill
This commit enhances the BackfillManager by collecting successfully applied UUIDs during the backfill process and emitting batch resource events for UI reactivity. It also updates the protocol handler to emit resource events for insert and update changes, ensuring that the UI reflects the latest state. Additionally, a new test is added to verify that volume ResourceChanged events are emitted correctly during synchronization, improving the overall synchronization experience.
2026-01-20 14:55:31 -08:00
Jamie Pine
b9bfa5463c feat(sync): enhance foreign key handling and mime type synchronization
This commit introduces improvements to the synchronization process by adding foreign key conversion to UUIDs for cross-device compatibility. It also implements batch syncing of mime types before content identities to ensure proper dependency resolution. Additionally, the content identity model is updated to include mime type and kind ID handling, enhancing data integrity during sync operations. Debugging information is added to track registered models and their sync types, improving traceability in the sync process.
2026-01-20 14:00:27 -08:00
Jamie Pine
f2dc233f93 feat(file-explorer): enhance file handling and search functionality
This commit introduces several improvements to the file explorer and search functionalities. It adds a new `getFileKindForIcon` utility for better icon resolution based on file content kind. The search input validation now allows empty queries when sorting by `IndexedAt`, and the search query execution has been optimized to handle empty queries more efficiently. Additionally, the `ContentKind` utility has been refactored and centralized in the `ts-client`, improving code organization and reusability across components. Updates to various components ensure consistent usage of the new utilities, enhancing the overall user experience.
2026-01-20 10:36:18 -08:00
Jamie Pine
ebe7d36ed5 feat(recents): add RecentsView for displaying recently indexed files
This commit introduces the RecentsView component, which allows users to view recently indexed files sorted by the indexed_at timestamp. The view integrates seamlessly with existing components, ensuring consistent interactions such as keyboard navigation and drag-to-select. Additionally, it updates the Explorer context to support entering and exiting recents mode, enhancing the overall file browsing experience.
2026-01-20 10:35:48 -08:00
Jamie Pine
118baf6ec2 fix(location, volume): update device_id parameter for query methods and enhance filtering logic
This commit modifies the `query_for_sync` methods in both the Location and Volume models to rename the `_device_id` parameter to `device_id` for consistency. Additionally, it enhances the filtering logic to ensure proper device ownership checks during database queries, improving data integrity and synchronization processes. The comments have also been updated to reflect these changes.
2026-01-19 14:20:45 -08:00