Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@appifex/runner

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appifex/runner

Execution environment abstraction (local/E2B/Mac Runner) for the DTC toolkit

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@appifex/runner

Execution environment abstraction for the DTC toolkit. The same tools work locally, in E2B cloud sandboxes, or on remote Mac Runners.

Usage

import { createRunner, LocalRunner, E2BRunner, RemoteRunner } from '@appifex/runner'

// Factory (reads from DtcConfig.runner)
const runner = createRunner({ type: 'local' })

// Or create directly
const local = new LocalRunner(process.cwd())
const e2b = new E2BRunner({ sandboxId: 'sbx-123', apiKey: 'e2b-key' })
const remote = new RemoteRunner({ runnerUrl: 'https://mac.local:8443', runnerToken: 'amr_tok' })

// All runners share the same interface
const result = await runner.exec('echo', ['hello'])
// { exitCode: 0, stdout: 'hello\n', stderr: '', duration: 12 }

await runner.writeFile('/app/index.ts', 'console.log("hi")')
const code = await runner.readFile('/app/index.ts')
const exists = await runner.exists('/app/package.json')
const files = await runner.glob('/app/**/*.ts')

// Capability detection
runner.capabilities.hasXcode   // true on Mac Runner, false on E2B
runner.capabilities.hasMaestro // true when maestro CLI is available
runner.capabilities.platform   // 'darwin' or 'linux'

Runners

RunnerPlatformUse case
LocalRunnerdarwin/linuxStandalone developer, CI
E2BRunnerlinuxCloud sandbox
RemoteRunnerdarwinSwift/Xcode builds on Mac Runner

Keywords

appifex

FAQs

Package last updated on 20 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts