Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(plugin): remove redundant receipt fallback
jiajiayao9135a21c7e83
diff --git a/apps/desktop/src/main/cindy-brain/ghostInstallReceipt.ts b/apps/desktop/src/main/cindy-brain/ghostInstallReceipt.tsindex 012c715447..6ebf70bf29 100644--- a/apps/desktop/src/main/cindy-brain/ghostInstallReceipt.ts+++ b/apps/desktop/src/main/cindy-brain/ghostInstallReceipt.ts@@ -8,7 +8,6 @@ import {GHOST_SKILL_MD_MAX_BYTES,ghostManifestToAuthorFormat,isValidGhostId,- validateGhostManifest,validateGhostManifestLocaleResource,validateNormalizedGhostManifest,type GhostManifest,@@ -1089,14 +1088,9 @@ function validateReceipt(if (typeof value.revision !== 'string' || !isRevision(value.revision)) {return { ok: false, reason: 'receipt revision 不合法' };}- // v0.1.48 reads author-format receipt manifests, while a short-lived affected- // build persisted the internal normalized setup shape. Accept only those two- // strictly validated representations and normalize both before continuing- // the receipt-level authorization checks below.- const normalizedManifest = validateNormalizedGhostManifest(value.manifest);- const manifestResult = normalizedManifest.ok- ? normalizedManifest- : validateGhostManifest(value.manifest);+ // This validator accepts the durable author format first, then narrowly+ // reconstructs normalized setup snapshots produced by affected builds.+ const manifestResult = validateNormalizedGhostManifest(value.manifest);if (!manifestResult.ok || manifestResult.manifest.id !== expectedId) {return {ok: false,