|
| argparse.ArgumentParser | _parser () |
| str | _grant_id (str grantee, str destination) |
| str | _render_message (InboundMessage message) |
| InboundPoller | _default_poller (*, CredentialBroker broker, DestinationStore destinations, CommsBus bus, InboxStore inbox, AuditStore audit, Outbox outbox, str destination_name, int long_poll_seconds) |
| int | _inbox_loop (argparse.Namespace args, *, InboundPoller poller, WorkerReportStore reports, SessionAlertStore alerts, Callable[[str], None] output, Callable[[float], None] sleep, int|None poll_limit) |
| int | _inbox_command (argparse.Namespace args, *, CredentialBroker broker, DestinationStore destinations, CommsBus bus, InboxStore inbox, AuditStore audit, Outbox outbox, WorkerReportStore reports, SessionAlertStore alerts, Callable[[str], None] output, Callable[..., InboundPoller] poller_factory, Callable[[float], None] sleep, int|None poll_limit) |
| int | _relay_once (argparse.Namespace args, *, CredentialBroker broker, DestinationStore destinations, GrantStore grants, CommsBus bus, Outbox outbox, AuditStore audit, Callable[[str], None] output, ConnectorRegistry|None connectors, bool announce_empty=True) |
| int | _relay_command (argparse.Namespace args, *, CredentialBroker broker, DestinationStore destinations, GrantStore grants, CommsBus bus, Outbox outbox, AuditStore audit, Callable[[str], None] output, ConnectorRegistry|None connectors, Callable[[float], None] sleep=time.sleep, int|None poll_limit=None) |
| int | cli (Sequence[str]|None argv=None, *, Callable[[str], str] input_reader=input, Callable[[str], None] output=print, str|Path|None root=None, ConnectorRegistry|None connectors=None, Callable[..., InboundPoller] poller_factory=_default_poller, Callable[[float], None] sleep=time.sleep, int|None poll_limit=None) |
Command-line setup, grant, send, inbox, and worker-report relay workflows.
Dependencies
------------
- oc_connect.audit (AuditStore, timestamp, utc_now - the audit trail and the grant command's timestamps)
- oc_connect.comms (CommsBus - the comms bus layout and the one-shot plan-219 state migration)
- oc_connect.connectors.telegram.destinations (DestinationStore - the named Telegram destinations)
- oc_connect.connectors.telegram.setup_flow (TelegramSetup, SetupCancelled - the setup command)
- oc_connect.connectors.telegram.transport (TelegramTransport - the Bot API transport of the default inbox poller)
- oc_connect.credentials (CredentialBroker, CredentialNotFoundError - the sidecar credential broker)
- oc_connect.delivery (OutboundSender, parse_choices, CHOICES_RULE - the send command and the relay send path)
- oc_connect.egress (EgressBlockedError - reports a relay the egress filter blocked)
- oc_connect.grants (GrantStore, GrantRequiredError - the grant command and send authorisation)
- oc_connect.hub_lane (HubLaneRelay, HubLaneStore, hub_lane_dir, HUB_LANE - relays the hub lane)
- oc_connect.inbound.classify (render_untrusted - the fenced display of operator messages)
- oc_connect.inbound.inbox (InboxStore, InboxStoreError - the inbox list, read and ack actions)
- oc_connect.inbound.poller (InboundPoller - fetches operator replies for the inbox command)
- oc_connect.outbox (Outbox - the durable outbox inside the comms bus)
- oc_connect.registry (ConnectorRegistry - the injectable outbound connector registry)
- oc_connect.session_alerts (SessionAlertRelay, SessionAlertStore, render_event - lists and relays the session-alerts lane)
- oc_connect.worker_reports (WorkerReportRelay, WorkerReportStore, render_event - lists and relays the worker-reports lane)
- oc_connect.workspace (state_dir, WorkspaceNotFoundError - the legacy state directory to migrate and the no-workspace exit)
- option_c_connector_contracts (ConnectorGrant, OperatorConsent, InboundMessage - grant records and inbox messages)