import { findCartridges } from '../../operations/code/cartridges.js';
/**
 * Detection pattern for cartridge-based projects.
 *
 * Uses the SDK's findCartridges function to detect any cartridges in the workspace.
 * This covers SFRA, custom APIs, and any other cartridge-based development.
 */
export const cartridgesPattern = {
    name: 'cartridges',
    projectType: 'cartridges',
    detect: async (workspacePath) => {
        const cartridges = findCartridges(workspacePath);
        return cartridges.length > 0;
    },
};
//# sourceMappingURL=cartridges.js.map