mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:10:49 +00:00
fix: centralize source reply delivery mode
This commit is contained in:
@@ -250,17 +250,31 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
|
||||
["scripts/test-projects.mjs", ["test/scripts/test-projects.test.ts"]],
|
||||
["scripts/test-projects.test-support.d.mts", ["test/scripts/test-projects.test.ts"]],
|
||||
["scripts/test-projects.test-support.mjs", ["test/scripts/test-projects.test.ts"]],
|
||||
["scripts/testbox-sync-sanity.mjs", ["test/scripts/testbox-sync-sanity.test.ts"]],
|
||||
]);
|
||||
const TOOLING_TEST_TARGETS = new Map([
|
||||
["test/scripts/barnacle-auto-response.test.ts", ["test/scripts/barnacle-auto-response.test.ts"]],
|
||||
["test/scripts/changed-lanes.test.ts", ["test/scripts/changed-lanes.test.ts"]],
|
||||
["test/scripts/live-docker-stage.test.ts", ["test/scripts/live-docker-stage.test.ts"]],
|
||||
["test/scripts/test-projects.test.ts", ["test/scripts/test-projects.test.ts"]],
|
||||
["test/scripts/testbox-sync-sanity.test.ts", ["test/scripts/testbox-sync-sanity.test.ts"]],
|
||||
[
|
||||
"test/scripts/vitest-local-scheduling.test.ts",
|
||||
["test/scripts/vitest-local-scheduling.test.ts"],
|
||||
],
|
||||
]);
|
||||
const GROUP_VISIBLE_REPLY_TEST_TARGETS = [
|
||||
"src/auto-reply/reply/dispatch-acp.test.ts",
|
||||
"src/auto-reply/reply/dispatch-from-config.test.ts",
|
||||
"src/auto-reply/reply/followup-runner.test.ts",
|
||||
"src/auto-reply/reply/groups.test.ts",
|
||||
"extensions/discord/src/monitor/message-handler.process.test.ts",
|
||||
"extensions/slack/src/monitor.tool-result.test.ts",
|
||||
];
|
||||
const GROUP_VISIBLE_REPLY_PROMPT_TEST_TARGETS = [
|
||||
"src/agents/system-prompt.test.ts",
|
||||
...GROUP_VISIBLE_REPLY_TEST_TARGETS,
|
||||
];
|
||||
const SOURCE_TEST_TARGETS = new Map([
|
||||
...PRECISE_SOURCE_TEST_TARGETS,
|
||||
[
|
||||
@@ -271,6 +285,11 @@ const SOURCE_TEST_TARGETS = new Map([
|
||||
"extensions/telegram/src/directory-contract.test.ts",
|
||||
],
|
||||
],
|
||||
[
|
||||
"src/plugin-sdk/channel-reply-pipeline.ts",
|
||||
["src/plugins/contracts/plugin-sdk-subpaths.test.ts", ...GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
],
|
||||
["src/plugin-sdk/reply-runtime.ts", ["src/plugins/contracts/plugin-sdk-subpaths.test.ts"]],
|
||||
[
|
||||
"test/helpers/channels/directory-ids.ts",
|
||||
[
|
||||
@@ -306,10 +325,8 @@ const SOURCE_TEST_TARGETS = new Map([
|
||||
"extensions/telegram/src/directory-contract.test.ts",
|
||||
],
|
||||
],
|
||||
[
|
||||
"src/auto-reply/reply/dispatch-from-config.ts",
|
||||
["src/auto-reply/reply/dispatch-from-config.test.ts"],
|
||||
],
|
||||
["src/auto-reply/reply/dispatch-from-config.ts", GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
["src/auto-reply/reply/source-reply-delivery-mode.ts", GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
[
|
||||
"src/auto-reply/reply/effective-reply-route.ts",
|
||||
[
|
||||
@@ -317,6 +334,12 @@ const SOURCE_TEST_TARGETS = new Map([
|
||||
"src/auto-reply/reply/dispatch-from-config.test.ts",
|
||||
],
|
||||
],
|
||||
["src/auto-reply/reply/get-reply-run.ts", ["src/auto-reply/reply/followup-runner.test.ts"]],
|
||||
["src/auto-reply/reply/groups.ts", GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
["src/auto-reply/get-reply-options.types.ts", GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
["src/agents/system-prompt.ts", GROUP_VISIBLE_REPLY_PROMPT_TEST_TARGETS],
|
||||
["src/config/types.messages.ts", GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
["src/config/zod-schema.core.ts", GROUP_VISIBLE_REPLY_TEST_TARGETS],
|
||||
["src/auto-reply/reply/commands-acp.ts", ["src/auto-reply/reply/commands-acp.test.ts"]],
|
||||
[
|
||||
"src/auto-reply/reply/dispatch-acp-command-bypass.ts",
|
||||
|
||||
Reference in New Issue
Block a user