Initial Commit

This commit is contained in:
2026-01-15 21:52:12 +01:00
committed by erik
parent 3ed42cdeb6
commit 5a70f775f1
6702 changed files with 1389544 additions and 0 deletions

11
node_modules/loupedeck/discovery.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import * as ALL_DEVICES from './device.js'
export async function discover(args) {
const devices = await ALL_DEVICES.LoupedeckDevice.list()
if (devices.length === 0) throw new Error('No devices found')
const { productId, ...connectArgs } = devices[0]
const deviceType = Object.values(ALL_DEVICES).find(dev => dev.productId === productId)
if (!deviceType) throw new Error(`Device with product ID ${productId} not yet supported! Please file an issue at https://github.com/foxxyz/loupedeck/issues`)
const device = new deviceType({ ...args, ...connectArgs })
return device
}