├── .changeset ├── README.md └── config.json ├── .clinerules-code ├── .envrc ├── .github ├── PULL_REQUEST_TEMPLATE │ └── default.md ├── actions │ └── setup │ │ └── action.yml └── workflows │ ├── changeset-check.yml │ ├── check.yml │ ├── ci.yml │ ├── release.yml │ └── snapshot.yml ├── .gitignore ├── .npmrc ├── .prettierrc ├── .repomixignore ├── .roomodes ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── .windsurfrules ├── DESIGN.md ├── LICENSE ├── README.md ├── docs ├── add-gemini-2.5-to-pearai-roo-client.md └── vendor │ ├── effect-full.txt │ ├── effect-http-node │ ├── http-node-api.ts │ ├── http-node-client-example.ts │ ├── http-node-router.ts │ ├── http-node-server.ts │ └── http-node-tag-router.ts │ ├── effect-rpc-example.ts │ ├── effect-rpc-readme.md │ └── electric-sql-experimental.yaml ├── eslint.config.js ├── examples └── todo-app │ ├── .eslintignore │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── Dockerfile │ ├── LICENSE │ ├── README.md │ ├── docker-compose.yml │ ├── index.html │ ├── package.json │ ├── postgres.conf │ ├── public │ ├── favicon.ico │ └── robots.txt │ ├── src │ ├── actions.ts │ ├── assets │ │ └── logo.svg │ ├── db │ │ ├── electric.tsx │ │ ├── repositories.ts │ │ ├── schema.ts │ │ └── setup.ts │ ├── error-page.tsx │ ├── hooks │ │ └── useSyncedActions.ts │ ├── main.tsx │ ├── routes │ │ ├── index.tsx │ │ └── root.tsx │ ├── server.ts │ ├── sst-env.d.ts │ ├── style.css │ ├── svg.d.ts │ └── vite-env.d.ts │ ├── sst-env.d.ts │ ├── sst.config.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ ├── tsconfig.node.json │ ├── tsconfig.src.json │ ├── tsconfig.test.json │ └── vite.config.ts ├── flake.lock ├── flake.nix ├── package.json ├── packages ├── sql-pglite │ ├── .envrc │ ├── .gitignore │ ├── .vscode │ │ ├── extensions.json │ │ └── settings.json │ ├── LICENSE │ ├── README.md │ ├── eslint.config.mjs │ ├── flake.lock │ ├── flake.nix │ ├── package.json │ ├── patches │ │ └── babel-plugin-annotate-pure-calls@0.4.0.patch │ ├── setupTests.ts │ ├── src │ │ ├── PgLiteClient.ts │ │ ├── PgLiteMigrator.ts │ │ └── index.ts │ ├── test │ │ ├── Client.test.ts │ │ └── Transaction.test.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ ├── tsconfig.src.json │ ├── tsconfig.test.json │ ├── vitest-setup.ts │ └── vitest.config.ts ├── sync-client │ ├── package.json │ ├── src │ │ ├── SyncNetworkService.ts │ │ ├── db │ │ │ └── connection.ts │ │ ├── electric │ │ │ ├── ElectricSyncService.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── layer.ts │ │ └── test │ │ │ └── TestLayers.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ ├── tsconfig.src.json │ ├── tsconfig.test.json │ ├── vite.config.ts │ ├── vitest-setup.ts │ └── vitest.config.ts ├── sync-core │ ├── package.json │ ├── src │ │ ├── ActionModifiedRowRepo.ts │ │ ├── ActionRecordRepo.ts │ │ ├── ActionRegistry.ts │ │ ├── ClientIdOverride.ts │ │ ├── ClockService.ts │ │ ├── HLC.ts │ │ ├── SyncNetworkRpc.ts │ │ ├── SyncNetworkService.ts │ │ ├── SyncService.ts │ │ ├── actions │ │ │ └── exampleAction.ts │ │ ├── config.ts │ │ ├── db │ │ │ ├── action-functions.ts │ │ │ ├── amr-functions.ts │ │ │ ├── clock-functions.ts │ │ │ ├── index.ts │ │ │ ├── patch-functions.ts │ │ │ ├── schema.ts │ │ │ └── sql │ │ │ │ ├── action │ │ │ │ ├── find_common_ancestor.sql │ │ │ │ └── rollback_to_action.sql │ │ │ │ ├── amr │ │ │ │ ├── apply_forward_amr.sql │ │ │ │ └── apply_reverse_amr.sql │ │ │ │ ├── clock │ │ │ │ ├── compare_hlc.sql │ │ │ │ └── compare_vector_clocks.sql │ │ │ │ ├── patch │ │ │ │ ├── create_patches_trigger.sql │ │ │ │ ├── deterministic_id_trigger.sql │ │ │ │ ├── generate_op_patches.sql │ │ │ │ ├── generate_patches.sql │ │ │ │ ├── handle_insert_operation.sql │ │ │ │ ├── handle_remove_operation.sql │ │ │ │ └── handle_update_operation.sql │ │ │ │ └── schema │ │ │ │ └── create_sync_tables.sql │ │ ├── global.d.ts │ │ ├── index.ts │ │ ├── models.ts │ │ └── utils.ts │ ├── test │ │ ├── ActionRegistry.test.ts │ │ ├── ClockAndPatches.test.ts │ │ ├── SyncService.test.ts │ │ ├── basic-action-execution.test.ts │ │ ├── db-functions.test.ts │ │ ├── helpers │ │ │ ├── SyncNetworkServiceTest.ts │ │ │ ├── TestHelpers.ts │ │ │ └── TestLayers.ts │ │ ├── sync-core.test.ts │ │ └── sync-divergence.test.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ ├── tsconfig.src.json │ ├── tsconfig.test.json │ ├── vite.config.ts │ └── vitest.config.ts └── sync-server │ ├── package.json │ ├── src │ ├── SyncNetworkService.ts │ ├── SyncServerService.ts │ ├── db │ │ └── connection.ts │ ├── index.ts │ ├── rpcRouter.ts │ └── test │ │ └── TestLayers.ts │ ├── tsconfig.build.json │ ├── tsconfig.json │ ├── tsconfig.src.json │ ├── tsconfig.test.json │ ├── vite.config.ts │ └── vitest.config.ts ├── patches └── @electric-sql__pglite-repl.patch ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── postgrestools.jsonc ├── repomix-output.md ├── repomix.config.json ├── tsconfig.base.json ├── tsconfig.json ├── vite.shared.ts ├── vitest-setup-client.ts ├── vitest.config.ts └── vitest.shared.ts /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.clinerules-code: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.clinerules-code -------------------------------------------------------------------------------- /.envrc: -------------------------------------------------------------------------------- 1 | use flake; 2 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE/default.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/PULL_REQUEST_TEMPLATE/default.md -------------------------------------------------------------------------------- /.github/actions/setup/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/actions/setup/action.yml -------------------------------------------------------------------------------- /.github/workflows/changeset-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/workflows/changeset-check.yml -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/workflows/check.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/snapshot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.github/workflows/snapshot.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | shamefully-hoist=false -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.prettierrc -------------------------------------------------------------------------------- /.repomixignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.repomixignore -------------------------------------------------------------------------------- /.roomodes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.roomodes -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /.windsurfrules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/.windsurfrules -------------------------------------------------------------------------------- /DESIGN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/DESIGN.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/README.md -------------------------------------------------------------------------------- /docs/add-gemini-2.5-to-pearai-roo-client.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/add-gemini-2.5-to-pearai-roo-client.md -------------------------------------------------------------------------------- /docs/vendor/effect-full.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-full.txt -------------------------------------------------------------------------------- /docs/vendor/effect-http-node/http-node-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-http-node/http-node-api.ts -------------------------------------------------------------------------------- /docs/vendor/effect-http-node/http-node-client-example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-http-node/http-node-client-example.ts -------------------------------------------------------------------------------- /docs/vendor/effect-http-node/http-node-router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-http-node/http-node-router.ts -------------------------------------------------------------------------------- /docs/vendor/effect-http-node/http-node-server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-http-node/http-node-server.ts -------------------------------------------------------------------------------- /docs/vendor/effect-http-node/http-node-tag-router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-http-node/http-node-tag-router.ts -------------------------------------------------------------------------------- /docs/vendor/effect-rpc-example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-rpc-example.ts -------------------------------------------------------------------------------- /docs/vendor/effect-rpc-readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/effect-rpc-readme.md -------------------------------------------------------------------------------- /docs/vendor/electric-sql-experimental.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/docs/vendor/electric-sql-experimental.yaml -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/eslint.config.js -------------------------------------------------------------------------------- /examples/todo-app/.eslintignore: -------------------------------------------------------------------------------- 1 | sst.config.ts -------------------------------------------------------------------------------- /examples/todo-app/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/.eslintrc.cjs -------------------------------------------------------------------------------- /examples/todo-app/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/.gitignore -------------------------------------------------------------------------------- /examples/todo-app/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/Dockerfile -------------------------------------------------------------------------------- /examples/todo-app/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/LICENSE -------------------------------------------------------------------------------- /examples/todo-app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/README.md -------------------------------------------------------------------------------- /examples/todo-app/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/docker-compose.yml -------------------------------------------------------------------------------- /examples/todo-app/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/index.html -------------------------------------------------------------------------------- /examples/todo-app/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/package.json -------------------------------------------------------------------------------- /examples/todo-app/postgres.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/postgres.conf -------------------------------------------------------------------------------- /examples/todo-app/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/public/favicon.ico -------------------------------------------------------------------------------- /examples/todo-app/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/public/robots.txt -------------------------------------------------------------------------------- /examples/todo-app/src/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/actions.ts -------------------------------------------------------------------------------- /examples/todo-app/src/assets/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/assets/logo.svg -------------------------------------------------------------------------------- /examples/todo-app/src/db/electric.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/db/electric.tsx -------------------------------------------------------------------------------- /examples/todo-app/src/db/repositories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/db/repositories.ts -------------------------------------------------------------------------------- /examples/todo-app/src/db/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/db/schema.ts -------------------------------------------------------------------------------- /examples/todo-app/src/db/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/db/setup.ts -------------------------------------------------------------------------------- /examples/todo-app/src/error-page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/error-page.tsx -------------------------------------------------------------------------------- /examples/todo-app/src/hooks/useSyncedActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/hooks/useSyncedActions.ts -------------------------------------------------------------------------------- /examples/todo-app/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/main.tsx -------------------------------------------------------------------------------- /examples/todo-app/src/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/routes/index.tsx -------------------------------------------------------------------------------- /examples/todo-app/src/routes/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/routes/root.tsx -------------------------------------------------------------------------------- /examples/todo-app/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/server.ts -------------------------------------------------------------------------------- /examples/todo-app/src/sst-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/sst-env.d.ts -------------------------------------------------------------------------------- /examples/todo-app/src/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/style.css -------------------------------------------------------------------------------- /examples/todo-app/src/svg.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/svg.d.ts -------------------------------------------------------------------------------- /examples/todo-app/src/vite-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/src/vite-env.d.ts -------------------------------------------------------------------------------- /examples/todo-app/sst-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/sst-env.d.ts -------------------------------------------------------------------------------- /examples/todo-app/sst.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/sst.config.ts -------------------------------------------------------------------------------- /examples/todo-app/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/tsconfig.build.json -------------------------------------------------------------------------------- /examples/todo-app/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/tsconfig.json -------------------------------------------------------------------------------- /examples/todo-app/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/tsconfig.node.json -------------------------------------------------------------------------------- /examples/todo-app/tsconfig.src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/tsconfig.src.json -------------------------------------------------------------------------------- /examples/todo-app/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/tsconfig.test.json -------------------------------------------------------------------------------- /examples/todo-app/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/examples/todo-app/vite.config.ts -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/flake.nix -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/package.json -------------------------------------------------------------------------------- /packages/sql-pglite/.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | -------------------------------------------------------------------------------- /packages/sql-pglite/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/.gitignore -------------------------------------------------------------------------------- /packages/sql-pglite/.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/.vscode/extensions.json -------------------------------------------------------------------------------- /packages/sql-pglite/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/.vscode/settings.json -------------------------------------------------------------------------------- /packages/sql-pglite/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/LICENSE -------------------------------------------------------------------------------- /packages/sql-pglite/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/README.md -------------------------------------------------------------------------------- /packages/sql-pglite/eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/eslint.config.mjs -------------------------------------------------------------------------------- /packages/sql-pglite/flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/flake.lock -------------------------------------------------------------------------------- /packages/sql-pglite/flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/flake.nix -------------------------------------------------------------------------------- /packages/sql-pglite/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/package.json -------------------------------------------------------------------------------- /packages/sql-pglite/patches/babel-plugin-annotate-pure-calls@0.4.0.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/patches/babel-plugin-annotate-pure-calls@0.4.0.patch -------------------------------------------------------------------------------- /packages/sql-pglite/setupTests.ts: -------------------------------------------------------------------------------- 1 | import * as it from "@effect/vitest" 2 | 3 | it.addEqualityTesters() 4 | -------------------------------------------------------------------------------- /packages/sql-pglite/src/PgLiteClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/src/PgLiteClient.ts -------------------------------------------------------------------------------- /packages/sql-pglite/src/PgLiteMigrator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/src/PgLiteMigrator.ts -------------------------------------------------------------------------------- /packages/sql-pglite/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/src/index.ts -------------------------------------------------------------------------------- /packages/sql-pglite/test/Client.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/test/Client.test.ts -------------------------------------------------------------------------------- /packages/sql-pglite/test/Transaction.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/test/Transaction.test.ts -------------------------------------------------------------------------------- /packages/sql-pglite/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/tsconfig.build.json -------------------------------------------------------------------------------- /packages/sql-pglite/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/tsconfig.json -------------------------------------------------------------------------------- /packages/sql-pglite/tsconfig.src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/tsconfig.src.json -------------------------------------------------------------------------------- /packages/sql-pglite/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/tsconfig.test.json -------------------------------------------------------------------------------- /packages/sql-pglite/vitest-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/vitest-setup.ts -------------------------------------------------------------------------------- /packages/sql-pglite/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sql-pglite/vitest.config.ts -------------------------------------------------------------------------------- /packages/sync-client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/package.json -------------------------------------------------------------------------------- /packages/sync-client/src/SyncNetworkService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/src/SyncNetworkService.ts -------------------------------------------------------------------------------- /packages/sync-client/src/db/connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/src/db/connection.ts -------------------------------------------------------------------------------- /packages/sync-client/src/electric/ElectricSyncService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/src/electric/ElectricSyncService.ts -------------------------------------------------------------------------------- /packages/sync-client/src/electric/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./ElectricSyncService" 2 | -------------------------------------------------------------------------------- /packages/sync-client/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/src/index.ts -------------------------------------------------------------------------------- /packages/sync-client/src/layer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/src/layer.ts -------------------------------------------------------------------------------- /packages/sync-client/src/test/TestLayers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/src/test/TestLayers.ts -------------------------------------------------------------------------------- /packages/sync-client/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/tsconfig.build.json -------------------------------------------------------------------------------- /packages/sync-client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/tsconfig.json -------------------------------------------------------------------------------- /packages/sync-client/tsconfig.src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/tsconfig.src.json -------------------------------------------------------------------------------- /packages/sync-client/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/tsconfig.test.json -------------------------------------------------------------------------------- /packages/sync-client/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/vite.config.ts -------------------------------------------------------------------------------- /packages/sync-client/vitest-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/vitest-setup.ts -------------------------------------------------------------------------------- /packages/sync-client/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-client/vitest.config.ts -------------------------------------------------------------------------------- /packages/sync-core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/package.json -------------------------------------------------------------------------------- /packages/sync-core/src/ActionModifiedRowRepo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/ActionModifiedRowRepo.ts -------------------------------------------------------------------------------- /packages/sync-core/src/ActionRecordRepo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/ActionRecordRepo.ts -------------------------------------------------------------------------------- /packages/sync-core/src/ActionRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/ActionRegistry.ts -------------------------------------------------------------------------------- /packages/sync-core/src/ClientIdOverride.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/ClientIdOverride.ts -------------------------------------------------------------------------------- /packages/sync-core/src/ClockService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/ClockService.ts -------------------------------------------------------------------------------- /packages/sync-core/src/HLC.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/HLC.ts -------------------------------------------------------------------------------- /packages/sync-core/src/SyncNetworkRpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/SyncNetworkRpc.ts -------------------------------------------------------------------------------- /packages/sync-core/src/SyncNetworkService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/SyncNetworkService.ts -------------------------------------------------------------------------------- /packages/sync-core/src/SyncService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/SyncService.ts -------------------------------------------------------------------------------- /packages/sync-core/src/actions/exampleAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/actions/exampleAction.ts -------------------------------------------------------------------------------- /packages/sync-core/src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/config.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/action-functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/action-functions.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/amr-functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/amr-functions.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/clock-functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/clock-functions.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/index.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/patch-functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/patch-functions.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/schema.ts -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/action/find_common_ancestor.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/action/find_common_ancestor.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/action/rollback_to_action.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/action/rollback_to_action.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/amr/apply_forward_amr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/amr/apply_forward_amr.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/amr/apply_reverse_amr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/amr/apply_reverse_amr.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/clock/compare_hlc.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/clock/compare_hlc.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/clock/compare_vector_clocks.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/clock/compare_vector_clocks.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/create_patches_trigger.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/create_patches_trigger.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/deterministic_id_trigger.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/deterministic_id_trigger.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/generate_op_patches.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/generate_op_patches.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/generate_patches.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/generate_patches.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/handle_insert_operation.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/handle_insert_operation.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/handle_remove_operation.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/handle_remove_operation.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/patch/handle_update_operation.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/patch/handle_update_operation.sql -------------------------------------------------------------------------------- /packages/sync-core/src/db/sql/schema/create_sync_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/db/sql/schema/create_sync_tables.sql -------------------------------------------------------------------------------- /packages/sync-core/src/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/global.d.ts -------------------------------------------------------------------------------- /packages/sync-core/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/index.ts -------------------------------------------------------------------------------- /packages/sync-core/src/models.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/models.ts -------------------------------------------------------------------------------- /packages/sync-core/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/src/utils.ts -------------------------------------------------------------------------------- /packages/sync-core/test/ActionRegistry.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/ActionRegistry.test.ts -------------------------------------------------------------------------------- /packages/sync-core/test/ClockAndPatches.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/ClockAndPatches.test.ts -------------------------------------------------------------------------------- /packages/sync-core/test/SyncService.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/SyncService.test.ts -------------------------------------------------------------------------------- /packages/sync-core/test/basic-action-execution.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/basic-action-execution.test.ts -------------------------------------------------------------------------------- /packages/sync-core/test/db-functions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/db-functions.test.ts -------------------------------------------------------------------------------- /packages/sync-core/test/helpers/SyncNetworkServiceTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/helpers/SyncNetworkServiceTest.ts -------------------------------------------------------------------------------- /packages/sync-core/test/helpers/TestHelpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/helpers/TestHelpers.ts -------------------------------------------------------------------------------- /packages/sync-core/test/helpers/TestLayers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/helpers/TestLayers.ts -------------------------------------------------------------------------------- /packages/sync-core/test/sync-core.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/sync-core.test.ts -------------------------------------------------------------------------------- /packages/sync-core/test/sync-divergence.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/test/sync-divergence.test.ts -------------------------------------------------------------------------------- /packages/sync-core/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/tsconfig.build.json -------------------------------------------------------------------------------- /packages/sync-core/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/tsconfig.json -------------------------------------------------------------------------------- /packages/sync-core/tsconfig.src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/tsconfig.src.json -------------------------------------------------------------------------------- /packages/sync-core/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/tsconfig.test.json -------------------------------------------------------------------------------- /packages/sync-core/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/vite.config.ts -------------------------------------------------------------------------------- /packages/sync-core/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-core/vitest.config.ts -------------------------------------------------------------------------------- /packages/sync-server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/package.json -------------------------------------------------------------------------------- /packages/sync-server/src/SyncNetworkService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/src/SyncNetworkService.ts -------------------------------------------------------------------------------- /packages/sync-server/src/SyncServerService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/src/SyncServerService.ts -------------------------------------------------------------------------------- /packages/sync-server/src/db/connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/src/db/connection.ts -------------------------------------------------------------------------------- /packages/sync-server/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/src/index.ts -------------------------------------------------------------------------------- /packages/sync-server/src/rpcRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/src/rpcRouter.ts -------------------------------------------------------------------------------- /packages/sync-server/src/test/TestLayers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/src/test/TestLayers.ts -------------------------------------------------------------------------------- /packages/sync-server/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/tsconfig.build.json -------------------------------------------------------------------------------- /packages/sync-server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/tsconfig.json -------------------------------------------------------------------------------- /packages/sync-server/tsconfig.src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/tsconfig.src.json -------------------------------------------------------------------------------- /packages/sync-server/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/tsconfig.test.json -------------------------------------------------------------------------------- /packages/sync-server/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/vite.config.ts -------------------------------------------------------------------------------- /packages/sync-server/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/packages/sync-server/vitest.config.ts -------------------------------------------------------------------------------- /patches/@electric-sql__pglite-repl.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/patches/@electric-sql__pglite-repl.patch -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /postgrestools.jsonc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/postgrestools.jsonc -------------------------------------------------------------------------------- /repomix-output.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/repomix-output.md -------------------------------------------------------------------------------- /repomix.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/repomix.config.json -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/vite.shared.ts -------------------------------------------------------------------------------- /vitest-setup-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/vitest-setup-client.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /vitest.shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evelant/synchrotron/HEAD/vitest.shared.ts --------------------------------------------------------------------------------