@fluid-app/fluid-cli 0.1.788 → 0.1.789
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/dist/bin/fluid.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as walkCommands, A as pollAgentAccess, D as fetchUserCompanies, E as confirmMfa, F as validateToken, M as sendMfa, N as signup, O as getFluidApiBase, P as switchCompany, Q as visibleSubcommands, S as resolveCredentialSource, X as rootCommand, Y as filterCatalog, Z as visibleOptions, _ as getAuthToken, c as inputsModeActive, g as getActiveProfile, j as redeemIdentityLink, k as isInsecureRemoteBase, l as registerInputsHook, s as exitOnInputsError, u as createInputsReader, w as FLUID_API_ERROR, x as readFdToken } from "../hook-
|
|
2
|
+
import { $ as walkCommands, A as pollAgentAccess, D as fetchUserCompanies, E as confirmMfa, F as validateToken, M as sendMfa, N as signup, O as getFluidApiBase, P as switchCompany, Q as visibleSubcommands, S as resolveCredentialSource, X as rootCommand, Y as filterCatalog, Z as visibleOptions, _ as getAuthToken, c as inputsModeActive, g as getActiveProfile, j as redeemIdentityLink, k as isInsecureRemoteBase, l as registerInputsHook, s as exitOnInputsError, u as createInputsReader, w as FLUID_API_ERROR, x as readFdToken } from "../hook-GXnvAYs-.mjs";
|
|
3
3
|
import { A as isClientProfile, C as readStoredConfig, D as getConfigDir, E as isStrictConfig, S as readConfig, T as writeConfig, _ as primeClientProfile, c as sessionFacts, j as isIdentityProfile, l as signInWithBrowser, n as describeIdentityError, o as primeIdentityProfile, p as clientAccessToken, r as identityToken, t as endUnusedSessions, u as signOutIdentity, w as updateConfig, y as resolveIdentityUrl } from "../profiles-DqDZHbAv.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -2244,7 +2244,7 @@ async function whoamiEnvToken(token) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
spinner.succeed(chalk.green("Authenticated (token from FLUID_TOKEN)"));
|
|
2246
2246
|
console.log(` Company: ${chalk.bold(result.value.name)}`);
|
|
2247
|
-
if (token.startsWith(COMPANY_TOKEN_PREFIX)) console.log(chalk.yellow(" A company API token has no user.
|
|
2247
|
+
if (token.startsWith(COMPANY_TOKEN_PREFIX)) console.log(chalk.yellow(" A company API token has no user. Where Sites and Sites hosting are on for the company and its role may change themes, it can create and deploy company sites; sharing, featuring and previews need a signed-in admin: run `fluid login`."));
|
|
2248
2248
|
if (!baseUrl) console.log(chalk.yellow(" FLUID_API_BASE is not set. With FLUID_TOKEN and no saved login, the sites commands need it, such as https://api.fluid.app."));
|
|
2249
2249
|
}
|
|
2250
2250
|
const whoamiCommand = new Command("whoami").description("Show the current authenticated profile").action(async () => {
|