@indigoai-us/hq-cli 5.103.4 → 5.103.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/utils/vault-api.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/utils/vault-api.js
CHANGED
|
@@ -368,10 +368,12 @@ async function resolveCompanyFromMemberships(token) {
|
|
|
368
368
|
if (active.length === 1) {
|
|
369
369
|
return active[0].companyUid;
|
|
370
370
|
}
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
// Prefer the slug (the documented `--company` input) over the raw uid; fall
|
|
372
|
+
// back to the uid only when the server did not enrich a slug.
|
|
373
|
+
const picks = active.map((m) => ` --company ${m.companySlug ?? m.companyUid}`);
|
|
374
|
+
throw new CompanySelectionError(`Multiple active companies found. Re-run with --company <slug> to ` +
|
|
373
375
|
`pick one:\n` +
|
|
374
|
-
|
|
376
|
+
picks.join('\n'));
|
|
375
377
|
}
|
|
376
378
|
export async function getCompanyUid(token, companySlug) {
|
|
377
379
|
// Vault API keys are company-bound. Entity slug resolution has no keyed
|