Commit Graph

25 Commits (00a49fe8b49d506adbaf67006b800a3e91add56f)

Author SHA1 Message Date
Vincent Koc cd8d0881ed fix(dev): classify dirty-tree watch invalidations 8 months ago
Peter Steinberger 8e0ab35b0e
refactor(plugins): decouple bundled plugin runtime loading 8 months ago
Tak Hoffman 54313a8730
fix(dev): rebuild dist after HEAD changes (#56510) 8 months ago
Peter Steinberger 7fcbf383d8
fix(ci): write dist build stamp after builds 8 months ago
Nimrod Gutman 50c8934231
fix(dev): align gateway watch with tsdown wrapper (#47636) 8 months ago
Gustavo Madeira Santana 4fb0160309
Gateway: sync runtime post-build artifacts 8 months ago
Gustavo Madeira Santana 594920f8cc
Scripts: rebuild on extension and tsdown config changes (#47571)
Merged via squash.

Prepared head SHA: edd8ed825469128bbe85f86e2e1341f6c57687d7
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
8 months ago
Josh Avant 81741c37fd
fix(gateway): remove watch-mode build/start race (#18782) 9 months ago
Peter Steinberger 9fb48f4dff refactor(scripts): make run-node main testable 9 months ago
Peter Steinberger f86840f4df perf(cli): reduce read-only startup overhead 9 months ago
Gustavo Madeira Santana c75275f109
Update: harden control UI asset handling in update flow (#10146)
* Update: harden control UI asset handling in update flow

* fix: harden update doctor entrypoint guard (#10146) (thanks @gumadeiras)
9 months ago
cpojer a03d852d65
chore: Migrate to tsdown, speed up JS bundling by ~10x (thanks @hyf0).
The previous migration to tsdown was reverted because it caused a ~20x slowdown when running OpenClaw from the repo. @hyf0 investigated and found that simply renaming the `dist` folder also caused the same slowdown. It turns out the Plugin script loader has a bunch of voodoo vibe logic to determine if it should load files from source and compile them, or if it should load them from dist. When building with tsdown, the filesystem layout is different (bundled), and so some files weren't in the right location, and the Plugin script loader decided to compile source files from scratch using Jiti.

The new implementation uses tsdown to embed `NODE_ENV: 'production'`, which we now use to determine if we are running OpenClaw from a "production environmen" (ie. from dist). This removes the slop in favor of a deterministic toggle, and doesn't rely on directory names or similar.

There is some code reaching into `dist` to load specific modules, primarily in the voice-call extension, which I simplified into loading an "officially" exported `extensionAPI.js` file. With tsdown, entry points need to be explicitly configured, so we should be able to avoid sloppy code reaching into internals from now on. This might break some existing users, but if it does, it's because they were using "private" APIs.
10 months ago
cpojer 1838ab019b
chore: Enable linting in `scripts`. 10 months ago
cpojer 76b5208b11
chore: Also format `scripts` and `skills`. 10 months ago
cpojer 76361ae3ab
revert: Switch back to `tsc` for compiling. 10 months ago
cpojer 4b7406719c
fix: Update a few more `entry.js` to `entry.mjs` paths. 10 months ago
Peter Steinberger fd00d5688a chore: update openclaw naming 10 months ago
Peter Steinberger 9a7160786a refactor: rename to openclaw 10 months ago
Pooya Parsa 4a1b6bc008 update refs 10 months ago
Peter Steinberger 6d16a658e5 refactor: rename clawdbot to moltbot with legacy compat 10 months ago
Tak hoffman b65916e0d1 CLI: fix Windows gateway startup 10 months ago
Peter Steinberger 58b131919f feat: use tsgo for dev/watch builds 10 months ago
Peter Steinberger aec622fe63 chore: remove fresh dist log 10 months ago
Shadow 39dfdccf6c
CLI: skip runner rebuilds when dist is fresh (#1231)
Co-authored-by: mukhtharcm <mukhtharcm@users.noreply.github.com>
10 months ago
Peter Steinberger ee380e9ab9 fix: run cli scripts via node build runner 10 months ago