Skip to content

Commit bcfe780

Browse files
fix(decompose): align visual judge completion options
Signed-off-by: Sun-sunshine06 <Sun-sunshine06@users.noreply.github.com>
1 parent ca32119 commit bcfe780

4 files changed

Lines changed: 14 additions & 15 deletions

File tree

apps/desktop/src/main/ipc/generate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ export function registerGenerateIpc({ db, getMainWindow }: RegisterGenerateIpcDe
545545
...(input.baseUrl ? { baseUrl: input.baseUrl } : {}),
546546
...(input.wire ? { wire: input.wire } : {}),
547547
...(input.httpHeaders ? { httpHeaders: input.httpHeaders } : {}),
548-
...(input.capabilities ? { capabilities: input.capabilities } : {}),
549548
...(judgeSignal ? { signal: judgeSignal } : {}),
550549
};
551550
const result = await complete(input.model, judgeMessages, judgeOpts);

packages/core/src/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ import { makeTweaksTool } from './tools/tweaks.js';
114114
import { makeVerifyUiKitParityTool } from './tools/verify-ui-kit-parity.js';
115115
import {
116116
type JudgeVisualParityFn,
117-
type RenderUiKitFn,
118117
makeVerifyUiKitVisualParityTool,
118+
type RenderUiKitFn,
119119
} from './tools/verify-ui-kit-visual-parity.js';
120120

121121
/** Local mirror of the assistant message shape that pi-agent-core emits (via

packages/core/src/index.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ export {
125125
makeInspectWorkspaceTool,
126126
type WorkspaceInspection,
127127
} from './tools/inspect-workspace.js';
128-
export {
129-
makeVerifyUiKitVisualParityTool,
130-
STANDARD_VISUAL_PARITY_CHECKS,
131-
visualParityStatusFromChecks,
132-
type JudgeVisualParityFn,
133-
type RenderUiKitFn,
134-
type VisualParityCheck,
135-
type VisualParityGap,
136-
type VisualParityImageRef,
137-
type VisualParityReport,
138-
type VisualParityStatus,
139-
} from './tools/verify-ui-kit-visual-parity.js';
140128
export {
141129
makePreviewTool,
142130
type PreviewResult,
@@ -161,6 +149,18 @@ export {
161149
type TweakFileInput,
162150
type TweaksDetails,
163151
} from './tools/tweaks.js';
152+
export {
153+
type JudgeVisualParityFn,
154+
makeVerifyUiKitVisualParityTool,
155+
type RenderUiKitFn,
156+
STANDARD_VISUAL_PARITY_CHECKS,
157+
type VisualParityCheck,
158+
type VisualParityGap,
159+
type VisualParityImageRef,
160+
type VisualParityReport,
161+
type VisualParityStatus,
162+
visualParityStatusFromChecks,
163+
} from './tools/verify-ui-kit-visual-parity.js';
164164
export type { PromptComposeOptions };
165165

166166
export interface AttachmentContext {

packages/core/src/tools/verify-ui-kit-visual-parity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { describe, expect, it, vi } from 'vitest';
22
import type { TextEditorFsCallbacks } from './text-editor.js';
33
import {
44
type JudgeVisualParityFn,
5+
makeVerifyUiKitVisualParityTool,
56
type RenderUiKitFn,
67
STANDARD_VISUAL_PARITY_CHECKS,
7-
makeVerifyUiKitVisualParityTool,
88
visualParityStatusFromChecks,
99
} from './verify-ui-kit-visual-parity.js';
1010

0 commit comments

Comments
 (0)