// Isolated configuration widgets: metadata and validation only. Every other operation fails closed. // Real server validation is covered separately by the authenticated HTTP regression suite. import request from '/src/cmvr/request.ts' request.defaults.adapter = async config => { const method = (config.method || 'get').toLowerCase() const path = config.url || '' if (method === 'get' && ['/scanner/configuration', '/rotary-base/configuration'].includes(path)) { return { data: { code: 200, data: { configured: false } }, status: 200, statusText: 'OK', headers: {}, config } } if (method === 'post' && ['/scanner/validate', '/rotary-base/validate'].includes(path)) { return { data: { code: 200, data: true }, status: 200, statusText: 'OK', headers: {}, config } } throw new Error('Device operations are disabled in component fixtures') }