The Integration Gateway is deployment-specific. You need the HTTPS origin
and OAuth audience supplied for your Praxa deployment before live calls can
succeed. Package installation alone does not create a Gateway.
1. Create the project
2. Configure server-only values
.env
NEXT_PUBLIC_, NUXT_PUBLIC_, VITE_, Expo public, or mobile build
variable.
3. Create the client
src/praxa.ts
4. Create and observe a mission
src/run.ts
tsc. A create response is admission evidence only. The final getMission
readback is the authoritative mission projection.
5. Resume after a disconnect
Persist the latest event ID only after your consumer durably processes that event. Reconnect with the cursor:6. Test without a live credential
Inject a fakefetch and assert the outbound contract. This test proves your
application wiring without contacting Praxa:
End-to-end acceptance
Before calling the integration complete, prove all of these with a disposable tenant and least-privilege token:- A valid mission is admitted and can be read by its owner.
- The event stream reconnects from a saved cursor without losing events.
- Replaying the same body and idempotency key returns the same logical work.
- Reusing the key with a changed body returns a conflict.
- A missing or expired token fails before application success is reported.
- An under-scoped token is denied.
- A foreign-tenant run ID is not disclosed.
- The mission reaches a terminal projection or is deliberately cancelled.
Configuration and authentication
Add token refresh, timeouts, cancellation, redacted observability, and
contract pinning.
Mission events
Handle resumable SSE, event filtering, stream cancellation, and terminal
reconciliation.