@elizaos/app-core 2.0.0-alpha.85 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account-pool.d.ts +6 -0
- package/account-pool.d.ts.map +1 -0
- package/account-pool.js +5 -0
- package/api/__tests__/sandbox-test-helpers.d.ts +10 -0
- package/api/__tests__/sandbox-test-helpers.d.ts.map +1 -0
- package/api/__tests__/sandbox-test-helpers.js +15 -0
- package/api/auth/audit.d.ts +52 -0
- package/api/auth/audit.d.ts.map +1 -0
- package/api/auth/audit.js +126 -0
- package/api/auth/auth-context.d.ts +40 -0
- package/api/auth/auth-context.d.ts.map +1 -0
- package/api/auth/auth-context.js +68 -0
- package/api/auth/bootstrap-token.d.ts +50 -0
- package/api/auth/bootstrap-token.d.ts.map +1 -0
- package/api/auth/bootstrap-token.js +157 -0
- package/api/auth/index.d.ts +14 -0
- package/api/auth/index.d.ts.map +1 -0
- package/api/auth/index.js +13 -0
- package/api/auth/passwords.d.ts +65 -0
- package/api/auth/passwords.d.ts.map +1 -0
- package/api/auth/passwords.js +87 -0
- package/api/auth/sensitive-rate-limit.d.ts +56 -0
- package/api/auth/sensitive-rate-limit.d.ts.map +1 -0
- package/api/auth/sensitive-rate-limit.js +95 -0
- package/api/auth/sessions.d.ts +152 -0
- package/api/auth/sessions.d.ts.map +1 -0
- package/api/auth/sessions.js +298 -0
- package/api/auth/tokens.d.ts +3 -0
- package/api/auth/tokens.d.ts.map +1 -0
- package/api/auth/tokens.js +13 -0
- package/api/auth-bootstrap-routes.d.ts +32 -0
- package/api/auth-bootstrap-routes.d.ts.map +1 -0
- package/api/auth-bootstrap-routes.js +179 -0
- package/api/auth-pairing-compat-routes.d.ts +17 -0
- package/api/auth-pairing-compat-routes.d.ts.map +1 -0
- package/api/auth-pairing-compat-routes.js +301 -0
- package/api/auth-session-routes.d.ts +31 -0
- package/api/auth-session-routes.d.ts.map +1 -0
- package/api/auth-session-routes.js +560 -0
- package/api/auth.d.ts +153 -0
- package/api/auth.d.ts.map +1 -0
- package/api/auth.js +290 -0
- package/api/automation-node-contributors.d.ts +14 -0
- package/api/automation-node-contributors.d.ts.map +1 -0
- package/api/automation-node-contributors.js +14 -0
- package/api/automations-compat-routes.d.ts +18 -0
- package/api/automations-compat-routes.d.ts.map +1 -0
- package/api/automations-compat-routes.js +274 -0
- package/api/catalog-routes.d.ts +4 -0
- package/api/catalog-routes.d.ts.map +1 -0
- package/api/catalog-routes.js +61 -0
- package/api/compat-route-shared.d.ts +29 -0
- package/api/compat-route-shared.d.ts.map +1 -0
- package/api/compat-route-shared.js +298 -0
- package/api/credential-resolver.d.ts +31 -0
- package/api/credential-resolver.d.ts.map +1 -0
- package/api/credential-resolver.js +199 -0
- package/api/database-rows-compat-routes.d.ts +4 -0
- package/api/database-rows-compat-routes.d.ts.map +1 -0
- package/api/database-rows-compat-routes.js +100 -0
- package/api/dev-compat-routes.d.ts +11 -0
- package/api/dev-compat-routes.d.ts.map +1 -0
- package/api/dev-compat-routes.js +144 -0
- package/api/dev-console-log.d.ts +21 -0
- package/api/dev-console-log.d.ts.map +1 -0
- package/api/dev-console-log.js +65 -0
- package/api/dev-stack.d.ts +49 -0
- package/api/dev-stack.d.ts.map +1 -0
- package/api/dev-stack.js +60 -0
- package/api/local-inference-compat-routes.d.ts +16 -0
- package/api/local-inference-compat-routes.d.ts.map +1 -0
- package/api/local-inference-compat-routes.js +617 -0
- package/api/onboarding-compat-routes.d.ts +4 -0
- package/api/onboarding-compat-routes.d.ts.map +1 -0
- package/api/onboarding-compat-routes.js +207 -0
- package/api/plugins-compat-routes.d.ts +103 -0
- package/api/plugins-compat-routes.d.ts.map +1 -0
- package/api/plugins-compat-routes.js +1181 -0
- package/api/response.d.ts +4 -0
- package/api/response.d.ts.map +1 -0
- package/api/response.js +28 -0
- package/api/runtime-mode-routes.d.ts +13 -0
- package/api/runtime-mode-routes.d.ts.map +1 -0
- package/api/runtime-mode-routes.js +32 -0
- package/api/secrets-inventory-routes.d.ts +39 -0
- package/api/secrets-inventory-routes.d.ts.map +1 -0
- package/api/secrets-inventory-routes.js +487 -0
- package/api/secrets-manager-routes.d.ts +9 -0
- package/api/secrets-manager-routes.d.ts.map +1 -0
- package/api/secrets-manager-routes.js +476 -0
- package/api/sensitive-request-routes.d.ts +20 -0
- package/api/sensitive-request-routes.d.ts.map +1 -0
- package/api/sensitive-request-routes.js +489 -0
- package/api/sensitive-request-store.d.ts +39 -0
- package/api/sensitive-request-store.d.ts.map +1 -0
- package/api/sensitive-request-store.js +204 -0
- package/api/server-config-filter.d.ts +14 -0
- package/api/server-config-filter.d.ts.map +1 -0
- package/api/server-config-filter.js +77 -0
- package/api/server-cors.d.ts +30 -0
- package/api/server-cors.d.ts.map +1 -0
- package/api/server-cors.js +128 -0
- package/api/server-html.d.ts +4 -0
- package/api/server-html.d.ts.map +1 -0
- package/api/server-html.js +5 -0
- package/api/server-onboarding-compat.d.ts +31 -0
- package/api/server-onboarding-compat.d.ts.map +1 -0
- package/api/server-onboarding-compat.js +283 -0
- package/api/server-security.d.ts +11 -0
- package/api/server-security.d.ts.map +1 -0
- package/api/server-security.js +29 -0
- package/api/server-startup.d.ts +5 -0
- package/api/server-startup.d.ts.map +1 -0
- package/api/server-startup.js +74 -0
- package/api/server-wallet-trade.d.ts +10 -0
- package/api/server-wallet-trade.d.ts.map +1 -0
- package/api/server-wallet-trade.js +240 -0
- package/api/server.d.ts +32 -0
- package/api/server.d.ts.map +1 -0
- package/api/server.js +768 -0
- package/api/workbench-compat-routes.d.ts +11 -0
- package/api/workbench-compat-routes.d.ts.map +1 -0
- package/api/workbench-compat-routes.js +325 -0
- package/benchmark/cua-routes.d.ts +10 -0
- package/benchmark/cua-routes.d.ts.map +1 -0
- package/benchmark/cua-routes.js +179 -0
- package/benchmark/lifeops-bench-handler.d.ts +94 -0
- package/benchmark/lifeops-bench-handler.d.ts.map +1 -0
- package/benchmark/lifeops-bench-handler.js +280 -0
- package/benchmark/lifeops-fake-backend.d.ts +227 -0
- package/benchmark/lifeops-fake-backend.d.ts.map +1 -0
- package/benchmark/lifeops-fake-backend.js +499 -0
- package/benchmark/mock-plugin-base.d.ts +9 -0
- package/benchmark/mock-plugin-base.d.ts.map +1 -0
- package/benchmark/mock-plugin-base.js +325 -0
- package/benchmark/mock-plugin.d.ts +3 -0
- package/benchmark/mock-plugin.d.ts.map +1 -0
- package/benchmark/mock-plugin.js +504 -0
- package/benchmark/params.d.ts +2 -0
- package/benchmark/params.d.ts.map +1 -0
- package/benchmark/params.js +18 -0
- package/benchmark/plugin.d.ts +42 -0
- package/benchmark/plugin.d.ts.map +1 -0
- package/benchmark/plugin.js +422 -0
- package/benchmark/replay-capture.d.ts +73 -0
- package/benchmark/replay-capture.d.ts.map +1 -0
- package/benchmark/replay-capture.js +223 -0
- package/benchmark/server-utils.d.ts +100 -0
- package/benchmark/server-utils.d.ts.map +1 -0
- package/benchmark/server-utils.js +289 -0
- package/benchmark/server.d.ts +2 -0
- package/benchmark/server.d.ts.map +1 -0
- package/benchmark/server.js +1176 -0
- package/browser.d.ts +13 -0
- package/browser.d.ts.map +1 -0
- package/browser.js +15 -0
- package/cli/argv.d.ts +17 -0
- package/cli/argv.d.ts.map +1 -0
- package/cli/argv.js +140 -0
- package/cli/banner.d.ts +11 -0
- package/cli/banner.d.ts.map +1 -0
- package/cli/banner.js +36 -0
- package/cli/cli-name.d.ts +5 -0
- package/cli/cli-name.d.ts.map +1 -0
- package/cli/cli-name.js +21 -0
- package/cli/cli-utils.d.ts +5 -0
- package/cli/cli-utils.d.ts.map +1 -0
- package/cli/cli-utils.js +13 -0
- package/cli/command-format.d.ts +2 -0
- package/cli/command-format.d.ts.map +1 -0
- package/cli/command-format.js +20 -0
- package/cli/doctor/checks.d.ts +96 -0
- package/cli/doctor/checks.d.ts.map +1 -0
- package/cli/doctor/checks.js +483 -0
- package/cli/git-commit.d.ts +5 -0
- package/cli/git-commit.d.ts.map +1 -0
- package/cli/git-commit.js +106 -0
- package/cli/parse-duration.d.ts +5 -0
- package/cli/parse-duration.d.ts.map +1 -0
- package/cli/parse-duration.js +27 -0
- package/cli/plugins-cli.d.ts +26 -0
- package/cli/plugins-cli.d.ts.map +1 -0
- package/cli/plugins-cli.js +892 -0
- package/cli/profile-utils.d.ts +3 -0
- package/cli/profile-utils.d.ts.map +1 -0
- package/cli/profile-utils.js +21 -0
- package/cli/profile.d.ts +15 -0
- package/cli/profile.d.ts.map +1 -0
- package/cli/profile.js +93 -0
- package/cli/program/build-program.d.ts +3 -0
- package/cli/program/build-program.d.ts.map +1 -0
- package/cli/program/build-program.js +12 -0
- package/cli/program/command-registry.d.ts +3 -0
- package/cli/program/command-registry.d.ts.map +1 -0
- package/cli/program/command-registry.js +24 -0
- package/cli/program/help.d.ts +3 -0
- package/cli/program/help.d.ts.map +1 -0
- package/cli/program/help.js +57 -0
- package/cli/program/preaction.d.ts +3 -0
- package/cli/program/preaction.d.ts.map +1 -0
- package/cli/program/preaction.js +40 -0
- package/cli/program/register.auth.d.ts +51 -0
- package/cli/program/register.auth.d.ts.map +1 -0
- package/cli/program/register.auth.js +203 -0
- package/cli/program/register.benchmark.d.ts +3 -0
- package/cli/program/register.benchmark.d.ts.map +1 -0
- package/cli/program/register.benchmark.js +12 -0
- package/cli/program/register.config.d.ts +3 -0
- package/cli/program/register.config.d.ts.map +1 -0
- package/cli/program/register.config.js +150 -0
- package/cli/program/register.configure.d.ts +3 -0
- package/cli/program/register.configure.d.ts.map +1 -0
- package/cli/program/register.configure.js +18 -0
- package/cli/program/register.dashboard.d.ts +3 -0
- package/cli/program/register.dashboard.d.ts.map +1 -0
- package/cli/program/register.dashboard.js +124 -0
- package/cli/program/register.db.d.ts +3 -0
- package/cli/program/register.db.d.ts.map +1 -0
- package/cli/program/register.db.js +45 -0
- package/cli/program/register.doctor.d.ts +3 -0
- package/cli/program/register.doctor.d.ts.map +1 -0
- package/cli/program/register.doctor.js +170 -0
- package/cli/program/register.models.d.ts +3 -0
- package/cli/program/register.models.d.ts.map +1 -0
- package/cli/program/register.models.js +32 -0
- package/cli/program/register.setup.d.ts +16 -0
- package/cli/program/register.setup.d.ts.map +1 -0
- package/cli/program/register.setup.js +333 -0
- package/cli/program/register.start.d.ts +3 -0
- package/cli/program/register.start.d.ts.map +1 -0
- package/cli/program/register.start.js +95 -0
- package/cli/program/register.subclis.d.ts +4 -0
- package/cli/program/register.subclis.d.ts.map +1 -0
- package/cli/program/register.subclis.js +87 -0
- package/cli/program/register.update.d.ts +12 -0
- package/cli/program/register.update.d.ts.map +1 -0
- package/cli/program/register.update.js +173 -0
- package/cli/program.d.ts +2 -0
- package/cli/program.d.ts.map +1 -0
- package/cli/program.js +1 -0
- package/cli/run-main.d.ts +2 -0
- package/cli/run-main.d.ts.map +1 -0
- package/cli/run-main.js +71 -0
- package/cli/version.d.ts +2 -0
- package/cli/version.d.ts.map +1 -0
- package/cli/version.js +2 -0
- package/connectors/capacitor-jsc.d.ts +66 -0
- package/connectors/capacitor-jsc.d.ts.map +1 -0
- package/connectors/capacitor-jsc.js +39 -0
- package/connectors/capacitor-quickjs.d.ts +64 -0
- package/connectors/capacitor-quickjs.d.ts.map +1 -0
- package/connectors/capacitor-quickjs.js +50 -0
- package/connectors/capacitor-sqlite.d.ts +41 -0
- package/connectors/capacitor-sqlite.d.ts.map +1 -0
- package/connectors/capacitor-sqlite.js +87 -0
- package/diagnostics/integration-observability.d.ts +40 -0
- package/diagnostics/integration-observability.d.ts.map +1 -0
- package/diagnostics/integration-observability.js +68 -0
- package/entry.d.ts +10 -0
- package/entry.d.ts.map +1 -0
- package/entry.js +66 -0
- package/index.d.ts +34 -4
- package/index.d.ts.map +1 -1
- package/index.js +42 -6
- package/package.json +81 -151
- package/packaging/PUBLISHING_GUIDE.md +707 -0
- package/packaging/debian/changelog +9 -0
- package/packaging/debian/control +26 -0
- package/packaging/debian/copyright +27 -0
- package/packaging/debian/elizaos-app.service +15 -0
- package/packaging/debian/install +4 -0
- package/packaging/debian/postinst +28 -0
- package/packaging/debian/prerm +14 -0
- package/packaging/debian/rules +44 -0
- package/packaging/debian/source/format +1 -0
- package/packaging/flatpak/README.md +150 -0
- package/packaging/flatpak/ai.elizaos.App.desktop +11 -0
- package/packaging/flatpak/ai.elizaos.App.metainfo.xml +81 -0
- package/packaging/flatpak/ai.elizaos.App.store.yml +142 -0
- package/packaging/flatpak/ai.elizaos.App.yml +142 -0
- package/packaging/flatpak/elizaos-app-wrapper.sh +5 -0
- package/packaging/flatpak/elizaos-app-wrapper.store.sh +16 -0
- package/packaging/flatpak/icons/128x128/ai.elizaos.App.png +0 -0
- package/packaging/flatpak/icons/256x256/ai.elizaos.App.png +0 -0
- package/packaging/flatpak/icons/512x512/ai.elizaos.App.png +0 -0
- package/packaging/homebrew/README.md +80 -0
- package/packaging/homebrew/elizaos-app.cask.rb +60 -0
- package/packaging/homebrew/elizaos-app.rb +49 -0
- package/packaging/inno/ElizaOSApp.iss +53 -0
- package/packaging/inno/build-inno.ps1 +231 -0
- package/packaging/msix/AppxManifest.store.xml +79 -0
- package/packaging/msix/AppxManifest.xml +53 -0
- package/packaging/msix/README.md +201 -0
- package/packaging/msix/assets/LargeTile.png +0 -0
- package/packaging/msix/assets/Square150x150Logo.png +0 -0
- package/packaging/msix/assets/Square44x44Logo.png +0 -0
- package/packaging/msix/assets/StoreLogo.png +0 -0
- package/packaging/msix/assets/Wide310x150Logo.png +0 -0
- package/packaging/msix/build-msix.ps1 +206 -0
- package/packaging/msix/generate-placeholder-assets.ps1 +49 -0
- package/packaging/msix/store/description.md +31 -0
- package/packaging/msix/store/listing.json +27 -0
- package/packaging/pypi/README.md +14 -0
- package/packaging/pypi/elizaos_app/__init__.py +7 -0
- package/packaging/pypi/elizaos_app/__main__.py +6 -0
- package/packaging/pypi/elizaos_app/cli.py +21 -0
- package/packaging/pypi/elizaos_app/loader.py +127 -0
- package/packaging/pypi/elizaos_app/py.typed +1 -0
- package/packaging/pypi/pyproject.toml +38 -0
- package/packaging/snap/snapcraft.yaml +560 -0
- package/packaging/test-packaging.sh +309 -0
- package/patches/@noble%2Fcurves@2.0.1.patch +33 -0
- package/patches/@pixiv%2Fthree-vrm@3.5.2.patch +26 -0
- package/patches/coding-agent-adapters@0.16.3.patch +44 -0
- package/patches/electrobun@1.16.0.patch +13 -0
- package/patches/llama-cpp-capacitor@0.1.5.patch +2387 -0
- package/patches/proper-lockfile@4.1.2.patch +14 -0
- package/patches/pty-manager@1.11.0.patch +194 -0
- package/permissions/types.d.ts +8 -0
- package/permissions/types.d.ts.map +1 -0
- package/permissions/types.js +7 -0
- package/platform/agent-browser-stub.d.ts +27 -0
- package/platform/agent-browser-stub.d.ts.map +1 -0
- package/platform/agent-browser-stub.js +16 -0
- package/platform/empty-node-module.d.ts +31 -0
- package/platform/empty-node-module.d.ts.map +1 -0
- package/platform/empty-node-module.js +22 -0
- package/platforms/android/Gemfile +6 -0
- package/platforms/android/README.md +79 -0
- package/platforms/android/app/build.gradle +124 -0
- package/platforms/android/app/capacitor.build.gradle +32 -0
- package/platforms/android/app/proguard-rules.pro +46 -0
- package/platforms/android/app/src/androidTest/java/ai/elizaos/app/ElizaOsInstrumentedTest.java +162 -0
- package/platforms/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/platforms/android/app/src/main/AndroidManifest.xml +83 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/AgentPlugin.java +232 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaAgentService.java +1514 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaAssistActivity.java +21 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaBootReceiver.java +61 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaBrowserActivity.java +39 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaCalendarActivity.java +75 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaCameraActivity.java +54 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaClockActivity.java +70 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaContactsActivity.java +56 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaDialActivity.java +83 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaInCallService.java +168 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaMmsReceiver.java +70 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaNativeBridge.java +38 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaRespondViaMessageService.java +119 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaSmsComposeActivity.java +50 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/ElizaSmsReceiver.java +84 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/GatewayConnectionService.java +211 -0
- package/platforms/android/app/src/main/java/ai/elizaos/app/MainActivity.java +202 -0
- package/platforms/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/platforms/android/app/src/main/res/drawable/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/platforms/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/platforms/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/platforms/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/platforms/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/platforms/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/platforms/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/platforms/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/platforms/android/app/src/main/res/values/strings.xml +7 -0
- package/platforms/android/app/src/main/res/values/styles.xml +22 -0
- package/platforms/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/platforms/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/platforms/android/build.gradle +63 -0
- package/platforms/android/capacitor-cordova-android-plugins/build.gradle +53 -0
- package/platforms/android/capacitor-cordova-android-plugins/cordova.variables.gradle +3 -0
- package/platforms/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml +3 -0
- package/platforms/android/capacitor-cordova-android-plugins/src/main/java/.gitkeep +1 -0
- package/platforms/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep +1 -0
- package/platforms/android/capacitor.settings.gradle +45 -0
- package/platforms/android/fastlane/Appfile +2 -0
- package/platforms/android/fastlane/Fastfile +59 -0
- package/platforms/android/fastlane/metadata/android/en-US/full_description.txt +24 -0
- package/platforms/android/fastlane/metadata/android/en-US/short_description.txt +1 -0
- package/platforms/android/fastlane/metadata/android/en-US/title.txt +1 -0
- package/platforms/android/fastlane/metadata/android/en-US/video.txt +0 -0
- package/platforms/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/platforms/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/platforms/android/gradle.properties +27 -0
- package/platforms/android/gradlew +251 -0
- package/platforms/android/gradlew.bat +94 -0
- package/platforms/android/settings.gradle +13 -0
- package/platforms/android/variables.gradle +17 -0
- package/platforms/electrobun/.generated/brand-config.json +8 -0
- package/platforms/electrobun/README.md +44 -0
- package/platforms/electrobun/assets/appIcon.ico +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_128x128.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_128x128@2x.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_16x16.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_16x16@2x.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_256x256.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_256x256@2x.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_32x32.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_32x32@2x.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_512x512.png +0 -0
- package/platforms/electrobun/assets/appIcon.iconset/icon_512x512@2x.png +0 -0
- package/platforms/electrobun/assets/appIcon.png +0 -0
- package/platforms/electrobun/assets/brand-config.json +8 -0
- package/platforms/electrobun/biome.json +11 -0
- package/platforms/electrobun/electrobun.config.ts +435 -0
- package/platforms/electrobun/entitlements/README.md +54 -0
- package/platforms/electrobun/entitlements/mas-child.entitlements +10 -0
- package/platforms/electrobun/entitlements/mas.entitlements +41 -0
- package/platforms/electrobun/native/macos/window-effects.mm +1030 -0
- package/platforms/electrobun/package.json +42 -0
- package/platforms/electrobun/scripts/bin/zip +2 -0
- package/platforms/electrobun/scripts/build-macos-effects.sh +31 -0
- package/platforms/electrobun/scripts/build-whisper-universal.sh +137 -0
- package/platforms/electrobun/scripts/build-whisper.sh +95 -0
- package/platforms/electrobun/scripts/ensure-whisper-model.sh +93 -0
- package/platforms/electrobun/scripts/hdiutil-wrapper.sh +33 -0
- package/platforms/electrobun/scripts/lib/app-dir.mjs +74 -0
- package/platforms/electrobun/scripts/lib/repo-root.mjs +77 -0
- package/platforms/electrobun/scripts/local-adhoc-sign-macos.ts +214 -0
- package/platforms/electrobun/scripts/macos-direct-launcher.c +84 -0
- package/platforms/electrobun/scripts/postwrap-diagnostics.ts +423 -0
- package/platforms/electrobun/scripts/postwrap-sign-runtime-macos.ts +352 -0
- package/platforms/electrobun/scripts/sign-windows.ps1 +121 -0
- package/platforms/electrobun/scripts/smoke-test-windows.ps1 +907 -0
- package/platforms/electrobun/scripts/smoke-test.sh +1186 -0
- package/platforms/electrobun/scripts/stage-macos-release-artifacts.sh +491 -0
- package/platforms/electrobun/scripts/sync-web-assets.mjs +48 -0
- package/platforms/electrobun/scripts/verify-rpc-handlers.ts +162 -0
- package/platforms/electrobun/scripts/verify-windows-installer-proof.ps1 +203 -0
- package/platforms/electrobun/scripts/xcrun-wrapper.sh +80 -0
- package/platforms/electrobun/scripts/zip-wrapper.sh +6 -0
- package/platforms/electrobun/src/__stubs__/bun-ffi.ts +51 -0
- package/platforms/electrobun/src/__stubs__/electrobun-bun.ts +20 -0
- package/platforms/electrobun/src/agent-ready-state.ts +35 -0
- package/platforms/electrobun/src/agent-reset-from-main.ts +87 -0
- package/platforms/electrobun/src/api-base.ts +169 -0
- package/platforms/electrobun/src/application-menu-action-registry.ts +21 -0
- package/platforms/electrobun/src/application-menu.ts +418 -0
- package/platforms/electrobun/src/background-notice.ts +65 -0
- package/platforms/electrobun/src/brand-config.ts +184 -0
- package/platforms/electrobun/src/bridge/browser-tabs-renderer-registry.ts +60 -0
- package/platforms/electrobun/src/bridge/electrobun-direct-rpc.ts +430 -0
- package/platforms/electrobun/src/bridge/electrobun-preload.ts +1 -0
- package/platforms/electrobun/src/bridge/electrobun-stub.ts +21 -0
- package/platforms/electrobun/src/browser-workspace-bridge-server.ts +284 -0
- package/platforms/electrobun/src/cloud-auth-window.ts +216 -0
- package/platforms/electrobun/src/cloud-disconnect-from-main.ts +118 -0
- package/platforms/electrobun/src/constants.ts +2 -0
- package/platforms/electrobun/src/desktop-http-request.test.ts +85 -0
- package/platforms/electrobun/src/desktop-http-request.ts +103 -0
- package/platforms/electrobun/src/desktop-test-bridge-server.ts +248 -0
- package/platforms/electrobun/src/devtools-layout.ts +63 -0
- package/platforms/electrobun/src/diagnostic-format.ts +65 -0
- package/platforms/electrobun/src/fatal-shutdown.test.ts +30 -0
- package/platforms/electrobun/src/fatal-shutdown.ts +10 -0
- package/platforms/electrobun/src/floating-chat-window.ts +239 -0
- package/platforms/electrobun/src/index.ts +2510 -0
- package/platforms/electrobun/src/libMacWindowEffects.dylib +0 -0
- package/platforms/electrobun/src/lifecycle/api-base-owner.ts +119 -0
- package/platforms/electrobun/src/lifecycle/desktop-session-prime.ts +77 -0
- package/platforms/electrobun/src/logger.ts +23 -0
- package/platforms/electrobun/src/main-window-runtime.ts +117 -0
- package/platforms/electrobun/src/main-window-session.ts +88 -0
- package/platforms/electrobun/src/menu-reset-from-main.ts +211 -0
- package/platforms/electrobun/src/native/agent.ts +1963 -0
- package/platforms/electrobun/src/native/auth-bridge.ts +525 -0
- package/platforms/electrobun/src/native/browser-workspace.ts +574 -0
- package/platforms/electrobun/src/native/camera.ts +68 -0
- package/platforms/electrobun/src/native/canvas.ts +504 -0
- package/platforms/electrobun/src/native/credentials.ts +765 -0
- package/platforms/electrobun/src/native/desktop.ts +2317 -0
- package/platforms/electrobun/src/native/editor-bridge.ts +292 -0
- package/platforms/electrobun/src/native/file-watcher.ts +220 -0
- package/platforms/electrobun/src/native/gateway.ts +218 -0
- package/platforms/electrobun/src/native/gpu-window.ts +301 -0
- package/platforms/electrobun/src/native/index.ts +105 -0
- package/platforms/electrobun/src/native/location.ts +110 -0
- package/platforms/electrobun/src/native/loopback-port.ts +81 -0
- package/platforms/electrobun/src/native/mac-window-effects.ts +178 -0
- package/platforms/electrobun/src/native/music-player.ts +61 -0
- package/platforms/electrobun/src/native/permissions-shared.ts +171 -0
- package/platforms/electrobun/src/native/permissions.ts +242 -0
- package/platforms/electrobun/src/native/power-state.ts +195 -0
- package/platforms/electrobun/src/native/screencapture.ts +654 -0
- package/platforms/electrobun/src/native/steward.ts +343 -0
- package/platforms/electrobun/src/native/swabble.ts +349 -0
- package/platforms/electrobun/src/native/talkmode.ts +441 -0
- package/platforms/electrobun/src/native/webgpu-browser-support.ts +220 -0
- package/platforms/electrobun/src/native/whisper.ts +280 -0
- package/platforms/electrobun/src/preload-validation.ts +65 -0
- package/platforms/electrobun/src/preload.js +1 -0
- package/platforms/electrobun/src/print-electrobun-dev-settings-banner.ts +140 -0
- package/platforms/electrobun/src/renderer-static.ts +77 -0
- package/platforms/electrobun/src/rpc-handlers.ts +1079 -0
- package/platforms/electrobun/src/rpc-schema.ts +1870 -0
- package/platforms/electrobun/src/runtime-layout.ts +150 -0
- package/platforms/electrobun/src/runtime-permissions.ts +131 -0
- package/platforms/electrobun/src/screenshot-dev-server.ts +125 -0
- package/platforms/electrobun/src/startup-trace.ts +351 -0
- package/platforms/electrobun/src/surface-windows.ts +475 -0
- package/platforms/electrobun/src/types/web-speech.d.ts +52 -0
- package/platforms/electrobun/src/types.ts +18 -0
- package/platforms/electrobun/src/windows-cef-profile.ts +124 -0
- package/platforms/electrobun/tsconfig.json +75 -0
- package/platforms/electrobun/vitest.electrobun.config.ts +54 -0
- package/platforms/ios/App/App/App.entitlements +18 -0
- package/platforms/ios/App/App/AppDelegate.swift +93 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ios-marketing-1024.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-20x20@1x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-20x20@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-29x29@1x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-29x29@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-40x40@1x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-40x40@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-76x76@1x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-76x76@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-ipad-83_5x83_5@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-20x20@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-20x20@3x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-29x29@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-29x29@3x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-40x40@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-40x40@3x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-60x60@2x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-iphone-60x60@3x.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +116 -0
- package/platforms/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/platforms/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/platforms/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/platforms/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/platforms/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/platforms/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/platforms/ios/App/App/ElizaIntentPlugin.swift +185 -0
- package/platforms/ios/App/App/Info.plist +123 -0
- package/platforms/ios/App/App/PrivacyInfo.xcprivacy +55 -0
- package/platforms/ios/App/App/SceneDelegate.swift +77 -0
- package/platforms/ios/App/App/WebsiteBlockerContentExtension/ActionRequestHandler.swift +142 -0
- package/platforms/ios/App/App/WebsiteBlockerContentExtension/Info.plist +29 -0
- package/platforms/ios/App/App/WebsiteBlockerContentExtension/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/App/App/WebsiteBlockerContentExtension/WebsiteBlockerContentExtension.entitlements +10 -0
- package/platforms/ios/App/App.xcodeproj/project.pbxproj +596 -0
- package/platforms/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/platforms/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/platforms/ios/App/ExportOptions.plist +18 -0
- package/platforms/ios/App/Podfile +51 -0
- package/platforms/ios/App/Podfile.lock +131 -0
- package/platforms/ios/Gemfile +6 -0
- package/platforms/ios/fastlane/Appfile +4 -0
- package/platforms/ios/fastlane/Fastfile +94 -0
- package/platforms/ios/fastlane/Matchfile +12 -0
- package/platforms/ios/fastlane/metadata/en-US/description.txt +22 -0
- package/platforms/ios/fastlane/metadata/en-US/keywords.txt +1 -0
- package/platforms/ios/fastlane/metadata/en-US/marketing_url.txt +1 -0
- package/platforms/ios/fastlane/metadata/en-US/name.txt +1 -0
- package/platforms/ios/fastlane/metadata/en-US/privacy_url.txt +1 -0
- package/platforms/ios/fastlane/metadata/en-US/promotional_text.txt +1 -0
- package/platforms/ios/fastlane/metadata/en-US/subtitle.txt +1 -0
- package/platforms/ios/fastlane/metadata/en-US/support_url.txt +1 -0
- package/register-runtime-hooks.d.ts +2 -0
- package/register-runtime-hooks.d.ts.map +1 -0
- package/register-runtime-hooks.js +13 -0
- package/registry/generate-apps.d.ts +2 -0
- package/registry/generate-apps.d.ts.map +1 -0
- package/registry/generate-apps.js +338 -0
- package/registry/generate.d.ts +2 -0
- package/registry/generate.d.ts.map +1 -0
- package/registry/generate.js +506 -0
- package/registry/index.d.ts +6 -0
- package/registry/index.d.ts.map +1 -0
- package/registry/index.js +68 -0
- package/registry/loader.d.ts +27 -0
- package/registry/loader.d.ts.map +1 -0
- package/registry/loader.js +111 -0
- package/registry/schema.d.ts +989 -0
- package/registry/schema.d.ts.map +1 -0
- package/registry/schema.js +264 -0
- package/runtime/api-dev-settings-banner.d.ts +7 -0
- package/runtime/api-dev-settings-banner.d.ts.map +1 -0
- package/runtime/api-dev-settings-banner.js +104 -0
- package/runtime/app-route-plugin-registry.d.ts +3 -0
- package/runtime/app-route-plugin-registry.d.ts.map +1 -0
- package/runtime/app-route-plugin-registry.js +1 -0
- package/runtime/build-character-from-config.d.ts +3 -0
- package/runtime/build-character-from-config.d.ts.map +1 -0
- package/runtime/build-character-from-config.js +59 -0
- package/runtime/build-variant.d.ts +8 -0
- package/runtime/build-variant.d.ts.map +1 -0
- package/runtime/build-variant.js +7 -0
- package/runtime/channel-plugin-map.d.ts +6 -0
- package/runtime/channel-plugin-map.d.ts.map +1 -0
- package/runtime/channel-plugin-map.js +38 -0
- package/runtime/dev-server.d.ts +2 -0
- package/runtime/dev-server.d.ts.map +1 -0
- package/runtime/dev-server.js +383 -0
- package/runtime/dev-settings-figlet-heading.d.ts +22 -0
- package/runtime/dev-settings-figlet-heading.d.ts.map +1 -0
- package/runtime/dev-settings-figlet-heading.js +55 -0
- package/runtime/eliza.d.ts +21 -0
- package/runtime/eliza.d.ts.map +1 -0
- package/runtime/eliza.js +863 -0
- package/runtime/embedding-manager-support.d.ts +77 -0
- package/runtime/embedding-manager-support.d.ts.map +1 -0
- package/runtime/embedding-manager-support.js +309 -0
- package/runtime/embedding-presets.d.ts +5 -0
- package/runtime/embedding-presets.d.ts.map +1 -0
- package/runtime/embedding-presets.js +47 -0
- package/runtime/embedding-warmup-policy.d.ts +13 -0
- package/runtime/embedding-warmup-policy.d.ts.map +1 -0
- package/runtime/embedding-warmup-policy.js +33 -0
- package/runtime/ensure-local-inference-handler.d.ts +25 -0
- package/runtime/ensure-local-inference-handler.d.ts.map +1 -0
- package/runtime/ensure-local-inference-handler.js +389 -0
- package/runtime/ensure-text-to-speech-handler.d.ts +18 -0
- package/runtime/ensure-text-to-speech-handler.d.ts.map +1 -0
- package/runtime/ensure-text-to-speech-handler.js +50 -0
- package/runtime/error-handlers.d.ts +12 -0
- package/runtime/error-handlers.d.ts.map +1 -0
- package/runtime/error-handlers.js +49 -0
- package/runtime/mobile-local-inference-gate.d.ts +21 -0
- package/runtime/mobile-local-inference-gate.d.ts.map +1 -0
- package/runtime/mobile-local-inference-gate.js +24 -0
- package/runtime/mobile-safe-runtime.d.ts +123 -0
- package/runtime/mobile-safe-runtime.d.ts.map +1 -0
- package/runtime/mobile-safe-runtime.js +290 -0
- package/runtime/mode/remote-forwarder.d.ts +35 -0
- package/runtime/mode/remote-forwarder.d.ts.map +1 -0
- package/runtime/mode/remote-forwarder.js +119 -0
- package/runtime/mode/route-mode-guard.d.ts +21 -0
- package/runtime/mode/route-mode-guard.d.ts.map +1 -0
- package/runtime/mode/route-mode-guard.js +30 -0
- package/runtime/mode/route-mode-matrix.d.ts +64 -0
- package/runtime/mode/route-mode-matrix.d.ts.map +1 -0
- package/runtime/mode/route-mode-matrix.js +125 -0
- package/runtime/mode/runtime-mode.d.ts +72 -0
- package/runtime/mode/runtime-mode.d.ts.map +1 -0
- package/runtime/mode/runtime-mode.js +167 -0
- package/runtime/runtime-bootstrap-policy.d.ts +17 -0
- package/runtime/runtime-bootstrap-policy.d.ts.map +1 -0
- package/runtime/runtime-bootstrap-policy.js +37 -0
- package/runtime/sandbox-policy.d.ts +8 -0
- package/runtime/sandbox-policy.d.ts.map +1 -0
- package/runtime/sandbox-policy.js +7 -0
- package/runtime/startup-overlay.d.ts +14 -0
- package/runtime/startup-overlay.d.ts.map +1 -0
- package/runtime/startup-overlay.js +55 -0
- package/runtime/telegram-standalone-handler.d.ts +34 -0
- package/runtime/telegram-standalone-handler.d.ts.map +1 -0
- package/runtime/telegram-standalone-handler.js +195 -0
- package/runtime/telegram-standalone-policy.d.ts +2 -0
- package/runtime/telegram-standalone-policy.d.ts.map +1 -0
- package/runtime/telegram-standalone-policy.js +14 -0
- package/scripts/README.md +27 -0
- package/scripts/align-electrobun-version.mjs +37 -0
- package/scripts/aosp/README.md +66 -0
- package/scripts/aosp/avd-test.mjs +403 -0
- package/scripts/aosp/boot-validate.mjs +536 -0
- package/scripts/aosp/build-aosp.mjs +448 -0
- package/scripts/aosp/build-bootanimation.mjs +178 -0
- package/scripts/aosp/capture-screens.mjs +325 -0
- package/scripts/aosp/compile-libllama.mjs +1333 -0
- package/scripts/aosp/compile-shim.mjs +328 -0
- package/scripts/aosp/e2e-validate.mjs +225 -0
- package/scripts/aosp/lib/load-variant-config.mjs +182 -0
- package/scripts/aosp/lint-init-rc.mjs +258 -0
- package/scripts/aosp/llama-cpp-patches/README.md +49 -0
- package/scripts/aosp/llama-cpp-patches/apply-patches.mjs +198 -0
- package/scripts/aosp/llama-cpp-patches/polarquant/0001-Q4_POLAR-register-GGML_TYPE_Q4_POLAR-45-and-block_q4.patch +108 -0
- package/scripts/aosp/llama-cpp-patches/polarquant/0002-Q4_POLAR-vendor-PolarQuant-ref-kernels-into-ggml-bas.patch +460 -0
- package/scripts/aosp/llama-cpp-patches/polarquant/0003-tests-cover-Q4_POLAR-fix-latent-buffer-overflow.patch +102 -0
- package/scripts/aosp/llama-cpp-patches/polarquant/0004-Q4_POLAR-gate-QJL-residual-on-runtime-flag-default-o.patch +97 -0
- package/scripts/aosp/llama-cpp-patches/qjl/0001-ggml-add-GGML_TYPE_QJL1_256-GGML_OP_ATTN_SCORE_QJL-e.patch +120 -0
- package/scripts/aosp/llama-cpp-patches/qjl/0002-ggml-register-QJL1_256-type-traits-ATTN_SCORE_QJL-op.patch +1392 -0
- package/scripts/aosp/llama-cpp-patches/qjl/0003-ggml-set-QJL1_256-blck_size-to-head_dim-128-not-sket.patch +56 -0
- package/scripts/aosp/llama-cpp-patches/qjl/0004-tests-add-test-qjl-cache-verifying-type-traits-score.patch +335 -0
- package/scripts/aosp/llama-cpp-patches/qjl/0005-ggml-flip-block_qjl1_256-to-signs-then-norm.patch +69 -0
- package/scripts/aosp/llama-shim/eliza_llama_shim.c +276 -0
- package/scripts/aosp/seccomp-shim/loader-wrap.c +141 -0
- package/scripts/aosp/seccomp-shim/sigsys-handler.c +338 -0
- package/scripts/aosp/sim.mjs +277 -0
- package/scripts/aosp/smoke-cuttlefish.mjs +673 -0
- package/scripts/aosp/stage-default-models.mjs +340 -0
- package/scripts/aosp/stage-models-dfm.mjs +384 -0
- package/scripts/aosp/sync-to-aosp.mjs +134 -0
- package/scripts/aosp/validate.mjs +1273 -0
- package/scripts/aosp/variant-config-schema.ts +10 -0
- package/scripts/audit-live-test-surface.mjs +590 -0
- package/scripts/audit-server-test-surface.mjs +163 -0
- package/scripts/benchmark-preflight.mjs +170 -0
- package/scripts/bin/.gitkeep +0 -0
- package/scripts/build-bundled-agent-skills-artifact.mjs +58 -0
- package/scripts/build-bundled-orchestrator-artifact.mjs +66 -0
- package/scripts/build-capacitor-app.mjs +122 -0
- package/scripts/build-electrobun-preload.mjs +117 -0
- package/scripts/build-flatpak.mjs +125 -0
- package/scripts/build-image.sh +461 -0
- package/scripts/build-llama-cpp-dflash.mjs +1866 -0
- package/scripts/build-native-plugins.mjs +153 -0
- package/scripts/build-patched-electrobun-cli.mjs +424 -0
- package/scripts/build-win.mjs +82 -0
- package/scripts/bump-elizaos.sh +438 -0
- package/scripts/check-i18n.mjs +328 -0
- package/scripts/check-secret-hygiene.mjs +344 -0
- package/scripts/check-upstream-drift.mjs +102 -0
- package/scripts/clean-repo.mjs +187 -0
- package/scripts/codesign-mas.mjs +297 -0
- package/scripts/container-entrypoint.mjs +101 -0
- package/scripts/coordinator-cross-platform-review.mjs +192 -0
- package/scripts/copy-package-assets.mjs +31 -0
- package/scripts/copy-runtime-node-modules.ts +1782 -0
- package/scripts/coverage-policy.d.mts +16 -0
- package/scripts/coverage-policy.mjs +38 -0
- package/scripts/css-coverage.mjs +241 -0
- package/scripts/deploy-image.sh +318 -0
- package/scripts/desktop-build.mjs +867 -0
- package/scripts/desktop-stack-status.mjs +80 -0
- package/scripts/dev-platform.mjs +975 -0
- package/scripts/dev-ui.mjs +1178 -0
- package/scripts/dev-win.mjs +25 -0
- package/scripts/disable-local-eliza-workspace.mjs +420 -0
- package/scripts/docker-ci-smoke.sh +500 -0
- package/scripts/docker-entrypoint.sh +11 -0
- package/scripts/docker-runtime-review.mjs +230 -0
- package/scripts/docs-list.js +206 -0
- package/scripts/ensure-avatars.mjs +335 -0
- package/scripts/ensure-bundled-workspaces.mjs +143 -0
- package/scripts/ensure-capacitor-platform.mjs +58 -0
- package/scripts/ensure-electrobun-core.mjs +318 -0
- package/scripts/ensure-generated-core-proto-js.mjs +125 -0
- package/scripts/ensure-shared-i18n-data.mjs +67 -0
- package/scripts/ensure-skills.mjs +177 -0
- package/scripts/ensure-type-package-aliases.mjs +246 -0
- package/scripts/ensure-vision-deps.mjs +196 -0
- package/scripts/entry.ts +11 -0
- package/scripts/find-collisions.mjs +765 -0
- package/scripts/find-duplicate-components.mjs +203 -0
- package/scripts/fix-workspace-deps.mjs +328 -0
- package/scripts/generate-onboarding-voicelines.mjs +194 -0
- package/scripts/generate-plugin-index.js +1055 -0
- package/scripts/generate-static-asset-manifest.mjs +15 -0
- package/scripts/generated/static-asset-manifest.json +4 -0
- package/scripts/i18n-dynamic-keys.json +128 -0
- package/scripts/init-submodules.mjs +425 -0
- package/scripts/ios-xcframework/README.md +233 -0
- package/scripts/ios-xcframework/build-xcframework.mjs +487 -0
- package/scripts/kernel-patches/metal-kernels.mjs +656 -0
- package/scripts/kernel-patches/vulkan-dispatch-patches/01-vulkan-shaders-gen.patch +41 -0
- package/scripts/kernel-patches/vulkan-dispatch-patches/02-ggml-vulkan-pipelines.patch +86 -0
- package/scripts/kernel-patches/vulkan-kernels.mjs +281 -0
- package/scripts/lib/allocate-loopback-port.mjs +58 -0
- package/scripts/lib/api-supervisor.mjs +115 -0
- package/scripts/lib/app-dir.mjs +74 -0
- package/scripts/lib/asset-cdn.mjs +118 -0
- package/scripts/lib/bun-version-guard.mjs +44 -0
- package/scripts/lib/capacitor-platform-templates.mjs +306 -0
- package/scripts/lib/capacitor-plugin-build-needed.mjs +79 -0
- package/scripts/lib/capacitor-plugin-names.mjs +35 -0
- package/scripts/lib/desktop-preflight.mjs +122 -0
- package/scripts/lib/desktop-stack-status.mjs +151 -0
- package/scripts/lib/dev-ui-onchain.mjs +22 -0
- package/scripts/lib/dev-ui-vision.mjs +15 -0
- package/scripts/lib/kill-process-tree.mjs +87 -0
- package/scripts/lib/kill-ui-listen-port.mjs +74 -0
- package/scripts/lib/node-path-env.mjs +11 -0
- package/scripts/lib/orchestrator-desktop-dev-banner.mjs +285 -0
- package/scripts/lib/patch-bun-exports.mjs +1446 -0
- package/scripts/lib/read-app-identity.mjs +54 -0
- package/scripts/lib/release-check-pack-dry-run.ts +34 -0
- package/scripts/lib/repo-root.mjs +77 -0
- package/scripts/lib/stage-android-agent.mjs +704 -0
- package/scripts/lib/static-asset-manifest.mjs +151 -0
- package/scripts/lib/sync-eliza-env-aliases.mjs +37 -0
- package/scripts/lib/vite-renderer-dist-stale.mjs +141 -0
- package/scripts/lib/workspace-discovery.mjs +108 -0
- package/scripts/lifeops-prompt-benchmark.ts +206 -0
- package/scripts/link-browser-server.mjs +157 -0
- package/scripts/link-docker-local-app-packages.mjs +345 -0
- package/scripts/link-external-plugins.mjs +195 -0
- package/scripts/mobile-auth-simulator-smoke.mjs +373 -0
- package/scripts/normalize-parallax-capture.ts +97 -0
- package/scripts/omnivoice-fuse/Makefile +44 -0
- package/scripts/omnivoice-fuse/README.md +266 -0
- package/scripts/omnivoice-fuse/cmake-graft.mjs +180 -0
- package/scripts/omnivoice-fuse/ffi-stub.c +222 -0
- package/scripts/omnivoice-fuse/ffi.h +158 -0
- package/scripts/omnivoice-fuse/libelizainference_stub.dylib +0 -0
- package/scripts/omnivoice-fuse/prepare.mjs +263 -0
- package/scripts/omnivoice-fuse/verify-symbols.mjs +138 -0
- package/scripts/pack-upstreams.mjs +392 -0
- package/scripts/patch-deps.mjs +597 -0
- package/scripts/patch-workspace-plugins.mjs +148 -0
- package/scripts/playwright-ui-live-stack.ts +667 -0
- package/scripts/playwright-ui-smoke-api-stub.mjs +1838 -0
- package/scripts/plugin-index-local-additions.json +12 -0
- package/scripts/plugin-metadata-overrides.json +165 -0
- package/scripts/pre-review-local.mjs +599 -0
- package/scripts/prepare-ios-cocoapods.sh +30 -0
- package/scripts/prepare-package-dist.mjs +358 -0
- package/scripts/process-vrms.mjs +203 -0
- package/scripts/prune-cdn-local-assets.mjs +44 -0
- package/scripts/publish-local-plugins-next.mjs +122 -0
- package/scripts/release-check.ts +1402 -0
- package/scripts/relink-workspace-packages-to-dist.mjs +115 -0
- package/scripts/replace-workspace-versions.mjs +128 -0
- package/scripts/report-coverage-surfaces.mjs +121 -0
- package/scripts/restore-workspace-refs.mjs +128 -0
- package/scripts/rt.mjs +29 -0
- package/scripts/rt.sh +4 -0
- package/scripts/run-biome-check.mjs +191 -0
- package/scripts/run-coding-agent-e2e.mjs +46 -0
- package/scripts/run-desktop-playwright.mjs +35 -0
- package/scripts/run-local-plugin-live-smoke.mjs +185 -0
- package/scripts/run-mobile-build.mjs +3308 -0
- package/scripts/run-node-runtime.mjs +75 -0
- package/scripts/run-node-tsx.mjs +62 -0
- package/scripts/run-node.mjs +294 -0
- package/scripts/run-playwright.mjs +66 -0
- package/scripts/run-production-build.mjs +138 -0
- package/scripts/run-release-contract-suite.mjs +57 -0
- package/scripts/run-repo-setup.mjs +230 -0
- package/scripts/run-screenshotter.mjs +140 -0
- package/scripts/run-ui-smoke-playwright-suite.mjs +96 -0
- package/scripts/run-windows-smoke-launcher.ps1 +35 -0
- package/scripts/run-with-env.mjs +60 -0
- package/scripts/runtime-package-manifest.ts +107 -0
- package/scripts/sandbox-setup.sh +7 -0
- package/scripts/sanitize-npm-package-metadata.mjs +165 -0
- package/scripts/set-package-version.mjs +13 -0
- package/scripts/setup-upstreams.mjs +838 -0
- package/scripts/smoke-api-status.mjs +113 -0
- package/scripts/smoke-lifeops.mjs +305 -0
- package/scripts/startup-integration-script-drift.test.ts +94 -0
- package/scripts/sync-desktop-renderer.mjs +308 -0
- package/scripts/sync-dod-gap-issues-lib.mjs +214 -0
- package/scripts/sync-dod-gap-issues.mjs +218 -0
- package/scripts/type-audit.mjs +606 -0
- package/scripts/validate-cdn-assets.mjs +307 -0
- package/scripts/validate-regression-matrix.mjs +360 -0
- package/scripts/workspace-plugin-patches/plugin-anthropic-elizaos-core-api-compat.patch +34 -0
- package/scripts/workspace-prepare.mjs +192 -0
- package/scripts/worktree-env.sh +41 -0
- package/scripts/write-build-info.ts +69 -0
- package/scripts/write-homepage-release-data.mjs +393 -0
- package/security/agent-vault-id.d.ts +16 -0
- package/security/agent-vault-id.d.ts.map +1 -0
- package/security/agent-vault-id.js +32 -0
- package/security/cloud-secret-store.d.ts +34 -0
- package/security/cloud-secret-store.d.ts.map +1 -0
- package/security/cloud-secret-store.js +65 -0
- package/security/export-guard.d.ts +34 -0
- package/security/export-guard.d.ts.map +1 -0
- package/security/export-guard.js +127 -0
- package/security/hydrate-wallet-keys-from-platform-store.d.ts +13 -0
- package/security/hydrate-wallet-keys-from-platform-store.d.ts.map +1 -0
- package/security/hydrate-wallet-keys-from-platform-store.js +116 -0
- package/security/platform-secure-store-node.d.ts +13 -0
- package/security/platform-secure-store-node.d.ts.map +1 -0
- package/security/platform-secure-store-node.js +311 -0
- package/security/platform-secure-store.d.ts +47 -0
- package/security/platform-secure-store.d.ts.map +1 -0
- package/security/platform-secure-store.js +10 -0
- package/security/wallet-os-store-actions.d.ts +45 -0
- package/security/wallet-os-store-actions.d.ts.map +1 -0
- package/security/wallet-os-store-actions.js +125 -0
- package/services/account-pool.d.ts +134 -0
- package/services/account-pool.d.ts.map +1 -0
- package/services/account-pool.js +693 -0
- package/services/account-usage.d.ts +75 -0
- package/services/account-usage.d.ts.map +1 -0
- package/services/account-usage.js +179 -0
- package/services/auth-store.d.ts +179 -0
- package/services/auth-store.d.ts.map +1 -0
- package/services/auth-store.js +404 -0
- package/services/cloud-jwks-store.d.ts +62 -0
- package/services/cloud-jwks-store.d.ts.map +1 -0
- package/services/cloud-jwks-store.js +118 -0
- package/services/connector-target-catalog.d.ts +78 -0
- package/services/connector-target-catalog.d.ts.map +1 -0
- package/services/connector-target-catalog.js +64 -0
- package/services/discord-target-source.d.ts +53 -0
- package/services/discord-target-source.d.ts.map +1 -0
- package/services/discord-target-source.js +116 -0
- package/services/github-credentials.d.ts +95 -0
- package/services/github-credentials.d.ts.map +1 -0
- package/services/github-credentials.js +144 -0
- package/services/local-inference/__stress__/cache-stress-helpers.d.ts +76 -0
- package/services/local-inference/__stress__/cache-stress-helpers.d.ts.map +1 -0
- package/services/local-inference/__stress__/cache-stress-helpers.js +238 -0
- package/services/local-inference/active-model.d.ts +180 -0
- package/services/local-inference/active-model.d.ts.map +1 -0
- package/services/local-inference/active-model.js +362 -0
- package/services/local-inference/assignments.d.ts +58 -0
- package/services/local-inference/assignments.d.ts.map +1 -0
- package/services/local-inference/assignments.js +179 -0
- package/services/local-inference/backend.d.ts +200 -0
- package/services/local-inference/backend.d.ts.map +1 -0
- package/services/local-inference/backend.js +242 -0
- package/services/local-inference/bundled-models.d.ts +34 -0
- package/services/local-inference/bundled-models.d.ts.map +1 -0
- package/services/local-inference/bundled-models.js +104 -0
- package/services/local-inference/cache-bridge.d.ts +184 -0
- package/services/local-inference/cache-bridge.d.ts.map +1 -0
- package/services/local-inference/cache-bridge.js +333 -0
- package/services/local-inference/catalog.d.ts +57 -0
- package/services/local-inference/catalog.d.ts.map +1 -0
- package/services/local-inference/catalog.js +262 -0
- package/services/local-inference/conversation-registry.d.ts +122 -0
- package/services/local-inference/conversation-registry.d.ts.map +1 -0
- package/services/local-inference/conversation-registry.js +182 -0
- package/services/local-inference/device-bridge.d.ts +139 -0
- package/services/local-inference/device-bridge.d.ts.map +1 -0
- package/services/local-inference/device-bridge.js +774 -0
- package/services/local-inference/dflash-doctor.d.ts +27 -0
- package/services/local-inference/dflash-doctor.d.ts.map +1 -0
- package/services/local-inference/dflash-doctor.js +149 -0
- package/services/local-inference/dflash-server.d.ts +248 -0
- package/services/local-inference/dflash-server.d.ts.map +1 -0
- package/services/local-inference/dflash-server.js +1076 -0
- package/services/local-inference/downloader.d.ts +48 -0
- package/services/local-inference/downloader.d.ts.map +1 -0
- package/services/local-inference/downloader.js +688 -0
- package/services/local-inference/engine.d.ts +282 -0
- package/services/local-inference/engine.d.ts.map +1 -0
- package/services/local-inference/engine.js +743 -0
- package/services/local-inference/external-scanner.d.ts +17 -0
- package/services/local-inference/external-scanner.d.ts.map +1 -0
- package/services/local-inference/external-scanner.js +261 -0
- package/services/local-inference/handler-registry.d.ts +72 -0
- package/services/local-inference/handler-registry.d.ts.map +1 -0
- package/services/local-inference/handler-registry.js +159 -0
- package/services/local-inference/hardware.d.ts +26 -0
- package/services/local-inference/hardware.d.ts.map +1 -0
- package/services/local-inference/hardware.js +139 -0
- package/services/local-inference/hf-search.d.ts +19 -0
- package/services/local-inference/hf-search.d.ts.map +1 -0
- package/services/local-inference/hf-search.js +169 -0
- package/services/local-inference/index.d.ts +10 -0
- package/services/local-inference/index.d.ts.map +1 -0
- package/services/local-inference/index.js +7 -0
- package/services/local-inference/llama-server-metrics.d.ts +108 -0
- package/services/local-inference/llama-server-metrics.d.ts.map +1 -0
- package/services/local-inference/llama-server-metrics.js +175 -0
- package/services/local-inference/manifest/index.d.ts +4 -0
- package/services/local-inference/manifest/index.d.ts.map +1 -0
- package/services/local-inference/manifest/index.js +5 -0
- package/services/local-inference/manifest/schema.d.ts +419 -0
- package/services/local-inference/manifest/schema.d.ts.map +1 -0
- package/services/local-inference/manifest/schema.js +227 -0
- package/services/local-inference/manifest/types.d.ts +23 -0
- package/services/local-inference/manifest/types.d.ts.map +1 -0
- package/services/local-inference/manifest/types.js +5 -0
- package/services/local-inference/manifest/validator.d.ts +43 -0
- package/services/local-inference/manifest/validator.d.ts.map +1 -0
- package/services/local-inference/manifest/validator.js +180 -0
- package/services/local-inference/paths.d.ts +8 -0
- package/services/local-inference/paths.d.ts.map +1 -0
- package/services/local-inference/paths.js +7 -0
- package/services/local-inference/providers.d.ts +61 -0
- package/services/local-inference/providers.d.ts.map +1 -0
- package/services/local-inference/providers.js +334 -0
- package/services/local-inference/ram-budget.d.ts +57 -0
- package/services/local-inference/ram-budget.d.ts.map +1 -0
- package/services/local-inference/ram-budget.js +107 -0
- package/services/local-inference/readiness.d.ts +9 -0
- package/services/local-inference/readiness.d.ts.map +1 -0
- package/services/local-inference/readiness.js +153 -0
- package/services/local-inference/recommendation.d.ts +62 -0
- package/services/local-inference/recommendation.d.ts.map +1 -0
- package/services/local-inference/recommendation.js +309 -0
- package/services/local-inference/registry.d.ts +35 -0
- package/services/local-inference/registry.d.ts.map +1 -0
- package/services/local-inference/registry.js +117 -0
- package/services/local-inference/router-handler.d.ts +51 -0
- package/services/local-inference/router-handler.d.ts.map +1 -0
- package/services/local-inference/router-handler.js +165 -0
- package/services/local-inference/routing-policy.d.ts +55 -0
- package/services/local-inference/routing-policy.d.ts.map +1 -0
- package/services/local-inference/routing-policy.js +195 -0
- package/services/local-inference/routing-preferences.d.ts +8 -0
- package/services/local-inference/routing-preferences.d.ts.map +1 -0
- package/services/local-inference/routing-preferences.js +7 -0
- package/services/local-inference/service.d.ts +88 -0
- package/services/local-inference/service.d.ts.map +1 -0
- package/services/local-inference/service.js +210 -0
- package/services/local-inference/session-pool.d.ts +72 -0
- package/services/local-inference/session-pool.d.ts.map +1 -0
- package/services/local-inference/session-pool.js +125 -0
- package/services/local-inference/types.d.ts +309 -0
- package/services/local-inference/types.d.ts.map +1 -0
- package/services/local-inference/types.js +23 -0
- package/services/local-inference/verify.d.ts +8 -0
- package/services/local-inference/verify.d.ts.map +1 -0
- package/services/local-inference/verify.js +7 -0
- package/services/local-inference/voice/barge-in.d.ts +15 -0
- package/services/local-inference/voice/barge-in.d.ts.map +1 -0
- package/services/local-inference/voice/barge-in.js +20 -0
- package/services/local-inference/voice/engine-bridge.d.ts +256 -0
- package/services/local-inference/voice/engine-bridge.d.ts.map +1 -0
- package/services/local-inference/voice/engine-bridge.js +398 -0
- package/services/local-inference/voice/ffi-bindings.d.ts +114 -0
- package/services/local-inference/voice/ffi-bindings.d.ts.map +1 -0
- package/services/local-inference/voice/ffi-bindings.js +281 -0
- package/services/local-inference/voice/index.d.ts +51 -0
- package/services/local-inference/voice/index.d.ts.map +1 -0
- package/services/local-inference/voice/index.js +50 -0
- package/services/local-inference/voice/lifecycle.d.ts +135 -0
- package/services/local-inference/voice/lifecycle.d.ts.map +1 -0
- package/services/local-inference/voice/lifecycle.js +189 -0
- package/services/local-inference/voice/phoneme-tokenizer.d.ts +58 -0
- package/services/local-inference/voice/phoneme-tokenizer.d.ts.map +1 -0
- package/services/local-inference/voice/phoneme-tokenizer.js +53 -0
- package/services/local-inference/voice/phrase-cache.d.ts +24 -0
- package/services/local-inference/voice/phrase-cache.d.ts.map +1 -0
- package/services/local-inference/voice/phrase-cache.js +32 -0
- package/services/local-inference/voice/phrase-chunker.d.ts +20 -0
- package/services/local-inference/voice/phrase-chunker.d.ts.map +1 -0
- package/services/local-inference/voice/phrase-chunker.js +85 -0
- package/services/local-inference/voice/ring-buffer.d.ts +40 -0
- package/services/local-inference/voice/ring-buffer.d.ts.map +1 -0
- package/services/local-inference/voice/ring-buffer.js +85 -0
- package/services/local-inference/voice/rollback-queue.d.ts +24 -0
- package/services/local-inference/voice/rollback-queue.d.ts.map +1 -0
- package/services/local-inference/voice/rollback-queue.js +49 -0
- package/services/local-inference/voice/scheduler.d.ts +47 -0
- package/services/local-inference/voice/scheduler.d.ts.map +1 -0
- package/services/local-inference/voice/scheduler.js +123 -0
- package/services/local-inference/voice/shared-resources.d.ts +119 -0
- package/services/local-inference/voice/shared-resources.d.ts.map +1 -0
- package/services/local-inference/voice/shared-resources.js +83 -0
- package/services/local-inference/voice/speaker-preset-cache.d.ts +28 -0
- package/services/local-inference/voice/speaker-preset-cache.d.ts.map +1 -0
- package/services/local-inference/voice/speaker-preset-cache.js +44 -0
- package/services/local-inference/voice/types.d.ts +80 -0
- package/services/local-inference/voice/types.d.ts.map +1 -0
- package/services/local-inference/voice/voice-preset-format.d.ts +56 -0
- package/services/local-inference/voice/voice-preset-format.d.ts.map +1 -0
- package/services/local-inference/voice/voice-preset-format.js +184 -0
- package/services/persistence.d.ts +48 -0
- package/services/persistence.d.ts.map +1 -0
- package/services/persistence.js +128 -0
- package/services/plugin-installer.d.ts +22 -0
- package/services/plugin-installer.d.ts.map +1 -0
- package/services/plugin-installer.js +41 -0
- package/services/secrets-manager-installer.d.ts +140 -0
- package/services/secrets-manager-installer.d.ts.map +1 -0
- package/services/secrets-manager-installer.js +374 -0
- package/services/steward-credentials.d.ts +37 -0
- package/services/steward-credentials.d.ts.map +1 -0
- package/services/steward-credentials.js +93 -0
- package/services/steward-sidecar/health-check.d.ts +9 -0
- package/services/steward-sidecar/health-check.d.ts.map +1 -0
- package/services/steward-sidecar/health-check.js +34 -0
- package/services/steward-sidecar/helpers.d.ts +21 -0
- package/services/steward-sidecar/helpers.d.ts.map +1 -0
- package/services/steward-sidecar/helpers.js +71 -0
- package/services/steward-sidecar/process-management.d.ts +9 -0
- package/services/steward-sidecar/process-management.d.ts.map +1 -0
- package/services/steward-sidecar/process-management.js +53 -0
- package/services/steward-sidecar/types.d.ts +60 -0
- package/services/steward-sidecar/types.d.ts.map +1 -0
- package/services/steward-sidecar/types.js +17 -0
- package/services/steward-sidecar/wallet-setup.d.ts +9 -0
- package/services/steward-sidecar/wallet-setup.d.ts.map +1 -0
- package/services/steward-sidecar/wallet-setup.js +114 -0
- package/services/steward-sidecar.d.ts +70 -0
- package/services/steward-sidecar.d.ts.map +1 -0
- package/services/steward-sidecar.js +385 -0
- package/services/tool-call-cache/index.d.ts +13 -0
- package/services/tool-call-cache/index.d.ts.map +1 -0
- package/services/tool-call-cache/index.js +11 -0
- package/services/trigger-event-bridge.d.ts +52 -0
- package/services/trigger-event-bridge.d.ts.map +1 -0
- package/services/trigger-event-bridge.js +217 -0
- package/services/update-notifier.d.ts +6 -0
- package/services/update-notifier.d.ts.map +1 -0
- package/services/update-notifier.js +33 -0
- package/services/vault-bootstrap.d.ts +31 -0
- package/services/vault-bootstrap.d.ts.map +1 -0
- package/services/vault-bootstrap.js +209 -0
- package/services/vault-mirror.d.ts +44 -0
- package/services/vault-mirror.d.ts.map +1 -0
- package/services/vault-mirror.js +80 -0
- package/styles/electrobun-mac-window-drag.css +66 -0
- package/test/helpers/__tests__/live-agent-test.smoke.test.ts +105 -0
- package/test/helpers/action-assertions.ts +364 -0
- package/test/helpers/action-spy.ts +354 -0
- package/test/helpers/browser-launch.ts +103 -0
- package/test/helpers/browser-mocks.ts +275 -0
- package/test/helpers/conditional-tests.ts +42 -0
- package/test/helpers/conversation-harness.ts +334 -0
- package/test/helpers/http.ts +150 -0
- package/test/helpers/i18n.ts +5 -0
- package/test/helpers/isolated-config.ts +34 -0
- package/test/helpers/live-agent-test.ts +660 -0
- package/test/helpers/live-child-env.ts +72 -0
- package/test/helpers/live-provider.test.ts +124 -0
- package/test/helpers/live-provider.ts +362 -0
- package/test/helpers/live-runtime-server.ts +88 -0
- package/test/helpers/loopback.ts +33 -0
- package/test/helpers/pglite-runtime.ts +173 -0
- package/test/helpers/react-test.ts +40 -0
- package/test/helpers/real-connector.ts +250 -0
- package/test/helpers/real-runtime.ts +543 -0
- package/test/helpers/skip-without.ts +53 -0
- package/test/helpers/stochastic-test.ts +186 -0
- package/test/helpers/test-utils.ts +94 -0
- package/test/helpers/trajectory-assertions.ts +168 -0
- package/test/helpers/trajectory-harness.test.ts +101 -0
- package/test/helpers/trajectory-harness.ts +988 -0
- package/test/scripts/managed-test-command.mjs +632 -0
- package/test/scripts/task-agent-live-smoke.ts +1335 -0
- package/test/scripts/test-parallel.mjs +237 -0
- package/test/scripts/test-root-unit.mjs +169 -0
- package/test/scripts/test-runner.mjs +78 -0
- package/test/scripts/validate-all-features.sh +541 -0
- package/test-support/test-helpers.d.ts +111 -0
- package/test-support/test-helpers.d.ts.map +1 -0
- package/test-support/test-helpers.js +410 -0
- package/ui-compat.d.ts +3 -0
- package/ui-compat.d.ts.map +1 -0
- package/ui-compat.js +3 -0
- package/utils/eliza-root.d.ts +9 -0
- package/utils/eliza-root.d.ts.map +1 -0
- package/utils/eliza-root.js +101 -0
- package/utils/globals.d.ts +7 -0
- package/utils/globals.d.ts.map +1 -0
- package/utils/globals.js +47 -0
- package/App.d.ts +0 -5
- package/App.d.ts.map +0 -1
- package/App.js +0 -220
- package/LICENSE +0 -21
- package/actions/character.d.ts +0 -39
- package/actions/character.d.ts.map +0 -1
- package/actions/character.js +0 -247
- package/actions/chat-helpers.d.ts +0 -47
- package/actions/chat-helpers.d.ts.map +0 -1
- package/actions/chat-helpers.js +0 -79
- package/actions/cloud.d.ts +0 -17
- package/actions/cloud.d.ts.map +0 -1
- package/actions/cloud.js +0 -43
- package/actions/index.d.ts +0 -12
- package/actions/index.d.ts.map +0 -1
- package/actions/index.js +0 -11
- package/actions/lifecycle.d.ts +0 -43
- package/actions/lifecycle.d.ts.map +0 -1
- package/actions/lifecycle.js +0 -118
- package/actions/onboarding.d.ts +0 -13
- package/actions/onboarding.d.ts.map +0 -1
- package/actions/onboarding.js +0 -26
- package/actions/triggers.d.ts +0 -23
- package/actions/triggers.d.ts.map +0 -1
- package/actions/triggers.js +0 -148
- package/api/client.d.ts +0 -2742
- package/api/client.d.ts.map +0 -1
- package/api/client.js +0 -2520
- package/api/index.d.ts +0 -2
- package/api/index.d.ts.map +0 -1
- package/api/index.js +0 -1
- package/autonomy/index.d.ts +0 -48
- package/autonomy/index.d.ts.map +0 -1
- package/autonomy/index.js +0 -330
- package/bridge/capacitor-bridge.d.ts +0 -153
- package/bridge/capacitor-bridge.d.ts.map +0 -1
- package/bridge/capacitor-bridge.js +0 -193
- package/bridge/electrobun-rpc.d.ts +0 -28
- package/bridge/electrobun-rpc.d.ts.map +0 -1
- package/bridge/electrobun-rpc.js +0 -35
- package/bridge/electrobun-runtime.d.ts +0 -3
- package/bridge/electrobun-runtime.d.ts.map +0 -1
- package/bridge/electrobun-runtime.js +0 -17
- package/bridge/index.d.ts +0 -6
- package/bridge/index.d.ts.map +0 -1
- package/bridge/index.js +0 -5
- package/bridge/native-plugins.d.ts +0 -82
- package/bridge/native-plugins.d.ts.map +0 -1
- package/bridge/native-plugins.js +0 -39
- package/bridge/plugin-bridge.d.ts +0 -116
- package/bridge/plugin-bridge.d.ts.map +0 -1
- package/bridge/plugin-bridge.js +0 -203
- package/bridge/storage-bridge.d.ts +0 -39
- package/bridge/storage-bridge.d.ts.map +0 -1
- package/bridge/storage-bridge.js +0 -135
- package/chat/index.d.ts +0 -57
- package/chat/index.d.ts.map +0 -1
- package/chat/index.js +0 -160
- package/coding/index.d.ts +0 -25
- package/coding/index.d.ts.map +0 -1
- package/coding/index.js +0 -25
- package/components/AdvancedPageView.d.ts +0 -17
- package/components/AdvancedPageView.d.ts.map +0 -1
- package/components/AdvancedPageView.js +0 -146
- package/components/AgentActivityBox.d.ts +0 -7
- package/components/AgentActivityBox.d.ts.map +0 -1
- package/components/AgentActivityBox.js +0 -25
- package/components/ApiKeyConfig.d.ts +0 -26
- package/components/ApiKeyConfig.d.ts.map +0 -1
- package/components/ApiKeyConfig.js +0 -119
- package/components/AppsPageView.d.ts +0 -7
- package/components/AppsPageView.d.ts.map +0 -1
- package/components/AppsPageView.js +0 -31
- package/components/AppsView.d.ts +0 -8
- package/components/AppsView.d.ts.map +0 -1
- package/components/AppsView.js +0 -149
- package/components/AvatarLoader.d.ts +0 -13
- package/components/AvatarLoader.d.ts.map +0 -1
- package/components/AvatarLoader.js +0 -53
- package/components/AvatarSelector.d.ts +0 -23
- package/components/AvatarSelector.d.ts.map +0 -1
- package/components/AvatarSelector.js +0 -105
- package/components/BscTradePanel.d.ts +0 -22
- package/components/BscTradePanel.d.ts.map +0 -1
- package/components/BscTradePanel.js +0 -221
- package/components/BugReportModal.d.ts +0 -2
- package/components/BugReportModal.d.ts.map +0 -1
- package/components/BugReportModal.js +0 -219
- package/components/CharacterRoster.d.ts +0 -31
- package/components/CharacterRoster.d.ts.map +0 -1
- package/components/CharacterRoster.js +0 -41
- package/components/CharacterView.d.ts +0 -8
- package/components/CharacterView.d.ts.map +0 -1
- package/components/CharacterView.js +0 -685
- package/components/ChatAvatar.d.ts +0 -8
- package/components/ChatAvatar.d.ts.map +0 -1
- package/components/ChatAvatar.js +0 -89
- package/components/ChatComposer.d.ts +0 -37
- package/components/ChatComposer.d.ts.map +0 -1
- package/components/ChatComposer.js +0 -136
- package/components/ChatMessage.d.ts +0 -24
- package/components/ChatMessage.d.ts.map +0 -1
- package/components/ChatMessage.js +0 -187
- package/components/ChatModalView.d.ts +0 -10
- package/components/ChatModalView.d.ts.map +0 -1
- package/components/ChatModalView.js +0 -57
- package/components/ChatView.d.ts +0 -14
- package/components/ChatView.d.ts.map +0 -1
- package/components/ChatView.js +0 -526
- package/components/CloudOnboarding.d.ts +0 -7
- package/components/CloudOnboarding.d.ts.map +0 -1
- package/components/CloudOnboarding.js +0 -22
- package/components/CloudSourceControls.d.ts +0 -13
- package/components/CloudSourceControls.d.ts.map +0 -1
- package/components/CloudSourceControls.js +0 -16
- package/components/CodingAgentSettingsSection.d.ts +0 -8
- package/components/CodingAgentSettingsSection.d.ts.map +0 -1
- package/components/CodingAgentSettingsSection.js +0 -292
- package/components/CommandPalette.d.ts +0 -2
- package/components/CommandPalette.d.ts.map +0 -1
- package/components/CommandPalette.js +0 -181
- package/components/CompanionSceneHost.d.ts +0 -14
- package/components/CompanionSceneHost.d.ts.map +0 -1
- package/components/CompanionSceneHost.js +0 -362
- package/components/CompanionShell.d.ts +0 -17
- package/components/CompanionShell.d.ts.map +0 -1
- package/components/CompanionShell.js +0 -15
- package/components/CompanionView.d.ts +0 -2
- package/components/CompanionView.d.ts.map +0 -1
- package/components/CompanionView.js +0 -22
- package/components/ConfigPageView.d.ts +0 -11
- package/components/ConfigPageView.d.ts.map +0 -1
- package/components/ConfigPageView.js +0 -311
- package/components/ConfigSaveFooter.d.ts +0 -8
- package/components/ConfigSaveFooter.d.ts.map +0 -1
- package/components/ConfigSaveFooter.js +0 -10
- package/components/ConfirmModal.d.ts +0 -61
- package/components/ConfirmModal.d.ts.map +0 -1
- package/components/ConfirmModal.js +0 -164
- package/components/ConnectionFailedBanner.d.ts +0 -6
- package/components/ConnectionFailedBanner.d.ts.map +0 -1
- package/components/ConnectionFailedBanner.js +0 -22
- package/components/ConnectorsPageView.d.ts +0 -7
- package/components/ConnectorsPageView.d.ts.map +0 -1
- package/components/ConnectorsPageView.js +0 -8
- package/components/ConversationsSidebar.d.ts +0 -9
- package/components/ConversationsSidebar.d.ts.map +0 -1
- package/components/ConversationsSidebar.js +0 -116
- package/components/CustomActionEditor.d.ts +0 -10
- package/components/CustomActionEditor.d.ts.map +0 -1
- package/components/CustomActionEditor.js +0 -596
- package/components/CustomActionsPanel.d.ts +0 -9
- package/components/CustomActionsPanel.d.ts.map +0 -1
- package/components/CustomActionsPanel.js +0 -107
- package/components/CustomActionsView.d.ts +0 -2
- package/components/CustomActionsView.d.ts.map +0 -1
- package/components/CustomActionsView.js +0 -134
- package/components/DatabasePageView.d.ts +0 -5
- package/components/DatabasePageView.d.ts.map +0 -1
- package/components/DatabasePageView.js +0 -28
- package/components/DatabaseView.d.ts +0 -9
- package/components/DatabaseView.d.ts.map +0 -1
- package/components/DatabaseView.js +0 -311
- package/components/ElizaCloudDashboard.d.ts +0 -2
- package/components/ElizaCloudDashboard.d.ts.map +0 -1
- package/components/ElizaCloudDashboard.js +0 -657
- package/components/EmotePicker.d.ts +0 -2
- package/components/EmotePicker.d.ts.map +0 -1
- package/components/EmotePicker.js +0 -343
- package/components/ErrorBoundary.d.ts +0 -22
- package/components/ErrorBoundary.d.ts.map +0 -1
- package/components/ErrorBoundary.js +0 -31
- package/components/FineTuningView.d.ts +0 -2
- package/components/FineTuningView.d.ts.map +0 -1
- package/components/FineTuningView.js +0 -433
- package/components/FlaminaGuide.d.ts +0 -10
- package/components/FlaminaGuide.d.ts.map +0 -1
- package/components/FlaminaGuide.js +0 -64
- package/components/GameView.d.ts +0 -11
- package/components/GameView.d.ts.map +0 -1
- package/components/GameView.js +0 -294
- package/components/GameViewOverlay.d.ts +0 -8
- package/components/GameViewOverlay.d.ts.map +0 -1
- package/components/GameViewOverlay.js +0 -70
- package/components/GlobalEmoteOverlay.d.ts +0 -2
- package/components/GlobalEmoteOverlay.d.ts.map +0 -1
- package/components/GlobalEmoteOverlay.js +0 -112
- package/components/Header.d.ts +0 -9
- package/components/Header.d.ts.map +0 -1
- package/components/Header.js +0 -123
- package/components/HeartbeatsView.d.ts +0 -2
- package/components/HeartbeatsView.d.ts.map +0 -1
- package/components/HeartbeatsView.js +0 -378
- package/components/InventoryView.d.ts +0 -10
- package/components/InventoryView.d.ts.map +0 -1
- package/components/InventoryView.js +0 -176
- package/components/KnowledgeView.d.ts +0 -20
- package/components/KnowledgeView.d.ts.map +0 -1
- package/components/KnowledgeView.js +0 -483
- package/components/LanguageDropdown.d.ts +0 -30
- package/components/LanguageDropdown.d.ts.map +0 -1
- package/components/LanguageDropdown.js +0 -99
- package/components/LifoMonitorPanel.d.ts +0 -21
- package/components/LifoMonitorPanel.d.ts.map +0 -1
- package/components/LifoMonitorPanel.js +0 -24
- package/components/LifoSandboxView.d.ts +0 -5
- package/components/LifoSandboxView.d.ts.map +0 -1
- package/components/LifoSandboxView.js +0 -333
- package/components/LoadingScreen.d.ts +0 -13
- package/components/LoadingScreen.d.ts.map +0 -1
- package/components/LoadingScreen.js +0 -70
- package/components/LogsPageView.d.ts +0 -2
- package/components/LogsPageView.d.ts.map +0 -1
- package/components/LogsPageView.js +0 -7
- package/components/LogsView.d.ts +0 -5
- package/components/LogsView.d.ts.map +0 -1
- package/components/LogsView.js +0 -71
- package/components/MediaGalleryView.d.ts +0 -9
- package/components/MediaGalleryView.d.ts.map +0 -1
- package/components/MediaGalleryView.js +0 -236
- package/components/MediaSettingsSection.d.ts +0 -11
- package/components/MediaSettingsSection.d.ts.map +0 -1
- package/components/MediaSettingsSection.js +0 -329
- package/components/MessageContent.d.ts +0 -51
- package/components/MessageContent.d.ts.map +0 -1
- package/components/MessageContent.js +0 -553
- package/components/OnboardingWizard.d.ts +0 -2
- package/components/OnboardingWizard.d.ts.map +0 -1
- package/components/OnboardingWizard.js +0 -86
- package/components/PairingView.d.ts +0 -5
- package/components/PairingView.d.ts.map +0 -1
- package/components/PairingView.js +0 -29
- package/components/PermissionsSection.d.ts +0 -20
- package/components/PermissionsSection.d.ts.map +0 -1
- package/components/PermissionsSection.js +0 -573
- package/components/PluginsPageView.d.ts +0 -5
- package/components/PluginsPageView.d.ts.map +0 -1
- package/components/PluginsPageView.js +0 -8
- package/components/PluginsView.d.ts +0 -21
- package/components/PluginsView.d.ts.map +0 -1
- package/components/PluginsView.js +0 -1534
- package/components/ProviderSwitcher.d.ts +0 -42
- package/components/ProviderSwitcher.d.ts.map +0 -1
- package/components/ProviderSwitcher.js +0 -493
- package/components/RestartBanner.d.ts +0 -2
- package/components/RestartBanner.d.ts.map +0 -1
- package/components/RestartBanner.js +0 -36
- package/components/RuntimeView.d.ts +0 -10
- package/components/RuntimeView.d.ts.map +0 -1
- package/components/RuntimeView.js +0 -165
- package/components/SaveCommandModal.d.ts +0 -12
- package/components/SaveCommandModal.d.ts.map +0 -1
- package/components/SaveCommandModal.js +0 -84
- package/components/SecretsView.d.ts +0 -9
- package/components/SecretsView.d.ts.map +0 -1
- package/components/SecretsView.js +0 -249
- package/components/SettingsView.d.ts +0 -9
- package/components/SettingsView.d.ts.map +0 -1
- package/components/SettingsView.js +0 -230
- package/components/ShellOverlays.d.ts +0 -8
- package/components/ShellOverlays.d.ts.map +0 -1
- package/components/ShellOverlays.js +0 -10
- package/components/ShortcutsOverlay.d.ts +0 -2
- package/components/ShortcutsOverlay.d.ts.map +0 -1
- package/components/ShortcutsOverlay.js +0 -79
- package/components/SkillsView.d.ts +0 -11
- package/components/SkillsView.d.ts.map +0 -1
- package/components/SkillsView.js +0 -358
- package/components/StartupFailureView.d.ts +0 -8
- package/components/StartupFailureView.d.ts.map +0 -1
- package/components/StartupFailureView.js +0 -16
- package/components/StreamView.d.ts +0 -16
- package/components/StreamView.d.ts.map +0 -1
- package/components/StreamView.js +0 -300
- package/components/StripeEmbeddedCheckout.d.ts +0 -24
- package/components/StripeEmbeddedCheckout.d.ts.map +0 -1
- package/components/StripeEmbeddedCheckout.js +0 -101
- package/components/SubscriptionStatus.d.ts +0 -23
- package/components/SubscriptionStatus.d.ts.map +0 -1
- package/components/SubscriptionStatus.js +0 -301
- package/components/SystemWarningBanner.d.ts +0 -6
- package/components/SystemWarningBanner.d.ts.map +0 -1
- package/components/SystemWarningBanner.js +0 -46
- package/components/ThemeToggle.d.ts +0 -21
- package/components/ThemeToggle.d.ts.map +0 -1
- package/components/ThemeToggle.js +0 -24
- package/components/TrajectoriesView.d.ts +0 -12
- package/components/TrajectoriesView.d.ts.map +0 -1
- package/components/TrajectoriesView.js +0 -183
- package/components/TrajectoryDetailView.d.ts +0 -13
- package/components/TrajectoryDetailView.d.ts.map +0 -1
- package/components/TrajectoryDetailView.js +0 -112
- package/components/TriggersView.d.ts +0 -2
- package/components/TriggersView.d.ts.map +0 -1
- package/components/TriggersView.js +0 -1
- package/components/VectorBrowserView.d.ts +0 -10
- package/components/VectorBrowserView.d.ts.map +0 -1
- package/components/VectorBrowserView.js +0 -1000
- package/components/VoiceConfigView.d.ts +0 -11
- package/components/VoiceConfigView.d.ts.map +0 -1
- package/components/VoiceConfigView.js +0 -331
- package/components/VrmStage.d.ts +0 -28
- package/components/VrmStage.d.ts.map +0 -1
- package/components/VrmStage.js +0 -178
- package/components/WhatsAppQrOverlay.d.ts +0 -8
- package/components/WhatsAppQrOverlay.d.ts.map +0 -1
- package/components/WhatsAppQrOverlay.js +0 -63
- package/components/apps/AppDetailPane.d.ts +0 -15
- package/components/apps/AppDetailPane.d.ts.map +0 -1
- package/components/apps/AppDetailPane.js +0 -13
- package/components/apps/AppsCatalogGrid.d.ts +0 -20
- package/components/apps/AppsCatalogGrid.d.ts.map +0 -1
- package/components/apps/AppsCatalogGrid.js +0 -18
- package/components/apps/extensions/registry.d.ts +0 -4
- package/components/apps/extensions/registry.d.ts.map +0 -1
- package/components/apps/extensions/registry.js +0 -7
- package/components/apps/extensions/types.d.ts +0 -7
- package/components/apps/extensions/types.d.ts.map +0 -1
- package/components/apps/helpers.d.ts +0 -7
- package/components/apps/helpers.d.ts.map +0 -1
- package/components/apps/helpers.js +0 -44
- package/components/avatar/VrmAnimationLoader.d.ts +0 -30
- package/components/avatar/VrmAnimationLoader.d.ts.map +0 -1
- package/components/avatar/VrmAnimationLoader.js +0 -99
- package/components/avatar/VrmBlinkController.d.ts +0 -37
- package/components/avatar/VrmBlinkController.d.ts.map +0 -1
- package/components/avatar/VrmBlinkController.js +0 -98
- package/components/avatar/VrmCameraManager.d.ts +0 -57
- package/components/avatar/VrmCameraManager.d.ts.map +0 -1
- package/components/avatar/VrmCameraManager.js +0 -277
- package/components/avatar/VrmEngine.d.ts +0 -246
- package/components/avatar/VrmEngine.d.ts.map +0 -1
- package/components/avatar/VrmEngine.js +0 -2087
- package/components/avatar/VrmFootShadow.d.ts +0 -18
- package/components/avatar/VrmFootShadow.d.ts.map +0 -1
- package/components/avatar/VrmFootShadow.js +0 -83
- package/components/avatar/VrmViewer.d.ts +0 -60
- package/components/avatar/VrmViewer.d.ts.map +0 -1
- package/components/avatar/VrmViewer.js +0 -396
- package/components/avatar/mixamoVRMRigMap.d.ts +0 -3
- package/components/avatar/mixamoVRMRigMap.d.ts.map +0 -1
- package/components/avatar/mixamoVRMRigMap.js +0 -56
- package/components/avatar/retargetMixamoFbxToVrm.d.ts +0 -9
- package/components/avatar/retargetMixamoFbxToVrm.d.ts.map +0 -1
- package/components/avatar/retargetMixamoFbxToVrm.js +0 -88
- package/components/avatar/retargetMixamoGltfToVrm.d.ts +0 -11
- package/components/avatar/retargetMixamoGltfToVrm.d.ts.map +0 -1
- package/components/avatar/retargetMixamoGltfToVrm.js +0 -80
- package/components/chainConfig.d.ts +0 -89
- package/components/chainConfig.d.ts.map +0 -1
- package/components/chainConfig.js +0 -287
- package/components/companion/CompanionHeader.d.ts +0 -15
- package/components/companion/CompanionHeader.d.ts.map +0 -1
- package/components/companion/CompanionHeader.js +0 -7
- package/components/companion/CompanionSceneHost.d.ts +0 -2
- package/components/companion/CompanionSceneHost.d.ts.map +0 -1
- package/components/companion/CompanionSceneHost.js +0 -1
- package/components/companion/VrmStage.d.ts +0 -3
- package/components/companion/VrmStage.d.ts.map +0 -1
- package/components/companion/VrmStage.js +0 -1
- package/components/companion/index.d.ts +0 -18
- package/components/companion/index.d.ts.map +0 -1
- package/components/companion/index.js +0 -17
- package/components/companion/walletUtils.d.ts +0 -95
- package/components/companion/walletUtils.d.ts.map +0 -1
- package/components/companion/walletUtils.js +0 -167
- package/components/companion-shell-styles.d.ts +0 -38
- package/components/companion-shell-styles.d.ts.map +0 -1
- package/components/companion-shell-styles.js +0 -248
- package/components/confirm-delete-control.d.ts +0 -16
- package/components/confirm-delete-control.d.ts.map +0 -1
- package/components/confirm-delete-control.js +0 -12
- package/components/conversations/ConversationListItem.d.ts +0 -31
- package/components/conversations/ConversationListItem.d.ts.map +0 -1
- package/components/conversations/ConversationListItem.js +0 -52
- package/components/conversations/conversation-utils.d.ts +0 -9
- package/components/conversations/conversation-utils.d.ts.map +0 -1
- package/components/conversations/conversation-utils.js +0 -138
- package/components/format.d.ts +0 -54
- package/components/format.d.ts.map +0 -1
- package/components/format.js +0 -82
- package/components/index.d.ts +0 -96
- package/components/index.d.ts.map +0 -1
- package/components/index.js +0 -95
- package/components/inventory/CopyableAddress.d.ts +0 -8
- package/components/inventory/CopyableAddress.d.ts.map +0 -1
- package/components/inventory/CopyableAddress.js +0 -18
- package/components/inventory/InventoryToolbar.d.ts +0 -25
- package/components/inventory/InventoryToolbar.d.ts.map +0 -1
- package/components/inventory/InventoryToolbar.js +0 -28
- package/components/inventory/NftGrid.d.ts +0 -13
- package/components/inventory/NftGrid.d.ts.map +0 -1
- package/components/inventory/NftGrid.js +0 -29
- package/components/inventory/TokenLogo.d.ts +0 -12
- package/components/inventory/TokenLogo.d.ts.map +0 -1
- package/components/inventory/TokenLogo.js +0 -33
- package/components/inventory/TokensTable.d.ts +0 -24
- package/components/inventory/TokensTable.d.ts.map +0 -1
- package/components/inventory/TokensTable.js +0 -26
- package/components/inventory/constants.d.ts +0 -52
- package/components/inventory/constants.d.ts.map +0 -1
- package/components/inventory/constants.js +0 -121
- package/components/inventory/index.d.ts +0 -9
- package/components/inventory/index.d.ts.map +0 -1
- package/components/inventory/index.js +0 -8
- package/components/inventory/media-url.d.ts +0 -6
- package/components/inventory/media-url.d.ts.map +0 -1
- package/components/inventory/media-url.js +0 -28
- package/components/inventory/useInventoryData.d.ts +0 -53
- package/components/inventory/useInventoryData.d.ts.map +0 -1
- package/components/inventory/useInventoryData.js +0 -332
- package/components/knowledge-upload-image.d.ts +0 -27
- package/components/knowledge-upload-image.d.ts.map +0 -1
- package/components/knowledge-upload-image.js +0 -146
- package/components/labels.d.ts +0 -6
- package/components/labels.d.ts.map +0 -1
- package/components/labels.js +0 -40
- package/components/onboarding/ActivateStep.d.ts +0 -2
- package/components/onboarding/ActivateStep.d.ts.map +0 -1
- package/components/onboarding/ActivateStep.js +0 -10
- package/components/onboarding/CloudLoginStep.d.ts +0 -2
- package/components/onboarding/CloudLoginStep.d.ts.map +0 -1
- package/components/onboarding/CloudLoginStep.js +0 -20
- package/components/onboarding/ConnectionStep.d.ts +0 -2
- package/components/onboarding/ConnectionStep.d.ts.map +0 -1
- package/components/onboarding/ConnectionStep.js +0 -609
- package/components/onboarding/IdentityStep.d.ts +0 -2
- package/components/onboarding/IdentityStep.d.ts.map +0 -1
- package/components/onboarding/IdentityStep.js +0 -102
- package/components/onboarding/OnboardingPanel.d.ts +0 -9
- package/components/onboarding/OnboardingPanel.d.ts.map +0 -1
- package/components/onboarding/OnboardingPanel.js +0 -24
- package/components/onboarding/OnboardingStepNav.d.ts +0 -2
- package/components/onboarding/OnboardingStepNav.d.ts.map +0 -1
- package/components/onboarding/OnboardingStepNav.js +0 -24
- package/components/onboarding/PermissionsStep.d.ts +0 -2
- package/components/onboarding/PermissionsStep.d.ts.map +0 -1
- package/components/onboarding/PermissionsStep.js +0 -7
- package/components/onboarding/RpcStep.d.ts +0 -2
- package/components/onboarding/RpcStep.d.ts.map +0 -1
- package/components/onboarding/RpcStep.js +0 -125
- package/components/onboarding/SaveKeysStep.d.ts +0 -2
- package/components/onboarding/SaveKeysStep.d.ts.map +0 -1
- package/components/onboarding/SaveKeysStep.js +0 -44
- package/components/onboarding/WelcomeStep.d.ts +0 -2
- package/components/onboarding/WelcomeStep.d.ts.map +0 -1
- package/components/onboarding/WelcomeStep.js +0 -30
- package/components/permissions/PermissionIcon.d.ts +0 -4
- package/components/permissions/PermissionIcon.d.ts.map +0 -1
- package/components/permissions/PermissionIcon.js +0 -12
- package/components/permissions/StreamingPermissions.d.ts +0 -20
- package/components/permissions/StreamingPermissions.d.ts.map +0 -1
- package/components/permissions/StreamingPermissions.js +0 -178
- package/components/plugins/showcase-data.d.ts +0 -7
- package/components/plugins/showcase-data.d.ts.map +0 -1
- package/components/plugins/showcase-data.js +0 -464
- package/components/shared/ShellHeaderControls.d.ts +0 -27
- package/components/shared/ShellHeaderControls.d.ts.map +0 -1
- package/components/shared/ShellHeaderControls.js +0 -55
- package/components/shared-companion-scene-context.d.ts +0 -3
- package/components/shared-companion-scene-context.d.ts.map +0 -1
- package/components/shared-companion-scene-context.js +0 -13
- package/components/skeletons.d.ts +0 -17
- package/components/skeletons.d.ts.map +0 -1
- package/components/skeletons.js +0 -22
- package/components/stream/ActivityFeed.d.ts +0 -5
- package/components/stream/ActivityFeed.d.ts.map +0 -1
- package/components/stream/ActivityFeed.js +0 -57
- package/components/stream/AvatarPip.d.ts +0 -5
- package/components/stream/AvatarPip.d.ts.map +0 -1
- package/components/stream/AvatarPip.js +0 -6
- package/components/stream/ChatContent.d.ts +0 -6
- package/components/stream/ChatContent.d.ts.map +0 -1
- package/components/stream/ChatContent.js +0 -69
- package/components/stream/ChatTicker.d.ts +0 -5
- package/components/stream/ChatTicker.d.ts.map +0 -1
- package/components/stream/ChatTicker.js +0 -34
- package/components/stream/IdleContent.d.ts +0 -5
- package/components/stream/IdleContent.d.ts.map +0 -1
- package/components/stream/IdleContent.js +0 -17
- package/components/stream/StatusBar.d.ts +0 -36
- package/components/stream/StatusBar.d.ts.map +0 -1
- package/components/stream/StatusBar.js +0 -140
- package/components/stream/StreamSettings.d.ts +0 -33
- package/components/stream/StreamSettings.d.ts.map +0 -1
- package/components/stream/StreamSettings.js +0 -99
- package/components/stream/StreamTerminal.d.ts +0 -2
- package/components/stream/StreamTerminal.d.ts.map +0 -1
- package/components/stream/StreamTerminal.js +0 -52
- package/components/stream/StreamVoiceConfig.d.ts +0 -10
- package/components/stream/StreamVoiceConfig.d.ts.map +0 -1
- package/components/stream/StreamVoiceConfig.js +0 -88
- package/components/stream/helpers.d.ts +0 -32
- package/components/stream/helpers.d.ts.map +0 -1
- package/components/stream/helpers.js +0 -110
- package/components/stream/overlays/OverlayLayer.d.ts +0 -20
- package/components/stream/overlays/OverlayLayer.d.ts.map +0 -1
- package/components/stream/overlays/OverlayLayer.js +0 -24
- package/components/stream/overlays/built-in/ActionTickerWidget.d.ts +0 -8
- package/components/stream/overlays/built-in/ActionTickerWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/ActionTickerWidget.js +0 -44
- package/components/stream/overlays/built-in/AlertPopupWidget.d.ts +0 -7
- package/components/stream/overlays/built-in/AlertPopupWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/AlertPopupWidget.js +0 -62
- package/components/stream/overlays/built-in/BrandingWidget.d.ts +0 -7
- package/components/stream/overlays/built-in/BrandingWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/BrandingWidget.js +0 -36
- package/components/stream/overlays/built-in/CustomHtmlWidget.d.ts +0 -26
- package/components/stream/overlays/built-in/CustomHtmlWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/CustomHtmlWidget.js +0 -78
- package/components/stream/overlays/built-in/PeonGlassWidget.d.ts +0 -11
- package/components/stream/overlays/built-in/PeonGlassWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/PeonGlassWidget.js +0 -188
- package/components/stream/overlays/built-in/PeonHudWidget.d.ts +0 -10
- package/components/stream/overlays/built-in/PeonHudWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/PeonHudWidget.js +0 -168
- package/components/stream/overlays/built-in/PeonSakuraWidget.d.ts +0 -11
- package/components/stream/overlays/built-in/PeonSakuraWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/PeonSakuraWidget.js +0 -213
- package/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts +0 -8
- package/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/ThoughtBubbleWidget.js +0 -59
- package/components/stream/overlays/built-in/ViewerCountWidget.d.ts +0 -7
- package/components/stream/overlays/built-in/ViewerCountWidget.d.ts.map +0 -1
- package/components/stream/overlays/built-in/ViewerCountWidget.js +0 -34
- package/components/stream/overlays/built-in/index.d.ts +0 -13
- package/components/stream/overlays/built-in/index.d.ts.map +0 -1
- package/components/stream/overlays/built-in/index.js +0 -12
- package/components/stream/overlays/registry.d.ts +0 -11
- package/components/stream/overlays/registry.d.ts.map +0 -1
- package/components/stream/overlays/registry.js +0 -16
- package/components/stream/overlays/types.d.ts +0 -67
- package/components/stream/overlays/types.d.ts.map +0 -1
- package/components/stream/overlays/types.js +0 -7
- package/components/stream/overlays/useOverlayLayout.d.ts +0 -27
- package/components/stream/overlays/useOverlayLayout.d.ts.map +0 -1
- package/components/stream/overlays/useOverlayLayout.js +0 -162
- package/components/trajectory-format.d.ts +0 -6
- package/components/trajectory-format.d.ts.map +0 -1
- package/components/trajectory-format.js +0 -43
- package/components/ui-badges.d.ts +0 -23
- package/components/ui-badges.d.ts.map +0 -1
- package/components/ui-badges.js +0 -38
- package/components/ui-switch.d.ts +0 -14
- package/components/ui-switch.d.ts.map +0 -1
- package/components/ui-switch.js +0 -15
- package/components/vector-browser-three.d.ts +0 -4
- package/components/vector-browser-three.d.ts.map +0 -1
- package/components/vector-browser-three.js +0 -21
- package/config/branding.d.ts +0 -49
- package/config/branding.d.ts.map +0 -1
- package/config/branding.js +0 -16
- package/config/config-catalog.d.ts +0 -376
- package/config/config-catalog.d.ts.map +0 -1
- package/config/config-catalog.js +0 -724
- package/config/config-field.d.ts +0 -68
- package/config/config-field.d.ts.map +0 -1
- package/config/config-field.js +0 -840
- package/config/config-renderer.d.ts +0 -176
- package/config/config-renderer.d.ts.map +0 -1
- package/config/config-renderer.js +0 -405
- package/config/index.d.ts +0 -6
- package/config/index.d.ts.map +0 -1
- package/config/index.js +0 -5
- package/config/ui-renderer.d.ts +0 -26
- package/config/ui-renderer.d.ts.map +0 -1
- package/config/ui-renderer.js +0 -815
- package/config/ui-spec.d.ts +0 -164
- package/config/ui-spec.d.ts.map +0 -1
- package/config/ui-spec.js +0 -13
- package/events/index.d.ts +0 -48
- package/events/index.d.ts.map +0 -1
- package/events/index.js +0 -45
- package/hooks/index.d.ts +0 -15
- package/hooks/index.d.ts.map +0 -1
- package/hooks/index.js +0 -14
- package/hooks/useBugReport.d.ts +0 -14
- package/hooks/useBugReport.d.ts.map +0 -1
- package/hooks/useBugReport.js +0 -18
- package/hooks/useCanvasWindow.d.ts +0 -38
- package/hooks/useCanvasWindow.d.ts.map +0 -1
- package/hooks/useCanvasWindow.js +0 -273
- package/hooks/useChatAvatarVoice.d.ts +0 -10
- package/hooks/useChatAvatarVoice.d.ts.map +0 -1
- package/hooks/useChatAvatarVoice.js +0 -71
- package/hooks/useClickOutside.d.ts +0 -6
- package/hooks/useClickOutside.d.ts.map +0 -1
- package/hooks/useClickOutside.js +0 -25
- package/hooks/useContextMenu.d.ts +0 -17
- package/hooks/useContextMenu.d.ts.map +0 -1
- package/hooks/useContextMenu.js +0 -100
- package/hooks/useKeyboardShortcuts.d.ts +0 -17
- package/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/hooks/useKeyboardShortcuts.js +0 -67
- package/hooks/useLifoSync.d.ts +0 -18
- package/hooks/useLifoSync.d.ts.map +0 -1
- package/hooks/useLifoSync.js +0 -113
- package/hooks/useMemoryMonitor.d.ts +0 -87
- package/hooks/useMemoryMonitor.d.ts.map +0 -1
- package/hooks/useMemoryMonitor.js +0 -209
- package/hooks/useRenderGuard.d.ts +0 -17
- package/hooks/useRenderGuard.d.ts.map +0 -1
- package/hooks/useRenderGuard.js +0 -36
- package/hooks/useRetakeCapture.d.ts +0 -12
- package/hooks/useRetakeCapture.d.ts.map +0 -1
- package/hooks/useRetakeCapture.js +0 -60
- package/hooks/useStreamPopoutNavigation.d.ts +0 -3
- package/hooks/useStreamPopoutNavigation.d.ts.map +0 -1
- package/hooks/useStreamPopoutNavigation.js +0 -17
- package/hooks/useTimeout.d.ts +0 -11
- package/hooks/useTimeout.d.ts.map +0 -1
- package/hooks/useTimeout.js +0 -32
- package/hooks/useVoiceChat.d.ts +0 -94
- package/hooks/useVoiceChat.d.ts.map +0 -1
- package/hooks/useVoiceChat.js +0 -1077
- package/hooks/useWhatsAppPairing.d.ts +0 -11
- package/hooks/useWhatsAppPairing.d.ts.map +0 -1
- package/hooks/useWhatsAppPairing.js +0 -95
- package/i18n/index.d.ts +0 -7
- package/i18n/index.d.ts.map +0 -1
- package/i18n/index.js +0 -53
- package/i18n/locales/en.json +0 -1268
- package/i18n/locales/es.json +0 -1236
- package/i18n/locales/ko.json +0 -1236
- package/i18n/locales/pt.json +0 -1236
- package/i18n/locales/zh-CN.json +0 -1236
- package/i18n/messages.d.ts +0 -6
- package/i18n/messages.d.ts.map +0 -1
- package/i18n/messages.js +0 -14
- package/navigation/index.d.ts +0 -27
- package/navigation/index.d.ts.map +0 -1
- package/navigation/index.js +0 -232
- package/onboarding-config.d.ts +0 -25
- package/onboarding-config.d.ts.map +0 -1
- package/onboarding-config.js +0 -76
- package/platform/browser-launch.d.ts +0 -2
- package/platform/browser-launch.d.ts.map +0 -1
- package/platform/browser-launch.js +0 -109
- package/platform/index.d.ts +0 -14
- package/platform/index.d.ts.map +0 -1
- package/platform/index.js +0 -24
- package/platform/init.d.ts +0 -40
- package/platform/init.d.ts.map +0 -1
- package/platform/init.js +0 -160
- package/platform/lifo.d.ts +0 -51
- package/platform/lifo.d.ts.map +0 -1
- package/platform/lifo.js +0 -138
- package/providers/index.d.ts +0 -19
- package/providers/index.d.ts.map +0 -1
- package/providers/index.js +0 -80
- package/shell-params.d.ts +0 -12
- package/shell-params.d.ts.map +0 -1
- package/shell-params.js +0 -19
- package/state/AppContext.d.ts +0 -12
- package/state/AppContext.d.ts.map +0 -1
- package/state/AppContext.js +0 -5102
- package/state/index.d.ts +0 -7
- package/state/index.d.ts.map +0 -1
- package/state/index.js +0 -6
- package/state/internal.d.ts +0 -7
- package/state/internal.d.ts.map +0 -1
- package/state/internal.js +0 -6
- package/state/onboarding-resume.d.ts +0 -11
- package/state/onboarding-resume.d.ts.map +0 -1
- package/state/onboarding-resume.js +0 -187
- package/state/parsers.d.ts +0 -26
- package/state/parsers.d.ts.map +0 -1
- package/state/parsers.js +0 -255
- package/state/persistence.d.ts +0 -59
- package/state/persistence.d.ts.map +0 -1
- package/state/persistence.js +0 -328
- package/state/shell-routing.d.ts +0 -12
- package/state/shell-routing.d.ts.map +0 -1
- package/state/shell-routing.js +0 -26
- package/state/types.d.ts +0 -426
- package/state/types.d.ts.map +0 -1
- package/state/types.js +0 -89
- package/state/ui-preferences.d.ts +0 -3
- package/state/ui-preferences.d.ts.map +0 -1
- package/state/ui-preferences.js +0 -1
- package/state/useApp.d.ts +0 -4
- package/state/useApp.d.ts.map +0 -1
- package/state/useApp.js +0 -22
- package/state/vrm.d.ts +0 -30
- package/state/vrm.d.ts.map +0 -1
- package/state/vrm.js +0 -82
- package/styles/anime.css +0 -6364
- package/styles/base.css +0 -255
- package/styles/onboarding-game.css +0 -1095
- package/styles/styles.css +0 -2087
- package/styles/xterm.css +0 -241
- package/types/index.d.ts +0 -657
- package/types/index.d.ts.map +0 -1
- package/types/index.js +0 -1
- package/utils/asset-url.d.ts +0 -26
- package/utils/asset-url.d.ts.map +0 -1
- package/utils/asset-url.js +0 -99
- package/utils/assistant-text.d.ts +0 -2
- package/utils/assistant-text.d.ts.map +0 -1
- package/utils/assistant-text.js +0 -161
- package/utils/clipboard.d.ts +0 -2
- package/utils/clipboard.d.ts.map +0 -1
- package/utils/clipboard.js +0 -38
- package/utils/desktop-dialogs.d.ts +0 -19
- package/utils/desktop-dialogs.d.ts.map +0 -1
- package/utils/desktop-dialogs.js +0 -50
- package/utils/eliza-globals.d.ts +0 -11
- package/utils/eliza-globals.d.ts.map +0 -1
- package/utils/eliza-globals.js +0 -33
- package/utils/index.d.ts +0 -8
- package/utils/index.d.ts.map +0 -1
- package/utils/index.js +0 -7
- package/utils/number-parsing.d.ts +0 -44
- package/utils/number-parsing.d.ts.map +0 -1
- package/utils/number-parsing.js +0 -56
- package/utils/openExternalUrl.d.ts +0 -2
- package/utils/openExternalUrl.d.ts.map +0 -1
- package/utils/openExternalUrl.js +0 -17
- package/utils/spoken-text.d.ts +0 -2
- package/utils/spoken-text.d.ts.map +0 -1
- package/utils/spoken-text.js +0 -56
- package/utils/streaming-text.d.ts +0 -3
- package/utils/streaming-text.d.ts.map +0 -1
- package/utils/streaming-text.js +0 -87
- package/voice/index.d.ts +0 -2
- package/voice/index.d.ts.map +0 -1
- package/voice/index.js +0 -1
- package/voice/types.d.ts +0 -25
- package/voice/types.d.ts.map +0 -1
- package/voice/types.js +0 -166
- package/wallet-rpc.d.ts +0 -8
- package/wallet-rpc.d.ts.map +0 -1
- package/wallet-rpc.js +0 -131
- /package/{components/apps/extensions → services/local-inference/voice}/types.js +0 -0
|
@@ -0,0 +1,1402 @@
|
|
|
1
|
+
#!/usr/bin/env -S node --import tsx
|
|
2
|
+
|
|
3
|
+
import { execSync } from "node:child_process";
|
|
4
|
+
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
5
|
+
import { dirname, resolve } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
import {
|
|
8
|
+
findLocalPackHotspots,
|
|
9
|
+
shouldSkipExactPackDryRun,
|
|
10
|
+
} from "./lib/release-check-pack-dry-run";
|
|
11
|
+
import { validateStaticAssetManifest } from "./lib/static-asset-manifest.mjs";
|
|
12
|
+
|
|
13
|
+
type PackFile = { path: string };
|
|
14
|
+
type PackResult = { files?: PackFile[] };
|
|
15
|
+
|
|
16
|
+
const requiredPaths = [
|
|
17
|
+
"dist/index.js",
|
|
18
|
+
"dist/entry.js",
|
|
19
|
+
"dist/build-info.json",
|
|
20
|
+
"eliza/packages/app-core/scripts",
|
|
21
|
+
"scripts/setup-upstreams.mjs",
|
|
22
|
+
"scripts/init-submodules.mjs",
|
|
23
|
+
];
|
|
24
|
+
const forbiddenPrefixes = ["dist/Eliza.app/"];
|
|
25
|
+
const orchestratorBrokenLifecycleTarget = "./scripts/ensure-node-pty.mjs";
|
|
26
|
+
const orchestratorPluginPackageJsonPathCandidates = [
|
|
27
|
+
resolve("eliza", "plugins", "plugin-agent-orchestrator", "package.json"),
|
|
28
|
+
resolve(
|
|
29
|
+
".eliza.ci-disabled",
|
|
30
|
+
"plugins",
|
|
31
|
+
"plugin-agent-orchestrator",
|
|
32
|
+
"package.json",
|
|
33
|
+
),
|
|
34
|
+
resolve(
|
|
35
|
+
"node_modules",
|
|
36
|
+
"@elizaos",
|
|
37
|
+
"plugin-agent-orchestrator",
|
|
38
|
+
"package.json",
|
|
39
|
+
),
|
|
40
|
+
] as const;
|
|
41
|
+
const autonomousServerPathCandidates = [
|
|
42
|
+
"node_modules/@elizaos/agent/src/api/server.js",
|
|
43
|
+
"eliza/packages/agent/src/api/server.ts",
|
|
44
|
+
] as const;
|
|
45
|
+
const autonomousElizaPathCandidates = [
|
|
46
|
+
"node_modules/@elizaos/agent/src/runtime/eliza.js",
|
|
47
|
+
"eliza/packages/agent/src/runtime/eliza.ts",
|
|
48
|
+
] as const;
|
|
49
|
+
const homepageReleaseDataPathCandidates = [
|
|
50
|
+
"apps/homepage/src/generated/release-data.ts",
|
|
51
|
+
] as const;
|
|
52
|
+
|
|
53
|
+
function resolveExistingPath(candidates: readonly string[]) {
|
|
54
|
+
return candidates.find((candidate) => existsSync(candidate)) ?? null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function resolveOrchestratorPluginPackageJsonPath() {
|
|
58
|
+
return resolveExistingPath(orchestratorPluginPackageJsonPathCandidates);
|
|
59
|
+
}
|
|
60
|
+
const requiredWorkflowSnippets = [
|
|
61
|
+
'BUN_VERSION: "1.3.13"',
|
|
62
|
+
"workflow_call:",
|
|
63
|
+
"name: Validate Release Inputs",
|
|
64
|
+
"Manual branch dispatches must provide inputs.tag; refusing to derive a release tag from package.json.",
|
|
65
|
+
"bun-version: $" + "{{ env.BUN_VERSION }}",
|
|
66
|
+
"name: Regression matrix contract",
|
|
67
|
+
"run: bun run test:regression-matrix:release",
|
|
68
|
+
"name: Run heavy E2E regression suite",
|
|
69
|
+
"run: bun run test:e2e:heavy",
|
|
70
|
+
"name: Run optional cloud live regression suite",
|
|
71
|
+
'if bun run test:live:cloud 2>&1 | tee "$log_file"; then',
|
|
72
|
+
"name: Restore build metadata after test rebuilds",
|
|
73
|
+
"name: Release readiness checks",
|
|
74
|
+
// biome-ignore lint/suspicious/noTemplateCurlyInString: GitHub Actions expression
|
|
75
|
+
"ELIZA_RELEASE_TAG: ${{ needs.prepare.outputs.tag }}",
|
|
76
|
+
'ELIZA_VALIDATE_CDN: "1"',
|
|
77
|
+
"run: bun run release:check",
|
|
78
|
+
"build-browser-companions:",
|
|
79
|
+
"name: Build Agent Browser Bridge companions",
|
|
80
|
+
"if bun run browser-bridge:package:release; then",
|
|
81
|
+
'echo "packaged=true" >> "$GITHUB_OUTPUT"',
|
|
82
|
+
"Agent Browser Bridge packaging failed; desktop release will continue without browser companion bundles.",
|
|
83
|
+
"name: Upload Agent Browser Bridge release artifacts",
|
|
84
|
+
"name: browser-bridge-store-bundles",
|
|
85
|
+
"publish-browser-companions:",
|
|
86
|
+
"name: Publish Agent Browser Bridge companions",
|
|
87
|
+
"name: Attach Agent Browser Bridge assets to GitHub release",
|
|
88
|
+
"GH_REPO: ${{ github.repository }}",
|
|
89
|
+
"gh release upload",
|
|
90
|
+
'--repo "$GH_REPO"',
|
|
91
|
+
"for attempt in 1 2 3; do",
|
|
92
|
+
`bun install failed on attempt \${attempt}; retrying in 15 seconds`,
|
|
93
|
+
"name: Ensure avatar assets",
|
|
94
|
+
"node eliza/packages/app-core/scripts/ensure-avatars.mjs",
|
|
95
|
+
"name: Prepare Whisper model artifact",
|
|
96
|
+
"bash eliza/packages/app-core/platforms/electrobun/scripts/ensure-whisper-model.sh base.en",
|
|
97
|
+
"name: Upload Whisper model artifact",
|
|
98
|
+
"name: whisper-model-base-en",
|
|
99
|
+
"Install quiet macOS packaging wrappers",
|
|
100
|
+
"packages/app-core/platforms/electrobun/scripts/hdiutil-wrapper.sh",
|
|
101
|
+
"packages/app-core/platforms/electrobun/scripts/xcrun-wrapper.sh",
|
|
102
|
+
"packages/app-core/platforms/electrobun/scripts/zip-wrapper.sh",
|
|
103
|
+
"ELECTROBUN_REAL_HDIUTIL: /usr/bin/hdiutil",
|
|
104
|
+
"ELECTROBUN_REAL_XCRUN: /usr/bin/xcrun",
|
|
105
|
+
"ELECTROBUN_REAL_ZIP: /usr/bin/zip",
|
|
106
|
+
"name: Download Whisper model artifact",
|
|
107
|
+
"name: Seed Whisper model cache",
|
|
108
|
+
"Stage desktop bundle inputs",
|
|
109
|
+
"node eliza/packages/app-core/scripts/desktop-build.mjs stage --variant=base --build-whisper",
|
|
110
|
+
"Inject version.json into bundle (Windows)",
|
|
111
|
+
"Inject version.json into bundle (macOS / Linux)",
|
|
112
|
+
'"identifier":"ai.elizaos.Eliza"',
|
|
113
|
+
"Stage standard macOS release app",
|
|
114
|
+
"packages/app-core/platforms/electrobun/scripts/stage-macos-release-artifacts.sh",
|
|
115
|
+
"retry_stapler_validate()",
|
|
116
|
+
"Smoke test packaged macOS app",
|
|
117
|
+
"SMOKE_DIAGNOSTICS_DIR:",
|
|
118
|
+
"SKIP_BUILD=1",
|
|
119
|
+
"bun run test:desktop:packaged",
|
|
120
|
+
"Upload macOS smoke diagnostics",
|
|
121
|
+
"wrapper-diagnostics.json",
|
|
122
|
+
"Install Inno Setup 6.7.1",
|
|
123
|
+
"Downloading Inno Setup 6.7.1...",
|
|
124
|
+
"https://github.com/jrsoftware/issrc/releases/download/is-6_7_1/innosetup-6.7.1.exe",
|
|
125
|
+
"Start-Process -FilePath $installer",
|
|
126
|
+
"Extract Windows app bundle for Inno Setup",
|
|
127
|
+
'$extractDir = "C:\\e"',
|
|
128
|
+
"eliza-dist/entry.js found",
|
|
129
|
+
"Build Inno Setup installer",
|
|
130
|
+
"packaging/inno/build-inno.ps1",
|
|
131
|
+
'-BuildDir "C:\\e"',
|
|
132
|
+
"Verify Windows public installer looks complete",
|
|
133
|
+
'Get-ChildItem -Path "eliza/packages/app-core/platforms/electrobun/artifacts" -File -Filter "ElizaOSApp-Setup-*.exe"',
|
|
134
|
+
"$minimumBytes = 50MB",
|
|
135
|
+
"packages/app-core/platforms/electrobun/artifacts/*.exe",
|
|
136
|
+
"name: Prepare public canary Windows installer artifact",
|
|
137
|
+
"needs.prepare.outputs.env == 'canary'",
|
|
138
|
+
'$publicCanaryDir = Join-Path $artifactsDir "public-canary-installer"',
|
|
139
|
+
'$canonicalInstallers = Get-ChildItem -Path $artifactsDir -File -Filter "ElizaOSApp-Setup-*.exe"',
|
|
140
|
+
"Copy-Item $canonicalInstaller.FullName -Destination $publicCanaryDir -Force",
|
|
141
|
+
'$canonicalInstallerZips = Get-ChildItem -Path $artifactsDir -File -Filter "ElizaOSApp-Setup-*.exe.zip"',
|
|
142
|
+
"No canonical Windows installer (or zip fallback) found for canary artifact publishing.",
|
|
143
|
+
"Expand-Archive -Path $canonicalInstallerZip.FullName -DestinationPath $publicCanaryDir -Force",
|
|
144
|
+
"Prepared public canary installer artifact:",
|
|
145
|
+
"name: Upload public canary installer artifact",
|
|
146
|
+
"name: electrobun-$" + "{{ matrix.platform.artifact-name }}-public-installer",
|
|
147
|
+
"path: eliza/packages/app-core/platforms/electrobun/artifacts/public-canary-installer/ElizaOSApp-Setup-*.exe",
|
|
148
|
+
"name: Collect public release files",
|
|
149
|
+
'-name "ElizaOSApp-Setup-*.exe" -o \\',
|
|
150
|
+
'-name "ElizaOSApp-Setup-*.exe.zip" -o \\',
|
|
151
|
+
'-name "*Setup*.tar.gz" -o \\',
|
|
152
|
+
"name: Collect update channel files",
|
|
153
|
+
"pattern: browser-bridge-*",
|
|
154
|
+
'-name "*.tar.zst" -o \\',
|
|
155
|
+
'-name "*-update.json" \\',
|
|
156
|
+
"DMG attach attempt $attempt/5 failed",
|
|
157
|
+
"name: Resolve electrobun package dir",
|
|
158
|
+
"id: resolve-electrobun",
|
|
159
|
+
'const workspacePackageJson = path.resolve("eliza/packages/app-core/platforms/electrobun/package.json");',
|
|
160
|
+
'const entryPath = req.resolve("electrobun");',
|
|
161
|
+
"Could not find electrobun package.json starting from",
|
|
162
|
+
"Resolved unexpected package at",
|
|
163
|
+
'echo "package-dir=$package_dir"',
|
|
164
|
+
'echo "cache-dir=$package_dir/.cache"',
|
|
165
|
+
"$" + "{{ steps.resolve-electrobun.outputs.cache-dir }}",
|
|
166
|
+
"name: Build patched Electrobun CLI",
|
|
167
|
+
'node eliza/packages/app-core/scripts/build-patched-electrobun-cli.mjs "$' +
|
|
168
|
+
'{{ steps.resolve-electrobun.outputs.package-dir }}"',
|
|
169
|
+
'"${{ matrix.platform.artifact-name }}"',
|
|
170
|
+
"node eliza/packages/app-core/scripts/desktop-build.mjs package --env=$" +
|
|
171
|
+
"{{ needs.prepare.outputs.env }}",
|
|
172
|
+
"ELIZA_ELECTROBUN_NOTARIZE: 0",
|
|
173
|
+
'ELIZA_DISABLE_LOCAL_EMBEDDINGS: "1"',
|
|
174
|
+
'ELIZA_WINDOWS_SMOKE_REQUIRE_INSTALLER: "1"',
|
|
175
|
+
"ELIZA_TEST_WINDOWS_INSTALL_DIR: $" + "{{ runner.temp }}\\el",
|
|
176
|
+
"name: Run Windows clean installer proof",
|
|
177
|
+
"verify-windows-installer-proof.ps1",
|
|
178
|
+
"ELIZA_TEST_WINDOWS_PROOF_INSTALL_DIR: $" + "{{ runner.temp }}\\el-proof",
|
|
179
|
+
"name: Upload Windows installer proof artifact",
|
|
180
|
+
"path: eliza/packages/app-core/platforms/electrobun/artifacts/windows-installer-proof/**",
|
|
181
|
+
"if: always() && matrix.platform.os == 'windows'",
|
|
182
|
+
"ANTHROPIC_API_KEY: $" + "{{ secrets.ANTHROPIC_API_KEY }}",
|
|
183
|
+
"ELIZAOS_CLOUD_API_KEY: $" +
|
|
184
|
+
"{{ secrets.ELIZAOS_CLOUD_API_KEY != '' && secrets.ELIZAOS_CLOUD_API_KEY || secrets.ELIZACLOUD_API_KEY }}",
|
|
185
|
+
"ELIZAOS_CLOUD_BASE_URL: $" + "{{ secrets.ELIZAOS_CLOUD_BASE_URL }}",
|
|
186
|
+
"bun run test:desktop:packaged:windows",
|
|
187
|
+
'Write-Error "Packaged Windows smoke test exited with code $LASTEXITCODE."',
|
|
188
|
+
"bun run test:desktop:playwright",
|
|
189
|
+
];
|
|
190
|
+
const _requiredPatchedElectrobunCliSnippets = [
|
|
191
|
+
"https://github.com/blackboardsh/electrobun.git",
|
|
192
|
+
'"sparse-checkout", "set", "package"',
|
|
193
|
+
'writeGitHubEnv("ELECTROBUN_RCEDIT_PACKAGE_JSON", resolvedRceditPackageJson);',
|
|
194
|
+
'const overridePackageJson = process.env["ELECTROBUN_RCEDIT_PACKAGE_JSON"];',
|
|
195
|
+
'const overrideEntry = overrideRequire.resolve("rcedit");',
|
|
196
|
+
"function resolveBuildTarget(value) {",
|
|
197
|
+
"--target=${buildTarget.bunTarget}",
|
|
198
|
+
"[electrobun-build] Bun entry:",
|
|
199
|
+
"targetPaths.BUN_BINARY",
|
|
200
|
+
"Bun CLI fallback succeeded",
|
|
201
|
+
"const installedBinPath = path.join(",
|
|
202
|
+
"const installedCachePath = path.join(",
|
|
203
|
+
];
|
|
204
|
+
|
|
205
|
+
export function findMissingPatchedElectrobunCliSnippets(
|
|
206
|
+
source: string,
|
|
207
|
+
): string[] {
|
|
208
|
+
return _requiredPatchedElectrobunCliSnippets.filter(
|
|
209
|
+
(snippet) => !source.includes(snippet),
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function findMissingRequiredSnippets(
|
|
214
|
+
content: string,
|
|
215
|
+
snippets: readonly string[],
|
|
216
|
+
): string[] {
|
|
217
|
+
return snippets.filter((snippet) => !content.includes(snippet));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const forbiddenWorkflowSnippets = [
|
|
221
|
+
' -name "*.exe" -o \\',
|
|
222
|
+
'bun install -g "rcedit@4.0.1"',
|
|
223
|
+
"name: Cache Bun install",
|
|
224
|
+
"path: ~/.bun/install/cache",
|
|
225
|
+
"restore-keys: bun-electrobun-validate-",
|
|
226
|
+
"restore-keys: bun-electrobun-$" +
|
|
227
|
+
"{{ matrix.platform.artifact-name }}" +
|
|
228
|
+
"-",
|
|
229
|
+
"key: bun-electrobun-validate-$" + "{{ hashFiles('bun.lock') }}",
|
|
230
|
+
"key: bun-electrobun-$" +
|
|
231
|
+
"{{ matrix.platform.artifact-name }}" +
|
|
232
|
+
"-$" +
|
|
233
|
+
"{{ hashFiles('bun.lock') }}",
|
|
234
|
+
`TAG="v$(node -p "require('./package.json').version")"`,
|
|
235
|
+
"name: Ensure Windows rcedit binary is available for Electrobun",
|
|
236
|
+
"name: Pre-extract electrobun native CLI on Windows",
|
|
237
|
+
"https://api.github.com/repos/blackboardsh/electrobun/releases/tags/v$version",
|
|
238
|
+
"electrobun CLI checksum mismatch",
|
|
239
|
+
'$extractionBases = @("D:\\a\\electrobun\\electrobun\\package")',
|
|
240
|
+
];
|
|
241
|
+
const requiredElectrobunPrWorkflowSnippets = [
|
|
242
|
+
"name: Validate Electrobun Release Workflow",
|
|
243
|
+
"pull_request:",
|
|
244
|
+
"branches: [main, develop]",
|
|
245
|
+
"workflow_dispatch:",
|
|
246
|
+
"permissions:",
|
|
247
|
+
"contents: read",
|
|
248
|
+
'BUN_VERSION: "1.3.13"',
|
|
249
|
+
"name: Release Workflow Contract",
|
|
250
|
+
"bun install --ignore-scripts",
|
|
251
|
+
"bun run postinstall",
|
|
252
|
+
"bun run test:regression-matrix:release-contract",
|
|
253
|
+
"bun run test:release:contract",
|
|
254
|
+
];
|
|
255
|
+
const forbiddenElectrobunPrWorkflowSnippets = [
|
|
256
|
+
"uses: ./.github/workflows/release-electrobun.yml",
|
|
257
|
+
"publish_release: false",
|
|
258
|
+
"publish_docker: false",
|
|
259
|
+
"draft: false",
|
|
260
|
+
"secrets: inherit",
|
|
261
|
+
"packages: write",
|
|
262
|
+
];
|
|
263
|
+
const requiredElectrobunConfigSnippets = [
|
|
264
|
+
'postBuild: "scripts/postwrap-sign-runtime-macos.ts"',
|
|
265
|
+
'postWrap: "scripts/postwrap-diagnostics.ts"',
|
|
266
|
+
"process.env.ELIZA_ELECTROBUN_NOTARIZE !==",
|
|
267
|
+
"[repoPluginsJsonPath]: `${runtimeDistDir}/plugins.json`",
|
|
268
|
+
"[repoPackageJsonPath]: `${runtimeDistDir}/package.json`",
|
|
269
|
+
];
|
|
270
|
+
const electrobunDirCandidates = [
|
|
271
|
+
resolve("packages", "app-core", "platforms", "electrobun"),
|
|
272
|
+
resolve("eliza", "packages", "app-core", "platforms", "electrobun"),
|
|
273
|
+
resolve("apps", "app", "electrobun"),
|
|
274
|
+
];
|
|
275
|
+
|
|
276
|
+
function resolveElectrobunPath(...segments: string[]) {
|
|
277
|
+
for (const candidate of electrobunDirCandidates) {
|
|
278
|
+
const targetPath = resolve(candidate, ...segments);
|
|
279
|
+
if (existsSync(targetPath)) {
|
|
280
|
+
return targetPath;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return resolve(electrobunDirCandidates[0]!, ...segments);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function readElectrobunFile(...segments: string[]) {
|
|
288
|
+
return readFileSync(resolveElectrobunPath(...segments), "utf8");
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
type RootPackageJson = {
|
|
292
|
+
bundleDependencies?: string[];
|
|
293
|
+
bundledDependencies?: string[];
|
|
294
|
+
dependencies?: Record<string, string>;
|
|
295
|
+
files?: string[];
|
|
296
|
+
overrides?: Record<string, unknown>;
|
|
297
|
+
scripts?: Record<string, string>;
|
|
298
|
+
};
|
|
299
|
+
const cloudAgentTemplateReleaseDependencies = [
|
|
300
|
+
"@elizaos/core",
|
|
301
|
+
"@elizaos/plugin-elizacloud",
|
|
302
|
+
"@elizaos/plugin-sql",
|
|
303
|
+
] as const;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Returns true if the version specifier is an exact pinned version
|
|
307
|
+
* (no range operators, no tags, no URLs).
|
|
308
|
+
*
|
|
309
|
+
* Accepted: "0.3.14", "1.0.0", "2.0.0-alpha.87"
|
|
310
|
+
* Rejected: "^0.3.14", "~1.0.0", ">=1.0.0", "next", "latest", "*",
|
|
311
|
+
* "workspace:*", "npm:foo@1.0.0", "https://...", "git+..."
|
|
312
|
+
*/
|
|
313
|
+
export function isExactVersion(specifier: string): boolean {
|
|
314
|
+
if (!specifier || specifier.length === 0) return false;
|
|
315
|
+
// Reject range operators, tags, URLs, workspace protocol
|
|
316
|
+
if (/^[~^>=<*]/.test(specifier)) return false;
|
|
317
|
+
if (/^(workspace|npm|file|git\+|https?):/.test(specifier)) return false;
|
|
318
|
+
// Must look like a semver: starts with a digit, contains only digits/dots/hyphens/alphanumeric
|
|
319
|
+
return /^\d+\.\d+\.\d+/.test(specifier);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export function isWorkspaceSpecifier(specifier: string | undefined): boolean {
|
|
323
|
+
return typeof specifier === "string" && specifier.startsWith("workspace:");
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
type DependencyPackageJson = {
|
|
327
|
+
scripts?: Record<string, string>;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export function parseBunPackDryRunOutput(raw: string): PackResult[] {
|
|
331
|
+
const files = raw
|
|
332
|
+
.split("\n")
|
|
333
|
+
.map((line) => line.match(/^packed\s+\S+\s+(.+)$/)?.[1]?.trim())
|
|
334
|
+
.filter((path): path is string => Boolean(path))
|
|
335
|
+
.map((path) => ({ path }));
|
|
336
|
+
|
|
337
|
+
return [{ files }];
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export function isNpmOverrideConflictError(error: unknown): boolean {
|
|
341
|
+
if (!(error instanceof Error)) {
|
|
342
|
+
return false;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
const execError = error as Error & {
|
|
346
|
+
stdout?: string;
|
|
347
|
+
stderr?: string;
|
|
348
|
+
};
|
|
349
|
+
const combinedOutput = `${execError.stdout ?? ""}\n${execError.stderr ?? ""}`;
|
|
350
|
+
return combinedOutput.includes("EOVERRIDE");
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export function sanitizeNpmOverridesForPack(pkg: RootPackageJson): {
|
|
354
|
+
overrides?: Record<string, unknown>;
|
|
355
|
+
removed: string[];
|
|
356
|
+
} {
|
|
357
|
+
const overrides =
|
|
358
|
+
pkg.overrides && typeof pkg.overrides === "object" ? pkg.overrides : {};
|
|
359
|
+
const dependencies = pkg.dependencies ?? {};
|
|
360
|
+
const sanitizedOverrides: Record<string, unknown> = {};
|
|
361
|
+
const removed: string[] = [];
|
|
362
|
+
|
|
363
|
+
for (const [name, value] of Object.entries(overrides)) {
|
|
364
|
+
const directDependencySpecifier = dependencies[name];
|
|
365
|
+
const removeBecauseOverrideUsesWorkspaceProtocol =
|
|
366
|
+
typeof value === "string" && value.startsWith("workspace:");
|
|
367
|
+
const removeBecauseDirectDependencyUsesWorkspaceProtocol =
|
|
368
|
+
typeof directDependencySpecifier === "string" &&
|
|
369
|
+
directDependencySpecifier.startsWith("workspace:");
|
|
370
|
+
|
|
371
|
+
if (
|
|
372
|
+
removeBecauseOverrideUsesWorkspaceProtocol ||
|
|
373
|
+
removeBecauseDirectDependencyUsesWorkspaceProtocol
|
|
374
|
+
) {
|
|
375
|
+
removed.push(name);
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
sanitizedOverrides[name] = value;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (removed.length === 0) {
|
|
383
|
+
return { overrides: pkg.overrides, removed };
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (Object.keys(sanitizedOverrides).length === 0) {
|
|
387
|
+
return { overrides: undefined, removed };
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
return { overrides: sanitizedOverrides, removed };
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Strip pack-incompatible root `package.json` override entries for the duration
|
|
395
|
+
* of a callback, then restore the file byte-for-byte. Returns the callback's
|
|
396
|
+
* result.
|
|
397
|
+
*
|
|
398
|
+
* Why: `npm pack --dry-run` validates `overrides` using npm's resolution rules.
|
|
399
|
+
* That trips on two Eliza patterns:
|
|
400
|
+
* - override entries that still use Bun's `workspace:*` protocol
|
|
401
|
+
* - override entries for direct dependencies that themselves remain
|
|
402
|
+
* `workspace:*` in the root package
|
|
403
|
+
*
|
|
404
|
+
* Once npm exits with `EOVERRIDE`, the old fallback — `bun pm pack --dry-run`
|
|
405
|
+
* — can still hit Bun 1.3.11's lockfile parser bug in CI. Neutralizing the
|
|
406
|
+
* incompatible override entries only while `npm pack` is running sidesteps both
|
|
407
|
+
* issues without touching the committed `bun.lock` or the runtime `package.json`.
|
|
408
|
+
*/
|
|
409
|
+
function withSanitizedNpmOverrides<T>(fn: () => T): T {
|
|
410
|
+
const pkgPath = resolve("package.json");
|
|
411
|
+
if (!existsSync(pkgPath)) {
|
|
412
|
+
return fn();
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
const originalRaw = readFileSync(pkgPath, "utf8");
|
|
416
|
+
let pkg: RootPackageJson & Record<string, unknown>;
|
|
417
|
+
try {
|
|
418
|
+
pkg = JSON.parse(originalRaw) as RootPackageJson & Record<string, unknown>;
|
|
419
|
+
} catch {
|
|
420
|
+
return fn();
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (!pkg.overrides || typeof pkg.overrides !== "object") {
|
|
424
|
+
return fn();
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const { overrides, removed } = sanitizeNpmOverridesForPack(pkg);
|
|
428
|
+
if (removed.length === 0) {
|
|
429
|
+
return fn();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
const sanitizedPkg = { ...pkg };
|
|
433
|
+
if (overrides && Object.keys(overrides).length > 0) {
|
|
434
|
+
sanitizedPkg.overrides = overrides;
|
|
435
|
+
} else {
|
|
436
|
+
delete sanitizedPkg.overrides;
|
|
437
|
+
}
|
|
438
|
+
const hasTrailingNewline = originalRaw.endsWith("\n");
|
|
439
|
+
const sanitizedRaw =
|
|
440
|
+
JSON.stringify(sanitizedPkg, null, 2) + (hasTrailingNewline ? "\n" : "");
|
|
441
|
+
|
|
442
|
+
writeFileSync(pkgPath, sanitizedRaw);
|
|
443
|
+
try {
|
|
444
|
+
return fn();
|
|
445
|
+
} finally {
|
|
446
|
+
// Always restore byte-for-byte, even on error.
|
|
447
|
+
writeFileSync(pkgPath, originalRaw);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
function runBunPackDry(): PackResult[] {
|
|
452
|
+
try {
|
|
453
|
+
const raw = execSync("bun pm pack --dry-run --ignore-scripts", {
|
|
454
|
+
encoding: "utf8",
|
|
455
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
456
|
+
maxBuffer: 1024 * 1024 * 100,
|
|
457
|
+
});
|
|
458
|
+
return parseBunPackDryRunOutput(raw);
|
|
459
|
+
} catch (bunError) {
|
|
460
|
+
const bunOutput = `${(bunError as { stdout?: string }).stdout ?? ""}\n${
|
|
461
|
+
(bunError as { stderr?: string }).stderr ?? ""
|
|
462
|
+
}`;
|
|
463
|
+
if (
|
|
464
|
+
bunOutput.includes("Duplicate package path") ||
|
|
465
|
+
bunOutput.includes("InvalidPackageKey")
|
|
466
|
+
) {
|
|
467
|
+
console.warn(
|
|
468
|
+
"release-check: bun pm pack --dry-run failed with a known Bun 1.3.11 lockfile parser error; returning empty file list (CI contract suite will still validate workflow snippets).",
|
|
469
|
+
);
|
|
470
|
+
return [{ files: [] }];
|
|
471
|
+
}
|
|
472
|
+
throw bunError;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function runPackDry(): PackResult[] {
|
|
477
|
+
return withSanitizedNpmOverrides(() => {
|
|
478
|
+
try {
|
|
479
|
+
const raw = execSync("npm pack --dry-run --json --ignore-scripts", {
|
|
480
|
+
encoding: "utf8",
|
|
481
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
482
|
+
maxBuffer: 1024 * 1024 * 100,
|
|
483
|
+
});
|
|
484
|
+
return JSON.parse(raw) as PackResult[];
|
|
485
|
+
} catch (error) {
|
|
486
|
+
if (!isNpmOverrideConflictError(error)) {
|
|
487
|
+
console.warn(
|
|
488
|
+
"release-check: npm pack --dry-run failed without an override conflict; retrying with bun pm pack --dry-run.",
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// Fallback when npm pack cannot materialize the publish snapshot.
|
|
493
|
+
// In CI rewrite mode npm can fail without surfacing a diagnostic,
|
|
494
|
+
// while `bun pm pack --dry-run` still returns the publish file list.
|
|
495
|
+
return runBunPackDry();
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export function isPackPathCoveredByFilesList(
|
|
501
|
+
packPath: string,
|
|
502
|
+
filesList: string[],
|
|
503
|
+
): boolean {
|
|
504
|
+
const normalizedPath = packPath.replaceAll("\\", "/");
|
|
505
|
+
return filesList.some((entry) => {
|
|
506
|
+
const normalizedEntry = entry.replaceAll("\\", "/").replace(/\/$/, "");
|
|
507
|
+
return (
|
|
508
|
+
normalizedPath === normalizedEntry ||
|
|
509
|
+
normalizedPath.startsWith(`${normalizedEntry}/`)
|
|
510
|
+
);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export function doesPackedOutputContainPath(
|
|
515
|
+
requiredPath: string,
|
|
516
|
+
packedPaths: string[],
|
|
517
|
+
): boolean {
|
|
518
|
+
const normalizedRequiredPath = requiredPath.replaceAll("\\", "/");
|
|
519
|
+
return packedPaths.some((entry) => {
|
|
520
|
+
const normalizedEntry = entry.replaceAll("\\", "/").replace(/\/$/, "");
|
|
521
|
+
return (
|
|
522
|
+
normalizedEntry === normalizedRequiredPath ||
|
|
523
|
+
normalizedEntry.startsWith(`${normalizedRequiredPath}/`)
|
|
524
|
+
);
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export function bundlesDependency(
|
|
529
|
+
pkg: RootPackageJson,
|
|
530
|
+
dependencyName: string,
|
|
531
|
+
): boolean {
|
|
532
|
+
const bundled = [
|
|
533
|
+
...(pkg.bundleDependencies ?? []),
|
|
534
|
+
...(pkg.bundledDependencies ?? []),
|
|
535
|
+
];
|
|
536
|
+
return bundled.includes(dependencyName);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export function isExactVersionSpecifier(
|
|
540
|
+
versionSpecifier: string | undefined,
|
|
541
|
+
): boolean {
|
|
542
|
+
if (typeof versionSpecifier !== "string") {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
return /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(
|
|
547
|
+
versionSpecifier,
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export function hasLifecycleScriptReferencingMissingFile(
|
|
552
|
+
pkg: DependencyPackageJson,
|
|
553
|
+
packageDir: string,
|
|
554
|
+
scriptName: string,
|
|
555
|
+
relativeTarget: string,
|
|
556
|
+
pathExists: (candidate: string) => boolean = existsSync,
|
|
557
|
+
): boolean {
|
|
558
|
+
const lifecycleCommand = pkg.scripts?.[scriptName];
|
|
559
|
+
if (
|
|
560
|
+
typeof lifecycleCommand !== "string" ||
|
|
561
|
+
!lifecycleCommand.includes(relativeTarget)
|
|
562
|
+
) {
|
|
563
|
+
return false;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
return !pathExists(resolve(packageDir, relativeTarget));
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export function findFloatingDependencySpecs(
|
|
570
|
+
pkg: RootPackageJson,
|
|
571
|
+
dependencyNames: readonly string[],
|
|
572
|
+
): Array<{ name: string; specifier: string }> {
|
|
573
|
+
const dependencies = pkg.dependencies ?? {};
|
|
574
|
+
|
|
575
|
+
return dependencyNames.flatMap((name) => {
|
|
576
|
+
const specifier = dependencies[name];
|
|
577
|
+
if (!isExactVersionSpecifier(specifier)) {
|
|
578
|
+
return [{ name, specifier: specifier ?? "<missing>" }];
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
return [];
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export function findNonWorkspaceDependencySpecs(
|
|
586
|
+
pkg: RootPackageJson,
|
|
587
|
+
dependencyNames: readonly string[],
|
|
588
|
+
): Array<{ name: string; specifier: string }> {
|
|
589
|
+
const dependencies = pkg.dependencies ?? {};
|
|
590
|
+
|
|
591
|
+
return dependencyNames.flatMap((name) => {
|
|
592
|
+
const specifier = dependencies[name];
|
|
593
|
+
if (specifier !== "workspace:*") {
|
|
594
|
+
return [{ name, specifier: specifier ?? "<missing>" }];
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
return [];
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export function findMismatchedSharedAgentDependencySpecs(
|
|
602
|
+
rootPkg: RootPackageJson,
|
|
603
|
+
agentPkg: RootPackageJson,
|
|
604
|
+
): Array<{ name: string; rootSpecifier: string; agentSpecifier: string }> {
|
|
605
|
+
const rootDependencies = rootPkg.dependencies ?? {};
|
|
606
|
+
const agentDependencies = agentPkg.dependencies ?? {};
|
|
607
|
+
|
|
608
|
+
return Object.entries(agentDependencies).flatMap(([name, agentSpecifier]) => {
|
|
609
|
+
if (!name.startsWith("@elizaos/")) {
|
|
610
|
+
return [];
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
const rootSpecifier = rootDependencies[name];
|
|
614
|
+
if (
|
|
615
|
+
typeof rootSpecifier !== "string" ||
|
|
616
|
+
!isExactVersionSpecifier(rootSpecifier)
|
|
617
|
+
) {
|
|
618
|
+
return [];
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
if (agentSpecifier === rootSpecifier) {
|
|
622
|
+
return [];
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
return [{ name, rootSpecifier, agentSpecifier }];
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
function readExistingReleaseCheckFile(
|
|
630
|
+
label: string,
|
|
631
|
+
candidates: readonly string[],
|
|
632
|
+
): string {
|
|
633
|
+
for (const candidate of candidates) {
|
|
634
|
+
if (existsSync(candidate)) {
|
|
635
|
+
return readFileSync(candidate, "utf8");
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
console.error(`release-check: could not find ${label}. Checked:`);
|
|
640
|
+
for (const candidate of candidates) {
|
|
641
|
+
console.error(` - ${candidate}`);
|
|
642
|
+
}
|
|
643
|
+
process.exit(1);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
function runFastLocalPackCheck(hotspots: string[]) {
|
|
647
|
+
console.warn(
|
|
648
|
+
"release-check: skipping exact npm pack --dry-run because build artifacts are present and package.json whitelists broad build directories:",
|
|
649
|
+
);
|
|
650
|
+
for (const hotspot of hotspots) {
|
|
651
|
+
console.warn(` - ${hotspot}`);
|
|
652
|
+
}
|
|
653
|
+
console.warn(
|
|
654
|
+
"release-check: package.json files includes 'dist' and 'packages/app/dist', so a local pack dry-run has to walk those trees. Set ELIZA_FORCE_PACK_DRY_RUN=1 to run the exact pack check anyway.",
|
|
655
|
+
);
|
|
656
|
+
|
|
657
|
+
const rootPackage = JSON.parse(
|
|
658
|
+
readFileSync("package.json", "utf8"),
|
|
659
|
+
) as RootPackageJson;
|
|
660
|
+
const includedFiles = rootPackage.files ?? [];
|
|
661
|
+
const missing = requiredPaths.filter((path) => !existsSync(path));
|
|
662
|
+
const uncovered = requiredPaths.filter(
|
|
663
|
+
(path) => !isPackPathCoveredByFilesList(path, includedFiles),
|
|
664
|
+
);
|
|
665
|
+
const forbidden = forbiddenPrefixes.filter((prefix) =>
|
|
666
|
+
existsSync(prefix.replace(/\/$/, "")),
|
|
667
|
+
);
|
|
668
|
+
|
|
669
|
+
if (missing.length > 0 || uncovered.length > 0 || forbidden.length > 0) {
|
|
670
|
+
if (missing.length > 0) {
|
|
671
|
+
console.error("release-check: missing files in publish roots:");
|
|
672
|
+
for (const path of missing) {
|
|
673
|
+
console.error(` - ${path}`);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
if (uncovered.length > 0) {
|
|
677
|
+
console.error(
|
|
678
|
+
"release-check: package.json files does not whitelist required publish files:",
|
|
679
|
+
);
|
|
680
|
+
for (const path of uncovered) {
|
|
681
|
+
console.error(` - ${path}`);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
if (forbidden.length > 0) {
|
|
685
|
+
console.error("release-check: forbidden files present in publish roots:");
|
|
686
|
+
for (const prefix of forbidden) {
|
|
687
|
+
console.error(` - ${prefix}`);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
process.exit(1);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
console.log("release-check: local publish-root sanity check looks OK.");
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
function assertBundledAgentOrchestratorInstallFix() {
|
|
697
|
+
const rootPackage = JSON.parse(
|
|
698
|
+
readFileSync("package.json", "utf8"),
|
|
699
|
+
) as RootPackageJson;
|
|
700
|
+
const orchestratorPluginPackageJsonPath =
|
|
701
|
+
resolveOrchestratorPluginPackageJsonPath();
|
|
702
|
+
if (!bundlesDependency(rootPackage, "@elizaos/plugin-agent-orchestrator")) {
|
|
703
|
+
console.error(
|
|
704
|
+
"release-check: package.json must bundle @elizaos/plugin-agent-orchestrator so packaged Eliza includes the standalone orchestrator implementation.",
|
|
705
|
+
);
|
|
706
|
+
process.exit(1);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
if (!orchestratorPluginPackageJsonPath) {
|
|
710
|
+
console.error(
|
|
711
|
+
"release-check: @elizaos/plugin-agent-orchestrator/package.json is missing from all expected locations.",
|
|
712
|
+
);
|
|
713
|
+
for (const candidate of orchestratorPluginPackageJsonPathCandidates) {
|
|
714
|
+
console.error(` - ${candidate}`);
|
|
715
|
+
}
|
|
716
|
+
process.exit(1);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
const orchestratorPackage = JSON.parse(
|
|
720
|
+
readFileSync(orchestratorPluginPackageJsonPath, "utf8"),
|
|
721
|
+
) as DependencyPackageJson;
|
|
722
|
+
if (!orchestratorPackage.dependencies?.["coding-agent-adapters"]) {
|
|
723
|
+
console.error(
|
|
724
|
+
"release-check: @elizaos/plugin-agent-orchestrator must list coding-agent-adapters.",
|
|
725
|
+
);
|
|
726
|
+
process.exit(1);
|
|
727
|
+
}
|
|
728
|
+
if (
|
|
729
|
+
hasLifecycleScriptReferencingMissingFile(
|
|
730
|
+
orchestratorPackage,
|
|
731
|
+
dirname(orchestratorPluginPackageJsonPath),
|
|
732
|
+
"postinstall",
|
|
733
|
+
orchestratorBrokenLifecycleTarget,
|
|
734
|
+
)
|
|
735
|
+
) {
|
|
736
|
+
console.error(
|
|
737
|
+
"release-check: @elizaos/plugin-agent-orchestrator references scripts/ensure-node-pty.mjs in postinstall, but that file is missing under eliza/plugins/plugin-agent-orchestrator/scripts/.",
|
|
738
|
+
);
|
|
739
|
+
process.exit(1);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function assertOrchestratorVersionPinned() {
|
|
743
|
+
const rootPackage = JSON.parse(
|
|
744
|
+
readFileSync("package.json", "utf8"),
|
|
745
|
+
) as RootPackageJson;
|
|
746
|
+
const orchestratorPluginPackageJsonPath =
|
|
747
|
+
resolveOrchestratorPluginPackageJsonPath();
|
|
748
|
+
const version =
|
|
749
|
+
rootPackage.dependencies?.["@elizaos/plugin-agent-orchestrator"];
|
|
750
|
+
if (!version) {
|
|
751
|
+
console.error(
|
|
752
|
+
"release-check: @elizaos/plugin-agent-orchestrator is not in dependencies.",
|
|
753
|
+
);
|
|
754
|
+
process.exit(1);
|
|
755
|
+
}
|
|
756
|
+
if (isWorkspaceSpecifier(version)) {
|
|
757
|
+
if (!orchestratorPluginPackageJsonPath) {
|
|
758
|
+
console.error(
|
|
759
|
+
"release-check: @elizaos/plugin-agent-orchestrator is configured as workspace:*, but no local package.json was found.",
|
|
760
|
+
);
|
|
761
|
+
for (const candidate of orchestratorPluginPackageJsonPathCandidates) {
|
|
762
|
+
console.error(` - ${candidate}`);
|
|
763
|
+
}
|
|
764
|
+
process.exit(1);
|
|
765
|
+
}
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
if (!isExactVersion(version)) {
|
|
769
|
+
console.error(
|
|
770
|
+
`release-check: @elizaos/plugin-agent-orchestrator must either use workspace:* for the local checkout or be pinned to an exact version, but found "${version}".`,
|
|
771
|
+
);
|
|
772
|
+
process.exit(1);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
function assertCloudAgentTemplateDependenciesUseWorkspace() {
|
|
777
|
+
const cloudAgentPackage = JSON.parse(
|
|
778
|
+
readFileSync(
|
|
779
|
+
"eliza/packages/app-core/deploy/cloud-agent-template/package.json",
|
|
780
|
+
"utf8",
|
|
781
|
+
),
|
|
782
|
+
) as RootPackageJson;
|
|
783
|
+
const nonWorkspace = findNonWorkspaceDependencySpecs(
|
|
784
|
+
cloudAgentPackage,
|
|
785
|
+
cloudAgentTemplateReleaseDependencies,
|
|
786
|
+
);
|
|
787
|
+
|
|
788
|
+
if (nonWorkspace.length > 0) {
|
|
789
|
+
console.error(
|
|
790
|
+
"release-check: eliza/packages/app-core/deploy/cloud-agent-template/package.json must use workspace:* for repo-local elizaOS dependencies. Materialize exact npm versions only at the deploy/publish boundary.",
|
|
791
|
+
);
|
|
792
|
+
for (const dependency of nonWorkspace) {
|
|
793
|
+
console.error(` - ${dependency.name}: ${dependency.specifier}`);
|
|
794
|
+
}
|
|
795
|
+
process.exit(1);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
function assertAgentDependenciesAlignedWithRootPins() {
|
|
800
|
+
const rootPackage = JSON.parse(
|
|
801
|
+
readFileSync("package.json", "utf8"),
|
|
802
|
+
) as RootPackageJson;
|
|
803
|
+
const agentPackage = JSON.parse(
|
|
804
|
+
readFileSync("eliza/packages/agent/package.json", "utf8"),
|
|
805
|
+
) as RootPackageJson;
|
|
806
|
+
const mismatches = findMismatchedSharedAgentDependencySpecs(
|
|
807
|
+
rootPackage,
|
|
808
|
+
agentPackage,
|
|
809
|
+
);
|
|
810
|
+
|
|
811
|
+
if (mismatches.length > 0) {
|
|
812
|
+
console.error(
|
|
813
|
+
"release-check: packages/agent must match the root's exact @elizaos/* pins to avoid alpha tag drift on clean installs.",
|
|
814
|
+
);
|
|
815
|
+
for (const mismatch of mismatches) {
|
|
816
|
+
console.error(
|
|
817
|
+
` - ${mismatch.name}: packages/agent=${mismatch.agentSpecifier} root=${mismatch.rootSpecifier}`,
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
process.exit(1);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
function assertReleaseWorkflowHasNotaryWrapper() {
|
|
825
|
+
const workflow = readFileSync(
|
|
826
|
+
".github/workflows/release-electrobun.yml",
|
|
827
|
+
"utf8",
|
|
828
|
+
);
|
|
829
|
+
const missing = findMissingRequiredSnippets(
|
|
830
|
+
workflow,
|
|
831
|
+
requiredWorkflowSnippets,
|
|
832
|
+
);
|
|
833
|
+
|
|
834
|
+
if (missing.length > 0) {
|
|
835
|
+
console.error(
|
|
836
|
+
"release-check: release workflow is missing notary wrapper wiring:",
|
|
837
|
+
);
|
|
838
|
+
for (const snippet of missing) {
|
|
839
|
+
console.error(` - ${snippet}`);
|
|
840
|
+
}
|
|
841
|
+
process.exit(1);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
const patchedCliHelper = readFileSync(
|
|
845
|
+
"eliza/packages/app-core/scripts/build-patched-electrobun-cli.mjs",
|
|
846
|
+
"utf8",
|
|
847
|
+
);
|
|
848
|
+
const missingPatchedCli =
|
|
849
|
+
findMissingPatchedElectrobunCliSnippets(patchedCliHelper);
|
|
850
|
+
|
|
851
|
+
if (missingPatchedCli.length > 0) {
|
|
852
|
+
console.error(
|
|
853
|
+
"release-check: patched Electrobun helper is missing expected build wiring:",
|
|
854
|
+
);
|
|
855
|
+
for (const snippet of missingPatchedCli) {
|
|
856
|
+
console.error(` - ${snippet}`);
|
|
857
|
+
}
|
|
858
|
+
process.exit(1);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
const forbidden = forbiddenWorkflowSnippets.filter((snippet) =>
|
|
862
|
+
workflow.includes(snippet),
|
|
863
|
+
);
|
|
864
|
+
|
|
865
|
+
if (forbidden.length > 0) {
|
|
866
|
+
console.error(
|
|
867
|
+
"release-check: release workflow still exposes raw bootstrap artifacts on the public GitHub release:",
|
|
868
|
+
);
|
|
869
|
+
for (const snippet of forbidden) {
|
|
870
|
+
console.error(` - ${snippet}`);
|
|
871
|
+
}
|
|
872
|
+
process.exit(1);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
function assertElectrobunPrWorkflowExists() {
|
|
877
|
+
const workflow = readFileSync(
|
|
878
|
+
".github/workflows/test-electrobun-release.yml",
|
|
879
|
+
"utf8",
|
|
880
|
+
);
|
|
881
|
+
const missing = requiredElectrobunPrWorkflowSnippets.filter(
|
|
882
|
+
(snippet) => !workflow.includes(snippet),
|
|
883
|
+
);
|
|
884
|
+
|
|
885
|
+
if (missing.length > 0) {
|
|
886
|
+
console.error(
|
|
887
|
+
"release-check: Electrobun PR workflow is missing lightweight release-contract validation:",
|
|
888
|
+
);
|
|
889
|
+
for (const snippet of missing) {
|
|
890
|
+
console.error(` - ${snippet}`);
|
|
891
|
+
}
|
|
892
|
+
process.exit(1);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
const forbidden = forbiddenElectrobunPrWorkflowSnippets.filter((snippet) =>
|
|
896
|
+
workflow.includes(snippet),
|
|
897
|
+
);
|
|
898
|
+
|
|
899
|
+
if (forbidden.length > 0) {
|
|
900
|
+
console.error(
|
|
901
|
+
"release-check: Electrobun PR workflow still invokes the full reusable release pipeline:",
|
|
902
|
+
);
|
|
903
|
+
for (const snippet of forbidden) {
|
|
904
|
+
console.error(` - ${snippet}`);
|
|
905
|
+
}
|
|
906
|
+
process.exit(1);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
function assertElectrobunConfigHasPostWrapSigner() {
|
|
911
|
+
const config = readElectrobunFile("electrobun.config.ts");
|
|
912
|
+
const missing = requiredElectrobunConfigSnippets.filter(
|
|
913
|
+
(snippet) => !config.includes(snippet),
|
|
914
|
+
);
|
|
915
|
+
|
|
916
|
+
if (missing.length > 0) {
|
|
917
|
+
console.error(
|
|
918
|
+
"release-check: electrobun config is missing postBuild signer wiring:",
|
|
919
|
+
);
|
|
920
|
+
for (const snippet of missing) {
|
|
921
|
+
console.error(` - ${snippet}`);
|
|
922
|
+
}
|
|
923
|
+
process.exit(1);
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
function assertMacArtifactStagerLooksCorrect() {
|
|
928
|
+
const script = readElectrobunFile(
|
|
929
|
+
"scripts",
|
|
930
|
+
"stage-macos-release-artifacts.sh",
|
|
931
|
+
);
|
|
932
|
+
const requiredSnippets = [
|
|
933
|
+
'for tarball_pattern in "*-macos-*.app.tar.zst" "*-macos-*.app.tar.gz" "*-macos-*.tar.gz"; do',
|
|
934
|
+
'tar --zstd -xf "$TARBALL_PATH" -C "$EXTRACT_DIR"',
|
|
935
|
+
'tar -xzf "$TARBALL_PATH" -C "$EXTRACT_DIR"',
|
|
936
|
+
'TARBALL_BASENAME="$(basename "$TARBALL_PATH")"',
|
|
937
|
+
"no macOS updater tarball found",
|
|
938
|
+
'DIRECT_LAUNCHER_SOURCE="$SCRIPT_DIR/macos-direct-launcher.c"',
|
|
939
|
+
'codesign -d --entitlements :- "$STAGED_APP_PATH"',
|
|
940
|
+
"/usr/bin/clang \\",
|
|
941
|
+
'install -m 0755 "$TMP_LAUNCHER_PATH" "$LAUNCHER_PATH"',
|
|
942
|
+
"retry_codesign() {",
|
|
943
|
+
"retry_notarytool_submit() {",
|
|
944
|
+
"retry_notarytool_wait() {",
|
|
945
|
+
"retry_notarytool_log() {",
|
|
946
|
+
'"$macos_code_dir/libasar.dylib"',
|
|
947
|
+
"sign_nested_macos_runtime_targets() {",
|
|
948
|
+
'runtime_resources_dir="$STAGED_APP_PATH/Contents/Resources/app/eliza-dist"',
|
|
949
|
+
'file "$candidate_path"',
|
|
950
|
+
"*Mach-O*)",
|
|
951
|
+
'find "$runtime_resources_dir" -type f -print0',
|
|
952
|
+
"sign_nested_macos_runtime_targets",
|
|
953
|
+
'sign_macos_runtime_target "$LAUNCHER_PATH"',
|
|
954
|
+
'retry_codesign "${app_sign_args[@]}" "$STAGED_APP_PATH"',
|
|
955
|
+
'codesign --verify --deep --strict --verbose=2 "$STAGED_APP_PATH"',
|
|
956
|
+
"hdiutil create \\",
|
|
957
|
+
'NOTARY_SUBMIT_ATTEMPTS="${ELECTROBUN_NOTARY_SUBMIT_ATTEMPTS:-3}"',
|
|
958
|
+
'NOTARY_SUBMIT_RETRY_DELAY_SECONDS="${ELECTROBUN_NOTARY_SUBMIT_RETRY_DELAY_SECONDS:-30}"',
|
|
959
|
+
'if ! retry_notarytool_submit "$NOTARY_SUBMIT_OUTPUT_PATH" "$NOTARY_SUBMIT_ATTEMPTS" "$NOTARY_SUBMIT_RETRY_DELAY_SECONDS"; then',
|
|
960
|
+
'"$REAL_XCRUN" notarytool submit \\',
|
|
961
|
+
'NOTARY_WAIT_ATTEMPTS="${ELECTROBUN_NOTARY_WAIT_ATTEMPTS:-3}"',
|
|
962
|
+
'NOTARY_WAIT_RETRY_DELAY_SECONDS="${ELECTROBUN_NOTARY_WAIT_RETRY_DELAY_SECONDS:-60}"',
|
|
963
|
+
'if ! retry_notarytool_wait "$NOTARY_WAIT_OUTPUT_PATH" "$NOTARY_WAIT_ATTEMPTS" "$NOTARY_WAIT_RETRY_DELAY_SECONDS"; then',
|
|
964
|
+
"retry_notarytool_log >&2 || true",
|
|
965
|
+
'STAPLER_ATTEMPTS="${ELECTROBUN_STAPLER_ATTEMPTS:-12}"',
|
|
966
|
+
'STAPLER_DELAY_SECONDS="${ELECTROBUN_STAPLER_DELAY_SECONDS:-30}"',
|
|
967
|
+
'if ! retry_command "$STAPLER_ATTEMPTS" "$STAPLER_DELAY_SECONDS" xcrun stapler staple "$TEMP_DMG_PATH"; then',
|
|
968
|
+
' if [[ "${ELECTROBUN_REQUIRE_STAPLED_DMG:-0}" == "1" ]]; then',
|
|
969
|
+
" exit 1",
|
|
970
|
+
" fi",
|
|
971
|
+
' echo "stage-macos-release-artifacts: notarization accepted but stapler ticket was not available; continuing without stapled DMG" >&2',
|
|
972
|
+
"fi",
|
|
973
|
+
'mv "$TEMP_DMG_PATH" "$FINAL_DMG_PATH"',
|
|
974
|
+
];
|
|
975
|
+
const missing = requiredSnippets.filter(
|
|
976
|
+
(snippet) => !script.includes(snippet),
|
|
977
|
+
);
|
|
978
|
+
|
|
979
|
+
if (missing.length > 0) {
|
|
980
|
+
console.error(
|
|
981
|
+
"release-check: macOS artifact stager is missing required release wiring:",
|
|
982
|
+
);
|
|
983
|
+
for (const snippet of missing) {
|
|
984
|
+
console.error(` - ${snippet}`);
|
|
985
|
+
}
|
|
986
|
+
process.exit(1);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
const forbiddenSnippets = [
|
|
990
|
+
'codesign --force --deep --timestamp --sign "$ELECTROBUN_DEVELOPER_ID" "$STAGED_APP_PATH"',
|
|
991
|
+
"exit_code=$?",
|
|
992
|
+
];
|
|
993
|
+
const forbidden = forbiddenSnippets.filter((snippet) =>
|
|
994
|
+
script.includes(snippet),
|
|
995
|
+
);
|
|
996
|
+
|
|
997
|
+
if (forbidden.length > 0) {
|
|
998
|
+
console.error(
|
|
999
|
+
"release-check: macOS artifact stager still contains known-bad signing/retry logic:",
|
|
1000
|
+
);
|
|
1001
|
+
for (const snippet of forbidden) {
|
|
1002
|
+
console.error(` - ${snippet}`);
|
|
1003
|
+
}
|
|
1004
|
+
process.exit(1);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
function assertWindowsSmokeScriptHasLeadingParamBlock() {
|
|
1009
|
+
const script = readElectrobunFile("scripts", "smoke-test-windows.ps1");
|
|
1010
|
+
const firstRelevantLine = script
|
|
1011
|
+
.split(/\r?\n/)
|
|
1012
|
+
.map((line) => line.trim())
|
|
1013
|
+
.find((line) => line.length > 0 && !line.startsWith("#"));
|
|
1014
|
+
|
|
1015
|
+
if (firstRelevantLine !== "param(") {
|
|
1016
|
+
console.error(
|
|
1017
|
+
"release-check: smoke-test-windows.ps1 must start with a param() block before executable statements.",
|
|
1018
|
+
);
|
|
1019
|
+
console.error(` - first relevant line: ${firstRelevantLine ?? "<none>"}`);
|
|
1020
|
+
process.exit(1);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
const requiredSnippets = [
|
|
1024
|
+
"Find-Launcher $resolvedBuildDir",
|
|
1025
|
+
'Get-ChildItem -Path $resolvedArtifactsDir -File -Filter "*.tar.zst"',
|
|
1026
|
+
'Join-Path $env:APPDATA "Eliza\\\\eliza-startup.log"',
|
|
1027
|
+
'$requireInstaller = $env:ELIZA_WINDOWS_SMOKE_REQUIRE_INSTALLER -eq "1"',
|
|
1028
|
+
"Installing via Inno Setup:",
|
|
1029
|
+
"/VERYSILENT",
|
|
1030
|
+
"installed Inno package",
|
|
1031
|
+
"$persistLauncherPathFile = $env:ELIZA_TEST_WINDOWS_LAUNCHER_PATH_FILE",
|
|
1032
|
+
"Installer-required runs skip build/tarball reuse and validate the installed package directly.",
|
|
1033
|
+
"Using $launcherSource launcher:",
|
|
1034
|
+
"Using packaged tarball:",
|
|
1035
|
+
"Find-Launcher $selfExtractionRoot",
|
|
1036
|
+
"Started extracted launcher:",
|
|
1037
|
+
'$startupSessionId = "eliza-windows-smoke-"',
|
|
1038
|
+
"$tempRoot = if ($env:RUNNER_TEMP)",
|
|
1039
|
+
"$startupStateFile = Join-Path $tempRoot",
|
|
1040
|
+
'$startupBootstrapFile = Join-Path $startupBundleRoot "startup-session.json"',
|
|
1041
|
+
"Write-StartupBootstrap",
|
|
1042
|
+
"$stopProtectedProcessIds = [System.Collections.Generic.HashSet[int]]::new()",
|
|
1043
|
+
'Get-CimInstance Win32_Process -Filter "ProcessId = $currentPid"',
|
|
1044
|
+
"-not $stopProtectedProcessIds.Contains([int]$_.Id)",
|
|
1045
|
+
"[int]::TryParse([string]$state.port, [ref]$observedPort)",
|
|
1046
|
+
"if ($state.session_id -ne $startupSessionId)",
|
|
1047
|
+
"$handler.UseProxy = $false",
|
|
1048
|
+
'--noproxy "127.0.0.1"',
|
|
1049
|
+
"function Test-BackendProbeStatus",
|
|
1050
|
+
"Cleared stale startup log:",
|
|
1051
|
+
"Startup trace entered fatal phase:",
|
|
1052
|
+
"Latest startup trace state:",
|
|
1053
|
+
"-SkipHttpErrorCheck",
|
|
1054
|
+
"Dump-PortDiagnostics",
|
|
1055
|
+
"Dump-ProcessDiagnostics",
|
|
1056
|
+
"Dump-FailureDiagnostics",
|
|
1057
|
+
"periodic diagnostics at",
|
|
1058
|
+
"FAILURE DIAGNOSTICS",
|
|
1059
|
+
];
|
|
1060
|
+
const missingSnippets = requiredSnippets.filter(
|
|
1061
|
+
(snippet) => !script.includes(snippet),
|
|
1062
|
+
);
|
|
1063
|
+
|
|
1064
|
+
if (missingSnippets.length > 0) {
|
|
1065
|
+
console.error(
|
|
1066
|
+
"release-check: smoke-test-windows.ps1 is missing the packaged-launcher/dynamic-port smoke logic.",
|
|
1067
|
+
);
|
|
1068
|
+
for (const snippet of missingSnippets) {
|
|
1069
|
+
console.error(` - ${snippet}`);
|
|
1070
|
+
}
|
|
1071
|
+
process.exit(1);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
function assertWindowsInstallerProofScript() {
|
|
1076
|
+
const script = readElectrobunFile(
|
|
1077
|
+
"scripts",
|
|
1078
|
+
"verify-windows-installer-proof.ps1",
|
|
1079
|
+
);
|
|
1080
|
+
|
|
1081
|
+
const requiredSnippets = [
|
|
1082
|
+
"Eliza-Setup-*.exe",
|
|
1083
|
+
"smoke-test-windows.ps1",
|
|
1084
|
+
"ELIZA_WINDOWS_SMOKE_REQUIRE_INSTALLER",
|
|
1085
|
+
"Start Menu",
|
|
1086
|
+
"unins*.exe",
|
|
1087
|
+
"proof-summary.json",
|
|
1088
|
+
];
|
|
1089
|
+
const missingSnippets = requiredSnippets.filter(
|
|
1090
|
+
(snippet) => !script.includes(snippet),
|
|
1091
|
+
);
|
|
1092
|
+
|
|
1093
|
+
if (missingSnippets.length > 0) {
|
|
1094
|
+
console.error(
|
|
1095
|
+
"release-check: verify-windows-installer-proof.ps1 is missing required clean-install proof logic.",
|
|
1096
|
+
);
|
|
1097
|
+
for (const snippet of missingSnippets) {
|
|
1098
|
+
console.error(` - ${snippet}`);
|
|
1099
|
+
}
|
|
1100
|
+
process.exit(1);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
function assertInnoBuildScriptHasTimeoutAndHeartbeat() {
|
|
1105
|
+
const script = readFileSync(
|
|
1106
|
+
"eliza/packages/app-core/packaging/inno/build-inno.ps1",
|
|
1107
|
+
"utf8",
|
|
1108
|
+
);
|
|
1109
|
+
const requiredSnippets = [
|
|
1110
|
+
"$isccTimeout = [TimeSpan]::FromMinutes(25)",
|
|
1111
|
+
"$isccHeartbeatInterval = [TimeSpan]::FromSeconds(30)",
|
|
1112
|
+
"Write-Host \"Starting ISCC.exe: $isccPath $($isccArgumentDisplay -join ' ')\"",
|
|
1113
|
+
"Start-Process -FilePath $isccPath",
|
|
1114
|
+
'Write-Host "ISCC.exe still running after $([math]::Round($elapsed.TotalMinutes, 1)) minutes..."',
|
|
1115
|
+
"Stop-Process -Id $isccProcess.Id -Force",
|
|
1116
|
+
'throw "ISCC.exe timed out after $([int]$isccTimeout.TotalMinutes) minutes while building the Windows installer."',
|
|
1117
|
+
];
|
|
1118
|
+
const missingSnippets = requiredSnippets.filter(
|
|
1119
|
+
(snippet) => !script.includes(snippet),
|
|
1120
|
+
);
|
|
1121
|
+
|
|
1122
|
+
if (missingSnippets.length > 0) {
|
|
1123
|
+
console.error(
|
|
1124
|
+
"release-check: build-inno.ps1 must supervise ISCC.exe with heartbeat logging and a hard timeout.",
|
|
1125
|
+
);
|
|
1126
|
+
for (const snippet of missingSnippets) {
|
|
1127
|
+
console.error(` - ${snippet}`);
|
|
1128
|
+
}
|
|
1129
|
+
process.exit(1);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
function assertInnoTemplateTargetsBundledLauncher() {
|
|
1134
|
+
const template = readFileSync(
|
|
1135
|
+
"eliza/packages/app-core/packaging/inno/ElizaOSApp.iss",
|
|
1136
|
+
"utf8",
|
|
1137
|
+
);
|
|
1138
|
+
const requiredSnippets = [
|
|
1139
|
+
'#define MyAppExeName "bin\\launcher.exe"',
|
|
1140
|
+
'#define MyAppIconFile "ElizaOSApp.ico"',
|
|
1141
|
+
'Source: "{#MySetupIconFile}"; DestDir: "{app}"; DestName: "{#MyAppIconFile}"; Flags: ignoreversion',
|
|
1142
|
+
"UninstallDisplayIcon={app}\\{#MyAppIconFile}",
|
|
1143
|
+
'Name: "{autoprograms}\\{#MyDefaultGroupName}\\{#MyAppName}"; Filename: "{app}\\{#MyAppExeName}"; IconFilename: "{app}\\{#MyAppIconFile}"',
|
|
1144
|
+
'Name: "{autodesktop}\\{#MyAppName}"; Filename: "{app}\\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{app}\\{#MyAppIconFile}"',
|
|
1145
|
+
];
|
|
1146
|
+
const missingSnippets = requiredSnippets.filter(
|
|
1147
|
+
(snippet) => !template.includes(snippet),
|
|
1148
|
+
);
|
|
1149
|
+
|
|
1150
|
+
if (missingSnippets.length > 0) {
|
|
1151
|
+
console.error(
|
|
1152
|
+
"release-check: Eliza.iss must point Windows shortcuts at bin\\launcher.exe and use Eliza.ico for uninstall and shortcut icons.",
|
|
1153
|
+
);
|
|
1154
|
+
for (const snippet of missingSnippets) {
|
|
1155
|
+
console.error(` - ${snippet}`);
|
|
1156
|
+
}
|
|
1157
|
+
process.exit(1);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
if (template.includes('#define MyAppExeName "launcher.exe"')) {
|
|
1161
|
+
console.error(
|
|
1162
|
+
"release-check: Eliza.iss must not point Windows shortcuts at {app}\\launcher.exe; the bundled launcher lives under bin\\.",
|
|
1163
|
+
);
|
|
1164
|
+
process.exit(1);
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
function assertMacSmokeScriptLaunchesPackagedLauncherDirectly() {
|
|
1169
|
+
const script = readElectrobunFile("scripts", "smoke-test.sh");
|
|
1170
|
+
|
|
1171
|
+
if (
|
|
1172
|
+
!script.includes(
|
|
1173
|
+
'LAUNCHER_PATH="$LAUNCH_APP_BUNDLE/Contents/MacOS/launcher"',
|
|
1174
|
+
)
|
|
1175
|
+
) {
|
|
1176
|
+
console.error(
|
|
1177
|
+
"release-check: smoke-test.sh must launch the packaged Contents/MacOS/launcher directly.",
|
|
1178
|
+
);
|
|
1179
|
+
process.exit(1);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
const requiredSnippets = [
|
|
1183
|
+
"dump_failure_diagnostics()",
|
|
1184
|
+
"write_bundle_diagnostics()",
|
|
1185
|
+
"collect_recent_crash_reports()",
|
|
1186
|
+
"build_launcher_command()",
|
|
1187
|
+
"probe_macos_bundle_exec_support()",
|
|
1188
|
+
"launch_packaged_app_with_open()",
|
|
1189
|
+
'OPEN_LAUNCH_ATTEMPTED="1"',
|
|
1190
|
+
'STARTUP_BOOTSTRAP_FILE="$LAUNCH_APP_BUNDLE/Contents/Resources/startup-session.json"',
|
|
1191
|
+
"while IFS= read -r startup_state_line; do",
|
|
1192
|
+
"const [filePath, expectedSession] = process.argv.slice(1);",
|
|
1193
|
+
'TERM="$' + "{TERM:-dumb}" + '"',
|
|
1194
|
+
"attach_dmg_with_retry()",
|
|
1195
|
+
'MOUNT_POINT="$(attach_dmg_with_retry "$DMG_PATH")"',
|
|
1196
|
+
'DIRECT_WGPU_DYLIB="$APP_BUNDLE/Contents/MacOS/libwebgpu_dawn.dylib"',
|
|
1197
|
+
'echo "WGPU : direct app bundle -> $DIRECT_WGPU_DYLIB"',
|
|
1198
|
+
"assert_packaged_archive_asset()",
|
|
1199
|
+
'echo "Packaged renderer asset check PASSED (wrapper archive)."',
|
|
1200
|
+
'echo "Launcher: $' + "{LAUNCHER_PATH:-<unset>}" + '"',
|
|
1201
|
+
'local launcher_stdout="$' + "{LAUNCHER_STDOUT:-}" + '"',
|
|
1202
|
+
"backend_health_probe_satisfied()",
|
|
1203
|
+
'[[ "$status" == "200" || "$status" == "401" ]]',
|
|
1204
|
+
"Launcher exited before the first health probe; continuing to wait for packaged app handoff...",
|
|
1205
|
+
'dump_failure_diagnostics "open(1) failed to launch packaged app"',
|
|
1206
|
+
'FAILURE_REASON="open(1) launch produced no startup trace"',
|
|
1207
|
+
'FAILURE_REASON="macOS direct app-bundle exec probe returned SIGKILL (137) before startup trace began"',
|
|
1208
|
+
];
|
|
1209
|
+
const missing = requiredSnippets.filter(
|
|
1210
|
+
(snippet) => !script.includes(snippet),
|
|
1211
|
+
);
|
|
1212
|
+
if (missing.length > 0) {
|
|
1213
|
+
console.error(
|
|
1214
|
+
"release-check: smoke-test.sh is missing failure-time diagnostics hooks.",
|
|
1215
|
+
);
|
|
1216
|
+
for (const snippet of missing) {
|
|
1217
|
+
console.error(` - ${snippet}`);
|
|
1218
|
+
}
|
|
1219
|
+
process.exit(1);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
if (script.includes("mapfile -t startup_state_parts")) {
|
|
1223
|
+
console.error(
|
|
1224
|
+
"release-check: smoke-test.sh must stay compatible with macOS Bash 3.2 and cannot use mapfile.",
|
|
1225
|
+
);
|
|
1226
|
+
process.exit(1);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function assertServerDynamicHyperscapeImport() {
|
|
1231
|
+
const serverSource = readExistingReleaseCheckFile(
|
|
1232
|
+
"autonomous API server source",
|
|
1233
|
+
autonomousServerPathCandidates,
|
|
1234
|
+
);
|
|
1235
|
+
|
|
1236
|
+
// @hyperscape/plugin-hyperscape must never be a static top-level import. The
|
|
1237
|
+
// API server has to remain bootable when the optional app package is not
|
|
1238
|
+
// installed (for example in Windows smoke and release validation runs).
|
|
1239
|
+
const lines = serverSource.split("\n");
|
|
1240
|
+
const staticImports = lines.filter(
|
|
1241
|
+
(line) =>
|
|
1242
|
+
/^\s*import\s/.test(line) &&
|
|
1243
|
+
line.includes("@hyperscape/plugin-hyperscape"),
|
|
1244
|
+
);
|
|
1245
|
+
if (staticImports.length > 0) {
|
|
1246
|
+
console.error(
|
|
1247
|
+
"release-check: server.ts must NOT have a static import of @hyperscape/plugin-hyperscape/routes. Use a dynamic import inside a try-catch.",
|
|
1248
|
+
);
|
|
1249
|
+
for (const line of staticImports) {
|
|
1250
|
+
console.error(` - ${line.trim()}`);
|
|
1251
|
+
}
|
|
1252
|
+
process.exit(1);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
function assertStartApiServerCatchBlockSafety() {
|
|
1257
|
+
const elizaSource = readExistingReleaseCheckFile(
|
|
1258
|
+
"autonomous runtime source",
|
|
1259
|
+
autonomousElizaPathCandidates,
|
|
1260
|
+
);
|
|
1261
|
+
|
|
1262
|
+
// The catch block around startApiServer must use console.error so errors
|
|
1263
|
+
// are visible in packaged builds (Electrobun agent.ts reads stderr).
|
|
1264
|
+
if (!elizaSource.includes("console.error(apiErrMsg)")) {
|
|
1265
|
+
console.error(
|
|
1266
|
+
"release-check: eliza.ts startApiServer catch block must use console.error(apiErrMsg) so errors are visible in packaged builds.",
|
|
1267
|
+
);
|
|
1268
|
+
process.exit(1);
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
// In server-only mode, a failed API server must be fatal.
|
|
1272
|
+
const catchIndex = elizaSource.indexOf("catch (apiErr)");
|
|
1273
|
+
if (catchIndex === -1) {
|
|
1274
|
+
console.error(
|
|
1275
|
+
"release-check: eliza.ts must have a catch (apiErr) block around startApiServer.",
|
|
1276
|
+
);
|
|
1277
|
+
process.exit(1);
|
|
1278
|
+
}
|
|
1279
|
+
const catchBlock = elizaSource.slice(
|
|
1280
|
+
catchIndex,
|
|
1281
|
+
elizaSource.indexOf("// ── Server-only mode", catchIndex),
|
|
1282
|
+
);
|
|
1283
|
+
if (
|
|
1284
|
+
!catchBlock.includes("opts?.serverOnly") ||
|
|
1285
|
+
!catchBlock.includes("process.exit(1)")
|
|
1286
|
+
) {
|
|
1287
|
+
console.error(
|
|
1288
|
+
"release-check: eliza.ts startApiServer catch block must call process.exit(1) when opts?.serverOnly is true.",
|
|
1289
|
+
);
|
|
1290
|
+
process.exit(1);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
function maybeValidateCdnAssets() {
|
|
1295
|
+
if (process.env.ELIZA_VALIDATE_CDN !== "1") {
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
execSync("node scripts/validate-cdn-assets.mjs", {
|
|
1300
|
+
stdio: "inherit",
|
|
1301
|
+
env: process.env,
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
function assertStaticAssetManifestIsCurrent() {
|
|
1306
|
+
const result = validateStaticAssetManifest(process.cwd());
|
|
1307
|
+
if (result.ok) {
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
console.error(
|
|
1312
|
+
`release-check: static asset manifest is ${result.reason}. Run node scripts/generate-static-asset-manifest.mjs.`,
|
|
1313
|
+
);
|
|
1314
|
+
console.error(` - ${result.manifestPath}`);
|
|
1315
|
+
process.exit(1);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
function assertHomepageReleaseDataUsesCurrentAssetRoot() {
|
|
1319
|
+
const releaseDataSource = readExistingReleaseCheckFile(
|
|
1320
|
+
"generated homepage release data",
|
|
1321
|
+
homepageReleaseDataPathCandidates,
|
|
1322
|
+
);
|
|
1323
|
+
|
|
1324
|
+
if (!releaseDataSource.includes("homepageAssetBaseUrl:")) {
|
|
1325
|
+
console.error(
|
|
1326
|
+
"release-check: generated homepage release data is missing homepageAssetBaseUrl.",
|
|
1327
|
+
);
|
|
1328
|
+
process.exit(1);
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
if (!releaseDataSource.includes("/apps/homepage/public/")) {
|
|
1332
|
+
console.error(
|
|
1333
|
+
"release-check: generated homepage release data must point homepageAssetBaseUrl at /apps/homepage/public/.",
|
|
1334
|
+
);
|
|
1335
|
+
process.exit(1);
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
if (releaseDataSource.includes("/apps/web/public/")) {
|
|
1339
|
+
console.error(
|
|
1340
|
+
"release-check: generated homepage release data still points at legacy /apps/web/public/. Regenerate it with node scripts/write-homepage-release-data.mjs.",
|
|
1341
|
+
);
|
|
1342
|
+
process.exit(1);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
function main() {
|
|
1347
|
+
assertReleaseWorkflowHasNotaryWrapper();
|
|
1348
|
+
assertElectrobunPrWorkflowExists();
|
|
1349
|
+
assertElectrobunConfigHasPostWrapSigner();
|
|
1350
|
+
assertMacArtifactStagerLooksCorrect();
|
|
1351
|
+
assertWindowsSmokeScriptHasLeadingParamBlock();
|
|
1352
|
+
assertWindowsInstallerProofScript();
|
|
1353
|
+
assertInnoBuildScriptHasTimeoutAndHeartbeat();
|
|
1354
|
+
assertInnoTemplateTargetsBundledLauncher();
|
|
1355
|
+
assertMacSmokeScriptLaunchesPackagedLauncherDirectly();
|
|
1356
|
+
assertServerDynamicHyperscapeImport();
|
|
1357
|
+
assertStartApiServerCatchBlockSafety();
|
|
1358
|
+
assertStaticAssetManifestIsCurrent();
|
|
1359
|
+
assertHomepageReleaseDataUsesCurrentAssetRoot();
|
|
1360
|
+
maybeValidateCdnAssets();
|
|
1361
|
+
assertBundledAgentOrchestratorInstallFix();
|
|
1362
|
+
assertOrchestratorVersionPinned();
|
|
1363
|
+
assertCloudAgentTemplateDependenciesUseWorkspace();
|
|
1364
|
+
assertAgentDependenciesAlignedWithRootPins();
|
|
1365
|
+
const localHotspots = findLocalPackHotspots();
|
|
1366
|
+
if (shouldSkipExactPackDryRun(localHotspots)) {
|
|
1367
|
+
runFastLocalPackCheck(localHotspots);
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
const results = runPackDry();
|
|
1371
|
+
const files = results.flatMap((entry) => entry.files ?? []);
|
|
1372
|
+
const packedPaths = files.map((file) => file.path);
|
|
1373
|
+
|
|
1374
|
+
const missing = requiredPaths.filter(
|
|
1375
|
+
(path) => !doesPackedOutputContainPath(path, packedPaths),
|
|
1376
|
+
);
|
|
1377
|
+
const forbidden = packedPaths.filter((path) =>
|
|
1378
|
+
forbiddenPrefixes.some((prefix) => path.startsWith(prefix)),
|
|
1379
|
+
);
|
|
1380
|
+
|
|
1381
|
+
if (missing.length > 0 || forbidden.length > 0) {
|
|
1382
|
+
if (missing.length > 0) {
|
|
1383
|
+
console.error("release-check: missing files in npm pack:");
|
|
1384
|
+
for (const path of missing) {
|
|
1385
|
+
console.error(` - ${path}`);
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
if (forbidden.length > 0) {
|
|
1389
|
+
console.error("release-check: forbidden files in npm pack:");
|
|
1390
|
+
for (const path of forbidden) {
|
|
1391
|
+
console.error(` - ${path}`);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
process.exit(1);
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
console.log("release-check: npm pack contents look OK.");
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {
|
|
1401
|
+
main();
|
|
1402
|
+
}
|