Repository navigation
feat(cli): add --local as the name for local mode, keep --anonymous as its alias - #738
Conversation
…s its alias --local names what the flag selects: run on this machine with no Taskless API call, no auth lookup and no verification. --anonymous keeps working on every command so scripts, CI configs and installed recipes need no change. Printed text, recipes and the skill now name --local.
|
@claude /review |
|
Claude finished @aibex-agent[bot]'s task in 1m 48s —— View job Review completeReview mode: incremental — read 0 prior review thread(s) before reviewing.
Findings: none. I read the full diff (38 files) plus the current contents of What I checked specifically:
Only trivial, non-functional nits spotted (not worth blocking on): the No correctness, security, or test-coverage issues found. |
Follow-up from #732:
--anonymousreads as a statement about identity, but what it selects is a mode (run on this machine, no Taskless API call, no auth lookup, no verification).--localsays that.What changes
--anonymous(agent,auth login/logout,check,info,init,update,rule create/improve/meta/delete) now accepts--local, defined once insrc/util/local-flag.ts.--anonymousstays as an alias everywhere, so existing scripts, CI configs, hooks and installed recipes keep working.--helplists both.--local: thechecknot-verified notice, theauth loginrejection (now "auth commands cannot run in local mode (--local)"), therule improvepointer,info's auth line, theagentindex and recipe fetch lines.--local; the skill notes the alias.Kept as-is, deliberately
info --jsonstill reportsauthState: "anonymous": a machine contract, not a flag name.@taskless/cli/promptsoptionanonymousand the<topic>.anonymous.mdvariant filename: internal/exported names, renaming them would break the export for nothing.alias, because citty renders aliases with one dash (-anonymous), which would parse as-a -n -o ….Notes for review
check -lis--preserve-logs, not--local. Unchanged, but worth knowing now that--localexists.cliflag requirement is replaced (REMOVED + ADDED, since the title changes) by one that makes the two spellings equivalent everywhere, so other specs'--anonymousmentions hold for--localwithout restating each.cli-authandcli-checkMODIFIED blocks restate in full; the archive was dry-run checked for dropped scenarios. Archived in this PR.patch(0.y.z, nothing removed).Refs #732