fix: close marketplace client review findings

This commit is contained in:
2026-08-28 21:01:51 +08:00
parent 8dfa542860
commit 1614f7efc1
25 changed files with 1224 additions and 143 deletions

View File

@@ -13,6 +13,7 @@ export const PLUGIN_SIGNING_KEY_ACTIVATION_HOLD = true as const;
export interface PluginSigningKeyStore {
get(keyId: string): Uint8Array | string | null;
readonly sourceMarker?: string;
}
function decodeKey(value: string): Uint8Array | null {
@@ -36,6 +37,7 @@ export function loadCodeOwnedPluginSigningKey(keyId: string): Uint8Array | null
export function createCodeOwnedPluginTrustStore(): PluginSigningKeyStore {
return Object.freeze({
get: loadCodeOwnedPluginSigningKey,
sourceMarker: 'makelore.plugin-trust.code-owned.v1',
});
}