feat(changes): use default opencode evidence path
This commit is contained in:
parent
8da5b7f25d
commit
50b2c715e7
2 changed files with 0 additions and 7 deletions
|
|
@ -46,7 +46,6 @@ import type { AgentChangeSet, ChangeStats, TaskChangeSetV2 } from '@shared/types
|
||||||
|
|
||||||
const logger = createLogger('Service:ChangeExtractorService');
|
const logger = createLogger('Service:ChangeExtractorService');
|
||||||
const OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE = 'strict-delivery' as const;
|
const OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE = 'strict-delivery' as const;
|
||||||
const OPEN_CODE_AUTO_BACKFILL_EVIDENCE_MODE = 'chain-only' as const;
|
|
||||||
const OPEN_CODE_MAX_DISCOVERED_LANES = 500;
|
const OPEN_CODE_MAX_DISCOVERED_LANES = 500;
|
||||||
|
|
||||||
/** Кеш-запись: данные + mtime файла + время протухания */
|
/** Кеш-запись: данные + mtime файла + время протухания */
|
||||||
|
|
@ -426,7 +425,6 @@ export class ChangeExtractorService {
|
||||||
sourceGeneration,
|
sourceGeneration,
|
||||||
deliveryContextFingerprint,
|
deliveryContextFingerprint,
|
||||||
attributionMode: OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE,
|
attributionMode: OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE,
|
||||||
evidenceMode: OPEN_CODE_AUTO_BACKFILL_EVIDENCE_MODE,
|
|
||||||
});
|
});
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const cached = this.openCodeBackfillCache.get(cacheKey);
|
const cached = this.openCodeBackfillCache.get(cacheKey);
|
||||||
|
|
@ -501,7 +499,6 @@ export class ChangeExtractorService {
|
||||||
projectDir,
|
projectDir,
|
||||||
workspaceRoot,
|
workspaceRoot,
|
||||||
attributionMode: OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE,
|
attributionMode: OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE,
|
||||||
evidenceMode: OPEN_CODE_AUTO_BACKFILL_EVIDENCE_MODE,
|
|
||||||
...(deliveryContext.filePath ? { deliveryContextPath: deliveryContext.filePath } : {}),
|
...(deliveryContext.filePath ? { deliveryContextPath: deliveryContext.filePath } : {}),
|
||||||
});
|
});
|
||||||
void appendOpenCodeTaskChangeDiag({
|
void appendOpenCodeTaskChangeDiag({
|
||||||
|
|
@ -841,7 +838,6 @@ export class ChangeExtractorService {
|
||||||
sourceGeneration?: string | null;
|
sourceGeneration?: string | null;
|
||||||
deliveryContextFingerprint: string;
|
deliveryContextFingerprint: string;
|
||||||
attributionMode: typeof OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE;
|
attributionMode: typeof OPEN_CODE_AUTO_BACKFILL_ATTRIBUTION_MODE;
|
||||||
evidenceMode: typeof OPEN_CODE_AUTO_BACKFILL_EVIDENCE_MODE;
|
|
||||||
}): string {
|
}): string {
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
teamName: input.teamName,
|
teamName: input.teamName,
|
||||||
|
|
@ -852,7 +848,6 @@ export class ChangeExtractorService {
|
||||||
sourceGeneration: input.sourceGeneration ?? '',
|
sourceGeneration: input.sourceGeneration ?? '',
|
||||||
deliveryContextFingerprint: input.deliveryContextFingerprint,
|
deliveryContextFingerprint: input.deliveryContextFingerprint,
|
||||||
attributionMode: input.attributionMode,
|
attributionMode: input.attributionMode,
|
||||||
evidenceMode: input.evidenceMode,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1058,7 +1058,6 @@ describe('ChangeExtractorService', () => {
|
||||||
projectDir,
|
projectDir,
|
||||||
workspaceRoot: projectPath,
|
workspaceRoot: projectPath,
|
||||||
attributionMode: 'strict-delivery',
|
attributionMode: 'strict-delivery',
|
||||||
evidenceMode: 'chain-only',
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
||||||
|
|
@ -1183,7 +1182,6 @@ describe('ChangeExtractorService', () => {
|
||||||
workspaceRoot: projectPath,
|
workspaceRoot: projectPath,
|
||||||
deliveryContextPath: expect.stringContaining('delivery-context.json'),
|
deliveryContextPath: expect.stringContaining('delivery-context.json'),
|
||||||
attributionMode: 'strict-delivery',
|
attributionMode: 'strict-delivery',
|
||||||
evidenceMode: 'chain-only',
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue