Skip to content

API Reference parrot_tools.procedures.cli

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.procedures.cli

View source

parrot manuals — operator commands for the procedures plane (FEAT-601 M13).

Alias AuthorizationDenied

Re-exported from parrot_tools.procedures.retrieval.AuthorizationDenied.

Alias ProcedureRetrieval

Re-exported from parrot_tools.procedures.retrieval.ProcedureRetrieval.

Alias RequestContext

Re-exported from parrot_tools.procedures.retrieval.RequestContext.

Function add

Ingest one manual (PDF/DOCX) for the given equipment and revision.

add(obj: dict[str, Any], source: Path, equipment: tuple[str, ...], revision: str, source_uri: Optional[str], force: bool) -> None

Parameter Type Default Description
obj dict[str, Any]
source Path
equipment tuple[str, ...]
revision str
source_uri Optional[str]
force bool

Function add_video

Align a training video's transcript to a manual's steps.

add_video(obj: dict[str, Any], url: str, manual_id: str, transcript: Optional[Path], force: bool) -> None

Parameter Type Default Description
obj dict[str, Any]
url str
manual_id str
transcript Optional[Path]
force bool

Function build_library

Default factory: PostgresManualCatalog + ManualLibrary for tenant (imports are lazy).

build_library(*, dsn: str, tenant: str, storage_root: Path, evidence_root: Path, adapter: Any | None) -> Any

Parameter Type Default Description
dsn str
tenant str
storage_root Path
evidence_root Path
adapter Any | None

Returns: Any

Function export

Write an offline bundle for one manual revision (curator only).

export(obj: dict[str, Any], manual_id: str, out_dir: Path, zip_bundle: bool, include_tips: bool) -> None

Parameter Type Default Description
obj dict[str, Any]
manual_id str
out_dir Path
zip_bundle bool
include_tips bool

Attribute logger

Function manuals

Manuals: ingest assembly manuals, align videos, curate procedures.

manuals(ctx: click.Context, tenant: str, user: str, roles: tuple[str, ...], dsn: str, storage_root: Path, evidence_root: Path) -> None

Parameter Type Default Description
ctx click.Context
tenant str
user str
roles tuple[str, ...]
dsn str
storage_root Path
evidence_root Path

Function queue

List the curator verification queue.

queue(obj: dict[str, Any], limit: int) -> None

Parameter Type Default Description
obj dict[str, Any]
limit int

Function refresh

Re-ingest a new manual revision; tips are re-linked and orphans reported.

refresh(obj: dict[str, Any], manual_id: str, source: Path, revision: str) -> None

Parameter Type Default Description
obj dict[str, Any]
manual_id str
source Path
revision str

Function relink_tips

Re-run the idempotent tip re-link for one manual.

relink_tips(obj: dict[str, Any], manual_id: str) -> None

Parameter Type Default Description
obj dict[str, Any]
manual_id str

Function spike

Run one M0 spike and write its report under artifacts/logs/FEAT-601/.

spike(obj: dict[str, Any], name: str, corpus: Path) -> None

Parameter Type Default Description
obj dict[str, Any]
name str
corpus Path

Function verify

Mark a procedure verified (curator).

verify(obj: dict[str, Any], manual_id: str, procedure_id: str) -> None

Parameter Type Default Description
obj dict[str, Any]
manual_id str
procedure_id str

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally