luplo.core.import_pipeline

lp import — agent-driven extraction + verification pipeline.

luplo holds zero LLM dependencies; all extraction and code-grounding work happens on the calling agent’s surface. This package only handles the storage protocol: schemas, refusal helpers, and the begin/finalize phases.

Submodules

Classes

ImportManifest

Contract emitted by begin — read by the agent, agent-agnostic.

ImportResults

Envelope submitted by the agent to finalize.

Package Contents

class luplo.core.import_pipeline.ImportManifest

Bases: pydantic.BaseModel

Contract emitted by begin — read by the agent, agent-agnostic.

bundle_id: str
dest_lang: str | None
repo_root: str
sources: ManifestSources
protocol: ProtocolBlock
at_least_one_source() ImportManifest

Ensure the manifest carries at least one of spec or plan.

class luplo.core.import_pipeline.ImportResults

Bases: pydantic.BaseModel

Envelope submitted by the agent to finalize.

bundle_id: str
items: list[ResultItem]
close_work_unit: bool = False