1.0.1: check both tea-cli and tea for every tea command, with a test for each case

This commit is contained in:
Agent committed 2026-10-12 15:45:24 +00:00
1 parent e303c51b23
commit 25cea75eb5
6 files changed
+93 -19

No files matched your search

+1 -1
View File
@@ -397,7 +397,7 @@ export async function pushRepo({ cwd, remote = 'origin', branch, setUpstream = t
/** Resolve "owner/name", a URL, or the cwd's remote into { account, owner, name }. */
export async function resolveRepo({ repo, account: accountId, cwd, remote = 'origin' }) {
const accounts = await listAccounts()
if (!accounts.length) throw new ForgeError('no authorized accounts: run `gh auth login` or `tea-cli login add` on the host', 400)
if (!accounts.length) throw new ForgeError('no authorized accounts: run `gh auth login` or `tea-cli login add` (or `tea login add`) on the host', 400)
let byId = null
if (accountId) {
byId = accounts.find((a) => a.id === accountId || a.name === accountId || `${a.user}@${a.host}` === accountId)