Skip to content

Commit e50c98c

Browse files
Shawclaude
andcommitted
fix: biome lint nits, remove duplicate pluginWorkerRuntimeSrc/remotePluginId
- packages/app-core/vitest.config.ts: drop duplicate pluginWorkerRuntimeSrc declaration introduced by the develop merge (esbuild rejected the dup) - phase4-smoke.ts: drop duplicate remotePluginId object key (sed artifact) - biome --write across PR-touched files (import sort, unused import drop, no semantic changes) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 39a9921 commit e50c98c

23 files changed

Lines changed: 969 additions & 1233 deletions

File tree

apps/app-xr/e2e/all-views-crud.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* opened, rendered, and closed via the agent view-host route.
66
*/
77

8-
import { test, expect } from "@playwright/test";
8+
import { expect, test } from "@playwright/test";
99

1010
const BASE_URL = process.env.XR_BASE_URL ?? "http://localhost:31337";
1111

packages/agent/src/runtime/eliza.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,8 +3981,7 @@ export async function startEliza(
39813981
try {
39823982
const { registerE2BRemoteCapabilityRouterIfEnabled } =
39833983
await loadE2BCapabilityRouterModule();
3984-
const result =
3985-
await registerE2BRemoteCapabilityRouterIfEnabled(runtime);
3984+
const result = await registerE2BRemoteCapabilityRouterIfEnabled(runtime);
39863985
if (result.registered) {
39873986
logger.info("[eliza] Remote coding runner registered");
39883987
}

packages/agent/src/services/e2b-capability-router.coding-remote-runner.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { mkdtemp, readFile, rm } from "node:fs/promises";
22
import { tmpdir } from "node:os";
33
import nodePath from "node:path";
4-
import { type IAgentRuntime, type UUID } from "@elizaos/core";
5-
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
4+
import type { IAgentRuntime, UUID } from "@elizaos/core";
5+
import { afterEach, beforeEach, describe, expect, it } from "vitest";
66
import {
77
createHandler,
88
ensureWorkspace,
@@ -25,7 +25,9 @@ function replaceGlobalFetch(fetchImpl: typeof fetch): void {
2525
}
2626

2727
beforeEach(async () => {
28-
workspaceRoot = await mkdtemp(nodePath.join(tmpdir(), "agent-remote-runner-"));
28+
workspaceRoot = await mkdtemp(
29+
nodePath.join(tmpdir(), "agent-remote-runner-"),
30+
);
2931
originalFetch = globalThis.fetch;
3032
});
3133

packages/agent/src/services/e2b-capability-router.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { CapabilityError, type IAgentRuntime, type UUID } from "@elizaos/core";
22
import { describe, expect, it, vi } from "vitest";
33
import {
4-
type E2BSandboxClient,
5-
type E2BSandboxFactory,
64
E2BRemoteCapabilityRouterService,
75
type E2BRemoteRunnerConfig,
6+
type E2BSandboxClient,
7+
type E2BSandboxFactory,
88
resolveE2BRemoteRunnerConfig,
99
type SandboxCommandResult,
1010
type SandboxEntryInfo,
@@ -398,7 +398,9 @@ describe("E2BRemoteCapabilityRouterService", () => {
398398

399399
expect(config.enabled).toBe(true);
400400
expect(config.provider).toBe("eliza-cloud");
401-
expect(config.remoteHttpBaseUrl).toBe("https://cloud.example/remote-runner");
401+
expect(config.remoteHttpBaseUrl).toBe(
402+
"https://cloud.example/remote-runner",
403+
);
402404
expect(config.remoteHttpToken).toBe("token");
403405
expect(config.agentRunners).toEqual(["codex", "claude-code", "opencode"]);
404406
});

packages/agent/src/services/e2b-capability-router.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ class DefaultSandboxFactory implements E2BSandboxFactory {
273273
class RemoteRunnerHttpFactory implements E2BSandboxFactory {
274274
async create(config: E2BRemoteRunnerConfig): Promise<E2BSandboxClient> {
275275
if (!config.remoteHttpBaseUrl) {
276-
throw new Error(`${config.provider} runner requires a remote runner URL.`);
276+
throw new Error(
277+
`${config.provider} runner requires a remote runner URL.`,
278+
);
277279
}
278280
const apiBase = config.remoteHttpBaseUrl.replace(/\/+$/, "");
279281
const headers = authHeaders(config.remoteHttpToken);
@@ -613,13 +615,10 @@ export class E2BRemoteCapabilityRouterService
613615
private readonly factory: E2BSandboxFactory = new DefaultSandboxFactory(),
614616
) {
615617
if (!runtime) {
616-
throw new Error(
617-
"E2BRemoteCapabilityRouterService requires a runtime.",
618-
);
618+
throw new Error("E2BRemoteCapabilityRouterService requires a runtime.");
619619
}
620620
super(runtime);
621-
this.routerConfig =
622-
routerConfig ?? resolveE2BRemoteRunnerConfig(runtime);
621+
this.routerConfig = routerConfig ?? resolveE2BRemoteRunnerConfig(runtime);
623622
}
624623

625624
static async start(runtime: IAgentRuntime): Promise<Service> {

0 commit comments

Comments
 (0)