@odla-ai/cli 0.20.0 → 0.20.2

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.cjs CHANGED
@@ -8711,11 +8711,13 @@ async function loadOrDefaultConfig(configPath, action, appId) {
8711
8711
  }
8712
8712
  return loadProjectConfig(configPath);
8713
8713
  }
8714
+ var PURE_STDOUT = /* @__PURE__ */ new Set(["get", "cat"]);
8714
8715
  async function buildContext2(parsed, deps, action) {
8715
8716
  const configPath = stringOpt(parsed.options.config) ?? "odla.config.mjs";
8716
8717
  const cfg = await loadOrDefaultConfig(configPath, action, stringOpt(parsed.options.app));
8717
8718
  const doFetch = deps.fetch ?? fetch;
8718
8719
  const out = deps.stdout ?? console;
8720
+ const authOut = PURE_STDOUT.has(action) ? { log: (line) => out.error(line), error: (line) => out.error(line) } : out;
8719
8721
  const appId = stringOpt(parsed.options.app) ?? PLATFORM_SCOPE;
8720
8722
  const dryRun = parsed.options["dry-run"] === true;
8721
8723
  if (action === "import" && dryRun) {
@@ -8735,7 +8737,7 @@ async function buildContext2(parsed, deps, action) {
8735
8737
  email: stringOpt(parsed.options.email),
8736
8738
  label: `odla CLI (runbook ${action})`,
8737
8739
  fetch: doFetch,
8738
- stdout: out,
8740
+ stdout: authOut,
8739
8741
  openApprovalUrl: deps.openUrl,
8740
8742
  // Anchor the grant cache to this project, not the shell's cwd.
8741
8743
  rootDir: cfg.rootDir
@@ -8752,7 +8754,7 @@ async function buildContext2(parsed, deps, action) {
8752
8754
  open: void 0
8753
8755
  },
8754
8756
  doFetch,
8755
- out
8757
+ authOut
8756
8758
  );
8757
8759
  return {
8758
8760
  platformUrl: cfg.platformUrl,