openclaw/scripts
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.
2026-02-03 20:18:16 +09:00
..
docker fix: stabilize docker e2e flows 2026-02-02 13:11:55 +00:00
docs-i18n Docs i18n: tune zh-CN prompt + glossary 2026-02-02 16:38:25 +01:00
e2e fix: stabilize docker e2e flows 2026-02-02 13:11:55 +00:00
pre-commit chore: stabilize prek hooks runner selection (#1720) (thanks @dguido) 2026-01-25 10:55:28 +00:00
repro fix: run cli scripts via node build runner 2026-01-18 18:43:39 +00:00
systemd refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
auth-monitor.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
bench-model.ts chore: Enable `typescript/no-explicit-any` rule. 2026-02-02 16:18:09 +09:00
build-and-run-mac.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
build-docs-list.mjs chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
build_icon.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
bundle-a2ui.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
canvas-a2ui-copy.ts chore: Also format `scripts` and `skills`. 2026-01-31 21:21:25 +09:00
changelog-to-html.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
check-ts-max-loc.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
claude-auth-status.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
clawlog.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
clawtributors-map.json Docs: update clawtributors list 2026-01-25 22:38:04 -06:00
codesign-mac-app.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
committer chore: block node_modules commits 2026-01-18 22:28:59 +00:00
copy-hook-metadata.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
create-dmg.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
debug-claude-usage.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
docs-list.js chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
firecrawl-compare.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
format-staged.js chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
ios-team-id.sh chore(ios): add team id helper 2025-12-26 18:16:13 +01:00
make_appcast.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
mobile-reauth.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
notarize-mac-artifact.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
package-mac-app.sh revert: Switch back to `tsc` for compiling. 2026-01-31 18:31:49 +09:00
package-mac-dist.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
postinstall.js chore: Migrate to tsdown, speed up JS bundling by ~10x (thanks @hyf0). 2026-02-03 20:18:16 +09:00
protocol-gen-swift.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
protocol-gen.ts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
readability-basic-compare.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
release-check.ts chore: Also format `scripts` and `skills`. 2026-01-31 21:21:25 +09:00
restart-mac.sh Switch from TypeScript to TypeScript Go. Use `pnpm tsgo` for Typechecks. 2026-01-31 15:33:15 +09:00
run-node.mjs chore: Migrate to tsdown, speed up JS bundling by ~10x (thanks @hyf0). 2026-02-03 20:18:16 +09:00
sandbox-browser-entrypoint.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
sandbox-browser-setup.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
sandbox-common-setup.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
sandbox-setup.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
setup-auth-system.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
setup-git-hooks.js chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
sqlite-vec-smoke.mjs chore: Also format `scripts` and `skills`. 2026-01-31 21:21:25 +09:00
sync-labels.ts chore: Also format `scripts` and `skills`. 2026-01-31 21:21:25 +09:00
sync-moonshot-docs.ts Docs: fix Moonshot sync markers (#6789) 2026-02-02 03:38:14 +01:00
sync-plugin-versions.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
termux-auth-widget.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
termux-quick-auth.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
termux-sync-widget.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-cleanup-docker.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-force.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
test-install-sh-docker.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-install-sh-e2e-docker.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-live-gateway-models-docker.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-live-models-docker.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-parallel.mjs chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
ui.js chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
update-clawtributors.ts chore: Enable `typescript/no-explicit-any` rule. 2026-02-02 16:18:09 +09:00
update-clawtributors.types.ts feat: add prek pre-commit hooks and dependabot (#1720) 2026-01-25 10:53:23 +00:00
watch-node.mjs chore: Migrate to tsdown, speed up JS bundling by ~10x (thanks @hyf0). 2026-02-03 20:18:16 +09:00
write-build-info.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
zai-fallback-repro.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00