@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.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  exitCodeFor,
4
4
  runCli
5
- } from "./chunk-I4XURPUK.js";
5
+ } from "./chunk-XBPDHNWO.js";
6
6
 
7
7
  // src/bin.ts
8
8
  runCli().catch((err) => {
@@ -8970,11 +8970,13 @@ async function loadOrDefaultConfig(configPath, action, appId) {
8970
8970
  }
8971
8971
  return loadProjectConfig(configPath);
8972
8972
  }
8973
+ var PURE_STDOUT = /* @__PURE__ */ new Set(["get", "cat"]);
8973
8974
  async function buildContext2(parsed, deps, action) {
8974
8975
  const configPath = stringOpt(parsed.options.config) ?? "odla.config.mjs";
8975
8976
  const cfg = await loadOrDefaultConfig(configPath, action, stringOpt(parsed.options.app));
8976
8977
  const doFetch = deps.fetch ?? fetch;
8977
8978
  const out = deps.stdout ?? console;
8979
+ const authOut = PURE_STDOUT.has(action) ? { log: (line) => out.error(line), error: (line) => out.error(line) } : out;
8978
8980
  const appId = stringOpt(parsed.options.app) ?? PLATFORM_SCOPE;
8979
8981
  const dryRun = parsed.options["dry-run"] === true;
8980
8982
  if (action === "import" && dryRun) {
@@ -8994,7 +8996,7 @@ async function buildContext2(parsed, deps, action) {
8994
8996
  email: stringOpt(parsed.options.email),
8995
8997
  label: `odla CLI (runbook ${action})`,
8996
8998
  fetch: doFetch,
8997
- stdout: out,
8999
+ stdout: authOut,
8998
9000
  openApprovalUrl: deps.openUrl,
8999
9001
  // Anchor the grant cache to this project, not the shell's cwd.
9000
9002
  rootDir: cfg.rootDir
@@ -9011,7 +9013,7 @@ async function buildContext2(parsed, deps, action) {
9011
9013
  open: void 0
9012
9014
  },
9013
9015
  doFetch,
9014
- out
9016
+ authOut
9015
9017
  );
9016
9018
  return {
9017
9019
  platformUrl: cfg.platformUrl,
@@ -9715,4 +9717,4 @@ export {
9715
9717
  exitCodeFor,
9716
9718
  runCli
9717
9719
  };
9718
- //# sourceMappingURL=chunk-I4XURPUK.js.map
9720
+ //# sourceMappingURL=chunk-XBPDHNWO.js.map