@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-STJCWZJU.js";
|
|
5
5
|
import {
|
|
6
6
|
exitCodeFor
|
|
7
7
|
} from "./chunk-UKLSRQ5J.js";
|
|
@@ -9,4 +9,4 @@ export {
|
|
|
9
9
|
exitCodeFor,
|
|
10
10
|
runCli
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=cli-
|
|
12
|
+
//# sourceMappingURL=cli-2WZIFXA6.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -481,11 +481,12 @@ async function resumePendingHandshake(ctx, waitMs) {
|
|
|
481
481
|
async function freshHandshake(ctx, waitMs) {
|
|
482
482
|
let started;
|
|
483
483
|
let stopReminder;
|
|
484
|
+
const provisioning = ctx.grantIntent.optionalProjectCapabilities.includes("app.manage");
|
|
484
485
|
try {
|
|
485
486
|
return await (0, import_db.requestToken)({
|
|
486
487
|
endpoint: ctx.cfg.platformUrl,
|
|
487
488
|
email: ctx.email,
|
|
488
|
-
label: `${ctx.cfg.app.id} provisioner`,
|
|
489
|
+
label: `${ctx.cfg.app.id} ${provisioning ? "provisioner" : "agent"}`,
|
|
489
490
|
agentHandle: projectAgentHandle(ctx.cfg.app.id),
|
|
490
491
|
projectIds: [ctx.cfg.app.id],
|
|
491
492
|
optionalProjectCapabilities: ctx.grantIntent.optionalProjectCapabilities,
|