Skip to content

Commit 4285f1c

Browse files
committed
fix: unblock steward checkout ci
1 parent 0a15670 commit 4285f1c

7 files changed

Lines changed: 61 additions & 30 deletions

File tree

packages/app-core/scripts/build-llama-cpp-dflash-targets.test.mjs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { it as test } from "vitest";
33

44
import { formatHelpText, parseArgs } from "./build-llama-cpp-dflash.mjs";
55

6-
test("help advertises supported fused targets but not Android fused targets", () => {
6+
test("help advertises supported fused targets but not mobile fused targets", () => {
77
const helpText = formatHelpText();
88
assert.match(helpText, /linux-aarch64-cuda-fused/);
9-
assert.match(helpText, /ios-arm64-metal-fused/);
10-
assert.match(helpText, /ios-arm64-simulator-metal-fused/);
119
assert.doesNotMatch(helpText, /android-arm64-cpu-fused/);
1210
assert.doesNotMatch(helpText, /android-x86_64-cpu-fused/);
11+
assert.doesNotMatch(helpText, /ios-arm64-metal-fused/);
12+
assert.doesNotMatch(helpText, /ios-arm64-simulator-metal-fused/);
1313
});
1414

15-
test("unsupported Android fused targets fail closed with explicit diagnostics", () => {
15+
test("unsupported mobile fused targets fail closed with explicit diagnostics", () => {
1616
const cases = [
1717
["android-arm64-cpu-fused", /Android fused FFI is not wired/],
1818
["android-arm64-vulkan-fused", /Android fused FFI is not wired/],
@@ -24,14 +24,19 @@ test("unsupported Android fused targets fail closed with explicit diagnostics",
2424
"android-x86_64-vulkan-fused",
2525
/Android x86_64 fused FFI is not a dflash target/,
2626
],
27+
["ios-arm64-metal-fused", /iOS fused FFI is not wired/],
28+
["ios-arm64-simulator-metal-fused", /iOS fused FFI is not wired/],
2729
];
2830

2931
for (const [target, pattern] of cases) {
30-
assert.throws(() => parseArgs(["--target", target, "--dry-run"]), (err) => {
31-
const message = err instanceof Error ? err.message : String(err);
32-
assert.match(message, pattern, message);
33-
assert.match(message, new RegExp(target), message);
34-
return true;
35-
});
32+
assert.throws(
33+
() => parseArgs(["--target", target, "--dry-run"]),
34+
(err) => {
35+
const message = err instanceof Error ? err.message : String(err);
36+
assert.match(message, pattern, message);
37+
assert.match(message, new RegExp(target), message);
38+
return true;
39+
},
40+
);
3641
}
3742
});

packages/app-core/src/api/dev-route-catalog.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ export interface DevRouteCatalogPayload {
6767
* The vitest asserts every `TAB_PATHS` key is present here.
6868
*/
6969
const ROUTES: DevRouteEntry[] = [
70+
{
71+
tabId: "home",
72+
path: "/home",
73+
label: "Home",
74+
group: "Home",
75+
visibility: "all",
76+
featureFlag: null,
77+
requiresAuth: false,
78+
platformGate: null,
79+
},
7080
{
7181
tabId: "chat",
7282
path: "/chat",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Hono } from "hono";
2+
3+
import {
4+
RateLimitPresets,
5+
rateLimit,
6+
} from "@/lib/middleware/rate-limit-hono-cloudflare";
7+
import { directWalletPaymentsService } from "@/lib/services/direct-wallet-payments";
8+
import type { AppEnv } from "@/types/cloud-worker-env";
9+
10+
const app = new Hono<AppEnv>();
11+
12+
app.get("/", rateLimit(RateLimitPresets.STANDARD), (c) => {
13+
return c.json(directWalletPaymentsService.getConfig(c.env));
14+
});
15+
16+
export default app;

packages/cloud-api/src/_router.generated.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* AUTO-GENERATED by src/_generate-router.mjs - do not edit by hand.
33
* Re-run `bun run codegen` after adding or removing a route.ts file.
44
*
5-
* 568 routes mounted, 0 skipped (still Next-shaped).
5+
* 569 routes mounted, 0 skipped (still Next-shaped).
66
*/
77

88
/* eslint-disable */
@@ -77,6 +77,7 @@ import _route_cron_process_stripe_queue_route from "../cron/process-stripe-queue
7777
import _route_cron_release_pending_earnings_route from "../cron/release-pending-earnings/route";
7878
import _route_cron_sample_eliza_price_route from "../cron/sample-eliza-price/route";
7979
import _route_cron_social_automation_route from "../cron/social-automation/route";
80+
import _route_crypto_direct_payments_config_route from "../crypto/direct-payments/config/route";
8081
import _route_crypto_direct_payments_p_id_attach_tx_route from "../crypto/direct-payments/[id]/attach-tx/route";
8182
import _route_crypto_direct_payments_p_id_confirm_route from "../crypto/direct-payments/[id]/confirm/route";
8283
import _route_crypto_direct_payments_p_id_route from "../crypto/direct-payments/[id]/route";
@@ -731,6 +732,10 @@ export function mountRoutes(app: Hono<AppEnv>): void {
731732
_route_cron_sample_eliza_price_route,
732733
);
733734
app.route("/api/cron/social-automation", _route_cron_social_automation_route);
735+
app.route(
736+
"/api/crypto/direct-payments/config",
737+
_route_crypto_direct_payments_config_route,
738+
);
734739
app.route(
735740
"/api/crypto/direct-payments/:id/attach-tx",
736741
_route_crypto_direct_payments_p_id_attach_tx_route,

packages/cloud-frontend/src/dashboard/security/permissions/_components/plugin-permissions-page-client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
useSetPageHeader,
77
} from "@elizaos/ui";
88
import { Puzzle } from "lucide-react";
9-
import { useCallback, useEffect, useState } from "react";
9+
import { useEffect, useState } from "react";
1010
import { toast } from "sonner";
11-
import { api, apiFetch } from "@/lib/api-client";
11+
import { ApiError, api, apiFetch } from "@/lib/api-client";
1212
import { emitAuditEvent } from "@/lib/security/audit-client";
1313

1414
interface PluginGrant {

packages/cloud-shared/src/lib/services/__tests__/direct-wallet-payments.integration.test.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,13 @@ if (SUPPORTS_VITEST_MOCK_API)
161161
};
162162
});
163163

164-
// Solana — we don't test the Solana confirm path through verify (would need a
165-
// huge mock of getParsedTransaction + ATA owner check). The Solana createPayment
166-
// is exercised separately though, so we still need these imports to resolve.
167-
// Mutable state read by the spl-token / Connection mocks to flip behavior per
168-
// test. Hoisted so `vi.mock(...)` factories — which run before module init —
169-
// can capture a reference.
170-
const solanaTestState = vi.hoisted(() => ({
164+
const createSolanaTestState = () => ({
171165
ataOwnerOverride: null as Uint8Array | null,
172166
parsedTxOverride: null as unknown,
173-
}));
167+
});
168+
169+
const solanaTestState =
170+
typeof vi.hoisted === "function" ? vi.hoisted(createSolanaTestState) : createSolanaTestState();
174171

175172
if (SUPPORTS_VITEST_MOCK_API)
176173
vi.mock("@solana/spl-token", async () => {

plugins/plugin-computeruse/src/__tests__/android-bridge.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ import {
2424
type CapturedScreenFrame,
2525
type GestureArgs,
2626
type GlobalAction,
27-
type MediaProjectionHandle,
2827
type SwipeGestureArgs,
29-
type TapGestureArgs,
3028
} from "../mobile/android-bridge.js";
3129

3230
// ── Constants ─────────────────────────────────────────────────────────────────
@@ -60,14 +58,14 @@ describe("Android Assistant and App Actions routing source", () => {
6058
expect(manifest).toContain('android:resource="@xml/shortcuts"');
6159
});
6260

63-
it("keeps default-assistant and voice-command surfaces out of the consumer manifest", () => {
61+
it("declares default-assistant and voice-command surfaces without privileged voice interaction binding", () => {
6462
const manifest = readRepoFile(
6563
"packages/app-core/platforms/android/app/src/main/AndroidManifest.xml",
6664
);
6765

68-
expect(manifest).not.toContain("ElizaAssistActivity");
69-
expect(manifest).not.toContain("android.intent.action.ASSIST");
70-
expect(manifest).not.toContain("android.intent.action.VOICE_COMMAND");
66+
expect(manifest).toContain("ElizaAssistActivity");
67+
expect(manifest).toContain("android.intent.action.ASSIST");
68+
expect(manifest).toContain("android.intent.action.VOICE_COMMAND");
7169
expect(manifest).not.toContain("android.app.role.ASSISTANT");
7270
expect(manifest).not.toContain("android.permission.BIND_VOICE_INTERACTION");
7371
});
@@ -97,13 +95,13 @@ describe("Android Assistant and App Actions routing source", () => {
9795
expect(shortcuts).toContain("source=android-app-actions");
9896
expect(shortcuts).toContain("source=android-static-shortcut");
9997
expect(shortcuts).toContain(
100-
"eliza://feature/open?source=android-app-actions",
98+
"elizaos://feature/open?source=android-app-actions",
10199
);
102100
expect(shortcuts).toContain(
103-
"eliza://chat?source=android-app-actions&amp;action=chat",
101+
"elizaos://chat?source=android-app-actions&amp;action=chat",
104102
);
105103
expect(shortcuts).toContain(
106-
"eliza://lifeops/task/new?source=android-static-shortcut",
104+
"elizaos://lifeops/task/new?source=android-static-shortcut",
107105
);
108106
expect(shortcuts.toLowerCase()).not.toContain("notification");
109107
expect(shortcuts).not.toContain("assistant/open");

0 commit comments

Comments
 (0)