chore: import upstream snapshot with attribution
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

This commit is contained in:
wehub-resource-sync
2026-07-13 12:43:05 +08:00
commit 426e9eeabd
41828 changed files with 9656266 additions and 0 deletions
@@ -0,0 +1,13 @@
diff --git a/android/build.gradle b/android/build.gradle
index 4e5e22ca45285da9d45827472a09dd1d40434027..9726db1afa375c82b54c5dfae7a47685cd03f5ae 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -22,7 +22,7 @@ buildscript {
}
apply plugin: 'com.android.library'
-apply plugin: 'kotlin-android'
+apply plugin: 'org.jetbrains.kotlin.android'
android {
namespace = "com.capacitorjs.barcodescanner"
+30
View File
@@ -0,0 +1,30 @@
diff --git a/Capacitor/Capacitor/CapacitorBridge.swift b/Capacitor/Capacitor/CapacitorBridge.swift
index 7b8b9b99dc32ae9f9da78854789e4f8a6370b758..ec312dc5314e9c3c9d4a5a875eddcf59d11399f8 100644
--- a/Capacitor/Capacitor/CapacitorBridge.swift
+++ b/Capacitor/Capacitor/CapacitorBridge.swift
@@ -271,10 +271,23 @@ open class CapacitorBridge: NSObject, CAPBridgeProtocol {
registerCordovaPlugins()
} else {
observers.append(NotificationCenter.default.addObserver(forName: UIApplication.willEnterForegroundNotification, object: nil, queue: OperationQueue.main) { [weak self] (_) in
- self?.triggerDocumentJSEvent(eventName: "resume")
+ // Skip until the initial page load has finished: with a UIScene-based
+ // lifecycle this notification also fires at cold launch, and evaluating
+ // `window.Capacitor.triggerEvent('resume', 'document')` before the
+ // Capacitor runtime is injected throws
+ // WKError.javaScriptExceptionOccurred ("JS Eval error").
+ guard let self = self, case .subsequentLoad = self.webViewDelegationHandler.webViewLoadingState else {
+ return
+ }
+ self.triggerDocumentJSEvent(eventName: "resume")
})
observers.append(NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: OperationQueue.main) { [weak self] (_) in
- self?.triggerDocumentJSEvent(eventName: "pause")
+ // Same guard as "resume": there is no page state to pause before the
+ // initial load has completed, and the eval would throw.
+ guard let self = self, case .subsequentLoad = self.webViewDelegationHandler.webViewLoadingState else {
+ return
+ }
+ self.triggerDocumentJSEvent(eventName: "pause")
})
}
}
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 8ddd2051b09ac50a5fa53eb3a6075cba9ca9f36e..c1063f88f4d5c960fac52cc1ce8643bf14fc3516 100644
--- a/package.json
+++ b/package.json
@@ -45,7 +45,7 @@
},
"license": "MIT",
"peerDependencies": {
- "typescript": "5.8.3"
+ "typescript": ">=5.8.3"
},
"devDependencies": {
"esbuild": "^0.25.5",
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 8ddd2051b09ac50a5fa53eb3a6075cba9ca9f36e..c1063f88f4d5c960fac52cc1ce8643bf14fc3516 100644
--- a/package.json
+++ b/package.json
@@ -45,7 +45,7 @@
},
"license": "MIT",
"peerDependencies": {
- "typescript": "5.8.3"
+ "typescript": ">=5.8.3"
},
"devDependencies": {
"esbuild": "^0.25.5",
+13
View File
@@ -0,0 +1,13 @@
diff --git a/dist/web3/token-util.js b/dist/web3/token-util.js
index c482fa7..fb06246 100644
--- a/dist/web3/token-util.js
+++ b/dist/web3/token-util.js
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.TokenUtil = void 0;
const spl_token_1 = require("@solana/spl-token");
const web3_js_1 = require("@solana/web3.js");
-const sha256_1 = require("@noble/hashes/sha256");
+const sha256_1 = require("@noble/hashes/sha2");
const tiny_invariant_1 = __importDefault(require("tiny-invariant"));
const math_1 = require("../math");
const web3_1 = require("../web3");
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index b7e574f1d66ae119f61fb69ef2ede376f19e13eb..b61754dbc5ee1e7f6739f87be2908d548aead1a7 100644
--- a/package.json
+++ b/package.json
@@ -63,7 +63,7 @@
"@solana/rpc-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index d283994bc44e7c452ce49d559ac5d093d4c9b969..b8d12e111fee8099bf71e0062b80b8be7fad1df7 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@solana/nominal-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index da6c48483c431274835c3fe6dc41e7202471d833..0b9c6fae0ea45881ce62a36c34c983bfd8fc1041 100644
--- a/package.json
+++ b/package.json
@@ -58,7 +58,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 03ae858bfb657d8158987853c35a434856ed8db2..68df1fd692efe6d583b7319682ca514786fd6463 100644
--- a/package.json
+++ b/package.json
@@ -58,7 +58,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 9fd1472158a4489a4fb2233ffc69287bc35f11b4..68863f7e0f193f760df0b6d353a947c629eb1fd5 100644
--- a/package.json
+++ b/package.json
@@ -60,7 +60,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 121f0f18ac983ab3ea41dfdab393c8f45719217a..fb927dc19f8c72fb1853366d62c4dbb3bd3619fd 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,7 @@
"@solana/codecs-core": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index f01e91a6f8614eb0d5102a9f96b1c0fe7bbd2099..7c79ee2ac70c5a01a7ab64a9de8cdc8f454414fb 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
},
"peerDependencies": {
"fastestsmallesttextencoderdecoder": "^1.0.22",
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"fastestsmallesttextencoderdecoder": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index b1c646baea917b8e73982a5731d4ec785bd0274a..a2ff1a43c8eb1f950e33908cbada20addb0f4f4e 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@solana/options": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 25228f66f54442b816a170645bc3b2c9b44d4e20..41ab8c17cfbd69c5bd317e189f11d985a7bb3142 100644
--- a/package.json
+++ b/package.json
@@ -60,7 +60,7 @@
"commander": "14.0.2"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 549b4658b680bb3db081ed92f502382e574bdaa9..233f38d39ffaa1453e8c6959e97d2f0041cbc90f 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 7d1d123f905b12aa71e056dbba50af84b92eb570..f5f884fe4d8bc8ce971c5017e33fffcc85fa7aad 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 4cd2101f9ff9bb2e5a3118fb1ea5ee4478301d92..13041722ad97c5aab974177cdde430cd5e8d3a01 100644
--- a/package.json
+++ b/package.json
@@ -63,7 +63,7 @@
"@solana/transactions": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index ab713f28632833016b0fa5933210836b3c1cab38..114acd2cd82126813b22f6473384bdff0cdd44aa 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 7fa784512d703c0e49f91a82e5484066a78568d3..e4638b584f5adc37bb8b99c2bfcfc57314b64d72 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@solana/nominal-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 3d2ce767fa087e104c1476fd507bd10c6ae23017..d5767bfc5e60af61026c71b773ec495ec6573faa 100644
--- a/package.json
+++ b/package.json
@@ -82,7 +82,7 @@
"@solana/transaction-messages": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 1aa72f468830751a40628fe119f0e3ec83de78e9..04a8bd8fa58d4ef6689f8293606299e1fd87c7a9 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 40a3314b4dc7b72b8697e30b8924d41c1ba0ccf9..730bbf80d2079a375bf2da502f3ebca78c0510e2 100644
--- a/package.json
+++ b/package.json
@@ -65,7 +65,7 @@
"@solana/nominal-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 6aadc63d0c7bcef4028c82d1d0307487c61ba5dc..f0546d8cba6512aa7375c49159da862d476e8757 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index c6d71965002a4539ad13ae447078aab48ceaa792..f66158beca00be1154a5b5373958a0865d77e641 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 9cf30572d77222aba9e6749ea50922dfcd654d88..c1f71bfd169b6894918998060b351c8430758a3e 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 08ca12e81e35a8b3f3a99c3a9013ae09a2fc4c2f..8022cc8f2c23b1eac38ec8e1811c330fae0b4e41 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index bf2aec0fc04d3763204728fc5d519a7d916de3b9..0da8551d59861be2e05b1b454d71622478e96e8f 100644
--- a/package.json
+++ b/package.json
@@ -68,7 +68,7 @@
"@solana/transactions": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 1f38e573bcf3ce1b5aae6eff3e5ef5fbbd07f7e4..d04e7bd79754043ffe32b6fe5b527a26c4892b8d 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 8e80ab5ec4a2ad635eea7a98f50bf5750304eda2..8b10c491e795d0c8ec2f2cc56fa5458e28b01c32 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"maintained node versions"
],
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 22918aca25a32df4407de888f2acf6a06bb5f54f..a390bc63f941d1d68b04a4d58276dc63e20730b1 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 86666e52fde527404d2e19be39c467a690bed98d..771d23d4c8da640dc39cd90759c563a0ef03ec7e 100644
--- a/package.json
+++ b/package.json
@@ -64,7 +64,7 @@
"@solana/transactions": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index d1e26986b822d806c7791ab0379a49b24aa938f8..f7cd743261e705622e8cd19c30289db38083f147 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@solana/rpc-subscriptions-spec": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index d35af9f5cee090c3a78b2982c7a889352a305c96..90641daad01a3b5016e50fa786bfcfba38566b86 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"@solana/subscribable": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 61433d99070397921123de82f10d35727579b8d3..f46f2063f0dc0f470439ebf59f92c77994457cb9 100644
--- a/package.json
+++ b/package.json
@@ -68,7 +68,7 @@
"@solana/rpc-transformers": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 3225586f230926f390b819310c72102e2326dd84..7d4dca7701f90dbdcb699876bdd83c40cb06558b 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@solana/nominal-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 39f2032e86024084156aca20102a29218407a69e..a5f392f6a6326926ada9ba0e1c54081a5840318c 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"@solana/rpc-spec-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 950c882484d92128a27e876fcb524bcfe8fecab5..5045ef9e3fd5108765e099c0d165c4209c9c5ccd 100644
--- a/package.json
+++ b/package.json
@@ -63,7 +63,7 @@
"@solana/nominal-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 99f78c6db9b85b02e76cbb2f21ac48e21e569d97..e068c249359b7f6b5f3a6af6243e5c224ddf2566 100644
--- a/package.json
+++ b/package.json
@@ -66,7 +66,7 @@
"@solana/rpc-transport-http": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 17f4611b4887d2754a661152c99a83c33eff14dc..b80804db25b276d344d9eb7897e5da8bd09373ef 100644
--- a/package.json
+++ b/package.json
@@ -66,7 +66,7 @@
"@solana/offchain-messages": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 3bde5cbccdd0873f0525571930b492ce67178815..e7ad12480a032f4f81e457dba3d23c1cef14a6df 100644
--- a/package.json
+++ b/package.json
@@ -58,7 +58,7 @@
"@solana/errors": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 205b5f0b02db0770eb80e56618ceefddab4b1d43..c1be55f26163b13e19ebf9addcf0de681950c9e7 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"@solana/accounts": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 0cfbd6445843f82b851628601cdb49acd4a4a471..884014b6f2e51e799ef5a1bcfc5e2cd0c24c4a93 100644
--- a/package.json
+++ b/package.json
@@ -67,7 +67,7 @@
"@solana/transactions": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 66cce034c20771b6730c7ce1a6ad371fa82c7ed5..1658db9ce968d5046e9a230b9e68a5baa12108bb 100644
--- a/package.json
+++ b/package.json
@@ -66,7 +66,7 @@
"@solana/nominal-types": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -0,0 +1,13 @@
diff --git a/package.json b/package.json
index 4a754521ad76758872c42f17e7c4b8c4d3d9379a..491407a6871bbfdb982aa7194e5fdb6e505f0432 100644
--- a/package.json
+++ b/package.json
@@ -69,7 +69,7 @@
"@solana/transaction-messages": "5.5.1"
},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/dist/node.js b/dist/node.js
index e1fda0aa6c..1fdcaf3005 100644
--- a/dist/node.js
+++ b/dist/node.js
@@ -1,7 +1,7 @@
import { a as cleanUrl, c as createManualModuleSource } from './chunk-utils.js';
import { a as automockModule, e as esmWalker } from './chunk-automock.js';
import MagicString from 'magic-string';
-import { createFilter } from 'vite';
+import { createFilter } from '@elizaos/vitest-vite';
import { h as hoistMocks } from './chunk-hoistMocks.js';
import { readFile } from 'node:fs/promises';
import { join } from 'node:path/posix';
+51
View File
@@ -0,0 +1,51 @@
b0b53da3a1cffec57fcd52fbb86c6b7126f96582abe4eaa62eb25221a859339e ./@capacitor%2Fbarcode-scanner@3.0.2.patch
8bb9238b74638b2c4e4d8d6c47743d41809c001b620108adb811a3ba1b60d7ab ./@capacitor%2Fios@8.4.1.patch
4b6411a581bd77d73166fd05e458e8fe1bd6ab6fb6b57a9bdc5e522fe98f424c ./@farcaster%2Fquick-auth@0.0.6.patch
4b6411a581bd77d73166fd05e458e8fe1bd6ab6fb6b57a9bdc5e522fe98f424c ./@farcaster%2Fquick-auth@0.0.8.patch
b220b98ec8bed0731d240ee68752e7ca69bd5a8adfed2c78944a6df2099d1cd7 ./@orca-so%2Fcommon-sdk@0.7.0.patch
57547e93136fd42eabd563fc31b5387a4879c8e65eb45e4c4d7511c1dda725cb ./@solana%2Faccounts@5.5.1.patch
cf3a12de77d0f6f4d2d3511a3b87de1c24d399cf98606e2e334598191a9c956b ./@solana%2Faddresses@5.5.1.patch
314ba3b8eb8f9852741e2e0beb21b9235680ed49cd7c97ef8a88d24bac4c2531 ./@solana%2Fassertions@5.5.1.patch
23d8a6d3c5c6cb961160ba3fa5714c887b01a24a8869c72a936e2b5a17f6e981 ./@solana%2Fcodecs-core@5.5.1.patch
5ec688c8021faf1da868869983c2b43e03e163ddee60fa9fe545c06b301c2616 ./@solana%2Fcodecs-data-structures@5.5.1.patch
63e2b0cab1ee35fb8961ccff5b3501de8d64b86f00d8dda72c2c32da83fec6db ./@solana%2Fcodecs-numbers@5.5.1.patch
b8921093c2b9fbd520cf8b9fe27bfe512a5fbfa85dac66c4b898bbbe09e41af7 ./@solana%2Fcodecs-strings@5.5.1.patch
ddc6d14665e11201c49db4a211aeb4581b9bc81d7c8a1561a77897f48e656c09 ./@solana%2Fcodecs@5.5.1.patch
e1b85f9ad6a0b21b0d9c7c6a661265c848647a331552d4fd76fd27b4e9512605 ./@solana%2Ferrors@5.5.1.patch
74454ed473180fbf8584acc2554ab97c856d69c3a2219a9cf9d1649bfea62871 ./@solana%2Ffast-stable-stringify@5.5.1.patch
1ee916a61ac93064d29dfd3d2f6c076a9c97339f1ad00a686c09211b57b8ed5a ./@solana%2Ffunctional@5.5.1.patch
6a27646e4a50451ff6e3da713746cbca2490726ac61ed7096cb7dd6ac22c1ffd ./@solana%2Finstruction-plans@5.5.1.patch
3a88f921b841f895ff8838aff6295c7c0ff30b11bb822615391d2cb7aac71c61 ./@solana%2Finstructions@5.5.1.patch
bb332667177e08e6b41f37e65ddcfe7567ea5789350d76021a4719583f7f2864 ./@solana%2Fkeys@5.5.1.patch
97868dc91dd81727a06df4763ab69721b86861b12471f99b8b2700154c450234 ./@solana%2Fkit@5.5.1.patch
5767fb8e5e054c20cd70cb8db2319fe5856f363c6f23bcf7da7af5c41b686600 ./@solana%2Fnominal-types@5.5.1.patch
d7f0d5cbe01930a4856a24bb790ffcd6851001a242c033fb84c7df282f72af53 ./@solana%2Foffchain-messages@5.5.1.patch
ab48642606a62f296b59757754600e8f7be3df3d61a5d6692495c330f623476f ./@solana%2Foptions@5.5.1.patch
162d65030d452c4db2283c5f17f88df09d6257771a9fd6b2c2c6afa4e63b104e ./@solana%2Fplugin-core@5.5.1.patch
089b90ea9c9d972d4ed13893578cb58a60686b7fcadcb96a37f9ad36eb3ed76c ./@solana%2Fprograms@5.5.1.patch
a73c4509902b9fc732034afbc9a8b01a633b4de5ad1811bc830b261006077ad9 ./@solana%2Fpromises@5.5.1.patch
d80c0e4e9d100deca59531add0c1128b29c7e33b8bb75fbe851115ad983e1c53 ./@solana%2Frpc-api@5.5.1.patch
229c6ab8026ddea38dcfc71d003abf43addbbcf71d881d7dd7b5200569d5a8e1 ./@solana%2Frpc-parsed-types@5.5.1.patch
4a10c3dbcfe4a7e9ff239ce3c557f138b6a5b3f555c02e85141b30cacb8e8c19 ./@solana%2Frpc-spec-types@5.5.1.patch
9da88f22c2389ca43bfde10ac06dc4857c5233ad567e07fbb72682d1d50518bf ./@solana%2Frpc-spec@5.5.1.patch
dc1af16ba39ded2c799f1ea74b9b3bf56db99f7c529c365063969f35067d2f7b ./@solana%2Frpc-subscriptions-api@5.5.1.patch
06313fe9d4203ae204c721567986bd4347638a37bfac496533e8e8cd4f8a1327 ./@solana%2Frpc-subscriptions-channel-websocket@5.5.1.patch
30974b21ff04760dacdf7c2cbf0f3c40ad5a4695cc7ba9114efeace8f57e7325 ./@solana%2Frpc-subscriptions-spec@5.5.1.patch
d3d6ed1cbb4e6372be88d51a3002a00bae390d9c0a22e83c10184044dbb3ab41 ./@solana%2Frpc-subscriptions@5.5.1.patch
d648611c2fce504ceed6dbba517481d7153090ebf3d87af2020908fea784e257 ./@solana%2Frpc-transformers@5.5.1.patch
cde9142f2a9f11cd70fc8b9c6a1b1dee2dc57d7c7c6110dab968bde5bc172e5f ./@solana%2Frpc-transport-http@5.5.1.patch
b591448e5d2b74e7a355ec9453af4cab6b283b2568ac167e8f61c7d77ec2ad7f ./@solana%2Frpc-types@5.5.1.patch
e6fd4eb64930a6ed2032395c00ca29a61baa047e33b1f2510e67ee10578adf10 ./@solana%2Frpc@5.5.1.patch
ded0e0056445e58127e85595b60e1673e2fa77b2e4a55cad42f37dc305d49937 ./@solana%2Fsigners@5.5.1.patch
1d70033f1cd5a3e81b770e173fe06060da540b5ad5e711edd9a3500d13bc140c ./@solana%2Fsubscribable@5.5.1.patch
1ecf570ef27d23d25ea3c1ef14ab967680af695b2721b3d9874eae6009e61028 ./@solana%2Fsysvars@5.5.1.patch
eb1e6558a98efff8652869c24268810f5ed63a177dc33e797a8a628706744574 ./@solana%2Ftransaction-confirmation@5.5.1.patch
99fb0f0123666c66fc0f540c2c6bb2475511e2d7d7895d229847fc39396ab681 ./@solana%2Ftransaction-messages@5.5.1.patch
54d113ce8bf872cc56f25582cbe29c0b4e524327f8e6560dfd1e3b9f3a18ba79 ./@solana%2Ftransactions@5.5.1.patch
720037528b28e50ca0ceeda62099f2384a27a658457c210259aa5791dc75cddb ./@vitest%2Fmocker@4.1.5.patch
fa9033e52dfdaa941f137a52504117b0b5405490696a007d6fd8bab807a8dfea ./bigint-buffer@1.1.5.patch
314b2515247e1b93a4109e6b8726c56c4f2f7204d436a374dd423ecbfa8a17a2 ./electrobun@1.18.1.patch
fe6846e573ce11b5d20319749acebafef1ad1f7fc502c13878159e5607396b26 ./llama-cpp-capacitor@0.1.5.patch
c8536e56a0e84b373be54656c659db6b32065753503f9d60ac781b0709653037 ./telegraf@4.16.3.patch
8ad81f17da40044c79bea7d63f64740bf6c066384fdc5ed10c34d3d70858b0b7 ./tsup@8.5.1.patch
78b03448d1d42393e6073c3945ff7a0ee4c8167f3c5ee97559e80f1321626ddc ./vitest@4.1.5.patch
+20
View File
@@ -0,0 +1,20 @@
diff --git a/dist/node.js b/dist/node.js
index 513168c89e387668a79b6beb109587b3eb41a7d0..2ff3562c29b15af62c1ed26ce29bcfbf3b610238 100644
--- a/dist/node.js
+++ b/dist/node.js
@@ -4,7 +4,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
let converter;
{
try {
- converter = require('bindings')('bigint_buffer');
+ // Bun's NAPI loader HARD-CRASHES the process when it loads this package's
+ // prebuilt native binary (it aborts instead of throwing), so the catch
+ // below never runs and the whole agent dies on import. Skip the native
+ // module under Bun and use the pure-JS implementation; native is still
+ // used on Node, where it loads fine.
+ if (typeof Bun === 'undefined') {
+ converter = require('bindings')('bigint_buffer');
+ }
}
catch (e) {
console.warn('bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)');
+13
View File
@@ -0,0 +1,13 @@
diff --git a/src/cli/package.json b/src/cli/package.json
index c1a5327280b3c88ab6b14e7629838116b93066a0..68486adbaceb35b75f60ddc7da8a966daed5054a 100644
--- a/src/cli/package.json
+++ b/src/cli/package.json
@@ -4,7 +4,7 @@
"type": "module",
"devDependencies": {},
"peerDependencies": {
- "typescript": "^5.0.0"
+ "typescript": ">=5.0.0"
},
"dependencies": {},
"trustedDependencies": []
+461
View File
@@ -0,0 +1,461 @@
diff --git a/android/build.gradle b/android/build.gradle
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -5,6 +5,44 @@
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
}
+def resolveElizaRepoRoot = { ->
+ return rootProject.projectDir.toPath().resolve('../../..').normalize().toFile().absolutePath
+}
+
+// Per-ABI resolver for the MTP cross-compile output produced by
+// `packages/app-core/scripts/build-llama-cpp-mtp.mjs` and
+// `packages/app-core/scripts/aosp/compile-libllama.mjs`. Each ABI has
+// its own gradle property (`eliza.mtp.android.libdir.<abi>`) and env
+// var (`ELIZA_MTP_ANDROID_LIBDIR_<ABI>`). For arm64-v8a the legacy
+// unsuffixed names are still honored for backwards compatibility.
+// riscv64 has no Vulkan path yet (Wave 2 ships CPU-only), so only the
+// `cpu` backend is searched on that ABI.
+def resolveElizaMtpAndroidLibDir = { String abi ->
+ def propSuffix = abi == 'arm64-v8a' ? '' : ".${abi}"
+ def envSuffix = abi == 'arm64-v8a' ? '' : "_${abi.replace('-', '_').toUpperCase()}"
+ def fromProp = project.findProperty("eliza.mtp.android.libdir${propSuffix}")
+ if (fromProp) return fromProp.toString()
+ def fromEnv = System.getenv("ELIZA_MTP_ANDROID_LIBDIR${envSuffix}")
+ if (fromEnv) return fromEnv
+ def stateDir = System.getenv('ELIZA_STATE_DIR') ?: "${System.getProperty('user.home')}/.eliza"
+ def abiToken = [
+ 'arm64-v8a': 'android-arm64',
+ 'x86_64' : 'android-x86_64',
+ 'riscv64' : 'android-riscv64',
+ ][abi]
+ if (abiToken == null) return ''
+ def backends = abi == 'riscv64' ? ['cpu'] : ['vulkan', 'cpu']
+ def candidates = backends.collect { backend ->
+ "${stateDir}/local-inference/bin/mtp/${abiToken}-${backend}"
+ }
+ return candidates.find { new File(it).isDirectory() } ?: ''
+}
+
+def resolveElizaSkipMtpAndroidLib = { ->
+ return project.findProperty('elizaSkipForkLlamaLib') == 'true' ||
+ System.getenv('ELIZA_ANDROID_SKIP_FORK_LLAMA_LIB') == '1'
+}
+
buildscript {
repositories {
google()
@@ -26,12 +64,21 @@
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
-
+
ndk {
- abiFilters 'arm64-v8a'
+ abiFilters 'arm64-v8a', 'riscv64'
+ }
+
+ externalNativeBuild {
+ cmake {
+ arguments "-DELIZA_REPO_ROOT=${resolveElizaRepoRoot()}",
+ "-DELIZA_MTP_ANDROID_LIBDIR_ARM64_V8A=${resolveElizaMtpAndroidLibDir('arm64-v8a')}",
+ "-DELIZA_MTP_ANDROID_LIBDIR_RISCV64=${resolveElizaMtpAndroidLibDir('riscv64')}",
+ "-DELIZA_SKIP_MTP_ANDROID_LIB=${resolveElizaSkipMtpAndroidLib() ? 'ON' : 'OFF'}"
+ }
}
}
-
+
externalNativeBuild {
cmake {
path "src/main/CMakeLists.txt"
@@ -40,23 +87,23 @@
ndkVersion = "29.0.13113456"
}
}
-
+
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
-
+
lintOptions {
abortOnError = false
}
-
+
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
-
+
sourceSets {
main {
java {
@@ -64,13 +111,6 @@
}
}
}
-
- // Disable clean tasks that might cause issues
- tasks.whenTaskAdded { task ->
- if (task.name.contains('Clean') && task.name.contains('Debug')) {
- task.enabled = false
- }
- }
}
repositories {
diff --git a/android/src/main/CMakeLists.txt b/android/src/main/CMakeLists.txt
--- a/android/src/main/CMakeLists.txt
+++ b/android/src/main/CMakeLists.txt
@@ -1,131 +1,157 @@
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.22)
-project(llama-cpp)
+project(llama-cpp-capacitor-eliza-mtp)
set(CMAKE_CXX_STANDARD 17)
-set(LLAMACPP_LIB_DIR ${CMAKE_SOURCE_DIR}/../../../cpp)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
-include_directories(
- ${LLAMACPP_LIB_DIR}
- ${LLAMACPP_LIB_DIR}/ggml-cpu
- ${LLAMACPP_LIB_DIR}/tools/mtmd
-)
+option(ELIZA_SKIP_MTP_ANDROID_LIB "Build a no-op JNI library for Android smoke builds without MTP libs" OFF)
+
+find_library(LOG_LIB log)
+find_library(ANDROID_LIB android)
+
+if(ELIZA_SKIP_MTP_ANDROID_LIB)
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/eliza-mtp-smoke.cpp" "extern \"C\" int eliza_mtp_smoke() { return 0; }\n")
+ if(ANDROID_ABI STREQUAL "riscv64")
+ set(ELIZA_SMOKE_OUTPUT_NAME "llama-cpp-riscv64")
+ else()
+ set(ELIZA_SMOKE_OUTPUT_NAME "llama-cpp-arm64")
+ endif()
+ add_library(${ELIZA_SMOKE_OUTPUT_NAME} SHARED "${CMAKE_CURRENT_BINARY_DIR}/eliza-mtp-smoke.cpp")
+ target_link_libraries(${ELIZA_SMOKE_OUTPUT_NAME} PRIVATE ${LOG_LIB} ${ANDROID_LIB})
+ set_target_properties(
+ ${ELIZA_SMOKE_OUTPUT_NAME}
+ PROPERTIES
+ OUTPUT_NAME "${ELIZA_SMOKE_OUTPUT_NAME}"
+ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/jniLibs/${ANDROID_ABI}"
+ )
+ message(STATUS "Building Eliza MTP JNI smoke library for Android ${ANDROID_ABI}")
+ return()
+endif()
+
+if(NOT DEFINED ELIZA_REPO_ROOT)
+ message(FATAL_ERROR "ELIZA_REPO_ROOT is required for the Eliza MTP Android JNI bridge")
+endif()
-set(
- SOURCE_FILES
- ${LLAMACPP_LIB_DIR}/ggml.c
- ${LLAMACPP_LIB_DIR}/ggml-alloc.c
- ${LLAMACPP_LIB_DIR}/ggml-backend.cpp
- ${LLAMACPP_LIB_DIR}/ggml-backend-reg.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/amx/amx.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/amx/mmq.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/ggml-cpu.c
- ${LLAMACPP_LIB_DIR}/ggml-cpu/ggml-cpu.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/quants.c
- ${LLAMACPP_LIB_DIR}/ggml-cpu/traits.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/repack.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/unary-ops.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/binary-ops.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/vec.cpp
- ${LLAMACPP_LIB_DIR}/ggml-cpu/ops.cpp
- ${LLAMACPP_LIB_DIR}/ggml-opt.cpp
- ${LLAMACPP_LIB_DIR}/ggml-threading.cpp
- ${LLAMACPP_LIB_DIR}/ggml-quants.c
- ${LLAMACPP_LIB_DIR}/gguf.cpp
- ${LLAMACPP_LIB_DIR}/log.cpp
- ${LLAMACPP_LIB_DIR}/llama-impl.cpp
- ${LLAMACPP_LIB_DIR}/chat-parser.cpp
- ${LLAMACPP_LIB_DIR}/json-partial.cpp
- ${LLAMACPP_LIB_DIR}/regex-partial.cpp
- # Multimodal support
- ${LLAMACPP_LIB_DIR}/tools/mtmd/mtmd.cpp
- ${LLAMACPP_LIB_DIR}/tools/mtmd/mtmd-audio.cpp
- ${LLAMACPP_LIB_DIR}/tools/mtmd/clip.cpp
- ${LLAMACPP_LIB_DIR}/tools/mtmd/mtmd-helper.cpp
- ${LLAMACPP_LIB_DIR}/llama-grammar.cpp
- ${LLAMACPP_LIB_DIR}/llama-sampling.cpp
- ${LLAMACPP_LIB_DIR}/llama-vocab.cpp
- ${LLAMACPP_LIB_DIR}/llama-adapter.cpp
- ${LLAMACPP_LIB_DIR}/llama-chat.cpp
- ${LLAMACPP_LIB_DIR}/llama-context.cpp
- ${LLAMACPP_LIB_DIR}/llama-arch.cpp
- ${LLAMACPP_LIB_DIR}/llama-batch.cpp
- ${LLAMACPP_LIB_DIR}/llama-cparams.cpp
- ${LLAMACPP_LIB_DIR}/llama-hparams.cpp
- ${LLAMACPP_LIB_DIR}/llama.cpp
- ${LLAMACPP_LIB_DIR}/llama-model.cpp
- ${LLAMACPP_LIB_DIR}/llama-model-loader.cpp
- ${LLAMACPP_LIB_DIR}/llama-model-saver.cpp
- ${LLAMACPP_LIB_DIR}/llama-kv-cache.cpp
- ${LLAMACPP_LIB_DIR}/llama-kv-cache-iswa.cpp
- ${LLAMACPP_LIB_DIR}/llama-memory-hybrid.cpp
- ${LLAMACPP_LIB_DIR}/llama-memory-recurrent.cpp
- ${LLAMACPP_LIB_DIR}/llama-mmap.cpp
- ${LLAMACPP_LIB_DIR}/llama-vocab.cpp
- ${LLAMACPP_LIB_DIR}/llama-memory.cpp
- ${LLAMACPP_LIB_DIR}/llama-io.cpp
- ${LLAMACPP_LIB_DIR}/llama-graph.cpp
- ${LLAMACPP_LIB_DIR}/sampling.cpp
- ${LLAMACPP_LIB_DIR}/unicode-data.cpp
- ${LLAMACPP_LIB_DIR}/unicode.cpp
- ${LLAMACPP_LIB_DIR}/common.cpp
- ${LLAMACPP_LIB_DIR}/chat.cpp
- ${LLAMACPP_LIB_DIR}/json-schema-to-grammar.cpp
- ${LLAMACPP_LIB_DIR}/nlohmann/json.hpp
- ${LLAMACPP_LIB_DIR}/nlohmann/json_fwd.hpp
- ${LLAMACPP_LIB_DIR}/minja/minja.hpp
- ${LLAMACPP_LIB_DIR}/minja/chat-template.hpp
- ${LLAMACPP_LIB_DIR}/anyascii.c
- ${LLAMACPP_LIB_DIR}/cap-llama.cpp
- ${LLAMACPP_LIB_DIR}/cap-completion.cpp
- ${LLAMACPP_LIB_DIR}/cap-tts.cpp
- ${CMAKE_SOURCE_DIR}/jni-utils.h
- ${CMAKE_SOURCE_DIR}/jni.cpp
+if(NOT DEFINED ELIZA_REPO_ROOT)
+ message(FATAL_ERROR "ELIZA_REPO_ROOT is required for the Eliza MTP Android JNI bridge")
+endif()
+
+# Per-ABI MTP lib dirs are passed by android/build.gradle. Only the
+# entry for the currently-building ABI is required; the other can be empty.
+# riscv64 is CPU-only today (no ggml-vulkan.so produced yet).
+if(ANDROID_ABI STREQUAL "arm64-v8a")
+ set(ELIZA_MTP_LIBDIR "${ELIZA_MTP_ANDROID_LIBDIR_ARM64_V8A}")
+ set(ELIZA_OUTPUT_NAME "llama-cpp-arm64")
+ set(ELIZA_HAS_VULKAN TRUE)
+elseif(ANDROID_ABI STREQUAL "riscv64")
+ set(ELIZA_MTP_LIBDIR "${ELIZA_MTP_ANDROID_LIBDIR_RISCV64}")
+ set(ELIZA_OUTPUT_NAME "llama-cpp-riscv64")
+ set(ELIZA_HAS_VULKAN FALSE)
+else()
+ message(FATAL_ERROR "Unsupported ANDROID_ABI for Eliza MTP JNI bridge: ${ANDROID_ABI} (expected arm64-v8a or riscv64)")
+endif()
+
+if(NOT ELIZA_MTP_LIBDIR OR ELIZA_MTP_LIBDIR STREQUAL "")
+ message(FATAL_ERROR "MTP Android lib dir is empty for ABI ${ANDROID_ABI}; set -Peliza.mtp.android.libdir.${ANDROID_ABI} or ELIZA_MTP_ANDROID_LIBDIR_<ABI>, or run packages/app-core/scripts/build-llama-cpp-mtp.mjs --target android-${ANDROID_ABI}-cpu (or aosp/compile-libllama.mjs)")
+endif()
+
+set(ELIZA_LLAMA_CPP_DIR "${ELIZA_REPO_ROOT}/plugins/plugin-local-inference/native/llama.cpp")
+
+# Resolve the Eliza MTP JNI bridge source. The canonical workspace
+# path moved during the os-linux cleanup: prefer the new location
+# (packages/native/plugins/llama) but fall back to the historical
+# alternates so older checkouts keep building.
+foreach(candidate_jni
+ "${ELIZA_REPO_ROOT}/packages/native/plugins/llama/android/eliza-mtp-jni.cpp"
+ "${ELIZA_REPO_ROOT}/plugins/plugin-native-llama/android/eliza-mtp-jni.cpp"
+ "${ELIZA_REPO_ROOT}/packages/native-plugins/llama/android/eliza-mtp-jni.cpp"
)
+ if(EXISTS "${candidate_jni}")
+ set(ELIZA_MTP_JNI_CPP "${candidate_jni}")
+ break()
+ endif()
+endforeach()
+
+if(NOT DEFINED ELIZA_MTP_JNI_CPP)
+ message(FATAL_ERROR "Could not locate eliza-mtp-jni.cpp under ${ELIZA_REPO_ROOT} (looked under packages/native/plugins/llama, plugins/plugin-native-llama, packages/native-plugins/llama)")
+endif()
+
+set(_eliza_required_libs libllama.so libggml.so libggml-base.so libggml-cpu.so)
+if(ELIZA_HAS_VULKAN)
+ list(APPEND _eliza_required_libs libggml-vulkan.so)
+endif()
+foreach(required_lib ${_eliza_required_libs})
+ if(NOT EXISTS "${ELIZA_MTP_LIBDIR}/${required_lib}")
+ message(FATAL_ERROR "Missing MTP Android library: ${ELIZA_MTP_LIBDIR}/${required_lib}")
+ endif()
+endforeach()
+
+add_library(eliza_llama SHARED IMPORTED)
+set_target_properties(eliza_llama PROPERTIES IMPORTED_LOCATION "${ELIZA_MTP_LIBDIR}/libllama.so")
+
+add_library(eliza_ggml SHARED IMPORTED)
+set_target_properties(eliza_ggml PROPERTIES IMPORTED_LOCATION "${ELIZA_MTP_LIBDIR}/libggml.so")
+
+add_library(eliza_ggml_base SHARED IMPORTED)
+set_target_properties(eliza_ggml_base PROPERTIES IMPORTED_LOCATION "${ELIZA_MTP_LIBDIR}/libggml-base.so")
+
+add_library(eliza_ggml_cpu SHARED IMPORTED)
+set_target_properties(eliza_ggml_cpu PROPERTIES IMPORTED_LOCATION "${ELIZA_MTP_LIBDIR}/libggml-cpu.so")
+
+if(ELIZA_HAS_VULKAN)
+ add_library(eliza_ggml_vulkan SHARED IMPORTED)
+ set_target_properties(eliza_ggml_vulkan PROPERTIES IMPORTED_LOCATION "${ELIZA_MTP_LIBDIR}/libggml-vulkan.so")
+endif()
-# Find Android libraries
find_library(LOG_LIB log)
find_library(ANDROID_LIB android)
-# ARM64 specific build function for real devices
-function(build_library_arm64 target_name)
- add_library(
- ${target_name}
- SHARED
- ${SOURCE_FILES}
- )
-
- # ARM64 specific compile options for real devices
- target_compile_options(${target_name} PRIVATE
- -march=armv8-a
- -mtune=cortex-a76
- -O3
- -DNDEBUG
- -DLM_GGML_USE_CPU
- -DLM_GGML_CPU_GENERIC
- -fno-finite-math-only
- -funroll-loops
- )
-
- # Link with Android libraries
- target_link_libraries(${target_name}
- ${LOG_LIB}
- ${ANDROID_LIB}
- )
-
- # Set output name and directory
- set_target_properties(${target_name} PROPERTIES
- OUTPUT_NAME "llama-cpp-arm64"
- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/jniLibs/arm64-v8a"
- )
-endfunction()
-
-# Build ARM64 library for real devices
-build_library_arm64(llama-cpp-arm64)
-
-# Print build information
-message(STATUS "Building llama-cpp for Android ARM64 (real devices)")
-message(STATUS "Source directory: ${LLAMACPP_LIB_DIR}")
-message(STATUS "Architecture: ARM64 (arm64-v8a)")
-message(STATUS "Optimizations: ARMv8-A, Cortex-A76 tuning")
-message(STATUS "Output directory: ${CMAKE_CURRENT_SOURCE_DIR}/jniLibs/arm64-v8a")
+add_library(
+ ${ELIZA_OUTPUT_NAME}
+ SHARED
+ ${ELIZA_MTP_JNI_CPP}
+ ${ELIZA_LLAMA_CPP_DIR}/common/json-schema-to-grammar.cpp
+)
+
+target_include_directories(
+ ${ELIZA_OUTPUT_NAME}
+ PRIVATE
+ ${ELIZA_LLAMA_CPP_DIR}/include
+ ${ELIZA_LLAMA_CPP_DIR}/ggml/include
+ ${ELIZA_LLAMA_CPP_DIR}/common
+ ${ELIZA_LLAMA_CPP_DIR}/vendor
+)
+
+target_compile_options(
+ ${ELIZA_OUTPUT_NAME}
+ PRIVATE
+ -O3
+ -DNDEBUG
+ -fno-finite-math-only
+)
+
+set(_eliza_link_libs eliza_llama eliza_ggml eliza_ggml_cpu eliza_ggml_base)
+if(ELIZA_HAS_VULKAN)
+ list(APPEND _eliza_link_libs eliza_ggml_vulkan)
+endif()
+
+target_link_libraries(
+ ${ELIZA_OUTPUT_NAME}
+ PRIVATE
+ ${_eliza_link_libs}
+ ${LOG_LIB}
+ ${ANDROID_LIB}
+)
+
+set_target_properties(
+ ${ELIZA_OUTPUT_NAME}
+ PROPERTIES
+ OUTPUT_NAME "${ELIZA_OUTPUT_NAME}"
+ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/jniLibs/${ANDROID_ABI}"
+)
+
+message(STATUS "Building Eliza MTP JNI bridge for Android ${ANDROID_ABI}")
+message(STATUS "Eliza repo root: ${ELIZA_REPO_ROOT}")
+message(STATUS "MTP lib dir: ${ELIZA_MTP_LIBDIR}")
+message(STATUS "Vulkan backend: ${ELIZA_HAS_VULKAN}")
diff --git a/android/src/main/java/ai/annadata/plugin/capacitor/LlamaCpp.java b/android/src/main/java/ai/annadata/plugin/capacitor/LlamaCpp.java
--- a/android/src/main/java/ai/annadata/plugin/capacitor/LlamaCpp.java
+++ b/android/src/main/java/ai/annadata/plugin/capacitor/LlamaCpp.java
@@ -305,13 +305,40 @@
case "x86_64":
libraryName = "llama-cpp-x86_64";
break;
+ case "riscv64":
+ libraryName = "llama-cpp-riscv64";
+ break;
default:
Log.w(TAG, "Unsupported ABI: " + abi + ", falling back to arm64-v8a");
libraryName = "llama-cpp-arm64";
break;
}
-
+
Log.i(TAG, "Loading native library for ABI: " + abi + " (library: " + libraryName + ")");
+ // Preload MTP dependency libraries before our JNI bridge so
+ // dlopen resolves the chain without ld.so probing LD_LIBRARY_PATH.
+ // riscv64 currently has no ggml-vulkan.so (Wave 2 CPU-only); the
+ // preload is wrapped in try/catch and an absent dependency is
+ // logged as a warning rather than failing the load.
+ if ("arm64-v8a".equals(abi) || "riscv64".equals(abi)) {
+ java.util.List<String> mtpDependencies = new java.util.ArrayList<>();
+ mtpDependencies.add("omp");
+ mtpDependencies.add("ggml-base");
+ mtpDependencies.add("ggml-cpu");
+ if ("arm64-v8a".equals(abi)) {
+ mtpDependencies.add("ggml-vulkan");
+ }
+ mtpDependencies.add("ggml");
+ mtpDependencies.add("llama");
+ for (String dependency : mtpDependencies) {
+ try {
+ System.loadLibrary(dependency);
+ Log.i(TAG, "Loaded MTP dependency: " + dependency);
+ } catch (UnsatisfiedLinkError dependencyError) {
+ Log.w(TAG, "Could not preload MTP dependency " + dependency + ": " + dependencyError.getMessage());
+ }
+ }
+ }
System.loadLibrary(libraryName);
Log.i(TAG, "Successfully loaded llama-cpp native library: " + libraryName);
} catch (UnsatisfiedLinkError e) {
@@ -332,7 +359,17 @@
Log.i(TAG, "Native logging disabled");
}
callback.onResult(LlamaResult.success(null));
- } catch (Exception e) {
+ } catch (Throwable e) {
+ // Catch Throwable, not just Exception: when the native library is a
+ // symbol-less stub (the skipForkLlamaLib / ELIZA_ANDROID_SKIP_FORK_LLAMA_LIB
+ // dev build ships a JNI-symbol-free libllama-cpp-arm64.so), the JNI
+ // binding for toggleNativeLogNative fails with UnsatisfiedLinkError,
+ // which is an Error rather than an Exception. Left uncaught it escapes
+ // this @PluginMethod, is rewrapped by Capacitor's Bridge as a
+ // RuntimeException on the UI thread, and force-finishes MainActivity
+ // ("Eliza keeps stopping"). A missing optional native-log toggle must
+ // degrade gracefully instead, so we reject the call and keep booting.
+ Log.w(TAG, "Native log toggle unavailable (stub/missing native lib): " + e);
callback.onResult(LlamaResult.failure(new LlamaError("Failed to toggle native log: " + e.getMessage())));
}
}
+19
View File
@@ -0,0 +1,19 @@
diff --git a/lib/core/network/client.js b/lib/core/network/client.js
index 25fbbbb47c7f88e83ae26f629e5ae1a0c141725c..4ee9fbc994b04d89b70166d28409e218741f0b1e 100644
--- a/lib/core/network/client.js
+++ b/lib/core/network/client.js
@@ -245,7 +245,13 @@ async function answerToWebhook(response, payload, options) {
return true;
}
function redactToken(error) {
- error.message = error.message.replace(/\/(bot|user)(\d+):[^/]+\//, '/$1$2:[REDACTED]/');
+ const redacted = error.message.replace(/\/(bot|user)(\d+):[^/]+\//, '/$1$2:[REDACTED]/');
+ try {
+ error.message = redacted;
+ }
+ catch {
+ // Bun / JavaScriptCore: some wrapped fetch errors use a non-writable `message`.
+ }
throw error;
}
class ApiClient {
+14
View File
@@ -0,0 +1,14 @@
diff --git a/dist/rollup.js b/dist/rollup.js
index e128b61b9558318b9f86dc11d72c31f09a8eb7db..1fefdcf4187bf24ab5f1e5993edfb7ef9c334812 100644
--- a/dist/rollup.js
+++ b/dist/rollup.js
@@ -6834,7 +6834,8 @@ var getRollupConfig = async (options) => {
tsconfig: options.tsconfig,
compilerOptions: {
...compilerOptions,
- baseUrl: compilerOptions.baseUrl || ".",
+ // Patched: do not inject `baseUrl` (deprecated in TS 6.0). Preserve any
+ // explicit user-set baseUrl from `compilerOptions` via the spread above.
// Ensure ".d.ts" modules are generated
declaration: true,
// Skip ".js" generation
+314
View File
@@ -0,0 +1,314 @@
diff --git a/dist/chunks/cli-api.Cjt90eJu.js b/dist/chunks/cli-api.Cjt90eJu.js
index 9a84a3d60d..db19b1a786 100644
--- a/dist/chunks/cli-api.Cjt90eJu.js
+++ b/dist/chunks/cli-api.Cjt90eJu.js
@@ -5,8 +5,8 @@ import path, { resolve as resolve$1 } from 'node:path';
import { unique, createDefer, slash, withTrailingSlash, cleanUrl, wrapId, isExternalUrl, unwrapId, toArray, noop, deepMerge, nanoid, deepClone, isPrimitive, notNullish } from '@vitest/utils/helpers';
import { a as any, p as prompt } from './index.og1WyBLx.js';
import { i as isPackageExists, r as resolveModule } from './index.BCY_7LL2.js';
-import * as vite from 'vite';
-import { parseAst, searchForWorkspaceRoot, fetchModule, version, createServer, isFileLoadingAllowed, normalizePath, isRunnableDevEnvironment, mergeConfig } from 'vite';
+import * as vite from '@elizaos/vitest-vite';
+import { parseAst, searchForWorkspaceRoot, fetchModule, version, createServer, isFileLoadingAllowed, normalizePath, isRunnableDevEnvironment, mergeConfig } from '@elizaos/vitest-vite';
import { A as API_PATH, c as configFiles, d as defaultBrowserPort, b as defaultPort } from './constants.CPYnjOGj.js';
import * as nodeos from 'node:os';
import nodeos__default, { tmpdir } from 'node:os';
@@ -23,7 +23,7 @@ import { h as hash, R as RandomSequencer, i as isBrowserEnabled, r as resolveCon
import { rm, readFile, writeFile, rename, stat, unlink, mkdir, copyFile } from 'node:fs/promises';
import c from 'tinyrainbow';
import { VitestModuleEvaluator } from '#module-evaluator';
-import { ModuleRunner } from 'vite/module-runner';
+import { ModuleRunner } from '@elizaos/vitest-vite/module-runner';
import { Console } from 'node:console';
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.D26ty3Ew.js';
import { g as formatProjectName, w as withLabel, e as errorBanner, d as divider } from './utils.BS4fH3nR.js';
diff --git a/dist/chunks/coverage.DM_a_rWm.js b/dist/chunks/coverage.DM_a_rWm.js
index 0e039440d4..746eac62fc 100644
--- a/dist/chunks/coverage.DM_a_rWm.js
+++ b/dist/chunks/coverage.DM_a_rWm.js
@@ -10,7 +10,7 @@ import c from 'tinyrainbow';
import { c as configDefaults, e as benchmarkConfigDefaults, a as coverageConfigDefaults } from './defaults.9aQKnqFk.js';
import crypto from 'node:crypto';
import { r as resolveModule } from './index.BCY_7LL2.js';
-import { mergeConfig } from 'vite';
+import { mergeConfig } from '@elizaos/vitest-vite';
import { c as configFiles, d as defaultBrowserPort, a as defaultInspectPort, b as defaultPort } from './constants.CPYnjOGj.js';
import './env.D4Lgay0q.js';
import nodeos__default from 'node:os';
diff --git a/dist/chunks/evaluatedModules.Dg1zASAC.js b/dist/chunks/evaluatedModules.Dg1zASAC.js
index e2905f02b1..2ccfd01894 100644
--- a/dist/chunks/evaluatedModules.Dg1zASAC.js
+++ b/dist/chunks/evaluatedModules.Dg1zASAC.js
@@ -1,5 +1,5 @@
import { dirname, resolve } from 'pathe';
-import { EvaluatedModules } from 'vite/module-runner';
+import { EvaluatedModules } from '@elizaos/vitest-vite/module-runner';
-// TODO: this is not needed in Vite 7.2+
+// Remove this compatibility shim after upgrading the bundled Vite baseline to 7.2+.
class VitestEvaluatedModules extends EvaluatedModules {
diff --git a/dist/chunks/globals.Dj1TGiMC.js b/dist/chunks/globals.Dj1TGiMC.js
index e1ec5427ce..d1e4c4d5a2 100644
--- a/dist/chunks/globals.Dj1TGiMC.js
+++ b/dist/chunks/globals.Dj1TGiMC.js
@@ -18,7 +18,7 @@ import './rpc.MzXet3jl.js';
import './index.Chj8NDwU.js';
import '@vitest/snapshot';
import './evaluatedModules.Dg1zASAC.js';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import 'expect-type';
function registerApiGlobally() {
diff --git a/dist/chunks/index.UpGiHP7g.js b/dist/chunks/index.UpGiHP7g.js
index 7ea2dde4c1..cf55d8e8bf 100644
--- a/dist/chunks/index.UpGiHP7g.js
+++ b/dist/chunks/index.UpGiHP7g.js
@@ -16,7 +16,7 @@ import { inspect } from '@vitest/utils/display';
import nodeos__default, { hostname } from 'node:os';
import { x } from 'tinyexec';
import { distDir } from '../path.js';
-import { parseAstAsync } from 'vite';
+import { parseAstAsync } from '@elizaos/vitest-vite';
import { positionToOffset, lineSplitRE } from '@vitest/utils/offset';
import { createRequire } from 'node:module';
diff --git a/dist/chunks/init.D98-gwRW.js b/dist/chunks/init.D98-gwRW.js
index c66380f070..67c9c44e8f 100644
--- a/dist/chunks/init.D98-gwRW.js
+++ b/dist/chunks/init.D98-gwRW.js
@@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
import { isBuiltin } from 'node:module';
import { pathToFileURL } from 'node:url';
import { resolve } from 'pathe';
-import { ModuleRunner, EvaluatedModules } from 'vite/module-runner';
+import { ModuleRunner, EvaluatedModules } from '@elizaos/vitest-vite/module-runner';
import { b as VitestTransport } from './startVitestModuleRunner.bRl2_oI_.js';
import { e as environments } from './index.DC7d2Pf8.js';
import { serializeValue } from '@vitest/utils/serialize';
diff --git a/dist/chunks/nativeModuleMocker.BRN2oBJd.js b/dist/chunks/nativeModuleMocker.BRN2oBJd.js
index 3d77a7bf72..419d4d145c 100644
--- a/dist/chunks/nativeModuleMocker.BRN2oBJd.js
+++ b/dist/chunks/nativeModuleMocker.BRN2oBJd.js
@@ -13,7 +13,7 @@ import '../path.js';
import 'node:path';
import '../module-evaluator.js';
import 'node:vm';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import './traces.DT5aQ62U.js';
import '@vitest/mocker';
import '@vitest/mocker/redirect';
diff --git a/dist/chunks/nativeModuleRunner.BIakptoF.js b/dist/chunks/nativeModuleRunner.BIakptoF.js
index 85c92773a5..4d5b229774 100644
--- a/dist/chunks/nativeModuleRunner.BIakptoF.js
+++ b/dist/chunks/nativeModuleRunner.BIakptoF.js
@@ -1,7 +1,7 @@
import { pathToFileURL } from 'node:url';
import { r as resolveModule } from './index.BCY_7LL2.js';
import { resolve } from 'pathe';
-import { ModuleRunner } from 'vite/module-runner';
+import { ModuleRunner } from '@elizaos/vitest-vite/module-runner';
class NativeModuleRunner extends ModuleRunner {
/**
diff --git a/dist/chunks/startVitestModuleRunner.bRl2_oI_.js b/dist/chunks/startVitestModuleRunner.bRl2_oI_.js
index 37b4b69028..2be69a2e64 100644
--- a/dist/chunks/startVitestModuleRunner.bRl2_oI_.js
+++ b/dist/chunks/startVitestModuleRunner.bRl2_oI_.js
@@ -10,7 +10,7 @@ import { isAbsolute, resolve } from 'node:path';
import vm from 'node:vm';
import { MockerRegistry, mockObject, RedirectedModule, AutomockedModule } from '@vitest/mocker';
import { findMockRedirect } from '@vitest/mocker/redirect';
-import * as viteModuleRunner from 'vite/module-runner';
+import * as viteModuleRunner from '@elizaos/vitest-vite/module-runner';
import { T as Traces } from './traces.DT5aQ62U.js';
class BareModuleMocker {
diff --git a/dist/config.cjs b/dist/config.cjs
index 1003cbe679..d674a6d764 100644
--- a/dist/config.cjs
+++ b/dist/config.cjs
@@ -2,7 +2,7 @@
var os = require('node:os');
var stdEnv = require('std-env');
-var vite = require('vite');
+var vite = require('@elizaos/vitest-vite');
const isNode = typeof process < "u" && typeof process.stdout < "u" && !process.versions?.deno && !globalThis.window;
const isDeno = typeof process < "u" && typeof process.stdout < "u" && process.versions?.deno !== void 0;
diff --git a/dist/config.js b/dist/config.js
index ce87436b68..7b85a454da 100644
--- a/dist/config.js
+++ b/dist/config.js
@@ -1,5 +1,5 @@
export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.9aQKnqFk.js';
-export { mergeConfig } from 'vite';
+export { mergeConfig } from '@elizaos/vitest-vite';
export { d as defaultBrowserPort } from './chunks/constants.CPYnjOGj.js';
import 'node:os';
import './chunks/env.D4Lgay0q.js';
diff --git a/dist/coverage.js b/dist/coverage.js
index c11a763518..a1631c37bb 100644
--- a/dist/coverage.js
+++ b/dist/coverage.js
@@ -19,7 +19,7 @@ import 'node:fs/promises';
import 'node:assert';
import 'node:v8';
import 'node:util';
-import 'vite';
+import '@elizaos/vitest-vite';
import './chunks/constants.CPYnjOGj.js';
import './chunks/utils.BS4fH3nR.js';
import './chunks/coverage.CTzCuANN.js';
diff --git a/dist/index.js b/dist/index.js
index 1898c584c4..5b25b11fbd 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -18,4 +18,4 @@ import './chunks/_commonjsHelpers.D26ty3Ew.js';
import './chunks/rpc.MzXet3jl.js';
import './chunks/index.Chj8NDwU.js';
import '@vitest/snapshot';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
diff --git a/dist/module-evaluator.js b/dist/module-evaluator.js
index d7703b70ea..d9c66f957d 100644
--- a/dist/module-evaluator.js
+++ b/dist/module-evaluator.js
@@ -1,7 +1,7 @@
import { isBuiltin, createRequire } from 'node:module';
import { pathToFileURL, fileURLToPath } from 'node:url';
import vm from 'node:vm';
-import { ssrModuleExportsKey, ssrImportMetaKey, ssrImportKey, ssrDynamicImportKey, ssrExportAllKey } from 'vite/module-runner';
+import { ssrModuleExportsKey, ssrImportMetaKey, ssrImportKey, ssrDynamicImportKey, ssrExportAllKey } from '@elizaos/vitest-vite/module-runner';
import { T as Traces } from './chunks/traces.DT5aQ62U.js';
const performanceNow = performance.now.bind(performance);
diff --git a/dist/node.js b/dist/node.js
index 4165632997..f3c4c1d93b 100644
--- a/dist/node.js
+++ b/dist/node.js
@@ -1,6 +1,6 @@
-import * as vite from 'vite';
-import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
-export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
+import * as vite from '@elizaos/vitest-vite';
+import { resolveConfig as resolveConfig$1, mergeConfig } from '@elizaos/vitest-vite';
+export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from '@elizaos/vitest-vite';
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.Cjt90eJu.js';
export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p as resolveFsAllow, s as startVitest } from './chunks/cli-api.Cjt90eJu.js';
export { p as parseCLI } from './chunks/cac.DJJmV0dT.js';
@@ -28,7 +28,7 @@ import 'node:os';
import '@vitest/snapshot/manager';
import '@vitest/utils/serialize';
import './chunks/nativeModuleRunner.BIakptoF.js';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import './chunks/traces.DT5aQ62U.js';
import 'obug';
import 'tinyrainbow';
diff --git a/dist/reporters.js b/dist/reporters.js
index 5a960e3ba0..51aeaf88ce 100644
--- a/dist/reporters.js
+++ b/dist/reporters.js
@@ -19,7 +19,7 @@ import 'tinyexec';
import './path.js';
import 'node:path';
import 'node:url';
-import 'vite';
+import '@elizaos/vitest-vite';
import '@vitest/utils/offset';
import 'node:module';
diff --git a/dist/runtime.js b/dist/runtime.js
index 269cfc3984..7972aee70a 100644
--- a/dist/runtime.js
+++ b/dist/runtime.js
@@ -6,7 +6,7 @@ export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './ch
import 'node:module';
import 'node:url';
import 'node:vm';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import './chunks/traces.DT5aQ62U.js';
import 'node:fs';
import '@vitest/utils/helpers';
diff --git a/dist/worker.js b/dist/worker.js
index 8c9f8f3bc6..672da503d5 100644
--- a/dist/worker.js
+++ b/dist/worker.js
@@ -33,7 +33,7 @@ import 'node:fs/promises';
import 'node:assert';
import 'node:v8';
import 'node:util';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import './chunks/traces.DT5aQ62U.js';
import './chunks/evaluatedModules.Dg1zASAC.js';
import './chunks/startVitestModuleRunner.bRl2_oI_.js';
diff --git a/dist/workers/forks.js b/dist/workers/forks.js
index 9756bca06b..fd14f27585 100644
--- a/dist/workers/forks.js
+++ b/dist/workers/forks.js
@@ -26,7 +26,7 @@ import '../chunks/init.D98-gwRW.js';
import 'node:fs';
import 'node:module';
import 'node:url';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import '../chunks/startVitestModuleRunner.bRl2_oI_.js';
import '../chunks/modules.BJuCwlRJ.js';
import '../path.js';
diff --git a/dist/workers/runVmTests.js b/dist/workers/runVmTests.js
index e3f749a602..7b011f62d0 100644
--- a/dist/workers/runVmTests.js
+++ b/dist/workers/runVmTests.js
@@ -23,7 +23,7 @@ import '@vitest/runner/utils';
import '@vitest/utils/helpers';
import '../chunks/evaluatedModules.Dg1zASAC.js';
import 'pathe';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import 'expect-type';
import 'node:url';
import '@vitest/utils/error';
diff --git a/dist/workers/threads.js b/dist/workers/threads.js
index 85514d5a68..77e76359f9 100644
--- a/dist/workers/threads.js
+++ b/dist/workers/threads.js
@@ -26,7 +26,7 @@ import '../chunks/init.D98-gwRW.js';
import 'node:fs';
import 'node:module';
import 'node:url';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import '../chunks/startVitestModuleRunner.bRl2_oI_.js';
import '../chunks/modules.BJuCwlRJ.js';
import '../path.js';
diff --git a/dist/workers/vmForks.js b/dist/workers/vmForks.js
index 23777b3ad0..bd05860304 100644
--- a/dist/workers/vmForks.js
+++ b/dist/workers/vmForks.js
@@ -5,7 +5,7 @@ import 'node:fs';
import 'node:module';
import 'node:url';
import 'pathe';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import '../chunks/startVitestModuleRunner.bRl2_oI_.js';
import '@vitest/utils/helpers';
import '../chunks/modules.BJuCwlRJ.js';
diff --git a/dist/workers/vmThreads.js b/dist/workers/vmThreads.js
index 1e1320e085..610e670655 100644
--- a/dist/workers/vmThreads.js
+++ b/dist/workers/vmThreads.js
@@ -6,7 +6,7 @@ import 'node:fs';
import 'node:module';
import 'node:url';
import 'pathe';
-import 'vite/module-runner';
+import '@elizaos/vitest-vite/module-runner';
import '../chunks/startVitestModuleRunner.bRl2_oI_.js';
import '@vitest/utils/helpers';
import '../chunks/modules.BJuCwlRJ.js';