426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
642 lines
22 KiB
TypeScript
642 lines
22 KiB
TypeScript
/** Defines app-core vitest behavior for dashboard host and runtime integration. */
|
||
import { createRequire } from "node:module";
|
||
import path from "node:path";
|
||
import { fileURLToPath } from "node:url";
|
||
import { defineConfig } from "vitest/config";
|
||
|
||
const fileDir = path.dirname(fileURLToPath(import.meta.url));
|
||
const monorepoRoot = path.resolve(fileDir, "../..");
|
||
const appCoreSrc = path.join(fileDir, "src");
|
||
const agentSrc = path.join(monorepoRoot, "packages/agent/src");
|
||
const authSrc = path.join(monorepoRoot, "packages/auth/src");
|
||
const uiDir = path.join(monorepoRoot, "packages/ui");
|
||
const sharedSrc = path.join(monorepoRoot, "packages/shared/src");
|
||
const coreSrc = path.join(monorepoRoot, "packages/core/src");
|
||
const vaultSrc = path.join(monorepoRoot, "packages/vault/src");
|
||
const cloudRoutingSrc = path.join(monorepoRoot, "packages/cloud/routing/src");
|
||
const cloudSdkSrc = path.join(monorepoRoot, "packages/cloud/sdk/src");
|
||
const appLifeopsSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-personal-assistant/src",
|
||
);
|
||
const appTaskCoordinatorSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-task-coordinator/src",
|
||
);
|
||
const toVitePath = (value: string): string => value.replaceAll("\\", "/");
|
||
const pluginAppManagerSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-app-manager/src",
|
||
);
|
||
const appWalletSrc = path.join(monorepoRoot, "plugins/plugin-wallet-ui/src");
|
||
const pluginSqlSrc = path.join(monorepoRoot, "plugins/plugin-sql/src");
|
||
const pluginAgentSkillsSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-agent-skills/src",
|
||
);
|
||
const pluginBrowserBridgeSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-browser/src",
|
||
);
|
||
const pluginCapacitorBridgeSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-capacitor-bridge/src",
|
||
);
|
||
const pluginAnthropicRoot = path.join(monorepoRoot, "plugins/plugin-anthropic");
|
||
const pluginBackgroundRunnerSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-background-runner/src",
|
||
);
|
||
const pluginCommandsSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-commands/src",
|
||
);
|
||
const pluginComputerUseSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-computeruse/src",
|
||
);
|
||
const pluginCodingToolsSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-coding-tools/src",
|
||
);
|
||
const pluginDiscordRoot = path.join(monorepoRoot, "plugins/plugin-discord");
|
||
const pluginElizaCloudSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-elizacloud",
|
||
"src",
|
||
);
|
||
const pluginEdgeTtsSrc = path.join(monorepoRoot, "plugins/plugin-edge-tts");
|
||
const pluginIMessageSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-imessage/src",
|
||
);
|
||
const pluginLocalInferenceSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-local-inference/src",
|
||
);
|
||
const pluginMcpSrc = path.join(monorepoRoot, "plugins/plugin-mcp/src");
|
||
const pluginOllamaRoot = path.join(monorepoRoot, "plugins/plugin-ollama");
|
||
const pluginOpenAiSrc = path.join(monorepoRoot, "plugins/plugin-openai");
|
||
const pluginPdfSrc = path.join(monorepoRoot, "plugins/plugin-pdf");
|
||
const pluginRegistrySrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-registry/src",
|
||
);
|
||
const pluginSignalSrc = path.join(monorepoRoot, "plugins/plugin-signal/src");
|
||
const pluginShellRoot = path.join(monorepoRoot, "plugins/plugin-shell");
|
||
const pluginStreamingSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-streaming/src",
|
||
);
|
||
const pluginVideoSrc = path.join(monorepoRoot, "plugins/plugin-video/src");
|
||
const pluginWalletSrc = path.join(monorepoRoot, "plugins/plugin-wallet/src");
|
||
const pluginWhatsappRoot = path.join(monorepoRoot, "plugins/plugin-whatsapp");
|
||
const pluginAgentOrchestratorSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-agent-orchestrator/src",
|
||
);
|
||
const pluginBirdclawSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-birdclaw/src",
|
||
);
|
||
const pluginAppControlSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-app-control/src",
|
||
);
|
||
const pluginGitpathologistSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-gitpathologist/src",
|
||
);
|
||
const pluginGoogleSrc = path.join(monorepoRoot, "plugins/plugin-google/src");
|
||
const pluginPtyRoot = path.join(monorepoRoot, "plugins/plugin-pty");
|
||
const pluginVisionSrc = path.join(monorepoRoot, "plugins/plugin-vision/src");
|
||
const pluginRemoteManifestSrc = path.join(
|
||
monorepoRoot,
|
||
"packages/plugin-remote-manifest/src",
|
||
);
|
||
const pluginWorkerRuntimeSrc = path.join(
|
||
monorepoRoot,
|
||
"packages/plugin-worker-runtime/src",
|
||
);
|
||
const pluginWorkflowSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-workflow/src",
|
||
);
|
||
const pluginX402Src = path.join(monorepoRoot, "plugins/plugin-x402/src");
|
||
// Optional static plugins imported by
|
||
// packages/agent/src/runtime/optional-plugin-imports.generated.ts. The Windows
|
||
// CI app-and-cli shard runs vitest without a plugin build, so these must resolve
|
||
// to source here like every other package in OPTIONAL_PLUGIN_IMPORTERS —
|
||
// otherwise Vite fails the whole suite at `Failed to resolve entry for package`.
|
||
const pluginNativeFilesystemSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-native-filesystem/src",
|
||
);
|
||
const pluginSchedulingSrc = path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-scheduling/src",
|
||
);
|
||
const pluginInboxSrc = path.join(monorepoRoot, "plugins/plugin-inbox/src");
|
||
// Resolve react/react-dom from the location of this config file so the alias
|
||
// works whether react is hoisted to the monorepo root or installed locally.
|
||
// createRequire resolves through the normal Node resolution algorithm (walks up
|
||
// node_modules directories), so it finds the correct copy regardless of where
|
||
// the package manager decided to hoist it.
|
||
const _require = createRequire(import.meta.url);
|
||
const reactPkg = path.dirname(_require.resolve("react/package.json"));
|
||
const reactDomPkg = path.dirname(_require.resolve("react-dom/package.json"));
|
||
const includeLiveE2e = process.env.ELIZA_INCLUDE_LIVE_E2E === "1";
|
||
|
||
/**
|
||
* Real `react` / `react-dom` packages (not .d.ts stubs from tsconfig paths)
|
||
* so Vite can execute files that import from workspace apps under tests.
|
||
* Workspace `exports` and deep imports are mirrored here for Vitest’s resolver.
|
||
*/
|
||
export default defineConfig({
|
||
test: {
|
||
testTimeout: 120_000,
|
||
hookTimeout: 120_000,
|
||
maxWorkers: 1,
|
||
// Bootstrap-token tests spin up a real PGlite database + jose-signed
|
||
// RS256 key material per test, and have intermittently exited the
|
||
// vitest worker fork unexpectedly on CI (Worker exited unexpectedly /
|
||
// Worker forks emitted error). In Vitest 4 the former forks.singleFork
|
||
// setting is represented by maxWorkers: 1 plus isolate: false.
|
||
isolate: false,
|
||
server: { deps: { inline: [/@elizaos\//] } },
|
||
// Heavy browser e2e — install `puppeteer-core` / `playwright-core` in this package to run
|
||
exclude: [
|
||
"**/.git/**",
|
||
"**/node_modules/**",
|
||
"**/dist/**",
|
||
"**/*.e2e.test.{ts,tsx}",
|
||
"**/*.e2e.spec.{ts,tsx}",
|
||
"**/*.integration.test.{ts,tsx}",
|
||
// #9310 §E: the guarded *.live.test.ts suite (opt-in gated, self-skips)
|
||
// is invocable only in the post-merge lane, where run-all-tests.mjs
|
||
// prints a named skip accounting.
|
||
...(process.env.VITEST_LANE === "post-merge"
|
||
? []
|
||
: ["**/*.live.test.{ts,tsx}"]),
|
||
"**/*.live.e2e.test.{ts,tsx}",
|
||
"**/*.real.test.{ts,tsx}",
|
||
"**/*.real.e2e.test.{ts,tsx}",
|
||
"**/*.spec.{ts,tsx}",
|
||
"platforms/electrobun/**",
|
||
"scripts/run-mobile-build-policy.test.mjs",
|
||
"scripts/run-mobile-build-android-app-actions.test.mjs",
|
||
"scripts/aosp/compile-libllama-fused.test.mjs",
|
||
"scripts/mas-smoke.test.mjs",
|
||
// Uses Node.js built-in test runner (node:test), not vitest.
|
||
"scripts/mobile-auth-simulator-smoke-endstate.test.mjs",
|
||
"scripts/android-sms-gateway-template.test.mjs",
|
||
"scripts/stage-android-agent.test.mjs",
|
||
"scripts/stage-desktop-fused-lib-staleness.test.mjs",
|
||
"scripts/build-helpers/arm64-simd.test.mjs",
|
||
// Uses bun:test, not vitest.
|
||
"scripts/aosp/stage-default-models.test.mjs",
|
||
// Uses bun:test, not vitest.
|
||
"scripts/aosp/compile-libllama-zig-pin.test.mjs",
|
||
...(process.platform === "win32"
|
||
? [
|
||
// These suites fail ONLY on the GitHub-hosted windows-ci runner with
|
||
// a bare "SyntaxError: Invalid or unexpected token" at transform /
|
||
// collection time (each reports as a "0 test" failed suite). Every
|
||
// file is valid (`node --check` passes), byte-identical to develop
|
||
// (no BOM, no CRLF; content is not the trigger — the ones with zero
|
||
// non-ASCII bytes fail identically, and the two with a byte only
|
||
// carry an em-dash in a prose comment). Each passes on every Linux
|
||
// lane and locally on Windows under bun stable AND canary, both
|
||
// single-file and full-suite. Not reproducible off the CI runner →
|
||
// a windows-ci transform/environment anomaly, not a logic failure.
|
||
// Gated on Windows CI pending a root-cause that needs the runner
|
||
// itself; every one of these still runs on Linux.
|
||
"scripts/lib/apple-entitlement-audit.test.mjs",
|
||
"scripts/run-mobile-build-ios-engine-gate.test.mjs",
|
||
"scripts/run-mobile-build-android-cloud-strip.test.mjs",
|
||
"scripts/run-mobile-build-android-targets.test.mjs",
|
||
"scripts/run-mobile-build-ios-identity.test.mjs",
|
||
"scripts/run-mobile-build-plugin-manifest.test.mjs",
|
||
"scripts/voice-interactive.test.mjs",
|
||
"scripts/aosp/compile-libllama.test.mjs",
|
||
"test/scripts/mobile-auth-simulator-smoke.test.ts",
|
||
]
|
||
: []),
|
||
".claude/**",
|
||
"test/app/memory-relationships.real.e2e.test.ts",
|
||
"test/app/qa-checklist.real.e2e.test.ts",
|
||
"test/helpers/__tests__/live-agent-test.smoke.test.ts",
|
||
...(includeLiveE2e
|
||
? []
|
||
: [
|
||
"src/services/local-inference/engine.e2e.test.ts",
|
||
"test/live-agent/**/*.e2e.test.ts",
|
||
]),
|
||
],
|
||
},
|
||
resolve: {
|
||
alias: [
|
||
{
|
||
find: /^@elizaos\/app-core$/,
|
||
replacement: path.join(appCoreSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-core\/(.+)$/,
|
||
replacement: path.join(appCoreSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/agent$/,
|
||
replacement: path.join(agentSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/agent\/(.+)$/,
|
||
replacement: path.join(agentSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/auth$/,
|
||
replacement: path.join(authSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/auth\/(.+)$/,
|
||
replacement: path.join(authSrc, "$1"),
|
||
},
|
||
{ find: /^@elizaos\/ui$/, replacement: path.join(uiDir, "src/index.ts") },
|
||
{
|
||
find: /^@elizaos\/ui\/api$/,
|
||
replacement: path.join(uiDir, "src/api/index.ts"),
|
||
},
|
||
{ find: /^@elizaos\/ui\/(.+)$/, replacement: path.join(uiDir, "src/$1") },
|
||
{
|
||
find: /^@elizaos\/shared$/,
|
||
replacement: path.join(sharedSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/shared\/config$/,
|
||
replacement: path.join(sharedSrc, "config/types.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/shared\/(.+)$/,
|
||
replacement: path.join(sharedSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/core$/,
|
||
replacement: path.join(coreSrc, "index.node.ts"),
|
||
},
|
||
{ find: /^@elizaos\/core\/(.+)$/, replacement: path.join(coreSrc, "$1") },
|
||
{
|
||
find: /^@elizaos\/vault$/,
|
||
replacement: path.join(vaultSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/vault\/(.+)$/,
|
||
replacement: path.join(vaultSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/cloud-routing$/,
|
||
replacement: path.join(cloudRoutingSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/cloud-sdk$/,
|
||
replacement: path.join(cloudSdkSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-lifeops$/,
|
||
replacement: path.join(appLifeopsSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-personal-assistant$/,
|
||
replacement: path.join(appLifeopsSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-lifeops\/selfcontrol$/,
|
||
replacement: path.join(
|
||
monorepoRoot,
|
||
"plugins/plugin-personal-assistant/src/website-blocker/public.ts",
|
||
),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-lifeops\/(.+)$/,
|
||
replacement: path.join(appLifeopsSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-wallet$/,
|
||
replacement: path.join(appWalletSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-wallet\/ui$/,
|
||
replacement: path.join(appWalletSrc, "ui.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-wallet\/(.+)$/,
|
||
replacement: path.join(appWalletSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-sql$/,
|
||
replacement: path.join(pluginSqlSrc, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-sql\/(.+)$/,
|
||
replacement: path.join(pluginSqlSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-agent-skills$/,
|
||
replacement: path.join(pluginAgentSkillsSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-agent-skills\/(.+)$/,
|
||
replacement: path.join(pluginAgentSkillsSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-browser$/,
|
||
replacement: path.join(pluginBrowserBridgeSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-browser\/(.+)$/,
|
||
replacement: path.join(pluginBrowserBridgeSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-anthropic$/,
|
||
replacement: path.join(pluginAnthropicRoot, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-anthropic\/(.+)$/,
|
||
replacement: path.join(pluginAnthropicRoot, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-app-manager$/,
|
||
replacement: path.join(pluginAppManagerSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-app-manager\/(.+)$/,
|
||
replacement: path.join(pluginAppManagerSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-task-coordinator$/,
|
||
replacement: toVitePath(path.join(appTaskCoordinatorSrc, "index.ts")),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-task-coordinator\/(.+)$/,
|
||
replacement: `${toVitePath(appTaskCoordinatorSrc)}/$1`,
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-capacitor-bridge$/,
|
||
replacement: path.join(pluginCapacitorBridgeSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-background-runner$/,
|
||
replacement: path.join(pluginBackgroundRunnerSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-native-filesystem$/,
|
||
replacement: path.join(pluginNativeFilesystemSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-native-filesystem\/(.+)$/,
|
||
replacement: path.join(pluginNativeFilesystemSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-scheduling$/,
|
||
replacement: path.join(pluginSchedulingSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-scheduling\/(.+)$/,
|
||
replacement: path.join(pluginSchedulingSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-inbox$/,
|
||
replacement: path.join(pluginInboxSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-inbox\/(.+)$/,
|
||
replacement: path.join(pluginInboxSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-commands$/,
|
||
replacement: path.join(pluginCommandsSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-computeruse$/,
|
||
replacement: path.join(pluginComputerUseSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-coding-tools$/,
|
||
replacement: path.join(pluginCodingToolsSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-coding-tools\/(.+)$/,
|
||
replacement: path.join(pluginCodingToolsSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-discord$/,
|
||
replacement: path.join(pluginDiscordRoot, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-elizacloud$/,
|
||
replacement: path.join(pluginElizaCloudSrc, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-elizacloud\/(.+)$/,
|
||
replacement: path.join(pluginElizaCloudSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-openai$/,
|
||
replacement: path.join(pluginOpenAiSrc, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-openai\/(.+)$/,
|
||
replacement: path.join(pluginOpenAiSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-imessage$/,
|
||
replacement: path.join(pluginIMessageSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-imessage\/(.+)$/,
|
||
replacement: path.join(pluginIMessageSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-local-inference$/,
|
||
replacement: path.join(pluginLocalInferenceSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-local-inference\/runtime$/,
|
||
replacement: path.join(pluginLocalInferenceSrc, "runtime", "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-local-inference\/routes$/,
|
||
replacement: path.join(pluginLocalInferenceSrc, "routes", "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-local-inference\/services$/,
|
||
replacement: path.join(pluginLocalInferenceSrc, "services", "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-mcp$/,
|
||
replacement: path.join(pluginMcpSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-ollama$/,
|
||
replacement: path.join(pluginOllamaRoot, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-ollama\/(.+)$/,
|
||
replacement: path.join(pluginOllamaRoot, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-pdf$/,
|
||
replacement: path.join(pluginPdfSrc, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-pdf\/(.+)$/,
|
||
replacement: path.join(pluginPdfSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-registry$/,
|
||
replacement: path.join(pluginRegistrySrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-registry\/(.+)$/,
|
||
replacement: path.join(pluginRegistrySrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-signal$/,
|
||
replacement: path.join(pluginSignalSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-shell$/,
|
||
replacement: path.join(pluginShellRoot, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-shell\/(.+)$/,
|
||
replacement: path.join(pluginShellRoot, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-streaming$/,
|
||
replacement: path.join(pluginStreamingSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-video$/,
|
||
replacement: path.join(pluginVideoSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-wallet$/,
|
||
replacement: path.join(pluginWalletSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-wallet\/(.+)$/,
|
||
replacement: path.join(pluginWalletSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-whatsapp$/,
|
||
replacement: path.join(pluginWhatsappRoot, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-agent-orchestrator$/,
|
||
replacement: path.join(pluginAgentOrchestratorSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-birdclaw$/,
|
||
replacement: path.join(pluginBirdclawSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-birdclaw\/(.+)$/,
|
||
replacement: path.join(pluginBirdclawSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-app-control$/,
|
||
replacement: path.join(pluginAppControlSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-gitpathologist$/,
|
||
replacement: path.join(pluginGitpathologistSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-google$/,
|
||
replacement: path.join(pluginGoogleSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-pty$/,
|
||
replacement: path.join(pluginPtyRoot, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-vision$/,
|
||
replacement: path.join(pluginVisionSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-agent-orchestrator\/(.+)$/,
|
||
replacement: path.join(pluginAgentOrchestratorSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-remote-manifest$/,
|
||
replacement: path.join(pluginRemoteManifestSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-remote-manifest\/(.+)$/,
|
||
replacement: path.join(pluginRemoteManifestSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-worker-runtime$/,
|
||
replacement: path.join(pluginWorkerRuntimeSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-worker-runtime\/(.+)$/,
|
||
replacement: path.join(pluginWorkerRuntimeSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-workflow$/,
|
||
replacement: path.join(pluginWorkflowSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-x402$/,
|
||
replacement: path.join(pluginX402Src, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-browser$/,
|
||
replacement: path.join(pluginBrowserBridgeSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-browser\/(.+)$/,
|
||
replacement: path.join(pluginBrowserBridgeSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-edge-tts\/node$/,
|
||
replacement: path.join(pluginEdgeTtsSrc, "index.node.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-edge-tts$/,
|
||
replacement: path.join(pluginEdgeTtsSrc, "src/index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/plugin-edge-tts\/(.+)$/,
|
||
replacement: path.join(pluginEdgeTtsSrc, "$1"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-task-coordinator$/,
|
||
replacement: path.join(appTaskCoordinatorSrc, "index.ts"),
|
||
},
|
||
{
|
||
find: /^@elizaos\/app-task-coordinator\/(.+)$/,
|
||
replacement: path.join(appTaskCoordinatorSrc, "$1"),
|
||
},
|
||
{ find: "react", replacement: reactPkg },
|
||
{
|
||
find: "react/jsx-runtime",
|
||
replacement: path.join(reactPkg, "jsx-runtime.js"),
|
||
},
|
||
{
|
||
find: "react/jsx-dev-runtime",
|
||
replacement: path.join(reactPkg, "jsx-dev-runtime.js"),
|
||
},
|
||
{ find: "react-dom", replacement: reactDomPkg },
|
||
{
|
||
find: "react-dom/client",
|
||
replacement: path.join(reactDomPkg, "client.js"),
|
||
},
|
||
{
|
||
find: "node-llama-cpp",
|
||
replacement: path.join(fileDir, "test-stubs/node-llama-cpp.ts"),
|
||
},
|
||
],
|
||
},
|
||
});
|