@eleanor4devs/provider-contract
v0.0.7
Published
Common Provider Contract — shared TypeScript types for Eleanor's Provider Boxes (Claude Local, Codex Local). See docs/products/eleanor4devs/eleanor4devs-spec.md, DD-10.
Readme
@eleanor4devs/provider-contract
Common Provider Contract — shared TypeScript types for eleanor4devs Provider Boxes.
The contract defines the 8-verb surface every Provider Box (Claude Local, Codex Local, plus Post-MVP cloud boxes) implements:
Execution verbs (6): dispatch, subscribe, inject, pause, resume, query.
Metadata verbs (2): read_session_name, write_session_name.
Plus:
ProviderCapabilitiesdescriptor (DD-24) — each box declares its native support per-feature so Eleanor Core stays agent-agnostic.RunAttemptPhaseconst + frozen array (11 phases) — every dispatch records phase transitions.validateWorkspaceSafety(input)runtime guard +WorkspaceSafetyError— three invariants enforced before any agent process starts.- Branded
ThreadId/SessionIdtypes — opaque IDs that don't collide at the type level.
Consumed by:
@eleanor4devs/sdk— TypeScript SDK.@eleanor4devs/mcp— single-verb MCP server.@eleanor4devs/cli—eleanor4devs install+ auth.- The eleanor4devs backend (Python — types kept in sync manually with the TypeScript surface).
Install
npm install @eleanor4devs/provider-contractUsage
import {
type ProviderBox,
type ProviderCapabilities,
type RunAttemptPhase,
RUN_ATTEMPT_PHASES,
validateWorkspaceSafety,
WorkspaceSafetyError,
} from "@eleanor4devs/provider-contract";
// Validate a workspace path before launching an agent process:
validateWorkspaceSafety({
cwd: "/home/dev/repo",
workspace_path: "/home/dev/repo",
workspace_root: "/home/dev",
identifier: "auth-refactor",
});Spec reference
Internal product spec is private. Public documentation: https://eleanor4devs.com. Each release's GitHub Release notes summarize contract changes.
License
UNLICENSED — code shipped publicly for consumer access only. Contact for licensing terms.
