@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/index.cjs CHANGED
@@ -8779,11 +8779,13 @@ async function loadOrDefaultConfig(configPath, action, appId) {
8779
8779
  }
8780
8780
  return loadProjectConfig(configPath);
8781
8781
  }
8782
+ var PURE_STDOUT = /* @__PURE__ */ new Set(["get", "cat"]);
8782
8783
  async function buildContext2(parsed, deps, action) {
8783
8784
  const configPath = stringOpt(parsed.options.config) ?? "odla.config.mjs";
8784
8785
  const cfg = await loadOrDefaultConfig(configPath, action, stringOpt(parsed.options.app));
8785
8786
  const doFetch = deps.fetch ?? fetch;
8786
8787
  const out = deps.stdout ?? console;
8788
+ const authOut = PURE_STDOUT.has(action) ? { log: (line) => out.error(line), error: (line) => out.error(line) } : out;
8787
8789
  const appId = stringOpt(parsed.options.app) ?? PLATFORM_SCOPE;
8788
8790
  const dryRun = parsed.options["dry-run"] === true;
8789
8791
  if (action === "import" && dryRun) {
@@ -8803,7 +8805,7 @@ async function buildContext2(parsed, deps, action) {
8803
8805
  email: stringOpt(parsed.options.email),
8804
8806
  label: `odla CLI (runbook ${action})`,
8805
8807
  fetch: doFetch,
8806
- stdout: out,
8808
+ stdout: authOut,
8807
8809
  openApprovalUrl: deps.openUrl,
8808
8810
  // Anchor the grant cache to this project, not the shell's cwd.
8809
8811
  rootDir: cfg.rootDir
@@ -8820,7 +8822,7 @@ async function buildContext2(parsed, deps, action) {
8820
8822
  open: void 0
8821
8823
  },
8822
8824
  doFetch,
8823
- out
8825
+ authOut
8824
8826
  );
8825
8827
  return {
8826
8828
  platformUrl: cfg.platformUrl,