@odla-ai/cli 0.28.0 → 0.28.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-HCNESRIA.js";
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-DDOFM47D.js.map
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,