fix(changes): remove opencode evidence mode from ui bridge
This commit is contained in:
parent
ff506d0d96
commit
c065dc703d
3 changed files with 3 additions and 9 deletions
|
|
@ -240,17 +240,10 @@ export interface OpenCodeBackfillTaskLedgerCommandBody {
|
|||
workspaceRoot?: string;
|
||||
deliveryContextPath?: string;
|
||||
attributionMode?: OpenCodeBackfillTaskLedgerAttributionMode;
|
||||
evidenceMode?: OpenCodeBackfillTaskLedgerEvidenceMode;
|
||||
dryRun?: boolean;
|
||||
}
|
||||
|
||||
export type OpenCodeBackfillTaskLedgerAttributionMode = 'strict-delivery' | 'compatible';
|
||||
export type OpenCodeBackfillTaskLedgerEvidenceMode =
|
||||
| 'off'
|
||||
| 'metadata-only'
|
||||
| 'chain-only'
|
||||
| 'snapshot-probe'
|
||||
| 'snapshot-auto';
|
||||
|
||||
export type OpenCodeBackfillTaskLedgerOutcome =
|
||||
| 'imported'
|
||||
|
|
@ -271,7 +264,6 @@ export interface OpenCodeBackfillTaskLedgerCommandData {
|
|||
workspaceRoot?: string;
|
||||
dryRun: boolean;
|
||||
attributionMode?: OpenCodeBackfillTaskLedgerAttributionMode;
|
||||
evidenceMode?: OpenCodeBackfillTaskLedgerEvidenceMode;
|
||||
strictWindowCandidateCount?: number;
|
||||
openCodeDbFingerprint?: string;
|
||||
deliveryLedgerFingerprint?: string;
|
||||
|
|
|
|||
|
|
@ -308,7 +308,6 @@ export class OpenCodeReadinessBridge implements OpenCodeTeamRuntimeBridgePort {
|
|||
...(input.workspaceRoot ? { workspaceRoot: input.workspaceRoot } : {}),
|
||||
dryRun: input.dryRun === true,
|
||||
...(input.attributionMode ? { attributionMode: input.attributionMode } : {}),
|
||||
...(input.evidenceMode ? { evidenceMode: input.evidenceMode } : {}),
|
||||
scannedSessions: 0,
|
||||
scannedToolparts: 0,
|
||||
candidateEvents: 0,
|
||||
|
|
|
|||
|
|
@ -1060,6 +1060,7 @@ describe('ChangeExtractorService', () => {
|
|||
attributionMode: 'strict-delivery',
|
||||
})
|
||||
);
|
||||
expect(backfillOpenCodeTaskLedger.mock.calls[0]?.[0]).not.toHaveProperty('evidenceMode');
|
||||
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
|
@ -1185,6 +1186,8 @@ describe('ChangeExtractorService', () => {
|
|||
})
|
||||
);
|
||||
});
|
||||
const backfillCalls = backfillOpenCodeTaskLedger.mock.calls as unknown as Array<[Record<string, unknown>]>;
|
||||
expect(backfillCalls[0]?.[0]).not.toHaveProperty('evidenceMode');
|
||||
|
||||
expect(settled).toBe(false);
|
||||
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
||||
|
|
|
|||
Loading…
Reference in a new issue