Skip to content

Remove notify watch, use local socket IPC for changes feed #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
39e1721
Create stub sos-changes crate.
tmpfs Mar 10, 2025
ffd4d9a
Rename ChangeNotification -> NetworkChangeEvent.
tmpfs Mar 10, 2025
c276b63
Sketch local change event.
tmpfs Mar 10, 2025
bb8d013
Define CommitSpan type.
tmpfs Mar 10, 2025
18b3118
Event logs return a commit span.
tmpfs Mar 10, 2025
70f751c
Move LocalChangeEvent to core library.
tmpfs Mar 10, 2025
a32c0a3
Initial logic to send events over the changes feed channel.
tmpfs Mar 10, 2025
b06f469
Prepare producer and consumer for changes feed.
tmpfs Mar 10, 2025
ef5b0a3
Update producer to support multiple sockets.
tmpfs Mar 10, 2025
381df4e
Prepare logic to monitor for active local sockets.
tmpfs Mar 10, 2025
172f363
Initial changes test spec.
tmpfs Mar 11, 2025
4bdcded
Add script_runner.
tmpfs Mar 11, 2025
11b1a01
Update test fixtures.
tmpfs Mar 11, 2025
8a7ac4b
Update extension helper service to proxy change events.
tmpfs Mar 11, 2025
0419631
Call close on the client in test spec.
tmpfs Mar 11, 2025
d34ed49
Add tracing warning when fail to connect in producer.
tmpfs Mar 11, 2025
8c75691
Tidying calls to scaffold.
tmpfs Mar 11, 2025
f776d9d
Avoid tempdir_in() in test spec.
tmpfs Mar 11, 2025
e860e1e
Add migration for global_config table.
tmpfs Mar 11, 2025
07eede4
Make column NOT NULL.
tmpfs Mar 11, 2025
911b009
Tidy call to ensure().
tmpfs Mar 11, 2025
05d2ee4
Fix bug with db audit provider stream.
tmpfs Mar 11, 2025
d95a929
Update default log level.
tmpfs Mar 11, 2025
db225e6
Update tracing when running migrations.
tmpfs Mar 11, 2025
bc23031
Tweak tracing output.
tmpfs Mar 11, 2025
d223115
Update migration output.
tmpfs Mar 11, 2025
ecdff2a
Tweak error messages.
tmpfs Mar 12, 2025
9897b4e
Support creating a debug snapshot ZIP archive.
tmpfs Mar 12, 2025
465ea17
Update SDK readme.
tmpfs Mar 12, 2025
c0c186b
Update sandbox configs, add PairTargetUrl.
tmpfs Mar 13, 2025
b661e55
Improve pairing URL test spec.
tmpfs Mar 13, 2025
34b99ce
Update tracing warnings.
tmpfs Mar 13, 2025
606c4df
Improve handling and tracing of file uploads.
tmpfs Mar 13, 2025
1e34d72
Update default log level.
tmpfs Mar 13, 2025
660a87e
Do not call ensure() on paths on sign_in().
tmpfs Mar 13, 2025
cc704ba
Remove PairTargetUrl.
tmpfs Mar 14, 2025
020be3c
Tidy pairing websocket loops.
tmpfs Mar 14, 2025
cad1217
Remove stale files in changes producer.
tmpfs Mar 14, 2025
23d6c9b
Support updating audit trail providers.
tmpfs Mar 15, 2025
0701090
Update file deletion logic in upgrade accounts.
tmpfs Mar 15, 2025
d220a00
Fix typo.
tmpfs Mar 15, 2025
8abecad
Update default log level.
tmpfs Mar 15, 2025
6c391f5
Update logic for db upgrade file deletion.
tmpfs Mar 15, 2025
0f3b770
Revert changes to audit module.
tmpfs Mar 15, 2025
30d7008
Improve handling of closed channels.
tmpfs Mar 15, 2025
6e04806
Remove duplicate migration logs in db upgrade.
tmpfs Mar 15, 2025
39625cc
Delete files after moving db into place.
tmpfs Mar 15, 2025
27d2c8a
Add Debug impl for BackendTarget.
tmpfs Mar 15, 2025
d8dc589
Start refactor of ipc changes handling.
tmpfs Apr 18, 2025
53f3f89
Add claude config.
tmpfs Apr 22, 2025
bb1f3c3
Update dependencies.
tmpfs Apr 23, 2025
9c6c82f
Enable files feature on sos-ipc in sos-extension-service.
tmpfs Apr 23, 2025
d55f56c
Fix duplicate initialization of the ChangeConsumer listener.
tmpfs Apr 23, 2025
a5c0866
Fix bug in AccountSwitcher::load_accounts().
tmpfs Apr 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Build and Test Commands
- Build: `cargo make debug` (debug) or `cargo make release` (optimized)
- Format: `cargo make format` or check with `cargo make format-check`
- Lint: `cargo make clippy`
- Test: `cargo make test` (standard) or `cargo make test-all` (all backends)
- Unit tests only: `cargo make unit`
- Single test: `cargo nextest run -p sos-integration-tests test_name`
- CLI tests: `cargo make test-cli` or `cargo make test-shell`
- Documentation: `cargo make doc`

## Code Style
- Use the Rust 2018 edition style
- Maximum line width: 78 characters
- Prefer `thiserror` for error handling with clear, specific error types
- Use doc comments (`///`) for public APIs
- Add `#![deny(missing_docs)]` and `#![forbid(unsafe_code)]` to crate roots
- Prefer `Result<T, Error>` with custom error types for error handling
- Implement informative Display/Debug traits for public types
- Use bitflags for flag-based enums
- Ensure proper serialization/deserialization for custom types

## Naming and Structure
- Use snake_case for variables, functions, and modules
- Use PascalCase for types and traits
- Group related functionality in modules
- Re-export important types in crate root
- Use clear, descriptive names that reflect domain concepts
- Follow vault, folder, secret terminology as defined in documentation
Loading