@odla-ai/cli 0.20.0 → 0.20.1
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 +4 -2
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-I4XURPUK.js → chunk-XBPDHNWO.js} +5 -3
- package/dist/{chunk-I4XURPUK.js.map → chunk-XBPDHNWO.js.map} +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
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-
|
|
9720
|
+
//# sourceMappingURL=chunk-XBPDHNWO.js.map
|