@eum-agent/agent-management 1.0.1 → 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/package.json +2 -2
- package/ui/ui.js +23 -9
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"en-US": "Agent Management",
|
|
5
5
|
"zh-CN": "智能体管理"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0
|
|
7
|
+
"version": "1.1.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"description": "Agent definitions, workspaces, avatars and management tools",
|
|
10
10
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"zod": "^4.4.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@eum-agent/plugin": "1.0
|
|
24
|
+
"@eum-agent/plugin": "1.1.0",
|
|
25
25
|
"@types/react": "^19.2.18",
|
|
26
26
|
"@types/react-dom": "^19.2.5",
|
|
27
27
|
"react": "^19.2.0",
|
package/ui/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alert, AlertDialog, Avatar, Button, DataTable, Dialog, DialogContent, DialogHeader, DialogTitle, EmptyState, Failure, Field, FormFailure, Input, InputNumber, PLUGIN_ICONS, Panel, ReadFailure, RenderingRegion, Segmented, Select, SlotOutlet,
|
|
1
|
+
import { Alert, AlertDialog, Avatar, Button, DataTable, Dialog, DialogContent, DialogHeader, DialogTitle, EmptyState, Failure, Field, FormFailure, Input, InputNumber, PLUGIN_ICONS, Panel, ReadFailure, RenderingRegion, Segmented, Select, SlotOutlet, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipHint, TooltipTrigger, Warning, agentDeleted, agentOf, cn, codePoints, contributionsIn, failureText, goToSession, i18next, localeLeaves, pictureOf, pngDataUrl, resolveLabel, useAgents, useAvatarPicker, useBrowserService, useGateway, useGatewayAction, useGatewayRead, useNavigation, usePlugins, useToast, useTranslation, uuid } from "@eum-agent/host/framework";
|
|
2
2
|
import { createContext, createElement, forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region ui-src/styles.css?raw
|
|
@@ -8,6 +8,8 @@ var styles_default = "@layer components {\n [data-slot=\"settings-panel\"] {\n
|
|
|
8
8
|
/** Text owned by this browser capability. */
|
|
9
9
|
var catalogue$1 = {
|
|
10
10
|
runSettings: {
|
|
11
|
+
budgetOn: "On",
|
|
12
|
+
budgetOff: "Off",
|
|
11
13
|
blocked: "Configuration recovery is incomplete. New rounds are blocked until reading succeeds.",
|
|
12
14
|
current: "Current limits: {{steps}} steps per round; token budget {{budget}}.",
|
|
13
15
|
unlimited: "unlimited",
|
|
@@ -204,6 +206,8 @@ var catalogue$1 = {
|
|
|
204
206
|
/** Text owned by this browser capability. */
|
|
205
207
|
var catalogue = {
|
|
206
208
|
runSettings: {
|
|
209
|
+
budgetOn: "开启",
|
|
210
|
+
budgetOff: "关闭",
|
|
207
211
|
blocked: "配置恢复尚未完成,新轮次暂时阻断;成功重新读取后恢复。",
|
|
208
212
|
current: "当前限额:每轮 {{steps}} 步;token 预算 {{budget}}。",
|
|
209
213
|
unlimited: "不设上限",
|
|
@@ -2172,14 +2176,24 @@ function ExecutionLimits({ ctx, registerGuard }) {
|
|
|
2172
2176
|
/* @__PURE__ */ jsx(Field, {
|
|
2173
2177
|
label: t("runSettings.budgetEnabled"),
|
|
2174
2178
|
inline: true,
|
|
2175
|
-
children: (
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2179
|
+
children: () => /* @__PURE__ */ jsx("div", {
|
|
2180
|
+
className: "flex min-w-0 justify-end",
|
|
2181
|
+
children: /* @__PURE__ */ jsx(Segmented, {
|
|
2182
|
+
label: t("runSettings.budgetEnabled"),
|
|
2183
|
+
value: values.tokenBudget !== void 0 ? "on" : "off",
|
|
2184
|
+
options: [{
|
|
2185
|
+
value: "off",
|
|
2186
|
+
label: t("runSettings.budgetOff")
|
|
2187
|
+
}, {
|
|
2188
|
+
value: "on",
|
|
2189
|
+
label: t("runSettings.budgetOn")
|
|
2190
|
+
}],
|
|
2191
|
+
disabled: saving,
|
|
2192
|
+
onSelect: (value) => setDraft(value === "on" ? {
|
|
2193
|
+
...values,
|
|
2194
|
+
tokenBudget: 0
|
|
2195
|
+
} : { maxSteps: values.maxSteps })
|
|
2196
|
+
})
|
|
2183
2197
|
})
|
|
2184
2198
|
}),
|
|
2185
2199
|
values.tokenBudget !== void 0 && /* @__PURE__ */ jsx(Field, {
|