@odla-ai/cli 0.28.0 → 0.28.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 +2 -1
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-HCNESRIA.js → chunk-STJCWZJU.js} +3 -2
- package/dist/{chunk-HCNESRIA.js.map → chunk-STJCWZJU.js.map} +1 -1
- package/dist/{cli-DDOFM47D.js → cli-2WZIFXA6.js} +2 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- /package/dist/{cli-DDOFM47D.js.map → cli-2WZIFXA6.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -174,7 +174,7 @@ function absoluteEntryPath(entryPath) {
|
|
|
174
174
|
|
|
175
175
|
// src/bin.ts
|
|
176
176
|
var argv = process.argv.slice(2);
|
|
177
|
-
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-
|
|
177
|
+
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-2WZIFXA6.js")).runCli()).catch((err) => {
|
|
178
178
|
console.error(redactSecrets(`odla-ai: ${err instanceof Error ? err.message : String(err)}`));
|
|
179
179
|
process.exitCode = exitCodeFor(err);
|
|
180
180
|
});
|
|
@@ -394,11 +394,12 @@ async function resumePendingHandshake(ctx, waitMs) {
|
|
|
394
394
|
async function freshHandshake(ctx, waitMs) {
|
|
395
395
|
let started;
|
|
396
396
|
let stopReminder;
|
|
397
|
+
const provisioning = ctx.grantIntent.optionalProjectCapabilities.includes("app.manage");
|
|
397
398
|
try {
|
|
398
399
|
return await requestToken({
|
|
399
400
|
endpoint: ctx.cfg.platformUrl,
|
|
400
401
|
email: ctx.email,
|
|
401
|
-
label: `${ctx.cfg.app.id} provisioner`,
|
|
402
|
+
label: `${ctx.cfg.app.id} ${provisioning ? "provisioner" : "agent"}`,
|
|
402
403
|
agentHandle: projectAgentHandle(ctx.cfg.app.id),
|
|
403
404
|
projectIds: [ctx.cfg.app.id],
|
|
404
405
|
optionalProjectCapabilities: ctx.grantIntent.optionalProjectCapabilities,
|
|
@@ -13025,4 +13026,4 @@ export {
|
|
|
13025
13026
|
isTerminalHostedSecurityStatus,
|
|
13026
13027
|
runCli
|
|
13027
13028
|
};
|
|
13028
|
-
//# sourceMappingURL=chunk-
|
|
13029
|
+
//# sourceMappingURL=chunk-STJCWZJU.js.map
|