Commit Graph

184 Commits

Author SHA1 Message Date
Tienson Qin
cd1a9926e2 chore: remove outdated assert 2026-05-09 15:46:34 +08:00
Tienson Qin
05e8d0c435 fix: remove deleted property pairs from remote tx 2026-05-09 15:26:12 +08:00
Tienson Qin
8857be2baf fix: can't download graphs on Android 2026-05-09 11:44:44 +08:00
Tienson Qin
b8ebdd575c add server usage stats script (#12557)
* enhance(db-sync): add usage stats script

* fix(db-sync): use --local for local D1 scripts

* fix(db-sync): record activity only on successful sync requests

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-04 07:59:15 +08:00
Tienson Qin
c556ce27ed bump datascript 2026-05-03 12:52:27 +08:00
rcmerci
6d91d8ccae Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-28 22:59:59 +08:00
Tienson Qin
bba25ea579 fix: set batch upload kvs to 500 instead of 2000 2026-04-28 18:29:43 +08:00
rcmerci
eca0ab1a36 Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-28 18:17:17 +08:00
megayu
79c25837cb Migrate from yarn to pnpm (#12529)
* migrate yarn to pnpm

* chore: update pnpm version to 10.33.0 across all package.json files

* chore: update .npmrc and package.json for improved dependency management

* chore: unify Clojure, Node, and Java version in workflow files

* fix: enable shamefully-hoist for now and add electron, keytar to onlyBuiltDependencies

* feat: add cider/piggieback dependency and update nREPL middleware configuration to silence warnings

* ensure pnpm setup prior to node setup

* fix: update logseq/bb-tasks git SHA

* feat: add pnpm configuration for onlyBuiltDependencies in package.json

* feat: add onlyBuiltDependencies configuration for better-sqlite3 in pnpm settings

* chore: update pnpm lockfile

* fix: resolve merge conflicts

* fix: remove invisible characters from markdown headers

* fix: update .npmrc comments for clarity on lockfile usage

* Revert "feat: add cider/piggieback dependency and update nREPL middleware configuration to silence warnings"

This reverts commit 70a111936f.

* fix: remove invisible characters from various README files and add .editorconfig

* fix: clarify lockfile resolution process in SKILL.md

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-04-24 23:40:25 +08:00
Tienson Qin
9bd349dfe9 fix: lint and tests 2026-04-21 21:15:39 +08:00
Tienson Qin
b2cc4ea829 fix(sync): handle snapshot reset and tx epoch rollback
Fix snapshot-stream reset coercion so first non-empty chunk actually applies reset during full uploads.

Broadcast changed(t-now) after finished snapshot upload so connected peers learn the new snapshot epoch immediately.

Handle remote tx rollback on clients (hello/changed with remote-tx < local-tx) by rebasing local tx/checksum cursor and requesting pull from the new baseline.

Harden ws broadcast in non-WS test contexts and add regression tests for reset-on-first-chunk and finished-upload changed broadcast.

Verified with: cli-e2e sync-multi-batch-operations (passes).
2026-04-20 17:45:57 +08:00
Tienson Qin
85c5a412a4 revert changes from 1bdba92 related to sync 2026-04-20 15:19:33 +08:00
rcmerci
1bdba923eb fix sync test 2026-04-20 10:56:44 +08:00
rcmerci
4b13d67a88 Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-18 10:25:32 +08:00
megayu
76285de44b refactor: toolchain upgrade (#12517)
* chore(deps): upgrade Clojure version to 1.12.4 across multiple dependency files

* chore: bump shadow-cljs to 3.3.6

* chore: bump org.clojure/clojurescript to 1.12.134

* chore(deps): upgrade Clojure version to 1.12.4 in workflow files

* chore(deps): upgrade Java version to 21 in workflow files

* chore(deps): upgrade Node.js version to 24 in workflow files

* chore(deps): upgrade Node.js version to 24 in Dockerfile

* feat(updater): migrate electron-forge to electron-builder

* fix wrong android app version

* fix workflow

* feat(dependency-upgrade): add max-update-interval option for dependency audits

* chore(deps): upgrade electron-builder and electron-updater

* fix: update manual verification instructions for Electron shim cache

* chore: update shadow-cljs version to 3.4.4 across all dependencies

* chore: upgrade electron version to 41.2.1

* chore: update metosin/malli dependency to latest

* chore: upgrade cider-nrepl version to 0.59.0 in dependencies

* chore: upgrade clj-kondo version to 2026.04.15 and fix warning

* chore: move Electron windows build configuration from yml to ci

* chore: update Electron signing configuration to extend from base config

* fix: replace icon file for NSIS compatibility

* chore: resolve metosin/malli version conflicts

* chore: upgrade jdk to 21 in e2e workflow

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-04-17 19:40:01 +08:00
hoellen
8a2159e907 fix: use scheme instead of hardcoded http 2026-04-16 15:21:51 +08:00
Tienson Qin
a327063497 fix(db-sync): keep encrypted title updates after decrypt collapse 2026-04-14 03:29:42 +08:00
Tienson Qin
174fd15c8e fix(sync): stabilize incremental checksum updates 2026-04-12 19:27:05 +08:00
Tienson Qin
3dd7302dc9 fix(db-sync): handle duplicate :block/uuid in incremental checksum
Account for duplicate :block/uuid datom multiplicity during incremental checksum delta calculation.
Expand touched eids to uuid peers and apply digest add/remove by tuple counts.
Add regression fixture+test from rebased retract mismatch log.
2026-04-12 17:46:14 +08:00
Tienson Qin
6cda7fc869 fix: align outliner and db-sync tests with history-op changes 2026-04-11 07:24:28 +08:00
Tienson Qin
e275cbef0b fix: slow checksum 2026-04-10 03:42:01 +08:00
Tienson Qin
0392444cdf add bb dev:lint-test-deps to run lint and tests for deps 2026-04-10 00:21:14 +08:00
Tienson Qin
c24e66f3e6 fix: lint and tests 2026-04-09 23:16:37 +08:00
Tienson Qin
8fcd8fb518 test(sync): cover stale fix/reject flows 2026-04-09 22:43:52 +08:00
Tienson Qin
75bf1e683b fix(db-sync): normalize tx-reject payload shapes 2026-04-09 22:43:40 +08:00
Tienson Qin
8e0114a793 chore(sync-tools): add checksum drift and replay diagnostics tooling 2026-04-09 03:28:00 +08:00
Tienson Qin
1cb3158208 enhance(db-sync): harden server tx batch handling and protocol 2026-04-09 03:27:41 +08:00
Tienson Qin
262e221069 fix: lint 2026-04-07 19:38:13 +08:00
Tienson Qin
ecc03e1efc fix(sync): preserve tx-id across rebases 2026-04-07 19:23:51 +08:00
Tienson Qin
5685a2dacf fix: retract children entities on server 2026-04-07 16:49:55 +08:00
Tienson Qin
8c3d8ecae4 being able to reproduce mismatch checksum 2026-04-07 14:32:30 +08:00
Tienson Qin
66c0fbb50f add checksum check in chrome tab simulate 2026-04-07 06:34:13 +08:00
Tienson Qin
f3758e1f12 fix: lint and tests 2026-04-07 06:23:03 +08:00
Tienson Qin
1c8418e584 fix: checksum 2026-04-07 06:00:42 +08:00
Tienson Qin
1d98f1d214 ensure :block/uuid immutability 2026-04-07 04:17:09 +08:00
Tienson Qin
56e85624dc switch to EAV-style incremental hashing 2026-04-07 04:01:39 +08:00
Tienson Qin
49c1166cfc use incremental checksum 2026-04-07 03:11:07 +08:00
Tienson Qin
8aae83ae70 fix: fix order should be after rebase ops 2026-04-07 02:26:17 +08:00
Tienson Qin
92999a6a76 use agent-browser for sync parallel clients tests 2026-04-06 23:02:48 +08:00
rcmerci
40d546a5f7 Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-04 21:33:53 +08:00
Tienson Qin
e1c773bc5e warning checksum mismatch 2026-04-02 23:48:51 +08:00
Tienson Qin
ad2231438a Add :block/order to checksum 2026-04-02 22:22:25 +08:00
Tienson Qin
9f19cf8e2b fix: test 2026-04-02 20:42:58 +08:00
Tienson Qin
5620af9a4e fix: order conflict 2026-04-02 17:52:24 +08:00
Tienson Qin
114d9f2ae1 dev: show diff data between client/server when checksum mismatch 2026-04-02 11:33:54 +08:00
Tienson Qin
2b62ce170b fix: lint 2026-04-01 14:42:37 +08:00
TechnoHouse (deephbz)
8e1be9afbb fix(db-sync): stream snapshot downloads directly from sync do 2026-04-01 14:39:51 +08:00
Tienson Qin
b20acaf385 optional for prod api 2026-04-01 07:09:07 +08:00
Tienson Qin
609c475144 merge: resolve cliable db-sync worker conflicts 2026-04-01 05:17:00 +08:00
Tienson Qin
7960f398ca server should never recompute checksum 2026-04-01 03:20:33 +08:00