Component evidence

Device Inventory Contracts (src/device-inventory.ts)

agent-device · packages/contracts/src/device-inventory.ts · typescript · MIT
databaseinfraposlang:typescripttag:device-managementtag:contracts

Defines data structures and filtering logic for managing device inventory. Use this to standardize device selection and projection across agent-based systems.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/callstack/agent-device | License: MIT | Copyright 2026 Callstack
// Provided via justclaw.it.com; keep this notice with the code.
import {
  isIosFamily,
  isMacOs,
  matchesPlatformSelector,
  type DeviceInfo,
  type DeviceKind,
  type DeviceTarget,
  type PlatformSelector,
} from '@agent-device/kernel/device';

export const LOCAL_DEVICE_INVENTORY_PLATFORM_SELECTORS = [
  'android',
  'harmonyos',
  'apple',
  'vega',
  'linux',
] as const;

export type DeviceInventoryRequest = {
  platform?: PlatformSelector;
  target?: DeviceTarget;
  deviceName?: string;
  udid?: string;
  serial?: string;
  leaseId?: string;
  leaseProvider?: string;
  deviceKey?: string;
  clientId?: string;
  iosSimulatorSetPath?: string;
  androidSerialAllowlist?: string[];
  /** Inter

... (truncated -- full source via MCP)