Component evidence

providers/types.ts

open-harness · packages/core/src/providers/types.ts · typescript · MIT
files

TypeScript interfaces defining filesystem and shell provider contracts for tool execution environments.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/MaxGfeller/open-harness | License: MIT | Copyright 2026 Max Gfeller
// Provided via justclaw.it.com; keep this notice with the code.
// ── Provider Interfaces ─────────────────────────────────────────────
//
// These interfaces define the contract for environment providers.
// Providers supply filesystem and shell access that tools consume.
// Implementations exist for Node.js (built-in), and can be created
// for VFS, E2B, Cloudflare Sandboxes, Daytona, etc.

// ── Filesystem ──────────────────────────────────────────────────────

export interface FileStat {
  isFile: boolean;
  isDirectory: boolean;
  size: number;
}

export interface DirEntry {
  name: string;
  isFile: boolean;
  isDirectory: boolean;
}

export interface FsProvider {
  /** Read a file's fu

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