// packages/skill-shared/src/errors.ts
export class NotAuthenticatedError extends Error {
    type = 'auth';
    hint = 'Run mbs login to authenticate';
    constructor() {
        super('Not authenticated');
        this.name = 'NotAuthenticatedError';
    }
}
export class MBSError extends Error {
    type;
    hint;
    constructor(message, type = 'api', hint = '') {
        super(message);
        this.type = type;
        this.hint = hint;
        this.name = 'MBSError';
    }
}
export class PermissionError extends Error {
    type = 'permission';
    hint = 'You do not have permission to perform this action';
    constructor() {
        super('Permission denied');
        this.name = 'PermissionError';
    }
}
//# sourceMappingURL=errors.js.map