feat: restore legacy named playlist workflows

This commit is contained in:
2026-07-12 11:59:18 +09:00
parent a481c96c39
commit af80c36cde
52 changed files with 9261 additions and 83 deletions

View File

@@ -997,6 +997,14 @@
return !!value && trustedPlaylistEntries.has(value);
}
function withEnabled(entry, enabled) {
if (!trustedPlaylistEntries.has(entry) || typeof enabled !== "boolean") return null;
if (entry.enabled === enabled) return entry;
const replacement = Object.freeze({ ...entry, enabled });
trustedPlaylistEntries.add(replacement);
return replacement;
}
return {
bridgeContract,
sourceContract,
@@ -1028,6 +1036,7 @@
createRestoreLoadRequest,
createRestoreSelectionRequest,
materializeRestoredPlaylistEntry,
withEnabled,
isPlaylistEntryPlayable
};
});