75 Commits

Author SHA1 Message Date
Gabriel Horner
f57d8a0625 chore: rm unused file-sync bb tasks 2026-01-22 13:19:58 -05:00
Gabriel Horner
ed805f039f chore: cleanup bb tasks after file graph removal
Remove needless 'db-' prefix for several dev tasks. Remove linter for
file and db graph separation. It served us well :)
2026-01-22 13:19:58 -05:00
rcmerci
8d7ce39897 test(e2e): add asset-blocks-validate-after-init-downloaded-test 2025-12-19 01:49:40 +08:00
Gabriel Horner
fe55fdf817 chore: add dev cli task for easier cli testing 2025-12-15 12:59:41 -05:00
Gabriel Horner
ef96a8d031 chore: remove db scripts made redundant by CLI 2025-12-12 10:17:12 -05:00
Tienson Qin
d8809f0b7e feat: cljs sdk (#12168)
Add clojurescript plugins API
2025-10-21 16:32:12 +08:00
rcmerci
8c968464fb dev: update agents.md, add bb e2e-test cmds 2025-09-26 22:11:13 +08:00
rcmerci
9a55f24ff1 refactor: remove src/rtc_e2e_test
rtc-e2e-test already moved to clj-e2e
2025-09-09 22:37:46 +08:00
Tienson Qin
afe9db73a9 enhance: add bb ai:check-common-errors 2025-08-13 15:35:33 +08:00
Gabriel Horner
1d8869a4a3 chore: bump borkdude.rewrite-edn to latest
and use consistent alias
2025-05-14 15:55:50 -04:00
Gabriel Horner
ab9796ae60 Add scripts for exporting and diffing graphs
Allows for quick export<->import QA of more complex graphs
and any examples made in app
2025-03-17 11:58:30 -04:00
Gabriel Horner
fecb42f49d fix(dev): deps scripts not handling relative and absolute paths for graphs
transact and create didn't handle relative paths. All scripts except
import didn't handle absolute paths
2025-03-17 11:09:44 -04:00
Gabriel Horner
1ccdcab8a9 enhance(dev): optionally validate after creating a db
Doing this enough that an option makes this faster to invoke
and faster (no re-open) on large graphs
2025-03-07 11:45:17 -05:00
Gabriel Horner
c6a2ea6959 fix(dev): script fails on -h
Also minor db scripts cleanup
2025-03-06 16:21:21 -05:00
Gabriel Horner
8e81d7d855 enhance(dev): task to import multiple file graphs easily
Also add a --continue option to see all errors on a CLI import
2024-11-21 10:30:58 -05:00
Gabriel Horner
0036a5d9de fix: invalid throws and remove unused values
Caught by updating to latest kondo
2024-10-31 14:12:09 -04:00
rcmerci
50fb730c43 test(rtc): launch two clients at the same time 2024-08-30 20:52:25 +08:00
Gabriel Horner
bc18661c90 enhance(dev): Add fast kondo lint for dev 2024-08-21 13:33:01 -04:00
Gabriel Horner
14a507f4cd enhance(dev): run lint fix with an option
Linters are read only by default. Lang lint can be fixed by passing
`--fix`. We don't want CI or inexperienced contributors fixing files accidentally.
Also move deps to bb.edn as putting them inline leads to quirky/buggy
tasks listing and autocompleting as they pause when fetching an inlined dep
2024-08-20 10:17:23 -04:00
Gabriel Horner
7a40761eca refactor: organize worker namespaces and lint them
Organize them to live under src/main/frontend/worker and add a lint to ensure
that common code with frontend is only under frontend/common/.
Add a linter to ensure that worker doesn't depend on frontend.
Motivated to fix after recent worker breakage fixed by
75463c4df4
2024-08-08 23:01:57 -04:00
Gabriel Horner
0e1ada2ef6 enhance: bb task for creating graphs from EDN file
Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
2024-06-11 10:09:37 -04:00
Tienson Qin
89edb3af9a fix: can't remove Many values 2024-05-02 18:03:17 +08:00
rcmerci
2b27969b05 dev: add bb dev:lint-and-test 2024-04-07 00:02:40 +08:00
Gabriel Horner
a61ee21e25 enhance: add basic script to test db graph import
also tweaked query script to work with db graphs by relative path
2024-02-24 00:42:46 -05:00
Gabriel Horner
b55fe07768 Merge branch 'master' into feat/db 2024-01-24 09:08:41 -05:00
Gabriel Horner
dc5127b48a enhance: publishing --dev also watches frontend
also provide a dedicated backend command for simpler
rebuilding of backend
2024-01-24 08:53:48 -05:00
Gabriel Horner
72f5218b39 dev: add tasks for saving and diffing datoms
part of LOG-2974
2023-12-19 13:19:10 -05:00
Gabriel Horner
ea65a659d6 chore: remove bb task for validating previous sqlite data 2023-12-12 15:44:06 -05:00
Gabriel Horner
54ecf01cd7 add lint for keeping file and db graphs separate
Detected some minor unused code. May run this in CI later.
Writing this script demonstrates more namespaces could be split
up but will wait till at least enum PR lands
2023-11-01 11:28:50 -04:00
Gabriel Horner
2ce35667c5 First pass at a general transact script for db graphs
Moved persist-graph ns into outliner dep so it can be used
by scripts
2023-10-27 17:40:12 -04:00
Gabriel Horner
c8ccc79e82 fix: db/ident and schema/version shouldn't create unknown blocks
Also log unknown blocks and make their entity more explicit with the
goal of eventually resolving all unknown blocks. Also added
a query bb task. Part of LOG-2818
2023-10-11 16:02:13 -04:00
Gabriel Horner
fe7a46eac9 Move db malli schema into db dep since it's stable
Also add a validate-db task. Part of LOG-2739
2023-10-11 08:40:26 -04:00
Tienson Qin
fd6b587235 Merge branch 'master' into feat/db 2023-06-21 14:09:16 +08:00
Gabriel Horner
3f1d32dd6c Update clj-kondo and bb-tasks for deps projects 2023-06-13 14:48:50 +08:00
Gabriel Horner
2d60d95bc5 Update lang validation to detect duplicates
There are still a few to remove.
Remove lang:duplicates as it's now included in the linter
2023-06-05 11:09:35 -04:00
rcmerci
20618afaa7 add bb task: validate sqlite data 2023-05-30 00:39:22 +08:00
Gabriel Horner
ad3eda7c25 Tutorial fix and refactor. Update docs
* Some langs like es didn't have tutorials translated and were
  pretending to
* it lang had tutorials but they weren't being used
* Moved tutorials to the more appropriate src/resources/tutorials
* Also fixed typos and bb task
2023-05-24 16:57:48 -04:00
Gabriel Horner
28ff6b1894 Move dictionaries to EDN
Also introduce src/resources/ for classpath resources as templates/ is a
misleading name for generic resources and resources/ is being used for
non-resource things. Confirmed translations are the same with bb
lang:list
2023-05-24 16:07:54 -04:00
Charlie
60fbfdf2f7 Enhance: plugin-related improvements (#8787)
- fix: Select and Input elements rendered using provideUI via onMacroRendererSlotted don't function #8374
 - fix: logseq.Editor.getPageBlocksTree does not work when page uuid is passed in as param #4920
 - feat: add a plug-in flag for the plugin slash commands item
 - feat: add logseq.App.setCurrentGraphConfigs: (configs: {}) => Promise<void>
 - feat: add hook logseq.App.onTodayJournalCreated: IUserHook<{ title: string }
 - enhance: auto-check updates for the installed plugins from Marketplace
 - feat: expose template-related APIs to SDK
2023-04-12 21:27:40 +08:00
Gabriel Horner
fef07fe812 Add docs and workflow for dep
Also rename dep to publishing for consistency with existing names
2023-04-09 23:13:33 +08:00
Gabriel Horner
5186070248 Finish migration of publishing to deps
* Frontend and cmdline version use the same fns!
* Add docstrings and db tests
* Fix bug with intermittently failing asset copies
* Move publish cli to scripts since publish-spa shouldn't have graph-parser dependency
* Fix parse-graph bug noticed while testing publishing
2023-04-09 23:13:33 +08:00
Gabriel Horner
66fdb73bce Reorg namespaces and add package.json
Also add db support
2023-04-09 23:13:33 +08:00
Gabriel Horner
76c4e49f34 Working POC! 2023-04-09 23:13:33 +08:00
Gabriel Horner
a748b4f6b3 PoC on porting electron.core to cmd
Also added dev:build-publishing
2023-04-09 23:13:33 +08:00
rcmerci
c3f7417682 enhance: add mldoc ast schema (#8829)
* enhance: add mldoc ast schema

* Add bb task to validate mldoc

Also move mldoc schema to make room for other schemas

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-03-20 13:41:13 +08:00
Konstantinos
2cace8894c Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
Gabriel Horner
b08e079ab7 Update :commands in config schema - fixes #8403
Update malli to pull in :some schema
2023-01-20 15:55:24 -05:00
Gabriel Horner
c804e051cc Add validation for repo config.edn
- Add test, task and schema for repo config.edn
- Also removed no longer needed temp fix
2023-01-18 10:07:52 -05:00
rcmerci
21e8a2eab9 dev: add malli-schema & generate kondo config 2023-01-08 20:33:27 +08:00
Gabriel Horner
65955f2ba2 Address lint failures and rm unused spec dep
Spec dep is no longer needed since it ships with bb
2022-12-09 13:17:09 -05:00