impel-cli 0.18.5 → 0.18.7
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/package.json +1 -1
- package/src/commands/auth.js +4 -1
- package/src/commands/setup.js +1 -1
- package/src/commands/status.js +9 -3
package/package.json
CHANGED
package/src/commands/auth.js
CHANGED
|
@@ -81,7 +81,10 @@ export async function cmdAuth(argv) {
|
|
|
81
81
|
console.log(` gateway: ${gatewayUrl}`);
|
|
82
82
|
console.log(` app: ${appUrl}`);
|
|
83
83
|
console.log(` pat: ${maskSecret(pat)}`);
|
|
84
|
-
|
|
84
|
+
const missingTenantGuidance = RUNTIME_BRAND.tenant.defaultId
|
|
85
|
+
? `not selected — run \`${RUNTIME_BRAND.cli.command} setup\``
|
|
86
|
+
: "not selected — run `impel tenant list`";
|
|
87
|
+
console.log(` tenant: ${config.tenantId || missingTenantGuidance}`);
|
|
85
88
|
if (config.productAccess) console.log(` access: ${config.productAccess}`);
|
|
86
89
|
console.log("");
|
|
87
90
|
const setupAction = process.platform === "darwin"
|
package/src/commands/setup.js
CHANGED
|
@@ -475,7 +475,7 @@ export async function cmdSetup(argv, overrides = {}) {
|
|
|
475
475
|
|
|
476
476
|
printReconciliationSummary(report);
|
|
477
477
|
console.log(`CLI tenant: ${selected.id}`);
|
|
478
|
-
console.log("Change it: impel tenant use <tenant>");
|
|
478
|
+
if (!RUNTIME_BRAND.tenant.defaultId) console.log("Change it: impel tenant use <tenant>");
|
|
479
479
|
console.log("Launch: impel claude | impel codex");
|
|
480
480
|
if (!report.passed || sharedFailure) {
|
|
481
481
|
if (sharedFailure) console.error(`Shared setup failure: ${sharedFailure}`);
|
package/src/commands/status.js
CHANGED
|
@@ -106,13 +106,15 @@ export async function cmdStatus(overrides = {}) {
|
|
|
106
106
|
} catch (error) {
|
|
107
107
|
console.log(`Authentication check: unavailable (${error?.message || error})`);
|
|
108
108
|
console.log(`Current CLI tenant: ${config.tenantId || "not selected"}`);
|
|
109
|
-
console.log(
|
|
109
|
+
console.log(RUNTIME_BRAND.tenant.defaultId
|
|
110
|
+
? `Run \`${RUNTIME_BRAND.cli.command} setup\` to refresh authentication and repair the local tenant.`
|
|
111
|
+
: "Run `impel setup` to refresh authentication, then `impel update` to repair local tenants.");
|
|
110
112
|
if (RUNTIME_BRAND.cli.packageName === "impel-cli") io.maybePrintUpdateNotice();
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
console.log(`Current CLI tenant: ${selected.tenantId}`);
|
|
115
|
-
console.log("Change it with: impel tenant use <tenant>");
|
|
117
|
+
if (!RUNTIME_BRAND.tenant.defaultId) console.log("Change it with: impel tenant use <tenant>");
|
|
116
118
|
const scopes = new Set(selected.scopes || []);
|
|
117
119
|
const scopeKnown = selected.scopes != null;
|
|
118
120
|
const binaries = {
|
|
@@ -142,6 +144,10 @@ export async function cmdStatus(overrides = {}) {
|
|
|
142
144
|
+ `Claude app ${desktop.claude.app}, ChatGPT app ${desktop.codex.app}`,
|
|
143
145
|
);
|
|
144
146
|
}
|
|
145
|
-
if (incomplete)
|
|
147
|
+
if (incomplete) {
|
|
148
|
+
console.log(RUNTIME_BRAND.tenant.defaultId
|
|
149
|
+
? `Repair or finish missing tenant surfaces with: ${RUNTIME_BRAND.cli.command} setup`
|
|
150
|
+
: "Repair or finish missing tenant surfaces with: impel update");
|
|
151
|
+
}
|
|
146
152
|
if (RUNTIME_BRAND.cli.packageName === "impel-cli") io.maybePrintUpdateNotice();
|
|
147
153
|
}
|