openclaw/scripts
Josh Lehman 505d140aeb
fix: stabilize build dependency resolution (#49928)
* build: mirror uuid for msteams

Add uuid to both the msteams bundled extension and the root package so the workspace build can resolve @microsoft/agents-hosting during tsdown while standalone extension installs also have the runtime dependency available.

Regeneration-Prompt: |
  pnpm build failed because @microsoft/agents-hosting 1.3.1 requires uuid in its published JS but does not declare it in its package manifest. The msteams extension dynamically imports that package, and the workspace build resolves it from the root dependency graph. Mirror uuid into the root package for workspace builds and keep it in extensions/msteams/package.json so standalone plugin installs also resolve it. Update the lockfile to match the manifest changes.

* build: prune stale plugin dist symlinks

Remove stale dist and dist-runtime plugin node_modules symlinks before tsdown runs. These links point back into extension installs, and tsdown's clean step can traverse them on rebuilds and hollow out the active pnpm dependency tree before plugin-sdk declaration generation runs.

Regeneration-Prompt: |
  pnpm build was intermittently failing in the plugin-sdk:dts phase after earlier build steps had already run. The symptom looked like missing root packages such as zod, ajv, commander, and undici even though a fresh install briefly fixed the problem. Investigate the build pipeline step by step rather than patching TypeScript errors. Confirm whether rebuilds mutate node_modules, identify the first step that does it, and preserve existing runtime-postbuild behavior.
  The key constraint is that dist and dist-runtime plugin node_modules links are intentional for runtime packaging, so do not remove that feature globally. Instead, make rebuilds safe by deleting only stale symlinks left in generated output before invoking tsdown, so tsdown cleanup cannot recurse back into the live pnpm install tree. Verify with repeated pnpm build runs.
2026-03-18 10:55:25 -07:00
..
dev refactor: remove channel shim directories, point all imports to extensions (#45967) 2026-03-14 03:43:07 -07:00
docker fix: stabilize docker test suite 2026-03-17 03:02:03 +00:00
docs-i18n feat(tts): add microsoft voice listing 2026-03-16 20:24:13 -07:00
e2e fix: handle Parallels poweroff snapshot restores 2026-03-17 04:01:19 +00:00
k8s docs: add Kubernetes install guide, setup script, and manifests (#34492) 2026-03-12 07:28:21 -04:00
lib refactor: deduplicate reply payload helpers 2026-03-18 17:30:25 +00:00
podman fix(run-openclaw-podman): add SELinux :Z mount option on enforcing/permissive hosts (#39449) 2026-03-08 18:53:09 -04:00
pre-commit refactor: centralize pre-commit file filtering 2026-02-16 03:42:11 +01:00
repro
shell-helpers fix(clawdock): include docker-compose.extra.yml in helper commands (#17094) 2026-02-19 03:40:47 -08:00
systemd refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
audit-plugin-sdk-seams.mjs Tools: classify optional bundled clusters 2026-03-18 09:26:39 -07:00
auth-monitor.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
bench-cli-startup.ts CLI: add root --help fast path and lazy channel option resolution (#30975) 2026-03-01 14:23:46 -08:00
bench-model.ts chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05: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 fix(feishu): fetch thread context so AI can see bot replies in topic threads (#45254) 2026-03-14 18:01:59 -05: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-channel-agnostic-boundaries.mjs refactor(scripts): dedupe guard checks and smoke helpers 2026-03-02 08:54:20 +00:00
check-cli-startup-memory.mjs Fix launcher startup regressions (#48501) 2026-03-16 17:21:18 -05:00
check-composite-action-input-interpolation.py ci: harden workflow action input handling 2026-02-19 15:27:48 +01:00
check-docs-i18n-glossary.mjs Docs: move release runbook to maintainer repo (#47532) 2026-03-15 20:42:39 +01:00
check-extension-plugin-sdk-boundary.mjs test simplify zero-state boundary guards 2026-03-18 07:04:50 -05:00
check-gateway-watch-regression.mjs CI: guard gateway watch against duplicate runtime regressions (#49048) 2026-03-17 10:55:55 -04:00
check-ingress-agent-owner-context.mjs refactor: remove channel shim directories, point all imports to extensions (#45967) 2026-03-14 03:43:07 -07:00
check-no-extension-src-imports.ts fix: restore full gate after web-search rebase 2026-03-18 15:35:27 +00:00
check-no-extension-test-core-imports.ts refactor: replace "seam" terminology across codebase 2026-03-18 00:20:15 -07:00
check-no-monolithic-plugin-sdk-entry-imports.ts refactor: enforce scoped plugin sdk imports 2026-03-16 23:15:24 -07:00
check-no-pairing-store-group-auth.mjs refactor(scripts): share guard runners and paged select UI 2026-03-02 14:36:41 +00:00
check-no-random-messaging-tmp.mjs refactor(scripts): share guard runners and paged select UI 2026-03-02 14:36:41 +00:00
check-no-raw-channel-fetch.mjs refactor: merge minimax bundled plugins 2026-03-16 02:26:45 +00:00
check-no-raw-window-open.mjs refactor(scripts): dedupe guard checks and smoke helpers 2026-03-02 08:54:20 +00:00
check-no-register-http-handler.mjs chore(lint): add registerHttpHandler usage guard script 2026-03-02 16:24:06 +00:00
check-pairing-account-scope.mjs refactor(scripts): share guard runners and paged select UI 2026-03-02 14:36:41 +00:00
check-plugin-extension-import-boundary.mjs refactor web search provider execution out of core 2026-03-17 23:07:19 -05:00
check-plugin-sdk-exports.mjs refactor(plugin-sdk): centralize entrypoint manifest 2026-03-16 02:11:18 +00:00
check-ts-max-loc.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
check-web-search-provider-boundaries.mjs test simplify zero-state boundary guards 2026-03-18 07:04:50 -05:00
check-webhook-auth-body-order.mjs refactor: split webhook ingress and policy guards 2026-03-02 18:02:21 +00:00
ci-changed-scope.d.mts test: fix strict runtime mock types in channel tests 2026-03-03 03:06:22 +00:00
ci-changed-scope.mjs ci: speed up scoped workflow lanes 2026-03-13 19:53:40 +00:00
claude-auth-status.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
clawlog.sh fix(security): harden clawlog command execution 2026-03-01 23:33:13 +00:00
clawtributors-map.json 🤖 Feishu: expand channel support 2026-02-05 12:29:04 -08:00
codesign-mac-app.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
codespell-dictionary.txt docs: add custom spellcheck dictionary and fix docs typos (#22457) 2026-02-21 01:35:35 -05:00
codespell-ignore.txt fix(ci): make docs spellcheck fallback deterministic 2026-02-21 15:08:28 +01:00
committer fix: retry git lock in committer 2026-03-08 00:28:37 +00:00
copy-bundled-plugin-metadata.d.mts fix(plugins): fix bundled plugin roots and skill assets (#47601) 2026-03-15 23:00:30 +02:00
copy-bundled-plugin-metadata.mjs fix: retry runtime postbuild skill copy races 2026-03-16 08:42:50 +00:00
copy-export-html-templates.ts build: reduce build log noise 2026-03-08 04:12:32 +00:00
copy-hook-metadata.ts build: reduce build log noise 2026-03-08 04:12:32 +00:00
copy-plugin-sdk-root-alias.mjs Gateway: sync runtime post-build artifacts 2026-03-15 20:44:15 +00:00
create-dmg.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
cron_usage_report.ts fix(ci): restore main lint/typecheck after direct merges 2026-02-16 23:26:11 +00:00
debug-claude-usage.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
docs-link-audit.mjs fix: unblock docs and registry checks 2026-03-16 07:23:43 +00:00
docs-list.js chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
docs-spellcheck.sh fix(ci): make docs spellcheck fallback deterministic 2026-02-21 15:08:28 +01:00
firecrawl-compare.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
generate-bundled-provider-auth-env-vars.d.mts Plugins: generate bundled auth env metadata 2026-03-18 10:53:48 -07:00
generate-bundled-provider-auth-env-vars.mjs Plugins: generate bundled auth env metadata 2026-03-18 10:53:48 -07:00
generate-config-doc-baseline.ts Docs: add config drift baseline statefile (#45891) 2026-03-14 14:23:30 -07:00
generate-host-env-security-policy-swift.mjs fix(exec): block dangerous override-only env pivots 2026-03-07 19:18:05 +00:00
generate-secretref-credential-matrix.ts feat(secrets): expand SecretRef coverage across user-supplied credentials (#29580) 2026-03-03 02:58:20 +00:00
ghsa-patch.mjs refactor(security): enforce v1 node exec approval binding 2026-02-26 18:09:01 +01:00
install.ps1 CLI: support package-manager installs from GitHub main (#47630) 2026-03-15 14:18:12 -07:00
install.sh CLI: support package-manager installs from GitHub main (#47630) 2026-03-15 14:18:12 -07:00
ios-asc-keychain-setup.sh feat(ios): prepare app store connect release assets 2026-03-07 17:21:07 +02:00
ios-beta-archive.sh feat(ios): add local beta release flow (#42991) 2026-03-11 12:32:28 +02:00
ios-beta-prepare.sh feat(push): add iOS APNs relay gateway (#43369) 2026-03-12 18:15:35 +02:00
ios-beta-release.sh feat(ios): add local beta release flow (#42991) 2026-03-11 12:32:28 +02:00
ios-configure-signing.sh feat(ios): prepare app store connect release assets 2026-03-07 17:21:07 +02:00
ios-team-id.sh fix(ios): normalize team IDs before preferred match 2026-02-24 15:02:27 +00:00
ios-write-version-xcconfig.sh chore: bump version to 2026.3.13 2026-03-13 04:38:32 +00:00
label-open-issues.ts refactor: dedupe extension and ui helpers 2026-03-02 19:57:33 +00:00
make_appcast.sh fix: support legacy and beta prerelease version formats 2026-02-24 02:05:37 +00: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
openclaw-npm-publish.sh ci: switch npm release workflow to trusted publishing 2026-03-14 13:45:40 +01:00
openclaw-npm-release-check.ts ci: allow fallback npm correction tags (#46486) 2026-03-14 19:38:14 +01:00
package-mac-app.sh macOS: default release app builds to universal binaries 2026-03-08 14:14:36 +00:00
package-mac-dist.sh fix(macos): set release bundle ID so Sparkle auto-update works (#19750) 2026-02-20 12:08:10 +05:30
plugin-npm-publish.sh Release: add plugin npm publish workflow (#47678) 2026-03-18 13:44:23 +01:00
plugin-npm-release-check.ts Release: add plugin npm publish workflow (#47678) 2026-03-18 13:44:23 +01:00
plugin-npm-release-plan.ts Release: add plugin npm publish workflow (#47678) 2026-03-18 13:44:23 +01:00
pr Revert "feat: add --no-test flag to prepare-gates" 2026-03-12 16:37:50 -07:00
pr-merge chore: fix root_dir resolution/stale scripts during PR review 2026-02-13 15:09:39 -05:00
pr-prepare Revert "feat: add --no-test flag to prepare-gates" 2026-03-12 16:37:50 -07:00
pr-review chore: fix root_dir resolution/stale scripts during PR review 2026-02-13 15:09:39 -05:00
profile-extension-memory.mjs Perf: add extension memory profiling command 2026-03-17 15:59:08 -07:00
protocol-gen-swift.ts fix: stabilize swift protocol generation and flaky tests 2026-02-21 16:53:46 +01: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
recover-orphaned-processes.sh fix: reset stale execution state after SIGUSR1 in-process restart (#15195) 2026-02-13 15:30:09 -05:00
release-check.ts Release: add plugin npm publish workflow (#47678) 2026-03-18 13:44:23 +01:00
restart-mac.sh refactor: replace bot.molt identifiers with ai.openclaw 2026-02-25 05:03:24 +00:00
run-node.d.mts Scripts: rebuild on extension and tsdown config changes (#47571) 2026-03-15 16:19:27 -04:00
run-node.mjs fix(dev): align gateway watch with tsdown wrapper (#47636) 2026-03-15 23:28:57 +02:00
run-openclaw-podman.sh fix(run-openclaw-podman): add SELinux :Z mount option on enforcing/permissive hosts (#39449) 2026-03-08 18:53:09 -04:00
runtime-postbuild-shared.mjs Plugins: relocate bundled skill assets 2026-03-15 21:42:02 +00:00
runtime-postbuild.mjs Plugins: stage local bundled runtime tree 2026-03-16 16:43:47 +00:00
sandbox-browser-entrypoint.sh feat(security): Harden Docker browser container chromium flags (#23889) (#31504) 2026-03-02 11:28:27 -08:00
sandbox-browser-setup.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
sandbox-common-setup.sh Docker: improve build cache reuse (#40351) 2026-03-08 17:57:46 -07: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
sparkle-build.ts fix(release): unify sparkle build policy and defaults 2026-02-28 10:04:25 +05:30
sqlite-vec-smoke.mjs chore: Also format `scripts` and `skills`. 2026-01-31 21:21:25 +09:00
stage-bundled-plugin-runtime.d.mts Plugins: stage local bundled runtime tree 2026-03-16 16:43:47 +00:00
stage-bundled-plugin-runtime.mjs fix: checkpoint gate fixes before rebase 2026-03-18 15:36:18 +00:00
sync-labels.ts CI: add PR size autolabel workflow (#14410) 2026-02-11 21:12:27 -06:00
sync-moonshot-docs.ts Docs: fix MDX markers blocking page refreshes (#46695) 2026-03-15 02:58:59 +01:00
sync-plugin-sdk-exports.mjs build(plugin-sdk): enforce export sync in check 2026-03-16 02:11:19 +00:00
sync-plugin-versions.ts fix(feishu): restore group command fallback and plugin deps 2026-02-22 19:13:19 +01: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-built-plugin-singleton.mjs CI: add built plugin singleton smoke (#48710) 2026-03-17 15:17:41 -05:00
test-cleanup-docker.sh refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
test-extension.mjs Tests: improve extension runner discovery 2026-03-16 17:59:39 -07:00
test-force.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
test-hotspots.mjs chore(test): add vitest hotspot reporter script 2026-03-03 00:43:01 +00:00
test-install-sh-docker.sh Install Smoke: allow reusing prebuilt test images 2026-03-06 14:23:00 -05: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 fix: stabilize docker test suite 2026-03-17 03:02:03 +00:00
test-live-models-docker.sh fix: stabilize docker test suite 2026-03-17 03:02:03 +00:00
test-parallel.mjs test: make runner scheduling timing-driven 2026-03-18 16:57:38 +00:00
test-perf-budget.mjs test(perf): slim ios team-id harness and add perf budget guard 2026-03-03 00:20:46 +00:00
test-runner-manifest.mjs test: make runner scheduling timing-driven 2026-03-18 16:57:38 +00:00
test-shell-completion.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
test-update-timings.mjs test: make runner scheduling timing-driven 2026-03-18 16:57:38 +00:00
tsdown-build.mjs fix: stabilize build dependency resolution (#49928) 2026-03-18 10:55:25 -07:00
ui.js fix(scripts): harden Windows UI spawn behavior 2026-02-16 20:49:09 -05:00
update-clawtributors.ts fix: agent-only announce path, BB message IDs, sender identity, SSRF allowlist (#23970) 2026-03-01 22:52:11 -08:00
update-clawtributors.types.ts fix: agent-only announce path, BB message IDs, sender identity, SSRF allowlist (#23970) 2026-03-01 22:52:11 -08:00
watch-node.d.mts chore(gateway): ignore `.test.ts` changes in `gateway:watch` (#36211) 2026-03-15 11:14:28 -04:00
watch-node.mjs Scripts: rebuild on extension and tsdown config changes (#47571) 2026-03-15 16:19:27 -04:00
write-build-info.ts chore: Enable linting in `scripts`. 2026-01-31 21:29:14 +09:00
write-cli-compat.ts fix (cli): harden daemon compat shim for minimal bundle exports 2026-02-14 20:53:32 -08:00
write-cli-startup-metadata.ts CLI: add root --help fast path and lazy channel option resolution (#30975) 2026-03-01 14:23:46 -08:00
write-plugin-sdk-entry-dts.ts refactor(plugin-sdk): centralize entrypoint manifest 2026-03-16 02:11:18 +00:00
zai-fallback-repro.ts chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00