Commit c5917a5
feat: implement memory entry synchronization functions and schemas (#71)
* feat: implement memory entry synchronization functions and schemas
* feat: implement authentication service and integrate with UI components
* refactor: remove debug log for authentication status in App component
* feat: implement PKCE for secure OAuth flow and enhance auth logging
* fix: remove unnecessary response_type parameter and add extension metadata to token request
* feat(sync): integrate Convex for synchronization and add auto-sync functionality
- Added Convex as a dependency for synchronization.
- Implemented ConvexClientManager to manage Convex client initialization and authentication.
- Created SyncService to handle sync operations (push, pull, full sync) with remote storage.
- Introduced AutoSyncManager to manage automatic synchronization triggers.
- Updated auth store to authenticate sync service upon successful login.
- Enhanced memory store to trigger debounced push sync after memory operations.
- Added sync state management to handle sync operations and errors.
- Refactored provider-key-input component to clean up imports.
- Improved background script to check auth status and trigger startup sync.
- Updated options and popup components to include necessary imports and hooks.
* wip: supabase auth check in sync service
* feat(auth): implement OAuth login flow with Supabase and add LoginDialog component
* refactor: reorganize imports and improve type definitions across multiple files
* feat: refactor storage structure by replacing securityStorage with apiKeys and syncStateAndSettings
* feat: update @types/node to version 24.10.1 and format tsconfig.json for consistency
* refactor: update authentication check to use getUser instead of getSession
* refactor: remove unused crypto-utils functions and update Supabase client configuration
* refactor: enhance trigger-settings and theme-provider imports; update permissions in wxt.config
* refactor: remove unused flowType configuration from Supabase client
* fix: improve memory sync handling by ensuring null values for optional fields
* feat: implement sync functionality with manual trigger and status handling
* fix: enhance loading state handling and improve code formatting in App components
* feat: enhance authentication flow and sync functionality across components
* feat: add cloud models support and settings management across components
* fix: update WXT_WEBSITE_URL in .env.example for consistency
* feat: enhance database types with payments, subscriptions, and webhook logs support
* fix: reduce authentication wait timeout from 300s to 120s and update cloud models toggle behavior for unauthenticated users
* chore: update dependencies to latest versions
- upgraded @opentelemetry/sdk-trace-web from ^2.2.0 to ^2.3.0
- upgraded @supabase/supabase-js from ^2.81.1 to ^2.90.1
- upgraded ai from ^5.0.117 to ^5.0.118
- upgraded use-debounce from ^10.0.6 to ^10.1.0
- upgraded zod from ^4.3.4 to ^4.3.5
- upgraded @typescript/native-preview from ^7.0.0-dev.20260102.1 to ^7.0.0-dev.20260109.1
* fix: update service registration order and sync service import
* feat: adjust logging verbosity from info to debug
This is for routine operations and refine user authentication context in the sync service.
* fix: reorder key validation service registration and ensure message listener returns a promise
* feat: integrate capture memory service and add message handler for saving captured memories
* feat: integrate cloud AI features for categorization and deduplication
- Added cloud AI support for bulk categorization and deduplication in the BulkCategorizer and DeduplicationCategorizer classes.
- Implemented cloud-based categorization and rephrasing in the CategorizationService.
- Introduced cloud-client module for handling API requests to the cloud service.
- Enhanced the AIMatcher to utilize cloud models for field matching.
- Added toast notifications for cloud AI usage and quota limits.
- Updated UI components to display cloud usage status and settings.
- Refactored existing code to support cloud functionality and improve maintainability.
* feat: enhance CloudUsageDisplay with compact mode and tooltip for better usage insights
* refactor: remove compact mode from CloudUsageDisplay component
* feat: Implement pending deletion queue and sync process for memory entries.
* feat: Integrate cloud usage tracking and enhance alert system for cloud model limits
* feat: refactor cloud usage handling and improve cache invalidation logic
* fix: simplify Separator component usage in AiProviderSettings
* fix: update existingMemoryId type to use z.uuid() in DeduplicationOperationSchema
* feat: update biome schema version, refactor useAuth hook with React Query, and implement sync cooldown logic
* fix: streamline includes formatting in biome.json
* feat: implement content hash computation for memory entries and update related schemas
* Merge branch 'main' of https://github.com/mikr13/superfill.ai into phase-2
* feat: update changeset to reflect addition of subscription service
* feat: enhance user feedback for pending account approval in auth components
* feat: add environment variable validation for release workflow
* feat: improve toast manager UI handling and theme application
* fix: update version type for subscription service to minor
* fix: conditionally include localhost permission in manifest
* fix: reorder installation of dependencies in CI workflow
* fix: improve usage percentage calculation and update database types for cloud usage
* fix: reorder imports for better organization in use-auth hook
* fix: refactor useAuth hook to streamline user status fetching and improve state management
* fix: replace autoSyncManager with direct call to performFullSync during startup sync
* fix: update deduplication schemas to use TagSchema and improve type definitions
* fix: ensure cloud usage status is checked before displaying alert for active cloud models
* fix: centralize ToastType definition and update imports across components
* fix: enhance error handling in cloud categorization and rephrasing, and update timestamp fields to ISO string format in sync types
---------
Co-authored-by: Mihir Kumar <mihir.kumar-ext@ab-Inbev.com>1 parent a790d17 commit c5917a5
57 files changed
Lines changed: 4550 additions & 722 deletions
File tree
- .changeset
- .github/workflows
- src
- assets
- components
- features
- auth
- setting
- ui
- entrypoints
- background
- content
- components
- options
- popup
- hooks
- lib
- ai
- auth
- autofill
- document
- providers
- security
- storage
- supabase
- sync
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | | - | |
271 | 271 | | |
272 | 272 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
0 commit comments