Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1478 commits
Select commit Hold shift + click to select a range
6734ea3
test(undo): list db-test#1309 and #1312 as known
yuxi-liu-wired Sep 26, 2026
f820918
test(undo): switch to ignore the known-bug list
yuxi-liu-wired Sep 26, 2026
2cff6dd
test(undo): see links and tag properties
yuxi-liu-wired Sep 26, 2026
c50df7c
test(undo): list db-test#1325 and #1326 as known
yuxi-liu-wired Sep 27, 2026
aecc335
test(undo): list db-test#1331 and 2 combinations
yuxi-liu-wired Sep 27, 2026
92a9262
test(undo): split op->plan below the size limit
yuxi-liu-wired Sep 27, 2026
c4d837f
fix(undo): restore deleted pages with inner refs
yuxi-liu-wired Sep 30, 2026
fff75ea
perf(db): set WAL synchronous=NORMAL (#13491)
tiensonqin Sep 30, 2026
1f1589e
fix(outliner): do not revert many to one on undo (#13526)
tiensonqin Sep 30, 2026
5b1b461
fix: ignore Delete when edit textarea is gone (#13500)
tiensonqin Sep 30, 2026
d9d85bc
fix: skip property rows in toggle-collapse! (#13498)
tiensonqin Sep 30, 2026
dbe1abb
fix: allow Alt+Shift+C to toggle Contents while editing (#13496)
tiensonqin Sep 30, 2026
768f525
fix: hide recycled nested pages from All Pages (#13492)
tiensonqin Sep 30, 2026
6009d9b
fix: create missing global config.edn when saving shortcuts (#13490)
tiensonqin Sep 30, 2026
bc3f592
test: count work instead of elapsed time (#13452)
yuxi-liu-wired Sep 30, 2026
3b6c457
fix: show linked references on tag pages (#13440)
tiensonqin Sep 30, 2026
8f59f69
perf(db): flush block trees before resources (#13437)
yuxi-liu-wired Sep 30, 2026
792f863
perf(search): find FTS rows by rowid (#13475)
yuxi-liu-wired Sep 30, 2026
e8f0448
fix(search): validate migration before creating temporary index (#13529)
tiensonqin Sep 30, 2026
f632f9e
fix: store plugin integer number properties as values (#13488)
tiensonqin Sep 30, 2026
93c8379
fix: restore deleted property schemas in undo history (#13532)
tiensonqin Sep 30, 2026
eb9eb1a
fix(db): restore :max-tx of pipeline transactions (#13468)
yuxi-liu-wired Sep 30, 2026
41d0425
fix: isolate persistence runtime unit tests (#13533)
tiensonqin Sep 30, 2026
b055300
fix: recreate missing logseq/config.edn so settings toggles work (#13…
tiensonqin Sep 30, 2026
e6fe6be
fix(ui): block context menu acts on the embed, not its target (#13099)
ChipNowacek Sep 30, 2026
2be6bfc
fix(worker): allow a missing :block/order on a direct child (#13081)
ChipNowacek Sep 30, 2026
6a06a87
i18n(zh-Hant): translate account authentication messages (#13012)
nrps9909 Sep 30, 2026
7f4cb08
fix: preserve current page context in sidebar queries (#13034)
megayu Sep 30, 2026
68a6826
fix: repair nested pages missing block order (#13280)
tiensonqin Sep 30, 2026
b64e4f0
fix: normalize property value choice identities (#13020)
Mancn-Xu Sep 30, 2026
a538a9b
fix: use block UUIDs in property choices test (#13543)
tiensonqin Sep 30, 2026
9953a45
fix: ignore dune _build dirs and node_modules symlinks
tiensonqin Oct 1, 2026
2693a98
fix: keep [[uuid]] refs to missing entities as broken links (#13551)
megayu Oct 1, 2026
3c27f1e
fix: unwrap cmdk codes search results (#13536)
tiensonqin Oct 1, 2026
e9fd02c
fix: place new asset blocks on #assets page instead of today's journal
tiensonqin Oct 1, 2026
f3dacf9
fix: cmdk results wiped on open when refresh key is memoized
tiensonqin Oct 1, 2026
8ffbb22
fix: image-block 'Copy Image' and 'Show file in folder' context menu …
RCmerci Oct 1, 2026
22263c3
fix: skip tag template auto-insert on undo/redo replay (#13553)
tiensonqin Oct 1, 2026
64273cb
fix: property config menu toggles write the toggled value, not the pr…
tiensonqin Oct 2, 2026
7c3db3c
fix: persist unsaved text when setting deadline or scheduled (#13560)
tiensonqin Oct 2, 2026
cdead5e
fix: anchor property choice More settings on first open (#13542)
tiensonqin Oct 2, 2026
4e3c880
fix: unreadable popup hover in dark mode without accent color
4shutosh Oct 2, 2026
928630b
fix: treat tags that extend Card as flashcards (#13540)
tiensonqin Oct 2, 2026
3b0a7bf
fix: keep refused title save out of default view creation (#13539)
tiensonqin Oct 2, 2026
a248c35
fix(profiler): notify on unknown register-fn names (#13499)
tiensonqin Oct 2, 2026
6c13bec
fix: ArrowRight past comments no longer throws (#13537)
tiensonqin Oct 2, 2026
25650bd
Keep selected descendants under moved ancestors (#13482)
tiensonqin Oct 2, 2026
05fdae3
fix: recover locked settings toggles when config.edn is unparsable (#…
tiensonqin Oct 2, 2026
d985f21
fix(ios): use shared PAT for certificate authentication (#13569)
tiensonqin Oct 2, 2026
b0d4c2b
fix(ios): renew expired signing certificates (#13571)
tiensonqin Oct 2, 2026
9a42890
fix: keep asset download failures from blocking graph download
tiensonqin Oct 2, 2026
6f2c2a0
chore: bump version to 2.0.2
tiensonqin Oct 2, 2026
b517311
fix(publishing): SPA HTML export renders blank page (#13579)
tiensonqin Oct 2, 2026
6d5cbe1
fix(release): include embedding sidecar in desktop packaging
tiensonqin Oct 3, 2026
c96e477
fastlane tweaks
tiensonqin Oct 3, 2026
22a29b3
fix: resolve uuid refs in search results, breadcrumbs, and nested pag…
tiensonqin Oct 3, 2026
e88658a
Merge pull request #13456 from logseq/devin/1790424401-sync-timestamp…
tiensonqin Oct 7, 2026
dde9976
fix: keep createJournalPage date-only strings on that day (#13597)
tiensonqin Oct 7, 2026
84c1b90
fix(graph): a reload after creating a graph opens the new graph (#13624)
yuxi-liu-wired Oct 7, 2026
04582c7
perf(electron): keep compiled page scripts across app opens (#13634)
yuxi-liu-wired Oct 7, 2026
1f5a4f1
fix(editor): Escape or Shift+Up/Down keeps the editor a click opens d…
yuxi-liu-wired Oct 7, 2026
64429eb
fix(editor): a click while the page scrolls edits the block on deskto…
yuxi-liu-wired Oct 7, 2026
8cac031
perf(startup): build the LRU caches empty (#13632)
yuxi-liu-wired Oct 7, 2026
2003afb
fix: keep file-import class and property entities distinct (#13629)
tiensonqin Oct 7, 2026
f75ec6f
fix: convert asset links in imported property values (#13628)
tiensonqin Oct 7, 2026
ffcea36
fix: create missing export.css on first edit (#13591)
tiensonqin Oct 7, 2026
13a62f1
fix(graph-parser): skip class and property roots when moving pages to…
tiensonqin Oct 7, 2026
533ac43
fix(repeat): step Deadline and Scheduled in the local calendar (#13615)
yuxi-liu-wired Oct 7, 2026
bfee63b
enhance(rtc): run clj-e2e RTC tests against local db-sync server
tiensonqin Oct 8, 2026
ed0b040
fix: seed remote graph and e2ee keys for local sync server
tiensonqin Oct 8, 2026
3ea5b19
fix(outliner): move up/down takes its target in page order, not click…
yuxi-liu-wired Oct 9, 2026
4a5f1a2
fix: clear block selection on route path change
megayu Oct 9, 2026
d24abc9
enhance(rtc): add graph-scoped personal access tokens (#13019)
tiensonqin Oct 10, 2026
f11f5f8
enhance(rtc): support E2EE graphs in semantic API and PATs (#13671)
tiensonqin Oct 11, 2026
99f3779
fix: skip All Pages rows without block uuid (#13678)
tiensonqin Oct 12, 2026
3f68c5c
fix: restore preferred date format on startup (#13668)
tiensonqin Oct 12, 2026
eb56f84
fix: exclude a page's own blocks from its references (#13660)
tiensonqin Oct 12, 2026
d4adf5b
fix(db-sync): incremental checksum counts an entity with 2 uuid datom…
yuxi-liu-wired Oct 12, 2026
f7cc544
Fix checkbox sort treating unchecked as missing (#13486)
tiensonqin Oct 12, 2026
015cc9f
Separate test from release app
tiensonqin Oct 12, 2026
93d19b6
fix: make table filter does-not-contain case-insensitive (#13487)
tiensonqin Oct 12, 2026
66772a1
fix(sync): a presence message with no editing block clears the user's…
yuxi-liu-wired Oct 12, 2026
114f641
ci: deploy nightly web app daily (#13693)
tiensonqin Oct 12, 2026
fdd841a
fix(editor): keep the selection on blocks moved with Alt+Shift+Up/Dow…
yuxi-liu-wired Oct 12, 2026
5a68deb
Put missing table sort values last in query and grouped views (#13485)
tiensonqin Oct 12, 2026
4c45206
fix(cmdk): prioritize existing matches over page creation (#13701)
tiensonqin Oct 12, 2026
0044195
fix: keep API token rows a vector so typing in a new token does not c…
yuxi-liu-wired Oct 12, 2026
c9992c3
fix(cli): find the desktop app's SKILL.md beside app.asar (#13710)
yuxi-liu-wired Oct 12, 2026
629e88b
fix(plugin): fall back to GitHub when the API proxy's rate limit is u…
yuxi-liu-wired Oct 12, 2026
30c769e
fix(editor): save Org property drawers and 7-hash lines as text (#13722)
yuxi-liu-wired Oct 12, 2026
b35a9af
fix(export): keep a ref to a missing block as ((uuid)) (#13717)
yuxi-liu-wired Oct 12, 2026
7dfa9b4
enhance: warn test.logseq.com users to use app.logseq.com (#13749)
tiensonqin Oct 13, 2026
f611132
fix: copy to clipboard in Safari and Firefox (#13705)
yuxi-liu-wired Oct 15, 2026
059ab7f
fix(property): set a number default value from the property UI (#13724)
yuxi-liu-wired Oct 15, 2026
29bd574
fix: isolate every query failure from page snapshots (#13767)
tiensonqin Oct 16, 2026
9bc981c
fix(outliner): skip setting identical values on a many ref property (…
yuxi-liu-wired Oct 16, 2026
3caf728
fix(db): find a closed value's left and right sibling among its prope…
yuxi-liu-wired Oct 16, 2026
9ea2757
fix(db-sync): answer 500 when an async sync route fails (#13727)
yuxi-liu-wired Oct 16, 2026
673fda3
fix(sync): reject a graph id that is not a uuid on upload (#13734)
yuxi-liu-wired Oct 16, 2026
af3a007
fix(db-sync): node adapter accepts DB_SYNC_ADMIN_TOKEN (#13735)
yuxi-liu-wired Oct 16, 2026
50941d2
fix(db-sync): the node server's default port applies when DB_SYNC_POR…
yuxi-liu-wired Oct 16, 2026
1860235
fix(db-sync): the node server applies DB_SYNC_LOG_LEVEL (#13690)
yuxi-liu-wired Oct 16, 2026
ec5dd6a
fix(export): a tag followed by a macro does not fail the export (#13768)
yuxi-liu-wired Oct 16, 2026
7247b2b
fix(import): a block with a namespaced tag keeps its other tags (#13758)
yuxi-liu-wired Oct 16, 2026
4cf2689
fix(import): preserve explicit ancestor tags alongside namespaced tag…
megayu Oct 16, 2026
bd8b78f
fix(import): a code block's properties after its closing fence (#13757)
yuxi-liu-wired Oct 16, 2026
0b525a4
should ignore target/
tiensonqin Oct 16, 2026
f928321
fix(import): keep a property value as text when a number would change…
yuxi-liu-wired Oct 16, 2026
7fa3d67
fix(import): keep text around embeds, skip unknown embeds, import mul…
yuxi-liu-wired Oct 16, 2026
411b2d7
fix(export): open blocks only applies inside block embeds (#13738)
yuxi-liu-wired Oct 16, 2026
32570a6
fix(editor): DB graphs do not store file-graph block attributes (sche…
yuxi-liu-wired Oct 16, 2026
98878c1
fix(mcp): reject unsupported streams and close request resources (#13…
tiensonqin Oct 17, 2026
cf55533
fix(editor): a math block saved again with its $$ keeps the formula a…
yuxi-liu-wired Oct 19, 2026
b1ee634
fix(publishing): a page marked private keeps its blocks out of an all…
yuxi-liu-wired Oct 19, 2026
74d1c4c
fix(clock): a task's time spent of whole hours shows its hours (#13695)
yuxi-liu-wired Oct 19, 2026
1cec56a
fix: unlinked references ignore ref ids and match aliases (#13706)
yuxi-liu-wired Oct 19, 2026
3150dfe
fix(editor): /code, /calc, /quote on a block with text insert the new…
yuxi-liu-wired Oct 19, 2026
bcc4eb3
fix(import): property and tag of the same name on one page (#13707)
yuxi-liu-wired Oct 19, 2026
05f225c
fix(property): a single-value popup for a property with no type shows…
yuxi-liu-wired Oct 19, 2026
0eb43da
fix(page): creating a page does not open a namespace child, tag or pr…
yuxi-liu-wired Oct 19, 2026
9829bb7
fix: sort cleared date placeholders without crashing views (#13800)
tiensonqin Oct 19, 2026
41cc9ff
fix(publishing): copy static export files without copyFile (#13795)
tiensonqin Oct 19, 2026
539fcaa
fix(views): no null .focus when a table cell popup hides after the ce…
yuxi-liu-wired Oct 19, 2026
1e699b3
ci: add one-time encrypted match password recovery
RCmerci Oct 20, 2026
0f3e3ca
Merge pull request #13809 from logseq/logseq/journal-match-password-r…
RCmerci Oct 20, 2026
37432b3
ci: remove one-time match password recovery workflow
RCmerci Oct 20, 2026
e8c4c37
Merge pull request #13810 from logseq/logseq/remove-journal-match-rec…
RCmerci Oct 20, 2026
2adc540
fix(db-sync): harden upload confirmations and semantic writes
tiensonqin Oct 21, 2026
539aee0
fix(sync): read download progress from snapshot metadata
tiensonqin Oct 21, 2026
69da7e2
fix(sync): preserve acknowledgements and drop stale references
tiensonqin Oct 21, 2026
18686f9
fix: get-matched-ids should only care about uuid string
tiensonqin Oct 21, 2026
05c3ae7
fix: handle deleted reaction targets in render snapshots
tiensonqin Oct 21, 2026
b29088b
fix: keep image asset references in copy and export
cursoragent Oct 23, 2026
d98e397
fix: preserve non-outline content when importing file graphs
cursoragent Oct 23, 2026
da193f3
test(graph): call done after p/with-redefs has restored the vars
Oct 16, 2026
aa9b5e1
test(worker): db-worker-test's cleanup and redefs end before the next…
yuxi-liu-wired Oct 22, 2026
0469af4
ci: build RTC adapter in its test shard
RCmerci Oct 22, 2026
f1e3778
fix: keep nested blocks in get-page-data
cursoragent Oct 20, 2026
408198a
Remove duplicate heading command and place clearing actions last
tiensonqin Oct 22, 2026
fd9623e
chore(deps-dev): bump electron from 42.3.0 to 42.11.16 in /resources
dependabot[bot] Oct 23, 2026
97c96ac
fix: skip existing properties in db migration
cursoragent Oct 13, 2026
f8fb34b
fix: sync Electron lockfile with package manifest
tiensonqin Oct 25, 2026
a37eff1
ci: label pull requests from forks with actions/labeler
yuxi-liu-wired Oct 25, 2026
d06ded9
i18n(zh-Hant): fill 127 missing translation keys (#12962)
LZong-tw Oct 27, 2026
0fb44f3
enhance(import): report ignored items and support plain Markdown folders
tiensonqin Sep 26, 2026
84e4440
fix(import): complete report data, org notice, and journal format on …
tiensonqin Sep 26, 2026
c9bef54
enhance(import): dry-run scan with import preview before file-graph i…
tiensonqin Sep 26, 2026
0869506
fix(import): resolve scan preview on cancel and report :hidden-exclud…
tiensonqin Sep 26, 2026
0232648
fix(import): correct previews and preserve desktop graph lifecycle
megayu Oct 29, 2026
bcf7a5a
fix(cli): restore tree creation coverage in concurrent stress
RCmerci Oct 29, 2026
4d3550d
fix: verify busy workers outside the lifecycle lease
RCmerci Oct 29, 2026
81c5455
chore: remove added stress runner meta tests
RCmerci Oct 29, 2026
bf74367
test: retain core lifecycle regressions
RCmerci Oct 29, 2026
e7e9c97
Merge pull request #13905 from logseq/fix/cli-stress-markdown-tree
RCmerci Oct 31, 2026
12218fa
fix: resolve packaged CLI path at launcher runtime
RCmerci Nov 3, 2026
25b5ecf
Merge pull request #13922 from logseq/fix/cli-launcher-runtime-bootstrap
RCmerci Nov 3, 2026
31df28d
fix: gate task and priority queries to Task class (#13439)
tiensonqin Nov 5, 2026
aed1f88
fix: undo bugs for pages, namespaced pages, tags and properties (#13449)
tiensonqin Nov 5, 2026
2fadc06
fix: keep Show hidden properties on hide-empty tagged pages (#13425)
tiensonqin Nov 5, 2026
2117d37
fix: exclude Root Tag from Extends choices (#13287)
tiensonqin Nov 5, 2026
c5dcfc0
Restore add existing local DB graph and in-app graph-open navigation …
tiensonqin Nov 5, 2026
f110957
fix: skip deleted query table rows (#13538)
tiensonqin Nov 5, 2026
01b9a4e
feat(cli): support explicit page rename
RCmerci Nov 5, 2026
cf90c36
fix(cli): query page rename targets by indexed name
RCmerci Nov 5, 2026
d3b4ea8
Merge pull request #13931 from logseq/fix/cli-page-rename-1494
RCmerci Nov 6, 2026
2f13f37
Fixed a typo in quick-capture's prettify-url? arg
ivan-danilov Nov 6, 2026
f383e9c
fix(import): resolve refs to entities imported later
cursoragent Nov 9, 2026
02389e4
fix: open PDF when clicking annotation refs (#13968)
tiensonqin Nov 9, 2026
2745216
fix: incremental markdown-mirror page render (#13943)
tiensonqin Nov 9, 2026
274950e
fix: keep heading fold arrows on the right (#13939)
tiensonqin Nov 9, 2026
792080b
fix: treat raw-number filter values as literals (#13932)
tiensonqin Nov 9, 2026
298a0bf
fix: scope cmdk current-page search to the page (#13929)
tiensonqin Nov 9, 2026
4793511
fix: show All graphs remotes without saving Sync Server URL (#13923)
tiensonqin Nov 9, 2026
27116a3
fix(favorites): show each favorited page only once (#8596) (#13918)
Sanilas-ai Nov 9, 2026
60116eb
fix(import): show file and reason when File-to-DB import fails
cursoragent Oct 30, 2026
e36ee3c
fix(import): keep notification fields on sanitized worker errors
cursoragent Oct 30, 2026
3d9f0c7
test(import): expect lazy-read failures to reject with file and reason
cursoragent Nov 5, 2026
a87c0af
fix(rpc): preserve serializable worker errors
megayu Nov 5, 2026
01a9f5d
fix(import): restore CLI transaction diagnostics
megayu Nov 5, 2026
73438a1
fix(import): roll back graphs after failed file imports
megayu Nov 5, 2026
3bac922
fix(import): show actionable file import errors
megayu Nov 5, 2026
37f7225
fix(import): keep internal block data out of error toasts
megayu Nov 5, 2026
1dd3f9a
fix(import): classify file errors with structured reason codes
megayu Nov 5, 2026
529a904
chore(import): satisfy graph parser lint rules
megayu Nov 5, 2026
4ade609
Fix install-linux.sh
pimarti Oct 30, 2026
d0a1fbb
restore compatibility with 0.x releases
pimarti Oct 30, 2026
506a82b
fix: expand Mod+A selection to parent in DB graphs (#13907)
tiensonqin Nov 9, 2026
cdfe114
fix: enforce local API and plugin security boundaries
tiensonqin Nov 9, 2026
94ea4a5
fix: paste existing asset blocks on DB graphs (#13177)
tiensonqin Nov 10, 2026
5d83ed4
fix: honor hide-by-default on properties (#13277)
tiensonqin Nov 10, 2026
29fd2ed
fix(electron): honor logseq://graph links on cold start (#13992)
tiensonqin Nov 11, 2026
6540cee
fix(cli): surface worker import rejections
RCmerci Nov 11, 2026
51d9092
fix(cli): propagate tagged import and download errors
RCmerci Nov 11, 2026
fe796e3
fix: reject repeated graph options
RCmerci Nov 11, 2026
bf11452
fix(cli): share Desktop advanced query execution
RCmerci Nov 11, 2026
ddb0d8f
fix(query): preserve positional rules in shared execution
RCmerci Nov 11, 2026
9e168e0
fix(cli): share editor input parsing and label batches
RCmerci Nov 11, 2026
ec862d0
fix(cli): bound input previews and preserve worker failures
RCmerci Nov 11, 2026
adb2c6c
fix: satisfy graph-parser and outliner lint
RCmerci Nov 11, 2026
0896f37
fix(cli): handle spaces in test and stress paths
RCmerci Nov 12, 2026
1f76eb7
Merge pull request #13994 from logseq/fix-cli-import-error
RCmerci Nov 12, 2026
c1e474f
Merge pull request #13995 from logseq/fix/repeated-graph-option
RCmerci Nov 12, 2026
e057b5b
Merge pull request #13996 from logseq/fix/cli-query-desktop-parity-1433
RCmerci Nov 12, 2026
a0f4399
Merge pull request #13998 from logseq/fix/cli-block-reference-updates
RCmerci Nov 12, 2026
52624bb
enhance(hypha): reject worker errors explicitly in the renderer wrapper
Nov 13, 2026
8aacb43
fix(hypha): stop taking from a promise in the token refresh go block
Nov 13, 2026
0df1bd0
fix(hypha): make "connect" take over the remote graph on name collision
Nov 13, 2026
4e51fe8
fix(hypha): only evict cached assets the server holds
Nov 13, 2026
e23767d
fix(hypha): build logseq-cli with the Hypha defines
Nov 13, 2026
cba9a23
fix(sync): only treat an unanswered request as a wedged websocket
Nov 13, 2026
7a39100
docs(hypha): record the download cleanup under Patch #22
Nov 13, 2026
654d2db
fix(hypha): ack capture clips only after they are in the graph
Nov 13, 2026
442e70b
chore(hypha): drop the :http-base heuristic and the dead OAuth refresh
Nov 13, 2026
b18bf43
enhance(references): stop re-querying collapsed unlinked references
Nov 13, 2026
0f7c213
fix(sync): find large-title objects that predate the value index
Nov 13, 2026
964a545
fix(hypha): wrap the stored e2ee password with a device secret
Nov 13, 2026
e1f57e2
fix(db-sync): trust X-Forwarded-* only when the deployment says so
Nov 13, 2026
540fb28
fix(cli): accept microsecond ISO datetimes and validate --parent
Nov 13, 2026
3006136
chore(hypha): bound the db-worker wait, guard plugin init, quiet a de…
Nov 13, 2026
8536654
fix(hypha): do not rebuild only the CLI in compile mode
Nov 14, 2026
1acda54
fix(hypha-server): keep plugin proxy requests below their upstream pr…
Nov 14, 2026
ee6b761
fix(hypha-server): keep tokens out of the log, exit when the adapter …
Nov 14, 2026
91b0145
fix(hypha): wait for the actual insert before acking a capture
Nov 14, 2026
76598d0
fix(sync): retry a flush that never sent, count recoveries after reco…
Nov 14, 2026
7c485b2
fix(hypha): finish the graph switch after taking over a remote graph
Nov 14, 2026
d8ecfa9
fix(hypha): fix asset eviction paths, evict only with live sync
Nov 14, 2026
706db70
fix(hypha): one login dialog, server-side logout, sync start survives…
Nov 14, 2026
feaa239
fix(hypha): delete the e2ee password wrapped with the JWT sub
Nov 14, 2026
64234fd
fix(cli): use the shared candidates shape in the --parent error
Nov 14, 2026
bcc6ad8
chore(hypha): anchor checks for patches 10-24, record Patch #24
Nov 14, 2026
c020913
ci(hypha): run lint, cljs and db-sync tests and patch anchors on develop
Nov 14, 2026
1200037
fix(cli): check --parent before changing the page
Nov 14, 2026
4bc038a
fix(hypha): deliver captures under a lock shared by all tabs
Nov 14, 2026
3c29439
fix(hypha-server): validate config at startup, no-store on auth replies
Nov 14, 2026
db56d58
fix(hypha): keep undelivered captures across logout
Nov 14, 2026
9673b9c
fix(hypha-server): require a session for the plugin proxies
Nov 14, 2026
62e53cd
fix(hypha): publish on loopback by default, Secure cookie from the is…
Nov 14, 2026
b2fc8c1
fix(hypha): keep the take-over dialog open until the graph is replaced
Nov 14, 2026
6b04473
Merge upstream/master into hypha (2026-11 sync)
Nov 14, 2026
5bacee7
dev: add the OCaml toolchain for cli/ to the dev container
Nov 14, 2026
84c1bf3
feat(cli): upsert page --parent and --remove-parent (Patch #16)
Nov 14, 2026
bfdeaa8
fix(cli): resolve :date property values by journal day (Patch #18)
Nov 14, 2026
cef0477
feat(hypha-mcp): switch the bridge to the OCaml CLI
Nov 14, 2026
f1a49d7
docs(hypha): update the patch inventory after the upstream sync
Nov 14, 2026
03ae48e
fix(hypha): build after upstream's root pnpm workspace
Nov 14, 2026
7b5dd0f
fix(sync): acknowledge resent txs instead of applying them twice
Nov 15, 2026
3f77688
feat(hypha): show/hide toggle for the access code
Nov 15, 2026
cf87277
fix(hypha): start sync after the remote graph list arrives
Nov 15, 2026
64aba61
fix(sync): pull in pages instead of one unbounded message
Nov 15, 2026
180d459
feat(hypha-server): keep login sessions across restarts
Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 12 additions & 20 deletions .agents/skills/logseq-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con
- Run `logseq --help` to see top-level commands and global flags.
- Run `logseq <command> --help` to see command-specific options.
- Use `--graph` to target a specific graph.
- Omit `--output` for human output. Set `--output json` or `--output edn` only when machine-readable output is required.
- Omit `--output` for human output. Use `--output json` or `--output edn` for structured command results. `skill show` prints raw Markdown in every output mode.

## Command groups (from `logseq --help`)

Expand All @@ -27,7 +27,7 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con
- `graph list|create|switch|remove|validate|info|export|import|backup list|backup create|backup restore|backup remove`
- `server list|cleanup|start|stop|restart`
- `doctor`
- `sync status|start|stop|upload|download|remote-graphs|ensure-keys|grant-access|config set|get|unset`
- `sync status|start|stop|upload|download|asset download|remote-graphs|ensure-keys|grant-access|config set|get|unset`
- Authentication: `login|logout`
- Utilities: `agent bridge`, `completion`, `debug`, `example`, `skill`

Expand All @@ -43,10 +43,7 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con

## Command option policy

- Do not memorize or hardcode command options in this skill.
- Before running any command, always check live options with:
- `logseq <command> --help`
- `logseq <command> <subcommand> --help`
- Check the full command path with `logseq <command-path> --help` before using its options; for example, `logseq upsert block --help`.

## Task command preference

Expand All @@ -59,11 +56,7 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con
## Examples policy

- Do not maintain long static command examples in this skill.
- Use `logseq example` as the source of truth for runnable examples.
- Before proposing runnable commands, always inspect live examples with:
- `logseq example`
- `logseq example <command-or-prefix...>`
- `logseq example <command-or-prefix...> --help`
- Use `logseq example <command-path>` for starting points, then check the command's help and input format before using an example.
- Prefer exact selectors when possible (for example, `logseq example upsert page`).
- Use prefix selectors when grouped examples are needed (for example, `logseq example upsert`).
- Replace placeholder ids/uuids in retrieved examples with real entities from the target graph.
Expand All @@ -77,6 +70,9 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con
- Preserve the source structure as sibling and child blocks. Each logical bullet, row, or subsection should usually become its own block.
- Reserve `--content` for true single-block writes or targeted updates to one existing block.
- If the user asks to write notes, lists, outlines, imported data, or any content that already has structure, do not flatten it into one long `--content` string.
- Create multiple sibling or child blocks with `upsert block --blocks <markdown>` or `--blocks-file <path>`. Use Markdown list indentation for the hierarchy; for example, `--blocks $'- Parent\n - Child\n- Sibling'` in Bash or Zsh.
- Specify `--target-page`, `--target-id`, or `--target-uuid` when the destination matters. Create mode defaults to the current journal if no target is given. `--pos sibling` requires a block target.
- `--blocks` and `--blocks-file` are create-mode inputs. With `--id` or `--uuid`, `upsert block` updates one existing block and rejects those options. Use `--dry-run` in create mode to inspect planned operations without writing.

## Tag association semantics

Expand All @@ -86,7 +82,7 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con
- Tag values may be tag title/name strings, db/id, UUID, or `:db/ident` values.
- String tag values may include a leading `#`, but they should still be passed inside `--update-tags`.
- If the user asks to tag a block or page, prefer explicit tag association.
- Tags must already exist and be public. If needed, create the tag first with `upsert tag --name "<TagName>"`.
- Tags must already exist. If needed, create the tag first with `upsert tag --name "<TagName>"`. Do not assume a tag's public property controls whether it can be associated; tag resolution does not check that property.

## Anti-patterns and correct usage

Expand All @@ -108,19 +104,15 @@ Use `logseq` to inspect and edit graph entities, run Datascript queries, and con
- Anti-pattern: pass tag updates as a comma-separated string, for example `--update-tags "AI-GENERATED,CLI"`.
- Correct usage: pass an EDN vector, for example `--update-tags '["AI-GENERATED" "CLI"]'`.

### Missing or private tags
### Missing tags

- Anti-pattern: retry the same tag association command after a tag association failure without checking tag state.
- Correct usage: verify the tag exists and is public; create it first when needed with `upsert tag --name "<TagName>"`.
- Correct usage: verify the tag exists; create it first when needed with `upsert tag --name "<TagName>"`.

## Tips

- `query list` returns both built-ins and `custom-queries` from `cli.edn`.
- `agent bridge --dry-run` checks the local bridge setup, resolves `:agent-name` or hostname, registers the AgentBridge name in the graph, finds routable `#Task` TODO blocks assigned to that AgentBridge name, and prints the Codex commands it would run without starting Codex or writing `agent-session-id`.
- `agent bridge` starts/reuses db-worker-node, listens to db-worker-node events, scans routable tasks on startup and each event, starts `codex exec --json` for matched tasks, stores the Codex session/thread id in `agent-bridge-sessions.edn`, and writes it to the task's `agent-session-id` property.
- `show --id` accepts either one db/id or an EDN vector of ids.
- `remove block --id` also accepts one db/id or an EDN vector.
- `agent bridge` starts/reuses db-worker-node, listens to db-worker-node events, scans routable tasks on startup and each event, starts one in-process master Codex session, and dispatches matched task/comment requests to that session.
- `show --id` and `remove block --id` accept one positive db/id or a bracketed list such as `'[123,456]'`. Their id parser splits integers on commas or whitespace; it does not parse EDN.
- `upsert block` enters update mode when `--id` or `--uuid` is provided.
- Always verify command flags with `logseq --help` and `logseq <...> --help` before execution.
- If `logseq` reports that it doesn’t have read/write permission for `root-dir`, then check filesystem permissions or set `LOGSEQ_CLI_ROOT_DIR`.
- In sandboxed environments, `graph create` may print a process-scan warning to stderr; if command status is `ok`, the graph is still created.
131 changes: 131 additions & 0 deletions .agents/skills/logseq-rest-api/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
---
name: logseq-rest-api
description: Call the Logseq semantic REST API (db-sync worker) with a graph-scoped personal access token, including E2EE-encrypted graphs. Use when writing integrations, scripts, or agent tooling that read or write Logseq DB graphs over HTTP, when working with `logseq_pat_` tokens, or when debugging API behavior on encrypted vs plain graphs.
---

# Logseq Semantic REST API

Use this skill to operate the semantic REST API served by the db-sync Cloudflare
worker (local dev: `node deps/db-sync/worker/dist/node-adapter.js`). The API
surface is defined by `GET /openapi.json`; handler code lives in
`deps/db-sync/src/logseq/db_sync/worker/handler/semantic.cljs`, routes in
`.../worker/routes/semantic.cljs`.

## Auth

```bash
curl -H "Authorization: Bearer logseq_pat_..." <base>/api/v1/graphs
```

- Personal access tokens are graph-scoped (`logseq_pat_` prefix) with `read`,
`write`, or `read+write` permission. A token only works on its own graph —
requests against another graph return `403 forbidden`; a write-scoped token on
a read op returns `403 insufficient scope`.
- Creating PATs and creating graphs (`POST /graphs`, body `{"graph-name": ...,
"graph-e2ee?": true}`) require a user JWT, not a PAT.
- Rate limits (Cloudflare, per PAT or user): **read 120/min, write 20/min** →
`429 {"error":"rate limit exceeded"}`; limiter down → `503`. The local node
adapter stubs limiters to unlimited.

## Operations

39 ops under `/api/v1/graphs/{graph-id}/...` plus `/api/v1/graphs`
(`listGraphs`, includes `graph-e2ee?` flag). Groups: pages, blocks (get,
update, delete, move, insert-children, insert-tree), block-properties (set,
delete, batch-set, batch-delete), tags (+ `/objects`), tasks, capture,
properties, assets, search, and 3 E2EE helpers. Non-`/api/v1` endpoint:
`GET /e2ee/graphs/{graph-id}/aes-key` (PAT allowed).

Request-shape gotchas (verified locally):
- `insertBlockChildren`: body `{"position":"append|prepend","blocks":[{title,children?}]}`, block-id in path.
- `insertBlockTree`: body `{"target-id":uuid,"position":"append","blocks":[...]}`.
- `moveBlocks`: `{"block-ids":[uuid],"target-id":uuid,"position":"before|after|first-child|last-child"}`.
- `batchSetBlockProperty`/`batchDeleteBlockProperty`: `{"entries":[{"block-id","property-id","value"?}]}`.
- `createAsset`: query `file-name` (needs a known extension), `size`, `checksum`
(64-hex SHA-256), optional `title`, `page-id`, `encoding=base64`; body is raw
bytes (octet-stream).
- **Path params are UUIDs only.** Passing an ident like `user.property/x`
URL-encoded 404s on every graph — resolve UUIDs via `listProperties`/`listTags`.

## E2EE graphs

Text encryption covers `:block/title` and `:block/name`; orders, tags, property
values, and refs remain plaintext to the server. Asset file bytes are also encrypted.

**Title write rule**: every `title` field on a write op must be an *encrypted
package* — a transit string. Plaintext → `400 "content must be an encrypted
package on e2ee graphs"`. Gated ops: pages create/update, blocks update,
tags create/update, tasks create, properties create/update,
blocks-insert-children, blocks-insert-tree, capture, assets-create (the `title`
query param — effectively required on e2ee since a missing title fails the
gate; `file-name` stays plaintext).

**Producing ciphertext** — `POST /api/v1/graphs/:id/e2ee/encrypt`
`{"key":<raw-aes-b64>,"texts":["..."]}` requires the graph's base64 raw 32-byte
AES-GCM key and returns canonical Transit `[iv ciphertext]` packages. The helper
receives both the key and plaintext; integrations can instead encrypt locally.
RSA-envelope content is rejected, preserving the existing client storage format.

**Names**: creating or renaming a page, tag, or property requires a separate
`name` field containing the encrypted normalized lowercase name. This also applies
to `updateBlock` when its target is one of those named entities. For example,
encrypt `"Project Alpha"` and `"project alpha"` separately, then send
`{"title":<encrypted-title>,"name":<encrypted-name>}`. Never lowercase ciphertext.

**Assets**: encrypt the original file bytes with the graph's AES-GCM key and a
fresh 12-byte IV, then send the canonical Transit `[iv ciphertext]` package as the
body, optionally base64-encoding that whole package for transport. `size` is the
original plaintext byte length; `checksum` is its SHA-256. The title must also be
encrypted. Plaintext bodies and malformed packages return 400 without creating an
Asset block. The `upload_asset` and `get_asset_image` MCP tools support plain graphs;
use client encryption/decryption with the REST API for encrypted graphs.

**Getting the AES key** (agent holds the user's RSA private key):
`GET /e2ee/graphs/:id/aes-key` → `encrypted-aes-key-base64` (RSA-OAEP wrapped);
unwrap with the user's pkcs8 private key → base64 raw key.

**Reading back**: `POST .../e2ee/decrypt {"texts":[<ct>],"key":<raw-aes-b64>}` →
plaintext. `GET .../e2ee/public-keys` lists member RSA keys.

**Verified unusable / degraded on E2EE graphs** (probed on local server):

| Op | Behavior on e2ee |
|---|---|
| `searchGraph` | Runs, but only matches **ciphertext** substrings — plaintext keyword search is impossible (server can't read titles) |
| `listPageReferences` | Only returns client-authored refs — ref extraction is skipped for API writes on e2ee (`[[name]]` can't exist in ciphertext titles), and the API has no way to supply ref UUIDs, so agents cannot create references on e2ee |
| Property values on `:db.type/ref` props | Plaintext titles can't resolve (`:block/title` holds ciphertext) → 400. Pass the entity **UUID** or the **ciphertext title** instead — both resolve |
| `decryptE2eeText` | Requires the graph AES key and canonical `[iv ct]` packages |
| Plaintext titles on any gated write | 400 by design |

Also verified working on e2ee (ciphertext titles): every CRUD op for pages,
blocks (incl. move + nested tree inserts), tags, tasks, capture, properties,
assets (`file-name` + ciphertext `title` + encrypted body), `listGraphs`, all three
e2ee helpers.

## Generic API semantics (same on plain graphs)

- `default`-type properties are `:db.type/ref`: `setBlockProperty` expects the
value to resolve to a **text block** entity (uuid/ident/title) — a bare string
fails resolution (400) or validation. `node`-type props take entity refs.
- Deletes return `204` with empty body. Errors: `{"error": "..."}` (400/403/404/409/429/500).
- Pagination: list ops return `{"<plural>": [...], "cursor"?}`.

## MCP endpoint

`POST /mcp` (Streamable HTTP) on the same server exposes tools/list with the 4
code-mode tools (`search`, `execute`, `upload_asset`, `get_asset_image`) plus
one tool per OpenAPI operationId (39 ops). `search`/`execute` run code-mode JS
against the spec; the per-op tools map arguments to path params + query + body.

## Testing locally

```bash
cd deps/db-sync && pnpm install --ignore-workspace
DB_SYNC_PORT=8787 DB_SYNC_DATA_DIR=/tmp/dbsync DB_SYNC_ALLOW_UNVERIFIED_JWT_CLAIMS=true \
COGNITO_ISSUER=x COGNITO_CLIENT_ID=x COGNITO_JWKS_URL=x \
node worker/dist/node-adapter.js
```

Rebuild after cljs changes: `clojure -M:cljs compile db-sync-node`.
Tests: `bb dev:db-sync-test` (cljs handler tests) and
`pnpm test:chatgpt-app` in `deps/db-sync` (MCP/tools node tests).
Loading
Loading