feat(cli): add first-run web onboarding and replayable auth - #25
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b315d51415
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (format === "json") { | ||
| console.log(JSON.stringify({ ok, findings: sorted }, null, 2)); | ||
| await emit(`${JSON.stringify({ ok, findings: sorted }, null, 2)}\n`); | ||
| return exitCode; | ||
| } |
There was a problem hiding this comment.
Honor --out when validate-extracted runs in text mode
The new --out option is documented and wired as “write output to file instead of stdout”, but this branch only uses emit(...) for JSON output, so the default text mode still writes to stdout/stderr and never creates the output file. This breaks automation that relies on interfacectl validate-extracted --out ... without also forcing --format json.
Useful? React with 👍 / 👎.
| const fileDoc = existsSync(metadataPath) | ||
| ? toValidDocument(JSON.parse(await readFile(metadataPath, "utf-8"))) | ||
| : { schemaVersion: 2, profiles: [] }; |
There was a problem hiding this comment.
Guard auth metadata JSON parsing against corruption
Parsing auth-profiles.json is now unguarded, so any malformed/truncated file throws and aborts all auth-backed flows (auth list/test/revoke, plus init/analyze paths that inspect profiles). This is a regression from the previous tolerant behavior and creates a hard failure mode from a single bad local file instead of recovering as an empty profile set.
Useful? React with 👍 / 👎.
Summary
interfacectl initandinterfacectl analyze, including generated analysis, draft design-system, contract, and extraction artifactsTesting