@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.
package/dist/bin.cjs CHANGED
@@ -599,11 +599,12 @@ async function resumePendingHandshake(ctx, waitMs) {
599
599
  async function freshHandshake(ctx, waitMs) {
600
600
  let started;
601
601
  let stopReminder;
602
+ const provisioning = ctx.grantIntent.optionalProjectCapabilities.includes("app.manage");
602
603
  try {
603
604
  return await (0, import_db.requestToken)({
604
605
  endpoint: ctx.cfg.platformUrl,
605
606
  email: ctx.email,
606
- label: `${ctx.cfg.app.id} provisioner`,
607
+ label: `${ctx.cfg.app.id} ${provisioning ? "provisioner" : "agent"}`,
607
608
  agentHandle: projectAgentHandle(ctx.cfg.app.id),
608
609
  projectIds: [ctx.cfg.app.id],
609
610
  optionalProjectCapabilities: ctx.grantIntent.optionalProjectCapabilities,