Repository navigation
feat(quickstart): openadapt quickstart --own, your own task from recording to a tool - #2396
Conversation
… login openadapt seal publish now notes each upload next to the Seal key (published-seals.json, mode 0600, no delete token). After openadapt login succeeds, the launcher asks Cloud whether it takes Seal claims and, if so, claims this computer's Seals for that Cloud with a signature by the Seal key over a challenge Cloud minted for the workspace. It prints one line and never changes login's result. openadapt seal claim [RUN_DIR...] does the same on demand and takes folders published before the note existed. Cloud keeps the routes behind LOCAL_SEAL_CLAIMS_ENABLED; with it off the status route answers false and nothing more is sent.
unpublish removes the Seal from the local note. When Cloud reports some ids gone, the claim drops them and claims the rest. Claimed Seals are marked, so a later login sends nothing.
The design and the dashboard's first-run checklist name openadapt login, but only openadapt setup login existed. The new command passes every argument to openadapt-flow login, then claims this computer's published Seals.
…tination rule The claim after login takes only Seals with provenance synthetic-tutorial; any other Seal is claimed only by an explicit openadapt seal claim. Both paths apply the destination rule login applies before a token is sent, with the same --destination-kind and --trusted-host.
…rding to a tool Record a task once in the bundled sample app (synthetic data) or in your own web app with --url, compile it, run it with two new inputs and check each save, then offer to share the two runs' signed summaries (one y/N, default No) and claim them into your workspace when signed in. It ends with the MCP command that gives an agent the program, and the guide for publishing a program as an API endpoint. Recording yourself opens a browser window only after a yes at a terminal with a screen. Without one, OpenAdapt records the sample task in a hidden browser and says so; --url without a screen stops with one line. Runs are hidden unless --watch.
Independent adversarial review: APPROVEFrom: Grok Reviewed only Nit: the ending still says "Publishing prints the endpoint and a curl example," which can be read as if that path is ready for this recorded bundle. The guide link and the lack of a curl are the honest part. Pointer: openadapt-internal#211 |
Quickstart v2, slice "
--own" (design: openadapt-internal#248, option C, step 3). Draft. Stacked on #2365 (this PR's base) and #2395: this branch carries #2395's four claim commits, cherry-picked, so the diff shows them until #2395 merges. Launcher only; nothing underpackages/flowchanges.What it does
openadapt quickstart --own [--url URL] [--watch]:record_tutorial_interactive.--urlrecords your own web app with the real interactive recorder. It always needs you, so without a screen it stops with one line.FlowEngine. Healthy runs make no model calls.--watchshows the window). Each run reads the save back and gets a receipt.publish_quickstart. One link when Cloud supports pairs.openadapt login.claude mcp add openadapt -- openadapt agent serve --bundles <bundle> --mode production --allow-run, with--urlfor your own app. Checked:tools/listserves the program over stdio.What it does not do yet, and why (needs a decision, see the design doc's build log)
pushthenreport-run.pushsanitizes with Presidio and a spaCy model that the launcher'sopenadapt-flow[browser,hosted]doesn't install, and the privacy package won't download the model. It failed on the first try (No module named 'spacy').--ownuses the Seal rail instead: the runs show on the Seal page and in the Home greeting.wrap publishtakes a wrap task, not a recorded bundle. A hosted endpoint can't reach a localhost sample app. So the ending links the guide instead of printing a curl for an endpoint that doesn't exist.Tests
tests/test_quickstart_own.py:--urlwithout a screen gives one line;--urlwith no yes opens nothing;--ownand refuses--urlwithout it;share_runsasks before any upload and never raises.--urlpath throughrecord_interactivein a headless browser against the bundled sample app (a scripted user), compiles it, and checks the password never reachedevents.jsonl.Evidence (headless, no window opened)
docs/quickstart/own-2026-11-21/own-headless.txtand the ending. This is a full--ownrun on macOS with no screen (stdout redirected,BROWSER=true), answering y, against openadapt-cloud#523 in mock mode. Two runs: Done and checked, 2 of 2 record checks, 0 model calls. Both published on one page, then claimed.Rough edge: Flow's plaintext-storage warning prints once per run folder. The demo quickstart's encryption notice would read better here; that's a follow-up.
Do not merge.