@iblai/iblai-js 2.50.0 → 2.50.1
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/web-containers/source/action-tooltip.js +9 -0
- package/dist/web-containers/source/action-tooltip.js.map +1 -0
- package/dist/web-containers/source/chat/loading-message.js +11 -0
- package/dist/web-containers/source/chat/loading-message.js.map +1 -0
- package/dist/web-containers/source/components/chat/loading-message.js +11 -0
- package/dist/web-containers/source/components/chat/loading-message.js.map +1 -0
- package/dist/web-containers/source/components/mentors/mentor-selection-grid.js +4 -2
- package/dist/web-containers/source/components/mentors/mentor-selection-grid.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +9 -5
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/web-containers/source/components/workflows/action-tooltip.js +9 -0
- package/dist/web-containers/source/components/workflows/action-tooltip.js.map +1 -0
- package/dist/web-containers/source/components/workflows/node-config-panel.js +574 -0
- package/dist/web-containers/source/components/workflows/node-config-panel.js.map +1 -0
- package/dist/web-containers/source/components/workflows/tool-dialogs.js +96 -61
- package/dist/web-containers/source/components/workflows/tool-dialogs.js.map +1 -1
- package/dist/web-containers/source/components/workflows/workflow-canvas.js +1026 -0
- package/dist/web-containers/source/components/workflows/workflow-canvas.js.map +1 -0
- package/dist/web-containers/source/components/workflows/workflow-definition.js +352 -0
- package/dist/web-containers/source/components/workflows/workflow-definition.js.map +1 -0
- package/dist/web-containers/source/components/workflows/workflow-editor.js +521 -0
- package/dist/web-containers/source/components/workflows/workflow-editor.js.map +1 -0
- package/dist/web-containers/source/components/workflows/workflow-preview-chat.js +55 -0
- package/dist/web-containers/source/components/workflows/workflow-preview-chat.js.map +1 -0
- package/dist/web-containers/source/components/workflows/workflow-sidebar.js +2 -2
- package/dist/web-containers/source/components/workflows/workflow-sidebar.js.map +1 -1
- package/dist/web-containers/source/components/workflows/workflows-list.js +113 -0
- package/dist/web-containers/source/components/workflows/workflows-list.js.map +1 -0
- package/dist/web-containers/source/connector-management-content.js +9 -5
- package/dist/web-containers/source/connector-management-content.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +9 -5
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/web-containers/source/en.json.js +203 -19
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +197 -13
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +197 -13
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +203 -19
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +197 -13
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +197 -13
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +197 -13
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/loading-message.js +11 -0
- package/dist/web-containers/source/loading-message.js.map +1 -0
- package/dist/web-containers/source/mcp-tab/connector-management-content.js +9 -5
- package/dist/web-containers/source/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/web-containers/source/mentor-selection-grid.js +4 -2
- package/dist/web-containers/source/mentor-selection-grid.js.map +1 -1
- package/dist/web-containers/source/mentors/mentor-selection-grid.js +4 -2
- package/dist/web-containers/source/mentors/mentor-selection-grid.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +203 -19
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +197 -13
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +197 -13
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +197 -13
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +9 -5
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/web-containers/source/next/index.js +5 -0
- package/dist/web-containers/source/next/index.js.map +1 -1
- package/dist/web-containers/source/node-config-panel.js +574 -0
- package/dist/web-containers/source/node-config-panel.js.map +1 -0
- package/dist/web-containers/source/tabs/mcp-tab/connector-management-content.js +9 -5
- package/dist/web-containers/source/tabs/mcp-tab/connector-management-content.js.map +1 -1
- package/dist/web-containers/source/tool-dialogs.js +96 -61
- package/dist/web-containers/source/tool-dialogs.js.map +1 -1
- package/dist/web-containers/source/tsconfig.tsbuildinfo +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.tsbuildinfo +1 -1
- package/dist/web-containers/source/workflow-canvas.js +1026 -0
- package/dist/web-containers/source/workflow-canvas.js.map +1 -0
- package/dist/web-containers/source/workflow-definition.js +352 -0
- package/dist/web-containers/source/workflow-definition.js.map +1 -0
- package/dist/web-containers/source/workflow-editor.js +521 -0
- package/dist/web-containers/source/workflow-editor.js.map +1 -0
- package/dist/web-containers/source/workflow-preview-chat.js +55 -0
- package/dist/web-containers/source/workflow-preview-chat.js.map +1 -0
- package/dist/web-containers/source/workflow-sidebar.js +2 -2
- package/dist/web-containers/source/workflow-sidebar.js.map +1 -1
- package/dist/web-containers/source/workflows/action-tooltip.js +9 -0
- package/dist/web-containers/source/workflows/action-tooltip.js.map +1 -0
- package/dist/web-containers/source/workflows/node-config-panel.js +574 -0
- package/dist/web-containers/source/workflows/node-config-panel.js.map +1 -0
- package/dist/web-containers/source/workflows/tool-dialogs.js +96 -61
- package/dist/web-containers/source/workflows/tool-dialogs.js.map +1 -1
- package/dist/web-containers/source/workflows/workflow-canvas.js +1026 -0
- package/dist/web-containers/source/workflows/workflow-canvas.js.map +1 -0
- package/dist/web-containers/source/workflows/workflow-definition.js +352 -0
- package/dist/web-containers/source/workflows/workflow-definition.js.map +1 -0
- package/dist/web-containers/source/workflows/workflow-editor.js +521 -0
- package/dist/web-containers/source/workflows/workflow-editor.js.map +1 -0
- package/dist/web-containers/source/workflows/workflow-preview-chat.js +55 -0
- package/dist/web-containers/source/workflows/workflow-preview-chat.js.map +1 -0
- package/dist/web-containers/source/workflows/workflow-sidebar.js +2 -2
- package/dist/web-containers/source/workflows/workflow-sidebar.js.map +1 -1
- package/dist/web-containers/source/workflows/workflows-list.js +113 -0
- package/dist/web-containers/source/workflows/workflows-list.js.map +1 -0
- package/dist/web-containers/source/workflows-list.js +113 -0
- package/dist/web-containers/source/workflows-list.js.map +1 -0
- package/dist/web-containers/source/zh.json.js +197 -13
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-preview-chat.js","sources":["../../../../../../../src/components/workflows/workflow-preview-chat.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","_Fragment"],"mappings":";;;;;;;;;;;AAYA,MAAM,SAAS,GAAG,YAAW,EAAE,CAAC;AAChC,MAAM,IAAI,GAAG,MAAK,EAAE,CAAC;SAYL,mBAAmB,CAAC,EAClC,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,aAAa,GACY,EAAA;AACzB,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;IAChB,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC;AACrF,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC;AACrD,IAAA,MAAM,oBAAoB,GAAG,MAAM,CAAC,aAAa,CAAC;AAElD,IAAA,MAAM,EACJ,QAAQ,EACR,WAAW,EACX,cAAc,EACd,UAAU,EACV,SA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5
|
import UserCheck from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/user-check.js';
|
|
6
6
|
import Clock from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/clock.js';
|
|
7
7
|
import GitBranch from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/git-branch.js';
|
|
8
|
-
import
|
|
8
|
+
import Plug from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/plug.js';
|
|
9
9
|
import Shield from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/shield.js';
|
|
10
10
|
import Search from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js';
|
|
11
11
|
import FileText from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/file-text.js';
|
|
@@ -19,7 +19,7 @@ const iconMap = {
|
|
|
19
19
|
note: FileText,
|
|
20
20
|
'file-search': Search,
|
|
21
21
|
guardrails: Shield,
|
|
22
|
-
mcp:
|
|
22
|
+
mcp: Plug,
|
|
23
23
|
'if-else': GitBranch,
|
|
24
24
|
conditional: GitBranch,
|
|
25
25
|
while: Clock,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-sidebar.js","sources":["../../../../../../../src/components/workflows/workflow-sidebar.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;AAmBA,MAAM,OAAO,GAA+B;AAC1C,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"workflow-sidebar.js","sources":["../../../../../../../src/components/workflows/workflow-sidebar.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;AAmBA,MAAM,OAAO,GAA+B;AAC1C,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,WAAW,EAAE,SAAS;AACtB,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,eAAe,EAAE,SAAS;AAC1B,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,WAAW,EAAE,QAAQ;CACtB;AAED,MAAM,eAAe,GAAG;AACtB,IAAA;AACE,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,KAAK,EAAE;AACL,YAAA,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;AAChC,YAAA,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;AAC3B,YAAA,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;AAC9B,SAAA;AACF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,KAAK,EAAE;AACL,YAAA,EAAE,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;AAC3C,YAAA,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;AACzC,YAAA,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;AAC5B,SAAA;AACF,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,KAAK,EAAE;AACL,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,CAAA,EAAA;IAE9D,QACEA,aAAK,SAAS,EAAC,2DAA2D,EAAA,QAAA,EACxEA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,eAAe,YAC3B,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,MACpBC,IAAA,CAAA,KAAA,EAAA,EAAA,QAAA,EAAA,CACED,GAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,0DAA0D,YACrE,OAAO,CAAC,KAAK,EAAA,CACX,EACLA,aAAK,SAAS,EAAC,WAAW,EAAA,QAAA,EACvB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAI;4BAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;4BAC7B,QACEC,IAAA,CAAA,QAAA,EAAA,EAEE,SAAS,EAAC,kJAAkJ,EAC5J,SAAS,EAAA,IAAA,EACT,WAAW,EAAE,CAAC,CAAC,KAAK,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,EAC5C,OAAO,EAAE,MAAM,WAAW,CAAC,IAAI,CAAC,EAAA,QAAA,EAAA,CAEhCD,GAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAA,CAAI,EACzDA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,IAAI,CAAC,KAAK,EAAA,CAAQ,CAAA,EAAA,EAPpB,IAAI,CAAC,EAAE,CAQL;AAEb,wBAAA,CAAC,CAAC,EAAA,CACE,CAAA,EAAA,EApBE,OAAO,CAAC,KAAK,CAqBjB,CACP,CAAC,EAAA,CACE,EAAA,CACF;AAEV;;;;"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useMemo } from 'react';
|
|
3
|
+
import { toast } from 'sonner';
|
|
4
|
+
import { useGetWorkflowsQuery, useCreateWorkflowMutation } from '@iblai/data-layer';
|
|
5
|
+
import { useT, useWebContainersLocale } from '../../i18n/context.js';
|
|
6
|
+
import '../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { Button } from '../ui/button.js';
|
|
8
|
+
import { Input } from '../ui/input.js';
|
|
9
|
+
import { Card, CardContent } from '../ui/card.js';
|
|
10
|
+
import { CreateWorkflowModal } from './create-workflow-modal.js';
|
|
11
|
+
import CircleAlert from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/circle-alert.js';
|
|
12
|
+
import Search from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js';
|
|
13
|
+
import Plus from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/plus.js';
|
|
14
|
+
import LoaderCircle from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js';
|
|
15
|
+
import CircleCheck from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/circle-check.js';
|
|
16
|
+
import Clock from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/clock.js';
|
|
17
|
+
|
|
18
|
+
function WorkflowsList({ tenantKey, mentorId, onOpenWorkflow }) {
|
|
19
|
+
const t = useT();
|
|
20
|
+
const locale = useWebContainersLocale();
|
|
21
|
+
const [searchValue, setSearchValue] = useState('');
|
|
22
|
+
const [isCreateModalOpen, setIsCreateModalOpen] = useState(false);
|
|
23
|
+
const { data, isLoading, error } = useGetWorkflowsQuery({ org: tenantKey, params: { search: searchValue || undefined } }, { skip: !tenantKey });
|
|
24
|
+
const [createWorkflow, { isLoading: isCreating }] = useCreateWorkflowMutation();
|
|
25
|
+
const workflows = useMemo(() => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.results) !== null && _a !== void 0 ? _a : []; }, [data]);
|
|
26
|
+
const getStatusColor = (isActive) => {
|
|
27
|
+
return isActive ? 'text-green-600 bg-green-50' : 'text-gray-600 bg-gray-100';
|
|
28
|
+
};
|
|
29
|
+
const getStatusIcon = (isActive) => {
|
|
30
|
+
return isActive ? jsx(CircleCheck, { className: "h-3 w-3" }) : jsx(Clock, { className: "h-3 w-3" });
|
|
31
|
+
};
|
|
32
|
+
const formatDate = (dateString) => {
|
|
33
|
+
return new Date(dateString).toLocaleDateString(locale, {
|
|
34
|
+
month: 'short',
|
|
35
|
+
day: 'numeric',
|
|
36
|
+
year: 'numeric',
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const getRelativeTime = (dateString) => {
|
|
40
|
+
const date = new Date(dateString);
|
|
41
|
+
const now = new Date();
|
|
42
|
+
const diffMs = now.getTime() - date.getTime();
|
|
43
|
+
const diffMins = Math.floor(diffMs / 60000);
|
|
44
|
+
const diffHours = Math.floor(diffMs / 3600000);
|
|
45
|
+
const diffDays = Math.floor(diffMs / 86400000);
|
|
46
|
+
if (diffMins < 60)
|
|
47
|
+
return t('workflowsWorkflowsList.minutesAgo', { count: diffMins });
|
|
48
|
+
if (diffHours < 24)
|
|
49
|
+
return t('workflowsWorkflowsList.hoursAgo', { count: diffHours });
|
|
50
|
+
if (diffDays < 7)
|
|
51
|
+
return t('workflowsWorkflowsList.daysAgo', { count: diffDays });
|
|
52
|
+
return formatDate(dateString);
|
|
53
|
+
};
|
|
54
|
+
const handleCreateWorkflow = async (name) => {
|
|
55
|
+
const defaultNodes = [
|
|
56
|
+
{
|
|
57
|
+
id: 'start',
|
|
58
|
+
type: 'start',
|
|
59
|
+
position: { x: 100, y: 250 },
|
|
60
|
+
data: { label: 'Start' },
|
|
61
|
+
draggable: true,
|
|
62
|
+
selectable: true,
|
|
63
|
+
connectable: true,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'mentor-1',
|
|
67
|
+
type: 'mentor',
|
|
68
|
+
position: { x: 350, y: 250 },
|
|
69
|
+
data: {
|
|
70
|
+
label: 'Agent',
|
|
71
|
+
subtitle: 'Agent',
|
|
72
|
+
mentor_id: mentorId,
|
|
73
|
+
},
|
|
74
|
+
draggable: true,
|
|
75
|
+
selectable: true,
|
|
76
|
+
connectable: true,
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
const defaultEdges = [{ id: 'e-start-mentor-1', source: 'start', target: 'mentor-1' }];
|
|
80
|
+
let workflow;
|
|
81
|
+
try {
|
|
82
|
+
workflow = await createWorkflow({
|
|
83
|
+
org: tenantKey,
|
|
84
|
+
data: {
|
|
85
|
+
name,
|
|
86
|
+
definition: { nodes: defaultNodes, edges: defaultEdges },
|
|
87
|
+
},
|
|
88
|
+
}).unwrap();
|
|
89
|
+
setIsCreateModalOpen(false);
|
|
90
|
+
}
|
|
91
|
+
catch (_a) {
|
|
92
|
+
toast.error(t('workflowsWorkflowsList.failedToCreateWorkflow'));
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
onOpenWorkflow(workflow);
|
|
96
|
+
};
|
|
97
|
+
if (error) {
|
|
98
|
+
return (jsx("div", { className: "flex h-full items-center justify-center", children: jsxs("div", { className: "text-center", children: [jsx(CircleAlert, { className: "mx-auto mb-4 h-12 w-12 text-red-500" }), jsx("p", { className: "text-gray-600", children: t('workflowsWorkflowsList.failedToLoadWorkflows') })] }) }));
|
|
99
|
+
}
|
|
100
|
+
return (jsxs("div", { className: "flex h-full overflow-hidden", children: [jsx("div", { className: "scrollbar-hide flex-1 overflow-y-auto", children: jsxs("div", { className: "mx-auto max-w-[920px] px-3 py-6 md:px-6 md:py-8", children: [jsxs("div", { className: "mb-6", children: [jsx("h1", { className: "mb-2 text-2xl font-semibold text-gray-700", children: t('workflowsWorkflowsList.pageTitle') }), jsx("p", { className: "text-sm text-gray-600", children: t('workflowsWorkflowsList.pageSubtitle') })] }), jsxs("div", { className: "mb-6 flex flex-col gap-4 sm:flex-row", children: [jsxs("div", { className: "relative flex-1", children: [jsx(Search, { className: "absolute top-1/2 left-4 h-5 w-5 -translate-y-1/2 transform text-gray-400" }), jsx(Input, { placeholder: t('workflowsWorkflowsList.searchPlaceholder'), value: searchValue, onChange: (e) => setSearchValue(e.target.value), className: "w-full rounded-lg border-gray-300 py-3 pr-4 pl-12 text-base focus:border-blue-500 focus:ring-2 focus:ring-blue-500" })] }), jsxs(Button, { className: "h-9 rounded-lg bg-gradient-to-r from-[#38A1E5] to-[#7284FF] px-6 py-3 whitespace-nowrap text-white hover:from-[#2E8BD1] hover:to-[#5F6FE8] has-[>svg]:px-3", onClick: () => setIsCreateModalOpen(true), children: [jsx(Plus, { className: "mr-2 h-5 w-5" }), t('workflowsWorkflowsList.createWorkflow')] })] }), isLoading ? (jsx("div", { className: "flex items-center justify-center py-12", children: jsx(LoaderCircle, { className: "h-8 w-8 animate-spin text-gray-400" }) })) : (jsxs(Fragment, { children: [jsx("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2", children: workflows.map((workflow) => {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
return (jsx(Card, { className: "flex w-full cursor-pointer flex-col overflow-hidden rounded-lg border border-[#D0E0FF] bg-[#F5F8FF] transition-shadow hover:shadow-md", onClick: () => onOpenWorkflow(workflow), children: jsxs(CardContent, { className: "p-6", children: [jsxs("div", { className: "mb-3 flex items-start justify-between", children: [jsx("h3", { className: "text-base font-semibold text-gray-900", children: workflow.name }), jsxs("span", { className: `inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium ${getStatusColor((_a = workflow.is_active) !== null && _a !== void 0 ? _a : false)}`, children: [getStatusIcon((_b = workflow.is_active) !== null && _b !== void 0 ? _b : false), workflow.is_active
|
|
103
|
+
? t('workflowsWorkflowsList.statusActive')
|
|
104
|
+
: t('workflowsWorkflowsList.statusDraft')] })] }), jsx("p", { className: "mb-4 line-clamp-2 text-sm leading-relaxed text-gray-600", children: workflow.description || t('workflowsWorkflowsList.noDescription') }), jsxs("div", { className: "flex items-center justify-between text-xs text-gray-500", children: [jsx("span", { children: t('workflowsWorkflowsList.modified', {
|
|
105
|
+
time: getRelativeTime(workflow.updated_at),
|
|
106
|
+
}) }), jsx("span", { children: t('workflowsWorkflowsList.created', {
|
|
107
|
+
date: formatDate(workflow.created_at),
|
|
108
|
+
}) })] })] }) }, workflow.unique_id));
|
|
109
|
+
}) }), workflows.length === 0 && !isLoading && (jsxs("div", { className: "py-12 text-center", children: [jsx("p", { className: "mb-4 text-gray-500", children: t('workflowsWorkflowsList.noWorkflowsFound') }), jsxs(Button, { variant: "outline", onClick: () => setIsCreateModalOpen(true), className: "h-9 border-gray-300 has-[>svg]:px-3", children: [jsx(Plus, { className: "mr-2 h-4 w-4" }), t('workflowsWorkflowsList.createFirstWorkflow')] })] }))] }))] }) }), jsx(CreateWorkflowModal, { open: isCreateModalOpen, onOpenChange: setIsCreateModalOpen, onCreateWorkflow: handleCreateWorkflow, isCreating: isCreating })] }));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { WorkflowsList };
|
|
113
|
+
//# sourceMappingURL=workflows-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows-list.js","sources":["../../../../../../../src/components/workflows/workflows-list.tsx"],"sourcesContent":[null],"names":["_jsx","CheckCircle2","_jsxs","AlertCircle","Loader2","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;AAmBM,SAAU,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAsB,EAAA;AACvF,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,MAAM,GAAG,sBAAsB,EAAE;IACvC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IAClD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AAEjE,IAAA,MAAM,EAAE,IAAI,EAAE,SAAS,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import { useState, useMemo } from 'react';
|
|
3
|
+
import { toast } from 'sonner';
|
|
4
|
+
import { useGetWorkflowsQuery, useCreateWorkflowMutation } from '@iblai/data-layer';
|
|
5
|
+
import { useT, useWebContainersLocale } from '../../i18n/context.js';
|
|
6
|
+
import '../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { Button } from '../ui/button.js';
|
|
8
|
+
import { Input } from '../ui/input.js';
|
|
9
|
+
import { Card, CardContent } from '../ui/card.js';
|
|
10
|
+
import { CreateWorkflowModal } from './create-workflow-modal.js';
|
|
11
|
+
import CircleAlert from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/circle-alert.js';
|
|
12
|
+
import Search from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/search.js';
|
|
13
|
+
import Plus from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/plus.js';
|
|
14
|
+
import LoaderCircle from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js';
|
|
15
|
+
import CircleCheck from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/circle-check.js';
|
|
16
|
+
import Clock from '../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/clock.js';
|
|
17
|
+
|
|
18
|
+
function WorkflowsList({ tenantKey, mentorId, onOpenWorkflow }) {
|
|
19
|
+
const t = useT();
|
|
20
|
+
const locale = useWebContainersLocale();
|
|
21
|
+
const [searchValue, setSearchValue] = useState('');
|
|
22
|
+
const [isCreateModalOpen, setIsCreateModalOpen] = useState(false);
|
|
23
|
+
const { data, isLoading, error } = useGetWorkflowsQuery({ org: tenantKey, params: { search: searchValue || undefined } }, { skip: !tenantKey });
|
|
24
|
+
const [createWorkflow, { isLoading: isCreating }] = useCreateWorkflowMutation();
|
|
25
|
+
const workflows = useMemo(() => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.results) !== null && _a !== void 0 ? _a : []; }, [data]);
|
|
26
|
+
const getStatusColor = (isActive) => {
|
|
27
|
+
return isActive ? 'text-green-600 bg-green-50' : 'text-gray-600 bg-gray-100';
|
|
28
|
+
};
|
|
29
|
+
const getStatusIcon = (isActive) => {
|
|
30
|
+
return isActive ? jsx(CircleCheck, { className: "h-3 w-3" }) : jsx(Clock, { className: "h-3 w-3" });
|
|
31
|
+
};
|
|
32
|
+
const formatDate = (dateString) => {
|
|
33
|
+
return new Date(dateString).toLocaleDateString(locale, {
|
|
34
|
+
month: 'short',
|
|
35
|
+
day: 'numeric',
|
|
36
|
+
year: 'numeric',
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const getRelativeTime = (dateString) => {
|
|
40
|
+
const date = new Date(dateString);
|
|
41
|
+
const now = new Date();
|
|
42
|
+
const diffMs = now.getTime() - date.getTime();
|
|
43
|
+
const diffMins = Math.floor(diffMs / 60000);
|
|
44
|
+
const diffHours = Math.floor(diffMs / 3600000);
|
|
45
|
+
const diffDays = Math.floor(diffMs / 86400000);
|
|
46
|
+
if (diffMins < 60)
|
|
47
|
+
return t('workflowsWorkflowsList.minutesAgo', { count: diffMins });
|
|
48
|
+
if (diffHours < 24)
|
|
49
|
+
return t('workflowsWorkflowsList.hoursAgo', { count: diffHours });
|
|
50
|
+
if (diffDays < 7)
|
|
51
|
+
return t('workflowsWorkflowsList.daysAgo', { count: diffDays });
|
|
52
|
+
return formatDate(dateString);
|
|
53
|
+
};
|
|
54
|
+
const handleCreateWorkflow = async (name) => {
|
|
55
|
+
const defaultNodes = [
|
|
56
|
+
{
|
|
57
|
+
id: 'start',
|
|
58
|
+
type: 'start',
|
|
59
|
+
position: { x: 100, y: 250 },
|
|
60
|
+
data: { label: 'Start' },
|
|
61
|
+
draggable: true,
|
|
62
|
+
selectable: true,
|
|
63
|
+
connectable: true,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'mentor-1',
|
|
67
|
+
type: 'mentor',
|
|
68
|
+
position: { x: 350, y: 250 },
|
|
69
|
+
data: {
|
|
70
|
+
label: 'Agent',
|
|
71
|
+
subtitle: 'Agent',
|
|
72
|
+
mentor_id: mentorId,
|
|
73
|
+
},
|
|
74
|
+
draggable: true,
|
|
75
|
+
selectable: true,
|
|
76
|
+
connectable: true,
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
const defaultEdges = [{ id: 'e-start-mentor-1', source: 'start', target: 'mentor-1' }];
|
|
80
|
+
let workflow;
|
|
81
|
+
try {
|
|
82
|
+
workflow = await createWorkflow({
|
|
83
|
+
org: tenantKey,
|
|
84
|
+
data: {
|
|
85
|
+
name,
|
|
86
|
+
definition: { nodes: defaultNodes, edges: defaultEdges },
|
|
87
|
+
},
|
|
88
|
+
}).unwrap();
|
|
89
|
+
setIsCreateModalOpen(false);
|
|
90
|
+
}
|
|
91
|
+
catch (_a) {
|
|
92
|
+
toast.error(t('workflowsWorkflowsList.failedToCreateWorkflow'));
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
onOpenWorkflow(workflow);
|
|
96
|
+
};
|
|
97
|
+
if (error) {
|
|
98
|
+
return (jsx("div", { className: "flex h-full items-center justify-center", children: jsxs("div", { className: "text-center", children: [jsx(CircleAlert, { className: "mx-auto mb-4 h-12 w-12 text-red-500" }), jsx("p", { className: "text-gray-600", children: t('workflowsWorkflowsList.failedToLoadWorkflows') })] }) }));
|
|
99
|
+
}
|
|
100
|
+
return (jsxs("div", { className: "flex h-full overflow-hidden", children: [jsx("div", { className: "scrollbar-hide flex-1 overflow-y-auto", children: jsxs("div", { className: "mx-auto max-w-[920px] px-3 py-6 md:px-6 md:py-8", children: [jsxs("div", { className: "mb-6", children: [jsx("h1", { className: "mb-2 text-2xl font-semibold text-gray-700", children: t('workflowsWorkflowsList.pageTitle') }), jsx("p", { className: "text-sm text-gray-600", children: t('workflowsWorkflowsList.pageSubtitle') })] }), jsxs("div", { className: "mb-6 flex flex-col gap-4 sm:flex-row", children: [jsxs("div", { className: "relative flex-1", children: [jsx(Search, { className: "absolute top-1/2 left-4 h-5 w-5 -translate-y-1/2 transform text-gray-400" }), jsx(Input, { placeholder: t('workflowsWorkflowsList.searchPlaceholder'), value: searchValue, onChange: (e) => setSearchValue(e.target.value), className: "w-full rounded-lg border-gray-300 py-3 pr-4 pl-12 text-base focus:border-blue-500 focus:ring-2 focus:ring-blue-500" })] }), jsxs(Button, { className: "h-9 rounded-lg bg-gradient-to-r from-[#38A1E5] to-[#7284FF] px-6 py-3 whitespace-nowrap text-white hover:from-[#2E8BD1] hover:to-[#5F6FE8] has-[>svg]:px-3", onClick: () => setIsCreateModalOpen(true), children: [jsx(Plus, { className: "mr-2 h-5 w-5" }), t('workflowsWorkflowsList.createWorkflow')] })] }), isLoading ? (jsx("div", { className: "flex items-center justify-center py-12", children: jsx(LoaderCircle, { className: "h-8 w-8 animate-spin text-gray-400" }) })) : (jsxs(Fragment, { children: [jsx("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-2", children: workflows.map((workflow) => {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
return (jsx(Card, { className: "flex w-full cursor-pointer flex-col overflow-hidden rounded-lg border border-[#D0E0FF] bg-[#F5F8FF] transition-shadow hover:shadow-md", onClick: () => onOpenWorkflow(workflow), children: jsxs(CardContent, { className: "p-6", children: [jsxs("div", { className: "mb-3 flex items-start justify-between", children: [jsx("h3", { className: "text-base font-semibold text-gray-900", children: workflow.name }), jsxs("span", { className: `inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium ${getStatusColor((_a = workflow.is_active) !== null && _a !== void 0 ? _a : false)}`, children: [getStatusIcon((_b = workflow.is_active) !== null && _b !== void 0 ? _b : false), workflow.is_active
|
|
103
|
+
? t('workflowsWorkflowsList.statusActive')
|
|
104
|
+
: t('workflowsWorkflowsList.statusDraft')] })] }), jsx("p", { className: "mb-4 line-clamp-2 text-sm leading-relaxed text-gray-600", children: workflow.description || t('workflowsWorkflowsList.noDescription') }), jsxs("div", { className: "flex items-center justify-between text-xs text-gray-500", children: [jsx("span", { children: t('workflowsWorkflowsList.modified', {
|
|
105
|
+
time: getRelativeTime(workflow.updated_at),
|
|
106
|
+
}) }), jsx("span", { children: t('workflowsWorkflowsList.created', {
|
|
107
|
+
date: formatDate(workflow.created_at),
|
|
108
|
+
}) })] })] }) }, workflow.unique_id));
|
|
109
|
+
}) }), workflows.length === 0 && !isLoading && (jsxs("div", { className: "py-12 text-center", children: [jsx("p", { className: "mb-4 text-gray-500", children: t('workflowsWorkflowsList.noWorkflowsFound') }), jsxs(Button, { variant: "outline", onClick: () => setIsCreateModalOpen(true), className: "h-9 border-gray-300 has-[>svg]:px-3", children: [jsx(Plus, { className: "mr-2 h-4 w-4" }), t('workflowsWorkflowsList.createFirstWorkflow')] })] }))] }))] }) }), jsx(CreateWorkflowModal, { open: isCreateModalOpen, onOpenChange: setIsCreateModalOpen, onCreateWorkflow: handleCreateWorkflow, isCreating: isCreating })] }));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { WorkflowsList };
|
|
113
|
+
//# sourceMappingURL=workflows-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows-list.js","sources":["../../../../../../../src/components/workflows/workflows-list.tsx"],"sourcesContent":[null],"names":["_jsx","CheckCircle2","_jsxs","AlertCircle","Loader2","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;AAmBM,SAAU,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAsB,EAAA;AACvF,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,MAAM,GAAG,sBAAsB,EAAE;IACvC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IAClD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,C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 -3533,7 +3533,8 @@ var memoryTabSavedMemoriesModal = {
|
|
|
3533
3533
|
var mentorsMentorSelectionGrid = {
|
|
3534
3534
|
searchAgentsPlaceholder: "搜索智能体",
|
|
3535
3535
|
loadingAgents: "正在加载智能体...",
|
|
3536
|
-
noAgentsFound: "未找到与您搜索匹配的智能体。"
|
|
3536
|
+
noAgentsFound: "未找到与您搜索匹配的智能体。",
|
|
3537
|
+
selectAgentAriaLabel: "选择智能体 {name}"
|
|
3537
3538
|
};
|
|
3538
3539
|
var modalsAddPromptModal = {
|
|
3539
3540
|
addNewPrompt: "添加新提示",
|
|
@@ -6131,7 +6132,6 @@ var workflowsToolDialogs = {
|
|
|
6131
6132
|
menuItemCustom: "自定义",
|
|
6132
6133
|
customDialogTitle: "自定义工具",
|
|
6133
6134
|
functionDialogDescription: "模型将根据从用户收到的输入智能决定是否调用函数。",
|
|
6134
|
-
learnMore: "了解更多。",
|
|
6135
6135
|
definitionLabel: "定义",
|
|
6136
6136
|
generateButton: "生成",
|
|
6137
6137
|
examplesButton: "示例",
|
|
@@ -6187,28 +6187,207 @@ var workflowsToolDialogs = {
|
|
|
6187
6187
|
ifLabel: "如果",
|
|
6188
6188
|
elseIfLabel: "否则如果",
|
|
6189
6189
|
caseNamePlaceholder: "用例名称(可选)",
|
|
6190
|
-
conditionPlaceholder: "输入条件,例如
|
|
6190
|
+
conditionPlaceholder: "输入条件,例如 variables['score'] > 5",
|
|
6191
6191
|
whileDescription: "在条件为真时循环",
|
|
6192
|
-
|
|
6193
|
-
|
|
6192
|
+
conditionLabel: "条件",
|
|
6193
|
+
expressionHint: "使用 variables['name'] 引用工作流变量,使用 step_results['step-id']['output'] 引用前面步骤的回复。",
|
|
6194
|
+
maxIterationsLabel: "最大迭代次数",
|
|
6195
|
+
maxIterationsHint: "即使条件仍为真,循环也会在达到此次数后停止。默认值:{count}。",
|
|
6194
6196
|
userApprovalDescription: "暂停以便人工批准或拒绝某个步骤",
|
|
6195
6197
|
messageLabel: "消息",
|
|
6196
6198
|
userApprovalMessagePlaceholder: "描述要向用户显示的消息。例如:是否继续?",
|
|
6197
6199
|
transformDescription: "重塑数据",
|
|
6198
|
-
transformModeExpressions: "表达式",
|
|
6199
|
-
transformModeObject: "对象",
|
|
6200
6200
|
transformKeyLabel: "键",
|
|
6201
6201
|
transformValueLabel: "值",
|
|
6202
|
-
addSchemaButton: "添加架构",
|
|
6203
6202
|
setStateDialogTitle: "设置全局变量",
|
|
6204
6203
|
setStateDescription: "为工作流的状态变量赋值",
|
|
6205
6204
|
assignValueLabel: "赋值",
|
|
6206
6205
|
toVariableLabel: "到变量",
|
|
6207
6206
|
selectPlaceholder: "选择",
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6207
|
+
newButton: "新建",
|
|
6208
|
+
newVariableLabel: "新建变量",
|
|
6209
|
+
variableNamePlaceholder: "输入变量名称",
|
|
6210
|
+
variableNameHint: "以字母开头,只能使用字母、数字和下划线。",
|
|
6211
|
+
noVariablesYet: "暂无变量。请使用“新建”添加。",
|
|
6212
|
+
removeRowLabel: "移除"
|
|
6213
|
+
};
|
|
6214
|
+
var workflowsNodeConfigPanel = {
|
|
6215
|
+
startTitle: "开始",
|
|
6216
|
+
startDescription: "定义工作流输入",
|
|
6217
|
+
inputVariables: "输入变量",
|
|
6218
|
+
stateVariables: "状态变量",
|
|
6219
|
+
addButton: "添加",
|
|
6220
|
+
addStateVariableDialogTitle: "添加状态变量",
|
|
6221
|
+
nameLabel: "名称",
|
|
6222
|
+
variableNamePlaceholder: "输入变量名称",
|
|
6223
|
+
defaultValueLabel: "默认值",
|
|
6224
|
+
defaultValueOptional: "可选",
|
|
6225
|
+
booleanTrue: "真",
|
|
6226
|
+
booleanFalse: "假",
|
|
6227
|
+
defaultValueStringPlaceholder: "输入默认值",
|
|
6228
|
+
saveButton: "保存",
|
|
6229
|
+
mentorDescription: "配置代理的指令、模型和工具",
|
|
6230
|
+
changeButton: "更改",
|
|
6231
|
+
selectButton: "选择",
|
|
6232
|
+
selectAgentHint: "选择代理以加载配置。",
|
|
6233
|
+
instructionsLabel: "指令",
|
|
6234
|
+
modelLabel: "模型",
|
|
6235
|
+
loadingModelPlaceholder: "正在加载模型...",
|
|
6236
|
+
noModelConfiguredPlaceholder: "未配置模型",
|
|
6237
|
+
selectAgentModelPlaceholder: "选择代理以加载模型",
|
|
6238
|
+
toolsLabel: "工具",
|
|
6239
|
+
selectAgentToolsHint: "选择代理以配置工具。",
|
|
6240
|
+
loadingTools: "正在加载工具...",
|
|
6241
|
+
noToolsAvailable: "没有可用的工具。",
|
|
6242
|
+
toolInfoAriaLabel: "关于 {toolLabel} 的更多信息",
|
|
6243
|
+
toolSwitchAriaLabel: "{toolLabel} {status}",
|
|
6244
|
+
toolEnabled: "已启用",
|
|
6245
|
+
toolDisabled: "已禁用",
|
|
6246
|
+
selectAgentDialogTitle: "选择代理",
|
|
6247
|
+
guardrailsDescription: "运行内容审核、PII、越狱或幻觉检查",
|
|
6248
|
+
inputLabel: "输入",
|
|
6249
|
+
piiLabel: "个人身份信息",
|
|
6250
|
+
moderationLabel: "审核",
|
|
6251
|
+
jailbreakLabel: "越狱",
|
|
6252
|
+
hallucinationLabel: "幻觉",
|
|
6253
|
+
continueOnErrorLabel: "出错时继续",
|
|
6254
|
+
fileSearchDescription: "在数据集中搜索相关信息",
|
|
6255
|
+
datasetLabel: "数据集",
|
|
6256
|
+
selectDatasetHint: "选择要搜索的数据集。",
|
|
6257
|
+
maxResultsLabel: "最大结果数",
|
|
6258
|
+
queryLabel: "查询",
|
|
6259
|
+
fileSearchQueryPlaceholder: "输入文件搜索内容。将变量名放在双花括号中即可插入该变量。",
|
|
6260
|
+
selectDatasetDialogTitle: "选择数据集",
|
|
6261
|
+
mcpDescription: "调用 Model Context Protocol 工具",
|
|
6262
|
+
connectedToolsLabel: "已连接工具",
|
|
6263
|
+
selectMcpDialogTitle: "选择 MCP 连接器",
|
|
6264
|
+
whileDescription: "在条件为真时循环",
|
|
6265
|
+
userApprovalDescription: "暂停以等待用户批准或拒绝步骤",
|
|
6266
|
+
messageLabel: "消息",
|
|
6267
|
+
approvalMessagePlaceholder: "描述要向用户显示的消息。例如:是否继续?",
|
|
6268
|
+
transformDescription: "重塑数据",
|
|
6269
|
+
keyLabel: "键",
|
|
6270
|
+
valueLabel: "值",
|
|
6271
|
+
setStateDescription: "为工作流的状态变量赋值",
|
|
6272
|
+
assignValueLabel: "赋值",
|
|
6273
|
+
toVariableLabel: "到变量",
|
|
6274
|
+
selectPlaceholder: "选择",
|
|
6275
|
+
newButton: "新建",
|
|
6276
|
+
ifElseDescription: "创建条件以分支您的工作流",
|
|
6277
|
+
conditionIf: "如果",
|
|
6278
|
+
conditionElseIf: "否则如果 {index}",
|
|
6279
|
+
caseNamePlaceholder: "案例名称(可选)",
|
|
6280
|
+
conditionPlaceholder: "输入条件,例如 variables['score'] > 5",
|
|
6281
|
+
endDescription: "以最后一步的回复结束工作流",
|
|
6282
|
+
closeLabel: "关闭",
|
|
6283
|
+
deleteNodeLabel: "删除 {label}",
|
|
6284
|
+
removeRowLabel: "移除",
|
|
6285
|
+
variableNameHint: "以字母开头,只能使用字母、数字和下划线。",
|
|
6286
|
+
variableNameTaken: "已存在同名变量。",
|
|
6287
|
+
invalidNumberDefault: "请输入数字。",
|
|
6288
|
+
invalidObjectDefault: "请输入有效的 JSON 对象。",
|
|
6289
|
+
invalidListDefault: "请输入有效的 JSON 列表。",
|
|
6290
|
+
noVariablesYet: "暂无变量。请在“开始”步骤中添加,或使用“新建”。",
|
|
6291
|
+
newVariableDialogTitle: "新建变量",
|
|
6292
|
+
expressionHint: "使用 variables['name'] 引用工作流变量,使用 step_results['step-id']['output'] 引用前面步骤的回复。",
|
|
6293
|
+
conditionLabel: "条件",
|
|
6294
|
+
maxIterationsLabel: "最大迭代次数",
|
|
6295
|
+
maxIterationsHint: "即使条件仍为真,循环也会在达到此次数后停止。默认值:{count}。",
|
|
6296
|
+
whileConnectHint: "将“循环”连接到要重复的步骤,再把其中最后一步连回此步骤。条件为假时运行“完成”。",
|
|
6297
|
+
removeItemLabel: "移除 {name}",
|
|
6298
|
+
maxIterationsInvalid: "请输入大于或等于 1 的整数。",
|
|
6299
|
+
stepIdsLabel: "步骤 ID",
|
|
6300
|
+
copyStepReference: "复制 {label} 的引用",
|
|
6301
|
+
deleteVariableTitle: "删除变量",
|
|
6302
|
+
deleteVariableDescription: "确定要删除“{name}”吗?此操作无法撤销。",
|
|
6303
|
+
variableInUseTitle: "变量正在使用",
|
|
6304
|
+
variableInUseDescription: "“{name}”无法删除,因为以下步骤正在使用它。请先从这些步骤中移除它。",
|
|
6305
|
+
cancelButton: "取消",
|
|
6306
|
+
deleteButton: "删除",
|
|
6307
|
+
toolFallbackLabel: "工具"
|
|
6308
|
+
};
|
|
6309
|
+
var workflowsWorkflowCanvas = {
|
|
6310
|
+
ifCondition: "如果",
|
|
6311
|
+
elseIf: "否则如果 {index}",
|
|
6312
|
+
elseCondition: "否则",
|
|
6313
|
+
approve: "批准",
|
|
6314
|
+
reject: "拒绝",
|
|
6315
|
+
stickyNote: "便利贴",
|
|
6316
|
+
changeAgent: "更换代理",
|
|
6317
|
+
deleteNode: "删除 {label}",
|
|
6318
|
+
deleteConnection: "删除连接",
|
|
6319
|
+
whileLoop: "循环",
|
|
6320
|
+
whileDone: "完成",
|
|
6321
|
+
panTool: "平移",
|
|
6322
|
+
selectTool: "选择",
|
|
6323
|
+
undo: "撤销",
|
|
6324
|
+
redo: "重做",
|
|
6325
|
+
zoomOut: "缩小",
|
|
6326
|
+
zoomIn: "放大"
|
|
6327
|
+
};
|
|
6328
|
+
var workflowsWorkflowEditor = {
|
|
6329
|
+
statusActive: "已激活",
|
|
6330
|
+
statusDraft: "草稿",
|
|
6331
|
+
enterWorkflowNameLabel: "输入工作流名称",
|
|
6332
|
+
editWorkflowNameLabel: "编辑工作流名称",
|
|
6333
|
+
unsaved: "未保存",
|
|
6334
|
+
closePreview: "关闭预览",
|
|
6335
|
+
newChatLabel: "工作流预览的新对话",
|
|
6336
|
+
newChat: "新对话",
|
|
6337
|
+
publish: "发布",
|
|
6338
|
+
moreOptionsLabel: "更多工作流选项",
|
|
6339
|
+
deactivate: "停用",
|
|
6340
|
+
activating: "激活中...",
|
|
6341
|
+
activate: "激活",
|
|
6342
|
+
"delete": "删除",
|
|
6343
|
+
preview: "预览",
|
|
6344
|
+
save: "保存",
|
|
6345
|
+
failedToLoadWorkflow: "加载工作流失败",
|
|
6346
|
+
goBack: "返回",
|
|
6347
|
+
workflowNameUpdated: "工作流名称已更新",
|
|
6348
|
+
failedToUpdateName: "更新名称失败",
|
|
6349
|
+
workflowSaved: "工作流已保存",
|
|
6350
|
+
failedToSaveWorkflow: "保存工作流失败",
|
|
6351
|
+
workflowPublished: "工作流已发布",
|
|
6352
|
+
workflowHasValidationIssues: "工作流存在验证问题",
|
|
6353
|
+
failedToPublishWorkflow: "发布工作流失败",
|
|
6354
|
+
workflowDeactivated: "工作流已停用",
|
|
6355
|
+
failedToDeactivateWorkflow: "停用工作流失败",
|
|
6356
|
+
workflowActivated: "工作流已激活",
|
|
6357
|
+
failedToActivateWorkflow: "激活工作流失败",
|
|
6358
|
+
workflowDeleted: "工作流已删除",
|
|
6359
|
+
failedToDeleteWorkflow: "删除工作流失败",
|
|
6360
|
+
validationErrors: "{count, plural, one {# 个错误} other {# 个错误}}",
|
|
6361
|
+
validationWarnings: "{count, plural, one {# 个警告} other {# 个警告}}",
|
|
6362
|
+
categoryCore: "核心",
|
|
6363
|
+
categoryTools: "工具",
|
|
6364
|
+
categoryLogic: "逻辑",
|
|
6365
|
+
categoryData: "数据",
|
|
6366
|
+
agentNodeLabel: "智能体",
|
|
6367
|
+
agentCheckedAtRuntime: "每个“智能体”步骤中的智能体会在工作流运行时进行检查。",
|
|
6368
|
+
agentStepMissingAgent: "有一个“智能体”步骤尚未选择智能体。"
|
|
6369
|
+
};
|
|
6370
|
+
var workflowsWorkflowPreviewChat = {
|
|
6371
|
+
emptyTitle: "预览您的智能体",
|
|
6372
|
+
emptyDescription: "像用户一样向智能体发送提示。"
|
|
6373
|
+
};
|
|
6374
|
+
var workflowsWorkflowsList = {
|
|
6375
|
+
failedToCreateWorkflow: "创建工作流失败",
|
|
6376
|
+
failedToLoadWorkflows: "加载工作流失败",
|
|
6377
|
+
pageTitle: "工作流",
|
|
6378
|
+
pageSubtitle: "为您的智能体创建和管理自动化工作流",
|
|
6379
|
+
searchPlaceholder: "搜索工作流...",
|
|
6380
|
+
createWorkflow: "创建工作流",
|
|
6381
|
+
statusActive: "活跃",
|
|
6382
|
+
statusDraft: "草稿",
|
|
6383
|
+
noDescription: "暂无描述",
|
|
6384
|
+
modified: "修改于 {time}",
|
|
6385
|
+
created: "创建于 {date}",
|
|
6386
|
+
noWorkflowsFound: "未找到工作流",
|
|
6387
|
+
createFirstWorkflow: "创建您的第一个工作流",
|
|
6388
|
+
minutesAgo: "{count} 分钟前",
|
|
6389
|
+
hoursAgo: "{count} 小时前",
|
|
6390
|
+
daysAgo: "{count} 天前"
|
|
6212
6391
|
};
|
|
6213
6392
|
var ltiTabLabels = {
|
|
6214
6393
|
header: {
|
|
@@ -8368,6 +8547,11 @@ var zh = {
|
|
|
8368
8547
|
workflowsCreateWorkflowModal: workflowsCreateWorkflowModal,
|
|
8369
8548
|
workflowsDeleteWorkflowModal: workflowsDeleteWorkflowModal,
|
|
8370
8549
|
workflowsToolDialogs: workflowsToolDialogs,
|
|
8550
|
+
workflowsNodeConfigPanel: workflowsNodeConfigPanel,
|
|
8551
|
+
workflowsWorkflowCanvas: workflowsWorkflowCanvas,
|
|
8552
|
+
workflowsWorkflowEditor: workflowsWorkflowEditor,
|
|
8553
|
+
workflowsWorkflowPreviewChat: workflowsWorkflowPreviewChat,
|
|
8554
|
+
workflowsWorkflowsList: workflowsWorkflowsList,
|
|
8371
8555
|
ltiTabLabels: ltiTabLabels,
|
|
8372
8556
|
evaluationTabLabels: evaluationTabLabels,
|
|
8373
8557
|
benchmarksIndex: benchmarksIndex,
|
|
@@ -8413,5 +8597,5 @@ var zh = {
|
|
|
8413
8597
|
usersModelsTab: usersModelsTab
|
|
8414
8598
|
};
|
|
8415
8599
|
|
|
8416
|
-
export { accessTabAddAccess, accessTabLabels, accessTabUpdateAccess, accessibility, advancePagination, advancedAdvanced, advancedAdvancedCss, advancedAuthSpaCustomization, advancedChatAdvancedChatHeader, advancedChatAreaWidth, advancedChatPrivacy, advancedCustomDomain, advancedExternalMapping, advancedMemsearchConfig, advancedPlatformMembership, advancedProviderConfig, advancedRecommendationSystemPrompts, advancedSeoDiscoverability, advancedSmtp, advancedStartScreen, advancedStudentMentorCreation, agentSearchLabels, agentSettingsLink, analyticsAccessTimeHeatmap, analyticsAgentScopeLink, analyticsAnalyticsAgentPicker, analyticsAnalyticsAuditLogStats, analyticsAnalyticsCourseDetail, analyticsAnalyticsCourses, analyticsAnalyticsFinancialStats, analyticsAnalyticsMemoryStats, analyticsAnalyticsMonetizationStats, analyticsAnalyticsOverview, analyticsAnalyticsPlatformAuditLog, analyticsAnalyticsProgramDetail, analyticsAnalyticsPrograms, analyticsAnalyticsReports, analyticsAnalyticsTopicsStats, analyticsAnalyticsTranscriptsStats, analyticsAnalyticsUsersStats, analyticsAuditLogJsonView, analyticsChartCard, analyticsControlBar, analyticsCostTabs, analyticsGroupsFilterDropdown, analyticsLlmUsage, analyticsPlatformAuditLogDetailSheet, analyticsSourceChip, analyticsStatCard, analyticsTabLabels, analyticsTraces, analyticsTranscriptTurnDetails, analyticsUsePlatformAuditLabels, analyticsUserFilterSelect, apiTabApiKeyModal, apiTabCreateApiModal2, apiTabDeleteApiModal2, apiTabEditApiModal, apiTabLabels, apiTabTokenPolicies, appSidebarIndex, appSidebarProjectItem, appSidebarProjectsSidebarDropdown, appSidebarToggleSidebarButton, applyApplyWizard, benchmarksAddItemsModal, benchmarksBenchmarkItemsModal, benchmarksCreateBenchmarkModal, benchmarksDeleteItemConfirm, benchmarksIndex, canvasBinaryCanvas, canvasCanvasComponent, canvasCanvasControls, canvasCanvasExportHandlers, canvasCanvasRichTextEditor, canvasCodeCanvasComponent, canvasSessionCanvasCards, canvasUseCanvasVersionNavigation, careerCompanyDialog, careerEducationDialog, careerEducationTab, careerExperienceDialog, careerExperienceTab, careerInstitutionDialog, careerResumeTab, chat, chatAiMessageBubble, chatAiMessageCopy, chatAiMessageRating, chatAiMessageReportInappropriateContent, chatAiMessageShare, chatHistoryChatHistoryTab, chatHistoryReportHistory, chatIndex, chatInputForm, chatInputFormFileAttachmentsList, chatInputFormInsideButtons, chatInputFormMemoryMenu, chatInputFormOutsideButtons, chatInputFormScreenSharingButton, chatInputFormUploadMenu, chatInputFormVoiceCallButton, chatInputFormVoiceChatButton, chatPrivacyChatPrivacyToggle, chatStopStreamingButton, clawSandboxAgentConfigPrompts, clawSandboxAgentSkills, clawSandboxHelpers, clawSandboxLlmProviderModal, clawSandboxOverlayModal, clawSandboxSandboxConfig, common, componentsHumanSupportSection, componentsMentorPromptDialog, componentsPolicyAssignmentSection, componentsPolicyConfigDialog, componentsProactiveSettingsSection, componentsTemplateActionsSection, componentsTemplateVariablesHelper, componentsUserProgressSettingsSection, componentsWatcherEmailSection, courseContentAccessiblePaginate, courseContentCourseContentLayout, courseContentDiscoverFacetsFilter, courseContentDiscoverFilterDrawer, createAgentModalCreateAgentForm, createAgentModalLabels, creditBalance, dataSourcesTabCreateDataSourceModal, dataSourcesTabIntegrationDataSourcesTab, datasetsTabAddResourceModal, datasetsTabDatasetItem, datasetsTabLabels, datasetsTabRetrainScheduleModal, zh as default, disclaimersTabLabels, documentSidebar, embedTabLabels, evaluationTabLabels, gradebookGradebookTab, graderTabLabels, guidedSuggestedPrompts, historyTabLabels, humanSupportTabLabels, inviteCoursesTab, inviteProgramsTab, inviteUsersTab, liveKitVoiceChat, llmTabLabels, llmsTabCreateLlmModal, llmsTabIntegrationLlmsTab, localLlmLocalLlmTab, localLlmUseModelDownload, ltiTabLabels, mcpTabConnectorDialogs, mcpTabConnectorManagementContent, memoryAddMemoryDialog, memoryAdminAgentMemoriesModal, memoryAdminTab, memoryAdminUserMemoriesModal, memoryEditMemoryDialog, memoryMemoryTab, memoryTabAddMemoryModal, memoryTabDeleteMemoryModal, memoryTabEditMemoryModal, memoryTabLabels, memoryTabLearnersMemories, memoryTabManageCategoriesModal, memoryTabManageMemories, memoryTabSavedMemoriesModal, mentorsMentorSelectionGrid, modalsAddPromptModal, modalsChatActionBlockingOverlay, modalsDisclaimerModal, modalsEditPromptModal, modalsPaywallModal, modalsPromptGalleryModal, modalsUserProfileModal, modalsVoiceChatModal, monetizationCancelSubscription, monetizationItemSearchDropdown, monetizationPaywallDetail, monetizationPaywalledItemsList, monetizationPriceManagement, monetizationStripeConnect, navbar, notificationsAlertsTab, notificationsEditAlertDialog, notificationsNotificationDisplay, notificationsNotificationDropdown, notificationsSendNotificationDialog, onboardingOnboardingWizard, onboardingUserOnboarding, pipChat, placementExam, platformNavbar, platformSidebar, privacyTabLabels, profileAccount, profileAddCreditsModal, profileAdmin, profileApplicationsQuestionsEditor, profileApplicationsTab, profileAutoRechargeModal, profileBilling, profileCatalogInviteModal, profileChatPrivacyTab, profileCsvEditor, profileIndex, profileInviteUserContent, profileInvitedUsers, profileLlmUsage, profileOnboardingTab, profileOrganization, profileOverviewTab, profileSecurity, projectsAddMentorToProjectModal, projectsCreateProjectModal, projectsDeleteProjectModal, projectsMinimumMentorAlert, projectsProjectActionButtons, projectsProjectFilesModal, projectsProjectInstructionsModal, projectsProjectLandingPage, projectsProjectMentorsList, projectsProjectsPage, projectsRenameProjectModal, promptGalleryModalEmptyPrompts, promptGalleryModalPromptCard, promptsTabAddPromptModal, promptsTabEditPromptModal, promptsTabLabels, purchasesPurchasesTab, resourceModalGithubFileUploadModal, resourceModalLocalFileUploadModal, resourceModalUrlUploadModal, resourceModalWebsiteCrawlModal, resourcePicker, retrievedDocumentsButton, richTextEditor, safetyTabLabels, screenshareTabLabels, settingsTabCopyMentorModal, settingsTabLabels, settingsTabWelcomeScreen, skillsProfileAddSkillDialog, skillsProfileCreatePathwayModal, skillsProfileCredentialBox, skillsProfileCredentialDetailModal, skillsProfileEducationBox, skillsProfileExperienceBox, skillsProfileMediaBox, skillsProfilePathwayDetailModal, skillsProfileProfileInfoCards, skillsProfileProgramDetailModal, skillsProfileResumeBox, skillsProfileSkillDetailModal, skillsProfileSkillsBox, skillsTabLabels, slashSkillPicker, spendCapUsage, spendCapsTabLabels, summernoteTextEditor, tabsAlertstab, tabsDisclaimersTab, tabsEmbedTab, tabsGroupstab, tabsHistoryTab, tabsHumanSupportTab, tabsPoliciestab, tabsPrivacyTab, tabsPromptsTab, tabsRolestab, tabsSafetyTab, tabsSettingsTab, tabsTeamsaccesspanel, tabsUserstab, tabsVoiceTab, tasksTabLabels, tenantSwitchIndex, toolsTabLabels, topBannerIndex, uiDialog, uiPagination, uiSheet, uiSidebar, userProfileDropdownIndex, usersModelsTab, version, virtualMachineAdminTab, virtualMachineHostInput, virtualMachineNetworkPolicies, virtualMachineNetworkSection, virtualMachineSecrets, voiceTabCallConfigSection, voiceTabLabels, voiceTabVoicePicker, welcomeChatConversationStarters, welcomeChatExploreMentors, workflowsConnectorManagementDialog, workflowsCreateWorkflowModal, workflowsDeleteWorkflowModal, workflowsToolDialogs };
|
|
8600
|
+
export { accessTabAddAccess, accessTabLabels, accessTabUpdateAccess, accessibility, advancePagination, advancedAdvanced, advancedAdvancedCss, advancedAuthSpaCustomization, advancedChatAdvancedChatHeader, advancedChatAreaWidth, advancedChatPrivacy, advancedCustomDomain, advancedExternalMapping, advancedMemsearchConfig, advancedPlatformMembership, advancedProviderConfig, advancedRecommendationSystemPrompts, advancedSeoDiscoverability, advancedSmtp, advancedStartScreen, advancedStudentMentorCreation, agentSearchLabels, agentSettingsLink, analyticsAccessTimeHeatmap, analyticsAgentScopeLink, analyticsAnalyticsAgentPicker, analyticsAnalyticsAuditLogStats, analyticsAnalyticsCourseDetail, analyticsAnalyticsCourses, analyticsAnalyticsFinancialStats, analyticsAnalyticsMemoryStats, analyticsAnalyticsMonetizationStats, analyticsAnalyticsOverview, analyticsAnalyticsPlatformAuditLog, analyticsAnalyticsProgramDetail, analyticsAnalyticsPrograms, analyticsAnalyticsReports, analyticsAnalyticsTopicsStats, analyticsAnalyticsTranscriptsStats, analyticsAnalyticsUsersStats, analyticsAuditLogJsonView, analyticsChartCard, analyticsControlBar, analyticsCostTabs, analyticsGroupsFilterDropdown, analyticsLlmUsage, analyticsPlatformAuditLogDetailSheet, analyticsSourceChip, analyticsStatCard, analyticsTabLabels, analyticsTraces, analyticsTranscriptTurnDetails, analyticsUsePlatformAuditLabels, analyticsUserFilterSelect, apiTabApiKeyModal, apiTabCreateApiModal2, apiTabDeleteApiModal2, apiTabEditApiModal, apiTabLabels, apiTabTokenPolicies, appSidebarIndex, appSidebarProjectItem, appSidebarProjectsSidebarDropdown, appSidebarToggleSidebarButton, applyApplyWizard, benchmarksAddItemsModal, benchmarksBenchmarkItemsModal, benchmarksCreateBenchmarkModal, benchmarksDeleteItemConfirm, benchmarksIndex, canvasBinaryCanvas, canvasCanvasComponent, canvasCanvasControls, canvasCanvasExportHandlers, canvasCanvasRichTextEditor, canvasCodeCanvasComponent, canvasSessionCanvasCards, canvasUseCanvasVersionNavigation, careerCompanyDialog, careerEducationDialog, careerEducationTab, careerExperienceDialog, careerExperienceTab, careerInstitutionDialog, careerResumeTab, chat, chatAiMessageBubble, chatAiMessageCopy, chatAiMessageRating, chatAiMessageReportInappropriateContent, chatAiMessageShare, chatHistoryChatHistoryTab, chatHistoryReportHistory, chatIndex, chatInputForm, chatInputFormFileAttachmentsList, chatInputFormInsideButtons, chatInputFormMemoryMenu, chatInputFormOutsideButtons, chatInputFormScreenSharingButton, chatInputFormUploadMenu, chatInputFormVoiceCallButton, chatInputFormVoiceChatButton, chatPrivacyChatPrivacyToggle, chatStopStreamingButton, clawSandboxAgentConfigPrompts, clawSandboxAgentSkills, clawSandboxHelpers, clawSandboxLlmProviderModal, clawSandboxOverlayModal, clawSandboxSandboxConfig, common, componentsHumanSupportSection, componentsMentorPromptDialog, componentsPolicyAssignmentSection, componentsPolicyConfigDialog, componentsProactiveSettingsSection, componentsTemplateActionsSection, componentsTemplateVariablesHelper, componentsUserProgressSettingsSection, componentsWatcherEmailSection, courseContentAccessiblePaginate, courseContentCourseContentLayout, courseContentDiscoverFacetsFilter, courseContentDiscoverFilterDrawer, createAgentModalCreateAgentForm, createAgentModalLabels, creditBalance, dataSourcesTabCreateDataSourceModal, dataSourcesTabIntegrationDataSourcesTab, datasetsTabAddResourceModal, datasetsTabDatasetItem, datasetsTabLabels, datasetsTabRetrainScheduleModal, zh as default, disclaimersTabLabels, documentSidebar, embedTabLabels, evaluationTabLabels, gradebookGradebookTab, graderTabLabels, guidedSuggestedPrompts, historyTabLabels, humanSupportTabLabels, inviteCoursesTab, inviteProgramsTab, inviteUsersTab, liveKitVoiceChat, llmTabLabels, llmsTabCreateLlmModal, llmsTabIntegrationLlmsTab, localLlmLocalLlmTab, localLlmUseModelDownload, ltiTabLabels, mcpTabConnectorDialogs, mcpTabConnectorManagementContent, memoryAddMemoryDialog, memoryAdminAgentMemoriesModal, memoryAdminTab, memoryAdminUserMemoriesModal, memoryEditMemoryDialog, memoryMemoryTab, memoryTabAddMemoryModal, memoryTabDeleteMemoryModal, memoryTabEditMemoryModal, memoryTabLabels, memoryTabLearnersMemories, memoryTabManageCategoriesModal, memoryTabManageMemories, memoryTabSavedMemoriesModal, mentorsMentorSelectionGrid, modalsAddPromptModal, modalsChatActionBlockingOverlay, modalsDisclaimerModal, modalsEditPromptModal, modalsPaywallModal, modalsPromptGalleryModal, modalsUserProfileModal, modalsVoiceChatModal, monetizationCancelSubscription, monetizationItemSearchDropdown, monetizationPaywallDetail, monetizationPaywalledItemsList, monetizationPriceManagement, monetizationStripeConnect, navbar, notificationsAlertsTab, notificationsEditAlertDialog, notificationsNotificationDisplay, notificationsNotificationDropdown, notificationsSendNotificationDialog, onboardingOnboardingWizard, onboardingUserOnboarding, pipChat, placementExam, platformNavbar, platformSidebar, privacyTabLabels, profileAccount, profileAddCreditsModal, profileAdmin, profileApplicationsQuestionsEditor, profileApplicationsTab, profileAutoRechargeModal, profileBilling, profileCatalogInviteModal, profileChatPrivacyTab, profileCsvEditor, profileIndex, profileInviteUserContent, profileInvitedUsers, profileLlmUsage, profileOnboardingTab, profileOrganization, profileOverviewTab, profileSecurity, projectsAddMentorToProjectModal, projectsCreateProjectModal, projectsDeleteProjectModal, projectsMinimumMentorAlert, projectsProjectActionButtons, projectsProjectFilesModal, projectsProjectInstructionsModal, projectsProjectLandingPage, projectsProjectMentorsList, projectsProjectsPage, projectsRenameProjectModal, promptGalleryModalEmptyPrompts, promptGalleryModalPromptCard, promptsTabAddPromptModal, promptsTabEditPromptModal, promptsTabLabels, purchasesPurchasesTab, resourceModalGithubFileUploadModal, resourceModalLocalFileUploadModal, resourceModalUrlUploadModal, resourceModalWebsiteCrawlModal, resourcePicker, retrievedDocumentsButton, richTextEditor, safetyTabLabels, screenshareTabLabels, settingsTabCopyMentorModal, settingsTabLabels, settingsTabWelcomeScreen, skillsProfileAddSkillDialog, skillsProfileCreatePathwayModal, skillsProfileCredentialBox, skillsProfileCredentialDetailModal, skillsProfileEducationBox, skillsProfileExperienceBox, skillsProfileMediaBox, skillsProfilePathwayDetailModal, skillsProfileProfileInfoCards, skillsProfileProgramDetailModal, skillsProfileResumeBox, skillsProfileSkillDetailModal, skillsProfileSkillsBox, skillsTabLabels, slashSkillPicker, spendCapUsage, spendCapsTabLabels, summernoteTextEditor, tabsAlertstab, tabsDisclaimersTab, tabsEmbedTab, tabsGroupstab, tabsHistoryTab, tabsHumanSupportTab, tabsPoliciestab, tabsPrivacyTab, tabsPromptsTab, tabsRolestab, tabsSafetyTab, tabsSettingsTab, tabsTeamsaccesspanel, tabsUserstab, tabsVoiceTab, tasksTabLabels, tenantSwitchIndex, toolsTabLabels, topBannerIndex, uiDialog, uiPagination, uiSheet, uiSidebar, userProfileDropdownIndex, usersModelsTab, version, virtualMachineAdminTab, virtualMachineHostInput, virtualMachineNetworkPolicies, virtualMachineNetworkSection, virtualMachineSecrets, voiceTabCallConfigSection, voiceTabLabels, voiceTabVoicePicker, welcomeChatConversationStarters, welcomeChatExploreMentors, workflowsConnectorManagementDialog, workflowsCreateWorkflowModal, workflowsDeleteWorkflowModal, workflowsNodeConfigPanel, workflowsToolDialogs, workflowsWorkflowCanvas, workflowsWorkflowEditor, workflowsWorkflowPreviewChat, workflowsWorkflowsList };
|
|
8417
8601
|
//# sourceMappingURL=zh.json.js.map
|