Drop redundant prompt-builder.ts re-export shim
This commit is contained in:
1 parent
f01fc2cd42
commit
77076e7b29
10 files changed
+10
-10
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
* prompt) is an isolated helper, making the pipeline testable and extensible.
|
* 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 { AppDatabase } from "../database";
|
||||||
import type { ProjectedSkill } from "../skill-types";
|
import type { ProjectedSkill } from "../skill-types";
|
||||||
import type { ConnectorId, ExecutionMode } from "@shared/types";
|
import type { ConnectorId, ExecutionMode } from "@shared/types";
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
export { buildTaskPrompt } from "./prompt-builder/index";
|
|
||||||
export { buildSystemPrompt } from "./prompt-builder/system-prompt";
|
|
||||||
@@ -5,6 +5,8 @@ import { buildSystemPrompt } from "./system-prompt";
|
|||||||
import { renderWakeReason } from "./wake-reasons";
|
import { renderWakeReason } from "./wake-reasons";
|
||||||
import { getSystemMessages } from "./messages";
|
import { getSystemMessages } from "./messages";
|
||||||
|
|
||||||
|
export { buildSystemPrompt } from "./system-prompt";
|
||||||
|
|
||||||
export interface PromptContext {
|
export interface PromptContext {
|
||||||
agent: AgentRecord;
|
agent: AgentRecord;
|
||||||
apiUrl: string;
|
apiUrl: string;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, it } from "vitest";
|
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 type { ApprovalRecord } from "../../../src/shared/types";
|
||||||
import { installSharedSetup } from "./shared-setup";
|
import { installSharedSetup } from "./shared-setup";
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, it } from "vitest";
|
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 type { ApprovalRecord } from "../../../src/shared/types";
|
||||||
import { installSharedSetup } from "./shared-setup";
|
import { installSharedSetup } from "./shared-setup";
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, it } from "vitest";
|
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";
|
import { installSharedSetup } from "./shared-setup";
|
||||||
|
|
||||||
const shared = installSharedSetup();
|
const shared = installSharedSetup();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import { join } from "node:path";
|
|||||||
import { tmpdir } from "node:os";
|
import { tmpdir } from "node:os";
|
||||||
import { afterEach, beforeEach } from "vitest";
|
import { afterEach, beforeEach } from "vitest";
|
||||||
import { AppDatabase } from "../../../src/main/database";
|
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";
|
import type { AgentRecord, ApprovalRecord, TaskRecord } from "../../../src/shared/types";
|
||||||
|
|
||||||
export interface SharedContext {
|
export interface SharedContext {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, it } from "vitest";
|
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";
|
import { installSharedSetup } from "./shared-setup";
|
||||||
|
|
||||||
const shared = installSharedSetup();
|
const shared = installSharedSetup();
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
|
|||||||
import { afterEach, describe, expect, it } from "vitest";
|
import { afterEach, describe, expect, it } from "vitest";
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID } from "node:crypto";
|
||||||
import { AppDatabase } from "../../src/main/database";
|
import { AppDatabase } from "../../src/main/database";
|
||||||
import { buildTaskPrompt } from "../../src/main/prompt-builder";
|
import { buildTaskPrompt } from "../../src/main/prompt-builder/index";
|
||||||
|
|
||||||
const tempDirs: string[] = [];
|
const tempDirs: string[] = [];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
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";
|
import type { PromptContext } from "../../src/main/prompt-builder/index";
|
||||||
|
|
||||||
function buildCtx(overrides: Partial<PromptContext> = {}): PromptContext {
|
function buildCtx(overrides: Partial<PromptContext> = {}): PromptContext {
|
||||||
|
|||||||
Reference in new issue
Block a user