Component evidence

Generic Leaf Execution Interface (core/generic-leaf-execution.ts)

agent-device · packages/daemon/src/core/generic-leaf-execution.ts · typescript · MIT
automationinfralang:typescripttag:architecturetag:interface

Defines the contract for executing platform-specific tasks within a daemon architecture, ensuring consistent command handling.

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.
// Shared by the generic dispatcher and its leaves; leaves must not import the dispatcher.

import type { DaemonResponse } from '@agent-device/kernel/contracts';
import type { DaemonCommandContext } from './context.ts';
import type { DaemonRequest } from './daemon-request.ts';
import type { SessionState } from './session-state.ts';

export type GenericPlatformExecutionParams = {
  session: SessionState;
  sessionName: string;
  logPath: string;
  command: string;
  request: DaemonRequest;
  positionals: string[];
  out: string | undefined;
  dispatchContext: DaemonCommandContext;
};

/**
 * What actually performs a generic leaf's pl

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