mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-18 05:52:18 +00:00
fix: preserve Grok repair receipt and marketplace identity
This commit is contained in:
1 parent
2e2bd9ea9b
commit
4dc322a288
3 files changed
+68
-20
No files matched your search
@@ -199,8 +199,8 @@ function preparePinnedGrokSource(options = {}) {
|
||||
const registrySource = findRegistrySource(sourceRoot, homeDir);
|
||||
if (!registrySource
|
||||
|| normalizeGitLocation(registrySource.url) !== normalizeGitLocation(sourceUrl)
|
||||
|| registrySource.sha !== sourceSha) {
|
||||
throw new Error('Non-Git Grok source is unverifiable without matching registry URL/SHA evidence');
|
||||
|| !SHA_PATTERN.test(registrySource.sha || '')) {
|
||||
throw new Error('Non-Git Grok source is unverifiable without matching registry URL/commit evidence');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,12 +121,16 @@ function buildRecordedManifestRequest(record) {
|
||||
excludeComponentIds: Array.isArray(request.excludeComponents) ? [...request.excludeComponents] : [],
|
||||
legacyLanguages: Array.isArray(request.legacyLanguages) ? [...request.legacyLanguages] : [],
|
||||
hookConsent: getRecordedHookConsent(state),
|
||||
trust: request.trust === true,
|
||||
consentMcp: Array.isArray(request.consentMcp) ? [...request.consentMcp] : [],
|
||||
};
|
||||
}
|
||||
|
||||
function resolveRecordedManifestPlan(record, context, options = {}) {
|
||||
return createInstallPlanFromRequest(buildRecordedManifestRequest(record), {
|
||||
sourceRoot: context.repoRoot,
|
||||
sourceUrl: record.state.source.repoUrl || undefined,
|
||||
sourceSha: record.state.source.repoCommit || undefined,
|
||||
projectRoot: context.projectRoot,
|
||||
homeDir: context.homeDir,
|
||||
env: context.env,
|
||||
|
||||
Reference in new issue
Block a user