Drop redundant prompt-builder.ts re-export shim

This commit is contained in:
ZacharyZhang-NY committed 2026-04-20 10:30:04 -04:00
1 parent f01fc2cd42
commit 77076e7b29
10 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
* prompt) is an isolated helper, making the pipeline testable and extensible.
*/
import { buildTaskPrompt } from "../prompt-builder";
import { buildTaskPrompt } from "../prompt-builder/index";
import type { AppDatabase } from "../database";
import type { ProjectedSkill } from "../skill-types";
import type { ConnectorId, ExecutionMode } from "@shared/types";
-2
View File
@@ -1,2 +0,0 @@
export { buildTaskPrompt } from "./prompt-builder/index";
export { buildSystemPrompt } from "./prompt-builder/system-prompt";
+2
View File
@@ -5,6 +5,8 @@ import { buildSystemPrompt } from "./system-prompt";
import { renderWakeReason } from "./wake-reasons";
import { getSystemMessages } from "./messages";
export { buildSystemPrompt } from "./system-prompt";
export interface PromptContext {
agent: AgentRecord;
apiUrl: string;
@@ -4,7 +4,7 @@
*/
import { describe, expect, it } from "vitest";
import { buildSystemPrompt } from "../../../src/main/prompt-builder";
import { buildSystemPrompt } from "../../../src/main/prompt-builder/index";
import type { ApprovalRecord } from "../../../src/shared/types";
import { installSharedSetup } from "./shared-setup";
@@ -4,7 +4,7 @@
*/
import { describe, expect, it } from "vitest";
import { buildSystemPrompt, buildTaskPrompt } from "../../../src/main/prompt-builder";
import { buildSystemPrompt, buildTaskPrompt } from "../../../src/main/prompt-builder/index";
import type { ApprovalRecord } from "../../../src/shared/types";
import { installSharedSetup } from "./shared-setup";
@@ -4,7 +4,7 @@
*/
import { describe, expect, it } from "vitest";
import { buildSystemPrompt } from "../../../src/main/prompt-builder";
import { buildSystemPrompt } from "../../../src/main/prompt-builder/index";
import { installSharedSetup } from "./shared-setup";
const shared = installSharedSetup();
@@ -16,7 +16,7 @@ import { join } from "node:path";
import { tmpdir } from "node:os";
import { afterEach, beforeEach } from "vitest";
import { AppDatabase } from "../../../src/main/database";
import { buildSystemPrompt } from "../../../src/main/prompt-builder";
import { buildSystemPrompt } from "../../../src/main/prompt-builder/index";
import type { AgentRecord, ApprovalRecord, TaskRecord } from "../../../src/shared/types";
export interface SharedContext {
@@ -4,7 +4,7 @@
*/
import { describe, expect, it } from "vitest";
import { buildTaskPrompt } from "../../../src/main/prompt-builder";
import { buildTaskPrompt } from "../../../src/main/prompt-builder/index";
import { installSharedSetup } from "./shared-setup";
const shared = installSharedSetup();
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
import { afterEach, describe, expect, it } from "vitest";
import { randomUUID } from "node:crypto";
import { AppDatabase } from "../../src/main/database";
import { buildTaskPrompt } from "../../src/main/prompt-builder";
import { buildTaskPrompt } from "../../src/main/prompt-builder/index";
const tempDirs: string[] = [];
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { buildSystemPrompt } from "../../src/main/prompt-builder";
import { buildSystemPrompt } from "../../src/main/prompt-builder/index";
import type { PromptContext } from "../../src/main/prompt-builder/index";
function buildCtx(overrides: Partial<PromptContext> = {}): PromptContext {