@opengeni/react 1.0.2 → 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.
- package/dist/{chunk-VV5E43LD.js → chunk-6TROCOEK.js} +19 -3
- package/dist/{chunk-VV5E43LD.js.map → chunk-6TROCOEK.js.map} +1 -1
- package/dist/components/session-chrome.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/session-ui.js +1 -1
- package/package.json +3 -3
- package/src/components/session-chrome.tsx +21 -3
|
@@ -10093,14 +10093,28 @@ var GOAL_LABEL = {
|
|
|
10093
10093
|
};
|
|
10094
10094
|
var GOAL_PAUSED_REASON_SUFFIX = {
|
|
10095
10095
|
max_auto_continuations: "cap",
|
|
10096
|
-
limits: "
|
|
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
|
|
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") {
|
|
@@ -13052,4 +13068,4 @@ export {
|
|
|
13052
13068
|
SessionCommands,
|
|
13053
13069
|
StartupTimings
|
|
13054
13070
|
};
|
|
13055
|
-
//# sourceMappingURL=chunk-
|
|
13071
|
+
//# sourceMappingURL=chunk-6TROCOEK.js.map
|