mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
chore(acpx): move runtime test fixtures to test-utils (openclaw#40548)
Verified: - pnpm install --frozen-lockfile - pnpm build - pnpm check - pnpm test:macmini
This commit is contained in:
@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
|
|||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
|
- Extensions/ACPX tests: move the shared runtime fixture helper from `src/runtime-internals/` to `src/test-utils/` so the test-only helper no longer looks like shipped runtime code.
|
||||||
- TUI: infer the active agent from the current workspace when launched inside a configured agent workspace, while preserving explicit `agent:` session targets. (#39591) thanks @arceus77-7.
|
- TUI: infer the active agent from the current workspace when launched inside a configured agent workspace, while preserving explicit `agent:` session targets. (#39591) thanks @arceus77-7.
|
||||||
- Tools/Brave web search: add opt-in `tools.web.search.brave.mode: "llm-context"` so `web_search` can call Brave's LLM Context endpoint and return extracted grounding snippets with source metadata, plus config/docs/test coverage. (#33383) Thanks @thirumaleshp.
|
- Tools/Brave web search: add opt-in `tools.web.search.brave.mode: "llm-context"` so `web_search` can call Brave's LLM Context endpoint and return extracted grounding snippets with source metadata, plus config/docs/test coverage. (#33383) Thanks @thirumaleshp.
|
||||||
- Talk mode: add top-level `talk.silenceTimeoutMs` config so Talk waits a configurable amount of silence before auto-sending the current transcript, while keeping each platform's existing default pause window when unset. (#39607) Thanks @danodoesdesign. Fixes #17147.
|
- Talk mode: add top-level `talk.silenceTimeoutMs` config so Talk waits a configurable amount of silence before auto-sending the current transcript, while keeping each platform's existing default pause window when unset. (#39607) Thanks @danodoesdesign. Fixes #17147.
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ import os from "node:os";
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||||
import { runAcpRuntimeAdapterContract } from "../../../src/acp/runtime/adapter-contract.testkit.js";
|
import { runAcpRuntimeAdapterContract } from "../../../src/acp/runtime/adapter-contract.testkit.js";
|
||||||
|
import { AcpxRuntime, decodeAcpxRuntimeHandleState } from "./runtime.js";
|
||||||
import {
|
import {
|
||||||
cleanupMockRuntimeFixtures,
|
cleanupMockRuntimeFixtures,
|
||||||
createMockRuntimeFixture,
|
createMockRuntimeFixture,
|
||||||
NOOP_LOGGER,
|
NOOP_LOGGER,
|
||||||
readMockRuntimeLogEntries,
|
readMockRuntimeLogEntries,
|
||||||
} from "./runtime-internals/test-fixtures.js";
|
} from "./test-utils/runtime-fixtures.js";
|
||||||
import { AcpxRuntime, decodeAcpxRuntimeHandleState } from "./runtime.js";
|
|
||||||
|
|
||||||
let sharedFixture: Awaited<ReturnType<typeof createMockRuntimeFixture>> | null = null;
|
let sharedFixture: Awaited<ReturnType<typeof createMockRuntimeFixture>> | null = null;
|
||||||
let missingCommandRuntime: AcpxRuntime | null = null;
|
let missingCommandRuntime: AcpxRuntime | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user