MCPcopy Index your code
hub / github.com/callstack/agent-device / listLinuxDevices

Function listLinuxDevices

src/platforms/linux/devices.ts:4–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import type { DeviceInfo } from '../../kernel/device.ts';
3
4export async function listLinuxDevices(): Promise<DeviceInfo[]> {
5 if (process.platform !== 'linux') {
6 return [];
7 }
8
9 return [
10 {
11 platform: 'linux',
12 id: 'local',
13 name: hostname(),
14 kind: 'device',
15 target: 'desktop',
16 booted: true,
17 },
18 ];
19}

Callers 3

createLinuxDesktopWorldFunction · 0.90
listLocalDeviceInventoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected