Skip to content

API Reference parrot.integrations.slack.devloop.transport

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

parrot.integrations.slack.devloop.transport

View source

SlackDevLoopTransport — the only Slack-facing implementation of DevLoopTransport (FEAT-555 M11).

Alias GateView

Re-exported from parrot.integrations.devloop.models.GateView.

Alias Requester

Re-exported from parrot.integrations.devloop.models.Requester.

Alias RunEvent

Re-exported from parrot.integrations.devloop.models.RunEvent.

Alias RunRecord

Re-exported from parrot.integrations.devloop.models.RunRecord.

Alias SlackAgentWrapper

Re-exported from parrot.integrations.slack.wrapper.SlackAgentWrapper.

Class SlackDevLoopTransport

Implements DevLoopTransport (spec §3 M8) over wrapper.post_message / update_message / open_dm. Never raises.

Parameter Type Default Description
wrapper SlackAgentWrapper

Method SlackDevLoopTransport.ephemeral

POST an ephemeral reply to a Slack response_url (pattern: interactive.py:255-270).

ephemeral(response_url: str, text: str) -> None

Parameter Type Default Description
response_url str
text str

Method SlackDevLoopTransport.permalink

https://slack.com/archives//p — works without knowing the team domain.

permalink(record: RunRecord) -> str

Parameter Type Default Description
record RunRecord

Returns: str

Method SlackDevLoopTransport.render_status

render_status(records: list[RunRecord]) -> str

Parameter Type Default Description
records list[RunRecord]

Returns: str

Method SlackDevLoopTransport.post_run_dispatched

Thread root; falls back to a DM thread (open_dm) when the bot is not in the channel.

post_run_dispatched(record: RunRecord) -> str

Parameter Type Default Description
record RunRecord

Returns: str

Method SlackDevLoopTransport.post_confirm

post_confirm(pending_id: str, kind: str, fields: Dict[str, str], requester: Requester, channel_id: str) -> str

Parameter Type Default Description
pending_id str
kind str
fields Dict[str, str]
requester Requester
channel_id str

Returns: str

Method SlackDevLoopTransport.update_confirm

Edit the confirm card in place after confirm/discard/expiry.

update_confirm(pending_id: str, outcome: str, record: Optional[RunRecord]) -> None

Parameter Type Default Description
pending_id str
outcome str
record Optional[RunRecord]

Method SlackDevLoopTransport.post_run_started

post_run_started(record: RunRecord) -> None

Parameter Type Default Description
record RunRecord

Method SlackDevLoopTransport.post_spawn_failed

post_spawn_failed(record: RunRecord, error: str) -> None

Parameter Type Default Description
record RunRecord
error str

Method SlackDevLoopTransport.post_gate

post_gate(record: RunRecord, gate: GateView) -> None

Parameter Type Default Description
record RunRecord
gate GateView

Method SlackDevLoopTransport.update_gate

update_gate(record: RunRecord, gate: GateView) -> None

Parameter Type Default Description
record RunRecord
gate GateView

Method SlackDevLoopTransport.update_status

Create-or-update the run's status card.

Debounced to at most one chat.update per status_debounce_seconds (trailing edge) per run, gated by config.status_card. Best-effort: never raises. Terminal phases flush immediately instead of waiting for the debounce window, so the last state is always shown.

update_status(record: RunRecord, state: Dict[str, Any]) -> None

Parameter Type Default Description
record RunRecord The run the status update belongs to.
state Dict[str, Any] The folded DevLoopSessionState.model_dump().

Method SlackDevLoopTransport.post_terminal

post_terminal(record: RunRecord, event: RunEvent) -> None

Parameter Type Default Description
record RunRecord
event RunEvent

Alias blocks

Re-exported from parrot.integrations.slack.devloop.blocks.

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