mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
refactor: trim agent test helper exports
This commit is contained in:
@@ -42,7 +42,7 @@ export function setupCliBundleMcpTestHarness(): void {
|
||||
});
|
||||
}
|
||||
|
||||
export function createEnabledBundleProbeConfig(): OpenClawConfig {
|
||||
function createEnabledBundleProbeConfig(): OpenClawConfig {
|
||||
return {
|
||||
plugins: {
|
||||
entries: {
|
||||
|
||||
@@ -87,7 +87,7 @@ export function buildOpenAICodexForwardCompatExpectation(
|
||||
};
|
||||
}
|
||||
|
||||
export const GOOGLE_GEMINI_CLI_PRO_TEMPLATE_MODEL = {
|
||||
const GOOGLE_GEMINI_CLI_PRO_TEMPLATE_MODEL = {
|
||||
id: "gemini-3-pro-preview",
|
||||
name: "Gemini 3 Pro Preview (Cloud Code Assist)",
|
||||
provider: "google-gemini-cli",
|
||||
@@ -100,7 +100,7 @@ export const GOOGLE_GEMINI_CLI_PRO_TEMPLATE_MODEL = {
|
||||
maxTokens: 64000,
|
||||
};
|
||||
|
||||
export const GOOGLE_GEMINI_CLI_FLASH_TEMPLATE_MODEL = {
|
||||
const GOOGLE_GEMINI_CLI_FLASH_TEMPLATE_MODEL = {
|
||||
id: "gemini-3-flash-preview",
|
||||
name: "Gemini 3 Flash Preview (Cloud Code Assist)",
|
||||
provider: "google-gemini-cli",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { buildAttemptReplayMetadata } from "./run/incomplete-turn.js";
|
||||
import type { EmbeddedRunAttemptResult } from "./run/types.js";
|
||||
|
||||
export const DEFAULT_OVERFLOW_ERROR_MESSAGE =
|
||||
const DEFAULT_OVERFLOW_ERROR_MESSAGE =
|
||||
"request_too_large: Request size exceeds model context window";
|
||||
|
||||
export function makeOverflowError(message: string = DEFAULT_OVERFLOW_ERROR_MESSAGE): Error {
|
||||
|
||||
@@ -171,7 +171,7 @@ export async function withTempDir<T>(
|
||||
}
|
||||
}
|
||||
|
||||
export function installDockerReadMock(params?: { canonicalPath?: string }) {
|
||||
function installDockerReadMock(params?: { canonicalPath?: string }) {
|
||||
const canonicalPath = params?.canonicalPath;
|
||||
mockedExecDockerRaw.mockImplementation(async (args) => {
|
||||
const script = getDockerScript(args);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const CLAUDE_API_ERROR_MESSAGE =
|
||||
const CLAUDE_API_ERROR_MESSAGE =
|
||||
"Third-party apps now draw from your extra usage, not your plan limits. We've added a $200 credit to get you started. Claim it at claude.ai/settings/usage and keep going.";
|
||||
|
||||
export function createClaudeApiErrorFixture() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { SandboxFsBridge, SandboxResolvedPath } from "../sandbox/fs-bridge.
|
||||
import { createSandboxFsBridgeFromResolver } from "./host-sandbox-fs-bridge.js";
|
||||
import { createPiToolsSandboxContext } from "./pi-tools-sandbox-context.js";
|
||||
|
||||
export function createUnsafeMountedBridge(params: {
|
||||
function createUnsafeMountedBridge(params: {
|
||||
root: string;
|
||||
agentHostRoot: string;
|
||||
workspaceContainerRoot?: string;
|
||||
|
||||
Reference in New Issue
Block a user