@orangecheck/agent-openai / postActionToFleet
Function: postActionToFleet()
function postActionToFleet(action: ActionEnvelope, client: FleetClient): Promise<PostActionResult>;
Defined in: index.ts:235
POST a stamped action envelope to fleet.ochk.io/api/actions. The fleet re-derives the action id, validates agent-must-match- delegation, persists, fans out to Nostr (kind 30084), submits to OC Stamp, and triggers any subscribed webhooks. Throws on non-2xx with the server's reason string.
Parameters
| Parameter | Type |
|---|---|
action | ActionEnvelope |
client | FleetClient |
Returns
Promise<PostActionResult>