Tags: clerk/cli
Tags
fix: handle whitespace in GitHub API JSON when parsing tag_name (#223) * fix: handle whitespace in GitHub API JSON when parsing tag_name in install script The grep patterns assumed no space between JSON keys and values ("tag_name":"v1.0.2"), but the GitHub API returns a space after the colon ("tag_name": "v1.0.2"). This caused the curl install command to always fail with "no stable release found". Co-Authored-By: Claude Opus 4.6 <[email protected]> * chore: add empty changeset Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
docs(skill): teach +clerk_test email + test-phone pattern for agents (#… …227) * docs(skill): teach +clerk_test email suffix and 424242 OTP for agent test users Updates skills/clerk/references/recipes.md with a new "Test users" subsection under Users, and appends a one-sentence pointer to the After Setup section of all 13 clerk init --prompt handoff prompts. Closes AIE-897. * docs(skill): add test-phone pattern for agent test users Extends the bundled clerk skill's Test users recipe with the US fictional-phone pattern (+1 XXX 555-0100 through +1 XXX 555-0199), paired with the existing 424242 OTP, so agents can exercise SMS-based auth flows in development without real phone access. Refs AIE-897. * chore(changeset): fold phone changeset into the test-user-guidance changeset The folded PR carries one combined changelog entry covering both email and phone patterns. Removes the now-duplicate phone changeset.
fix(doctor): check config at the CLI's canonical path (#220) Doctor was hardcoded to look for `~/.clerk/config.json`, but the CLI migrated to `env-paths` and writes config to the platform-specific location (e.g. `~/Library/Preferences/clerk-cli/` on macOS). Signed-in, linked users saw a false "config does not exist" warning that pushed AI agents into unnecessary re-auth loops. Export `getConfigFile()` from `lib/config.ts` as the single source of truth for the path, use it in `checkConfigFile`, and migrate the doctor test from mutating `CLERK_CONFIG_DIR` at call time to the canonical `_setConfigDir()` hook. Also sweeps stale `~/.clerk/config.json` references from four READMEs and one doc comment.
fix(agent): warn on sandboxed Clerk runs (#226) * docs(skill): document host-execution requirement in Clerk skill AI coding agents (Codex, Claude Code) run shell commands in a sandbox by default, where the credential store, ~/.clerk, linked project metadata, .env* files, and outbound network are unavailable. The CLI depends on all of them, so sandboxed `clerk doctor`/`whoami`/`auth login` runs falsely report not-signed-in or not-linked. Add an "Execution environment" section at the top of the bundled skill's SKILL.md listing the host-local state the CLI needs, the commands that must run on the host, and guidance to rerun on the host before trusting a sandboxed failure. Add a summary bullet to the agent mode reference's "What NOT to do" list pointing at the new section. Refs AIE-896. * docs(changeset): add patch changeset for AIE-896 skill sandbox guidance * fix(agent): warn on sandboxed Clerk host access * fix(auth-server): clear timeout on bind failure
fix(release): publish the root readme to npm (#216) npm renders package pages from the published package root rather than the repository root. Copy the repo README into packages/cli during publish so the npm package stays in sync without maintaining a second tracked README.
PreviousNext