
















@@ -662,6 +662,7 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
662662["scripts/check-dependency-pins.mjs", ["test/scripts/check-dependency-pins.test.ts"]],
663663["scripts/check-deadcode-unused-files.mjs", ["test/scripts/check-deadcode-unused-files.test.ts"]],
664664["scripts/check-dynamic-import-warts.mjs", ["test/scripts/check-dynamic-import-warts.test.ts"]],
665+["scripts/generate-prompt-snapshots.ts", ["test/scripts/prompt-snapshots.test.ts"]],
665666[
666667"scripts/lib/config-boundary-guard.mjs",
667668[
@@ -1022,6 +1023,7 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
10221023["scripts/lib/official-external-plugin-catalog.json", OFFICIAL_EXTERNAL_CATALOG_TEST_TARGETS],
10231024["scripts/lib/official-external-provider-catalog.json", OFFICIAL_EXTERNAL_CATALOG_TEST_TARGETS],
10241025["scripts/lib/direct-run.mjs", ["test/scripts/changed-lanes.test.ts"]],
1026+["scripts/prompt-snapshot-files.ts", ["test/scripts/prompt-snapshots.test.ts"]],
10251027[
10261028"scripts/docker/cleanup-smoke/Dockerfile",
10271029[...DOCKERFILE_CACHE_AND_DIGEST_TEST_TARGETS, "test/scripts/docker-build-helper.test.ts"],
@@ -1154,6 +1156,7 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
11541156"test/scripts/upgrade-survivor-config-recipe.test.ts",
11551157],
11561158],
1159+["scripts/sync-codex-model-prompt-fixture.ts", ["test/scripts/prompt-snapshots.test.ts"]],
11571160[
11581161"scripts/lib/npm-pack-budget.mjs",
11591162["test/release-check.test.ts", "test/scripts/test-install-sh-docker.test.ts"],
@@ -1845,6 +1848,7 @@ const TEST_HELPER_NORMALIZE_TEXT_TARGETS = [
18451848"src/auto-reply/status.test.ts",
18461849"src/tui/components/chat-log.test.ts",
18471850];
1851+const HAPPY_PATH_PROMPT_SNAPSHOT_HELPER_TEST_TARGETS = ["test/scripts/prompt-snapshots.test.ts"];
18481852const SOURCE_TEST_TARGETS = new Map([
18491853 ...PRECISE_SOURCE_TEST_TARGETS,
18501854["src/test-utils/openclaw-test-state.ts", ["src/test-utils/openclaw-test-state.test.ts"]],
@@ -1861,6 +1865,10 @@ const SOURCE_TEST_TARGETS = new Map([
18611865CHANNEL_CONTRACT_REGISTRY_BACKED_TARGETS,
18621866],
18631867["test/helpers/normalize-text.ts", TEST_HELPER_NORMALIZE_TEXT_TARGETS],
1868+[
1869+"test/helpers/agents/happy-path-prompt-snapshots.ts",
1870+HAPPY_PATH_PROMPT_SNAPSHOT_HELPER_TEST_TARGETS,
1871+],
18641872["ui/config/control-ui-chunking.ts", ["ui/src/ui/control-ui-chunking.test.ts"]],
18651873[
18661874"src/plugin-sdk/test-helpers/directory-ids.ts",
@@ -3086,10 +3094,19 @@ function shouldRouteChangedTargetWithoutImportGraph(changedPath) {
30863094);
30873095}
308830963097+function resolvePromptSnapshotFixtureTargets(changedPath) {
3098+if (!/^test\/fixtures\/agents\/prompt-snapshots\/.+\.(?:json|md)$/u.test(changedPath)) {
3099+return null;
3100+}
3101+return ["test/scripts/prompt-snapshots.test.ts"];
3102+}
3103+30893104function resolvePreciseChangedTestTargets(changedPath, options) {
30903105const cwd = options.cwd ?? process.cwd();
30913106const mappedTargets =
3092-resolveToolingTestTargets(changedPath) ?? SOURCE_TEST_TARGETS.get(changedPath);
3107+resolveToolingTestTargets(changedPath) ??
3108+SOURCE_TEST_TARGETS.get(changedPath) ??
3109+resolvePromptSnapshotFixtureTargets(changedPath);
30933110if (mappedTargets) {
30943111return mappedTargets;
30953112}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。