Run locally
Requires Node.js 22.18 or later. Run from the cloned repository; this file imports the shared client and contracts insrc/. The default uses fictional local fixtures with no credentials, network calls, invitations, or spending.
USERINTUITION_API_KEY securely in the environment and explicitly select --live. Follow the walkthrough for action-specific arguments and approvals. The report and search adapters were checked against the released API and staging; recheck the live contract when integrating a newer API version.
Inputs
Live mode requires —study YOUR_STUDY_ID. Add —fetch-source to fetch the first supporting interview.Expected output
JSON containing mode, report, and source_references. With —fetch-source, a second JSON object contains the reference and source_interview, or a source_status explaining why none was fetched.Side effects
Read-only in live mode; it does not generate a report or start research.Failures
Missing credentials or study ID, HTTP failures, invalid JSON, and unresolved source interviews are failures, not empty evidence. Stale or unknown freshness is reported separately.Complete source file
The following is generated fromexamples/retrieve-study-results/index.ts, not maintained as a separate snippet. SHA-256: 1dca3ac1a43df59b393f2d163e86128c731b146ce505d177a633e4e6bbc69672.

