import { getSharedSkillProposalBackground } from './background.js';
/** Register session lifecycle handlers that drive the daily skill-proposal background scanner. */
export default function skillProposalsExtension(shortcut) {
    const background = getSharedSkillProposalBackground();
    shortcut.on('session_start', async (_event, ctx) => {
        background.reset();
        background.startDailyScanIfDue(ctx);
    });
    shortcut.on('session_switch', async (_event, ctx) => {
        background.reset();
        background.startDailyScanIfDue(ctx);
    });
}
//# sourceMappingURL=extension.js.map