Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { __testing as appTesting, AppContext } from "./app.js";
import { appTesting, AppContext } from "./app.js";
import { defaultConfig } from "./config.js";
import { ClawpatchError } from "./errors.js";
import type { PartitionedReviewOutput, Provider } from "./provider-types.js";
Expand Down
3 changes: 1 addition & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,7 @@ function parseMapSource(flags: Record<string, string | boolean>): "heuristic" |
);
}

// eslint-disable-next-line no-underscore-dangle
export const __testing = {
export const appTesting = {
...reviewTesting,
reviewFlagSubset,
};
14 changes: 0 additions & 14 deletions src/mappers/task-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,3 @@ export function taskGraphCommand(
(command) => command.projectRoot === project.root && command.task === task,
)?.command;
}

export function taskGraphProjectCommands(
graph: WorkspaceTaskGraph,
project: NodeProjectInfo,
): Record<string, string> {
const commands: Record<string, string> = {};
for (const task of validationTaskNames) {
const command = taskGraphCommand(graph, project, task);
if (command !== undefined && command !== null) {
commands[task] = command;
}
}
return commands;
}
5 changes: 2 additions & 3 deletions src/provider.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { afterEach, describe, expect, it } from "vitest";
import { ClawpatchError } from "./errors.js";
import { __testing, extractJson, providerByName } from "./provider.js";
import { providerTesting, extractJson, providerByName } from "./provider.js";
import { safeProviderPreview } from "./provider-json.js";
import { agentMapJsonSchema, reviewJsonSchema } from "./provider-schema.js";
import { evidenceRefSchema, revalidateOutputSchema, reviewOutputSchema } from "./types.js";

// eslint-disable-next-line no-underscore-dangle
const {
addClaudeModelArgs,
acpxFailureMessage,
Expand Down Expand Up @@ -43,7 +42,7 @@ const {
piThinkingLevel,
providerExitCode,
providerJsonSchema,
} = __testing;
} = providerTesting;

function withEnv(name: string, value: string | undefined, fn: () => void): void {
const previous = process.env[name];
Expand Down
3 changes: 1 addition & 2 deletions src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export function providerByName(name: string): Provider {
throw new ClawpatchError(`unsupported provider: ${name}`, 2, "unsupported-provider");
}

// eslint-disable-next-line no-underscore-dangle
export const __testing = {
export const providerTesting = {
...acpxTesting,
...claudeTesting,
...codexTesting,
Expand Down
2 changes: 0 additions & 2 deletions src/providers/acpx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,6 @@ function acpxPromptRetries(): number {
return Number.isFinite(parsed) && parsed >= 0 ? Math.floor(parsed) : 1;
}

// eslint-disable-next-line no-underscore-dangle

export const acpxTesting = {
acpxFailureMessage,
acpxPromptRetries,
Expand Down