WebAgent Vibecoding
Provide the complete docs and OpenAPI schema to your IDE agent, and require it to report missing fields instead of guessing.
Machine-readable context
Suggested rules
text
You are integrating Qoni WebAgent. Treat the attached documentation and OpenAPI 3.1 schema as the only source of truth. If a route, field, or SDK method is missing, say so instead of guessing.
Raw HTTP:
- Base URL: https://webagent.qoni.ai
- Paths: /api/v1/projects/{pid}/...
- Auth: Authorization: Bearer wa_...
- Wire fields are snake_case.
Node.js / TypeScript:
- Install @qoniai/qoni.
- Initialize Qoni({ accessKey, secretKey }) on the server.
- Call delegateToken({ user: { id }, products: [...] }) before runtime products.
- Use qoni.doAnything / deepResearch / webSearch / track; run() returns RunHandle.
Do not use web-agent-sdk, @web-agent/sdk, new Client, client.sessions, runAsync, webSearch.refine, or track.listSnapshots.The /api/v1 prefix is part of the current backend URL. The Node SDK injects the project path internally.