@onexapis/cli 1.1.55 → 1.1.57

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/cli.mjs CHANGED
@@ -1753,7 +1753,7 @@ function getValidCategories() {
1753
1753
  var AUTH_DIR = path9.join(os.homedir(), ".onexthm");
1754
1754
  var AUTH_FILE = path9.join(AUTH_DIR, "auth.json");
1755
1755
  function getApiUrl() {
1756
- return process.env.ONEXTHM_API_URL || process.env.NEXT_PUBLIC_API_URL || "https://platform-dev.onexeos.com";
1756
+ return process.env.ONEXTHM_API_URL || "https://platform-dev.onexeos.com";
1757
1757
  }
1758
1758
  async function saveAuthTokens(tokens) {
1759
1759
  await fs.ensureDir(AUTH_DIR);
@@ -4713,18 +4713,6 @@ async function publishCommand(options) {
4713
4713
  process.exit(1);
4714
4714
  }
4715
4715
  logger.info(`Logged in as: ${tokens.user.email}`);
4716
- try {
4717
- const payload = JSON.parse(
4718
- Buffer.from(tokens.idToken.split(".")[1], "base64").toString("utf-8")
4719
- );
4720
- logger.info(`[DEBUG] Token sub=${payload.sub}`);
4721
- logger.info(`[DEBUG] Token company=${payload["custom:company_id"] || "(none)"}`);
4722
- logger.info(`[DEBUG] Token exp=${new Date((payload.exp || 0) * 1e3).toISOString()}`);
4723
- logger.info(`[DEBUG] Token iat=${new Date((payload.iat || 0) * 1e3).toISOString()}`);
4724
- logger.info(`[DEBUG] API URL=${getApiUrl()}`);
4725
- } catch {
4726
- logger.info("[DEBUG] Could not decode token payload");
4727
- }
4728
4716
  let themePath;
4729
4717
  if (options.theme) {
4730
4718
  themePath = path9.resolve(options.theme);
@@ -4793,7 +4781,6 @@ async function publishCommand(options) {
4793
4781
  );
4794
4782
  const regData = await regResponse.json();
4795
4783
  const regBody = regData.statusCode ? regData.body : regData;
4796
- logger.info(`[DEBUG] Register status=${regResponse.status} body=${JSON.stringify(regBody).slice(0, 300)}`);
4797
4784
  if (!regResponse.ok) {
4798
4785
  const errMsg = regBody.error || regBody.message || "Registration failed";
4799
4786
  if (!errMsg.includes("already registered")) {