Skip to content

API Reference parrot.sdd.scripts.worker_notification

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

parrot.sdd.scripts.worker_notification

View source

Best-effort feature completion receipts and host desktop delivery (stdlib only).

Attribute DESKTOP_KEYS

Attribute MAX_PAYLOAD_BYTES

Function configure_notification

Write validated launch context and return a quoted Stop command.

configure_notification(cache: Path, *, worktree: Path, env: Mapping[str, str]) -> str | None

Parameter Type Default Description
cache Path
worktree Path
env Mapping[str, str]

Returns: str | None

Function handle_stop

Attempt one notification for a valid Stop and receipt without propagating errors.

handle_stop(payload: Mapping[str, object], *, cache: Path) -> None

Parameter Type Default Description
payload Mapping[str, object]
cache Path

Attribute logger

Function main

Dispatch internal modes, returning zero for operational failures.

main(argv: Sequence[str] | None = None) -> int

Parameter Type Default Description
argv Sequence[str] | None None

Returns: int

Function record_completion

Atomically record eligible feature completion in the existing session cache.

record_completion(env: Mapping[str, str]) -> bool

Parameter Type Default Description
env Mapping[str, str]

Returns: bool

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