@opengeni/react 1.0.2-canary.37202341988001 → 1.1.0

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.
@@ -10093,14 +10093,28 @@ var GOAL_LABEL = {
10093
10093
  };
10094
10094
  var GOAL_PAUSED_REASON_SUFFIX = {
10095
10095
  max_auto_continuations: "cap",
10096
- limits: "budget",
10096
+ limits: "limits",
10097
+ model_unavailable: "model",
10098
+ model_policy: "policy",
10099
+ credits: "credits",
10100
+ budget: "budget",
10101
+ usage_limit: "usage limit",
10102
+ usage_policy: "limits",
10103
+ allowance: "allowance",
10097
10104
  user_pause: "manually",
10098
10105
  api: "manually",
10099
10106
  agent: "agent"
10100
10107
  };
10101
10108
  var GOAL_PAUSED_REASON_EXPLANATION = {
10102
10109
  max_auto_continuations: "Paused at the automatic continuation cap. New input (a child result, an agent message, or your prompt) resumes it; you can also resume it here.",
10103
- limits: "Paused because budget or usage limits block another run. Resume once limits allow.",
10110
+ limits: "Paused by an admission limit. Resume when the blocker is resolved.",
10111
+ model_unavailable: "The selected model is unavailable. Choose an available model before resuming.",
10112
+ model_policy: "The selected model is blocked by policy. Choose an allowed model before resuming.",
10113
+ credits: "Insufficient Opengeni credits. Add credits before resuming.",
10114
+ budget: "Monthly model spending limit reached. Resume when the spending limit allows.",
10115
+ usage_limit: "Monthly agent run limit reached. Resume when the run limit allows.",
10116
+ usage_policy: "The application's usage policy blocks another run. Resume when it allows.",
10117
+ allowance: "Opengeni usage allowance exhausted. Resume when your allowance is available.",
10104
10118
  user_pause: "Paused manually by a person or an API call. Resume to let the goal continue on its own.",
10105
10119
  api: "Paused manually by a person or an API call. Resume to let the goal continue on its own.",
10106
10120
  agent: "Paused by the agent: it is waiting on a human decision before continuing."
@@ -10116,6 +10130,8 @@ function sessionChromeGoalPillExplanation(state, record) {
10116
10130
  return "Resolve the session failure, then use Continue or send a message to continue this active goal.";
10117
10131
  }
10118
10132
  if (state === "paused") {
10133
+ const rationale = record?.rationale?.trim();
10134
+ if (rationale) return rationale;
10119
10135
  return record?.pausedReason ? GOAL_PAUSED_REASON_EXPLANATION[record.pausedReason] ?? null : null;
10120
10136
  }
10121
10137
  if (state === "scheduled") {
@@ -11665,7 +11681,7 @@ function resolveHostTheme(element) {
11665
11681
  return "light";
11666
11682
  }
11667
11683
  function normalizeToken(value) {
11668
- return value.trim().toLowerCase().replace(/\s+/g, " ");
11684
+ return value.trim().toLowerCase().replace(/\s+/g, " ").replace(/#([\da-f])([\da-f])([\da-f])(?![\da-f])/g, "#$1$1$2$2$3$3").replace(/(^|[\s(,/])0+(\.\d)/g, "$1$2").replace(/(\.\d*?)0+(?=[\s),/%]|$)/g, "$1").replace(/\.(?=[\s),/%]|$)/g, "");
11669
11685
  }
11670
11686
  function hostTokenOverrides(element) {
11671
11687
  const parent = element.parentElement;
@@ -13052,4 +13068,4 @@ export {
13052
13068
  SessionCommands,
13053
13069
  StartupTimings
13054
13070
  };
13055
- //# sourceMappingURL=chunk-IT4BJUGF.js.map
13071
+ //# sourceMappingURL=chunk-6TROCOEK.js.map