@fluid-app/fluid-cli 0.1.704 → 0.1.706

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as redeemIdentityLink, C as FLUID_API_ERROR, D as getFluidApiBase, E as fetchUserCompanies, J as filterCatalog, M as signup, N as switchCompany, O as isInsecureRemoteBase, P as validateToken, Q as walkCommands, T as confirmMfa, X as visibleOptions, Y as rootCommand, Z as visibleSubcommands, _ as getAuthToken, c as inputsModeActive, g as getActiveProfile, i as INPUTS_MODE_ENV, j as sendMfa, k as pollAgentAccess, l as registerInputsHook, s as exitOnInputsError, u as createInputsReader, x as resolveCredentialSource } from "../hook-DWBNOh4_.mjs";
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-Q0c-7eVh.mjs";
3
3
  import { A as isClientProfile, C as writeConfig, S as updateConfig, T as getConfigDir, _ as primeClientProfile, b as readConfig, 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 isStrictConfig, x as readStoredConfig, y as resolveIdentityUrl } from "../profiles-CpG6O9Zi.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
@@ -2022,7 +2022,7 @@ async function loadPlugins(program, basePath) {
2022
2022
  const preferInstallation = process.env["FLUID_CLI_PREFER_INSTALLATION_PLUGINS"] === "1";
2023
2023
  const discovered = discoverPlugins(basePath, void 0, {
2024
2024
  preferInstallation,
2025
- installationOnly: process.env[INPUTS_MODE_ENV] === "resolve"
2025
+ installationOnly: process.env["FLUID_INPUTS_MODE"] === "resolve" || Boolean(process.env["FLUID_TOKEN_FD"])
2026
2026
  });
2027
2027
  const { enabledPlugins } = readConfig();
2028
2028
  const allowedSet = enabledPlugins !== null ? new Set(enabledPlugins) : null;
@@ -2288,6 +2288,12 @@ if (process.argv[2] === "__refresh-update-check") {
2288
2288
  await refreshUpdateCache(getConfigDir());
2289
2289
  process.exit(0);
2290
2290
  }
2291
+ try {
2292
+ readFdToken();
2293
+ } catch (error) {
2294
+ console.error(error instanceof Error ? error.message : String(error));
2295
+ process.exit(1);
2296
+ }
2291
2297
  const packageRoot = process.cwd();
2292
2298
  const program = new Command();
2293
2299
  program.name("fluid").description("Fluid Commerce CLI").version(version);