MCPcopy Create free account
hub / github.com/callstack/agent-device / commonProperties

Function commonProperties

src/commands/command-input.ts:569–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

567}
568
569function commonProperties(): Record<string, JsonSchema> {
570 return {
571 session: { type: 'string', description: 'Agent-device session name.' },
572 platform: {
573 type: 'string',
574 enum: PLATFORM_SELECTORS,
575 description: 'Platform selector used to resolve a device.',
576 },
577 deviceTarget: {
578 type: 'string',
579 enum: DEVICE_TARGETS,
580 description: 'Device target form. Maps to the CLI --target flag.',
581 },
582 target: {
583 type: 'string',
584 enum: DEVICE_TARGETS,
585 description:
586 'Alias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element.',
587 },
588 device: { type: 'string', description: 'Device name selector.' },
589 udid: { type: 'string', description: 'iOS device UDID selector.' },
590 serial: { type: 'string', description: 'Android serial selector.' },
591 iosSimulatorDeviceSet: {
592 type: 'string',
593 description: 'iOS simulator device-set path used for device resolution.',
594 },
595 iosXctestrunFile: {
596 type: 'string',
597 description: 'Externally built iOS XCTest runner .xctestrun artifact path.',
598 },
599 iosXctestDerivedDataPath: {
600 type: 'string',
601 description: 'Derived data path for external iOS XCTest runner execution.',
602 },
603 iosXctestEnvDir: {
604 type: 'string',
605 description: 'Writable directory for iOS XCTest runner env overlays.',
606 },
607 androidDeviceAllowlist: {
608 type: 'string',
609 description: 'Android serial allowlist used for device resolution.',
610 },
611 daemonBaseUrl: { type: 'string', description: 'Remote daemon base URL.' },
612 daemonAuthToken: { type: 'string', description: 'Remote daemon auth token.' },
613 tenant: { type: 'string', description: 'Remote tenant identifier.' },
614 runId: { type: 'string', description: 'Lease run identifier.' },
615 leaseId: { type: 'string', description: 'Existing lease identifier.' },
616 cwd: { type: 'string', description: 'Working directory for command execution.' },
617 debug: { type: 'boolean', description: 'Enable debug diagnostics.' },
618 };
619}
620
621function interactionTargetSchema(): JsonSchema {
622 return {

Callers 1

commandInputSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…