plugin-agent-orchestrator 1.0.13 → 1.0.15
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/README.md +16 -291
- package/dist/client/AIEmployeesContext.d.ts +7 -0
- package/dist/client/OrchestratorSettings.d.ts +2 -1
- package/dist/client/index.js +1 -1
- package/dist/client/plugin.d.ts +1 -0
- package/dist/client/skill-hub/components/ExecutionHistory.d.ts +2 -0
- package/dist/client/skill-hub/components/ExecutionProgress.d.ts +20 -0
- package/dist/client/skill-hub/components/GitSkillImport.d.ts +7 -0
- package/dist/client/skill-hub/components/SkillEditor.d.ts +7 -0
- package/dist/client/skill-hub/components/SkillManager.d.ts +2 -0
- package/dist/client/skill-hub/components/SkillMetrics.d.ts +2 -0
- package/dist/client/skill-hub/components/SkillTestPanel.d.ts +7 -0
- package/dist/client/skill-hub/index.d.ts +10 -0
- package/dist/client/skill-hub/locale.d.ts +3 -0
- package/dist/client/skill-hub/tools/InteractionSchemasProvider.d.ts +19 -0
- package/dist/client/skill-hub/tools/SkillHubCard.d.ts +3 -0
- package/dist/client/skill-hub/utils/jsonFields.d.ts +3 -0
- package/dist/externalVersion.js +6 -6
- package/dist/node_modules/adm-zip/LICENSE +21 -0
- package/dist/node_modules/adm-zip/adm-zip.js +1 -0
- package/dist/node_modules/adm-zip/headers/entryHeader.js +377 -0
- package/dist/node_modules/adm-zip/headers/index.js +2 -0
- package/dist/node_modules/adm-zip/headers/mainHeader.js +130 -0
- package/dist/node_modules/adm-zip/methods/deflater.js +33 -0
- package/dist/node_modules/adm-zip/methods/index.js +3 -0
- package/dist/node_modules/adm-zip/methods/inflater.js +34 -0
- package/dist/node_modules/adm-zip/methods/zipcrypto.js +175 -0
- package/dist/node_modules/adm-zip/package.json +1 -0
- package/dist/node_modules/adm-zip/util/constants.js +142 -0
- package/dist/node_modules/adm-zip/util/decoder.js +5 -0
- package/dist/node_modules/adm-zip/util/errors.js +63 -0
- package/dist/node_modules/adm-zip/util/fattr.js +76 -0
- package/dist/node_modules/adm-zip/util/index.js +5 -0
- package/dist/node_modules/adm-zip/util/utils.js +339 -0
- package/dist/node_modules/adm-zip/zipEntry.js +405 -0
- package/dist/node_modules/adm-zip/zipFile.js +446 -0
- package/dist/node_modules/simple-git/dist/cjs/index.js +7399 -0
- package/dist/node_modules/simple-git/dist/esm/index.js +4745 -0
- package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/api.d.ts +13 -0
- package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +15 -0
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +30 -0
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +32 -0
- package/dist/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +21 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +6 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +11 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +6 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +4 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +11 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +48 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +4 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/CleanSummary.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +13 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +10 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +11 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +16 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +19 -0
- package/dist/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +25 -0
- package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +14 -0
- package/dist/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +11 -0
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +23 -0
- package/dist/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +20 -0
- package/dist/node_modules/simple-git/dist/src/lib/task-callback.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +25 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +8 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +4 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +12 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +32 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +4 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +8 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +11 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +3 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +18 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +14 -0
- package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +21 -0
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +136 -0
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +19 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +14 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +10 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +7 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/index.d.ts +8 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +15 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +2 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +13 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +47 -0
- package/dist/node_modules/simple-git/dist/typings/errors.d.ts +5 -0
- package/dist/node_modules/simple-git/dist/typings/index.d.ts +14 -0
- package/dist/node_modules/simple-git/dist/typings/response.d.ts +556 -0
- package/dist/node_modules/simple-git/dist/typings/simple-git.d.ts +1033 -0
- package/dist/node_modules/simple-git/dist/typings/types.d.ts +22 -0
- package/dist/node_modules/simple-git/node_modules/debug/package.json +64 -0
- package/dist/node_modules/simple-git/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/simple-git/node_modules/debug/src/common.js +292 -0
- package/dist/node_modules/simple-git/node_modules/debug/src/index.js +10 -0
- package/dist/node_modules/simple-git/node_modules/debug/src/node.js +263 -0
- package/dist/node_modules/simple-git/package.json +1 -0
- package/dist/node_modules/simple-git/promise.js +17 -0
- package/dist/server/collections/agent-execution-spans.d.ts +9 -0
- package/dist/server/collections/agent-execution-spans.js +152 -0
- package/dist/server/collections/orchestrator-config.d.ts +1 -1
- package/dist/server/collections/orchestrator-config.js +6 -0
- package/dist/server/collections/orchestrator-logs.d.ts +1 -1
- package/dist/server/collections/skill-definitions.d.ts +2 -0
- package/dist/server/collections/skill-definitions.js +158 -0
- package/dist/server/collections/skill-executions.d.ts +2 -0
- package/dist/server/collections/skill-executions.js +123 -0
- package/dist/server/collections/skill-worker-configs.d.ts +2 -0
- package/dist/server/collections/skill-worker-configs.js +115 -0
- package/dist/server/migrations/20260423000000-add-progress-fields.d.ts +4 -0
- package/dist/server/migrations/20260423000000-add-progress-fields.js +69 -0
- package/dist/server/migrations/20260425000000-add-interaction-schema.d.ts +4 -0
- package/dist/server/migrations/20260425000000-add-interaction-schema.js +61 -0
- package/dist/server/migrations/20260427000000-change-packages-to-text.d.ts +4 -0
- package/dist/server/migrations/20260427000000-change-packages-to-text.js +70 -0
- package/dist/server/migrations/20260427000001-change-other-json-to-text.d.ts +4 -0
- package/dist/server/migrations/20260427000001-change-other-json-to-text.js +80 -0
- package/dist/server/migrations/20260429000000-add-llm-fields.js +8 -0
- package/dist/server/migrations/20260429000000-fix-inputargs-json-to-text.d.ts +16 -0
- package/dist/server/migrations/20260429000000-fix-inputargs-json-to-text.js +51 -0
- package/dist/server/migrations/20260503000000-add-orchestrator-trace-fields.d.ts +7 -0
- package/dist/server/migrations/20260503000000-add-orchestrator-trace-fields.js +57 -0
- package/dist/server/plugin.d.ts +3 -0
- package/dist/server/plugin.js +37 -1
- package/dist/server/resources/tracing.js +154 -11
- package/dist/server/services/CodeValidator.d.ts +32 -0
- package/dist/server/services/CodeValidator.js +206 -0
- package/dist/server/services/ExecutionSpanService.d.ts +44 -0
- package/dist/server/services/ExecutionSpanService.js +104 -0
- package/dist/server/services/FileManager.d.ts +28 -0
- package/dist/server/services/FileManager.js +151 -0
- package/dist/server/services/SandboxRunner.d.ts +41 -0
- package/dist/server/services/SandboxRunner.js +167 -0
- package/dist/server/services/SkillManager.d.ts +6 -0
- package/dist/server/services/SkillManager.js +640 -0
- package/dist/server/services/SkillRepositoryService.d.ts +22 -0
- package/dist/server/services/SkillRepositoryService.js +157 -0
- package/dist/server/services/WorkerEnvManager.d.ts +26 -0
- package/dist/server/services/WorkerEnvManager.js +120 -0
- package/dist/server/skill-hub/actions/git-import.d.ts +21 -0
- package/dist/server/skill-hub/actions/git-import.js +413 -0
- package/dist/server/skill-hub/mcp/McpController.d.ts +15 -0
- package/dist/server/skill-hub/mcp/McpController.js +111 -0
- package/dist/server/skill-hub/plugin.d.ts +58 -0
- package/dist/server/skill-hub/plugin.js +694 -0
- package/dist/server/skill-hub/sandbox-config.json +6 -0
- package/dist/server/skill-hub/tasks/SkillExecutionTask.d.ts +16 -0
- package/dist/server/skill-hub/tasks/SkillExecutionTask.js +389 -0
- package/dist/server/skill-hub/utils/json-fields.d.ts +7 -0
- package/dist/server/skill-hub/utils/json-fields.js +88 -0
- package/dist/server/tools/delegate-task.d.ts +4 -0
- package/dist/server/tools/delegate-task.js +606 -104
- package/dist/server/tools/skill-execute.d.ts +36 -0
- package/dist/server/tools/skill-execute.js +167 -0
- package/package.json +3 -1
- package/src/client/AIEmployeeSelect.tsx +1 -3
- package/src/client/AIEmployeesContext.tsx +28 -13
- package/src/client/OrchestratorSettings.tsx +43 -5
- package/src/client/RulesTab.tsx +253 -32
- package/src/client/TracingTab.tsx +277 -213
- package/src/client/index.tsx +1 -1
- package/src/client/plugin.tsx +54 -15
- package/src/client/skill-hub/components/ExecutionHistory.tsx +201 -0
- package/src/client/skill-hub/components/ExecutionProgress.tsx +55 -0
- package/src/client/skill-hub/components/GitSkillImport.tsx +555 -0
- package/src/client/skill-hub/components/SkillEditor.tsx +456 -0
- package/src/client/skill-hub/components/SkillManager.tsx +181 -0
- package/src/client/skill-hub/components/SkillMetrics.tsx +124 -0
- package/src/client/skill-hub/components/SkillTestPanel.tsx +144 -0
- package/src/client/skill-hub/index.tsx +75 -0
- package/src/client/skill-hub/locale.ts +16 -0
- package/src/client/skill-hub/tools/InteractionSchemasProvider.tsx +59 -0
- package/src/client/skill-hub/tools/SkillHubCard.tsx +78 -0
- package/src/client/skill-hub/utils/jsonFields.ts +37 -0
- package/src/server/collections/agent-execution-spans.ts +129 -0
- package/src/server/collections/orchestrator-config.ts +7 -0
- package/src/server/collections/skill-definitions.ts +128 -0
- package/src/server/collections/skill-executions.ts +94 -0
- package/src/server/collections/skill-worker-configs.ts +86 -0
- package/src/server/migrations/20260423000000-add-progress-fields.ts +50 -0
- package/src/server/migrations/20260425000000-add-interaction-schema.ts +35 -0
- package/src/server/migrations/20260427000000-add-tracing-detail-fields.ts +5 -5
- package/src/server/migrations/20260427000000-change-packages-to-text.ts +47 -0
- package/src/server/migrations/20260427000001-change-other-json-to-text.ts +57 -0
- package/src/server/migrations/20260429000000-add-llm-fields.ts +11 -2
- package/src/server/migrations/20260429000000-fix-inputargs-json-to-text.ts +38 -0
- package/src/server/migrations/20260503000000-add-orchestrator-trace-fields.ts +32 -0
- package/src/server/plugin.ts +94 -46
- package/src/server/resources/tracing.ts +182 -15
- package/src/server/services/CodeValidator.ts +159 -0
- package/src/server/services/ExecutionSpanService.ts +106 -0
- package/src/server/services/FileManager.ts +144 -0
- package/src/server/services/SandboxRunner.ts +205 -0
- package/src/server/services/SkillManager.ts +623 -0
- package/src/server/services/SkillRepositoryService.ts +142 -0
- package/src/server/services/WorkerEnvManager.ts +113 -0
- package/src/server/skill-hub/actions/git-import.ts +486 -0
- package/src/server/skill-hub/mcp/McpController.ts +86 -0
- package/src/server/skill-hub/plugin.ts +771 -0
- package/src/server/skill-hub/sandbox-config.json +6 -0
- package/src/server/skill-hub/tasks/SkillExecutionTask.ts +443 -0
- package/src/server/skill-hub/utils/json-fields.ts +57 -0
- package/src/server/tools/delegate-task.ts +803 -127
- package/src/server/tools/skill-execute.ts +157 -0
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Modal,
|
|
4
|
+
Steps,
|
|
5
|
+
Select,
|
|
6
|
+
Button,
|
|
7
|
+
Table,
|
|
8
|
+
Tag,
|
|
9
|
+
Space,
|
|
10
|
+
Typography,
|
|
11
|
+
Empty,
|
|
12
|
+
Spin,
|
|
13
|
+
Input,
|
|
14
|
+
Switch,
|
|
15
|
+
Alert,
|
|
16
|
+
message,
|
|
17
|
+
Result,
|
|
18
|
+
theme,
|
|
19
|
+
} from 'antd';
|
|
20
|
+
import {
|
|
21
|
+
BranchesOutlined,
|
|
22
|
+
FolderOutlined,
|
|
23
|
+
CheckCircleOutlined,
|
|
24
|
+
SyncOutlined,
|
|
25
|
+
DatabaseOutlined,
|
|
26
|
+
SearchOutlined,
|
|
27
|
+
} from '@ant-design/icons';
|
|
28
|
+
import { useAPIClient } from '@nocobase/client';
|
|
29
|
+
import { useT } from '../locale';
|
|
30
|
+
|
|
31
|
+
const { Text } = Typography;
|
|
32
|
+
const { useToken } = theme;
|
|
33
|
+
|
|
34
|
+
interface GitSkillImportProps {
|
|
35
|
+
open: boolean;
|
|
36
|
+
onClose: (synced?: boolean) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const GitSkillImport: React.FC<GitSkillImportProps> = ({ open, onClose }) => {
|
|
40
|
+
const t = useT();
|
|
41
|
+
const { token } = useToken();
|
|
42
|
+
const api = useAPIClient();
|
|
43
|
+
|
|
44
|
+
const [step, setStep] = useState(0);
|
|
45
|
+
|
|
46
|
+
// Step 0: Select repository
|
|
47
|
+
const [repos, setRepos] = useState<any[]>([]);
|
|
48
|
+
const [reposLoading, setReposLoading] = useState(false);
|
|
49
|
+
const [selectedRepoId, setSelectedRepoId] = useState<number | null>(null);
|
|
50
|
+
|
|
51
|
+
// Step 1: Browse & select root folder
|
|
52
|
+
const [branches, setBranches] = useState<string[]>([]);
|
|
53
|
+
const [currentBranch, setCurrentBranch] = useState('');
|
|
54
|
+
const [selectedRef, setSelectedRef] = useState('HEAD');
|
|
55
|
+
const [folders, setFolders] = useState<any[]>([]);
|
|
56
|
+
const [foldersLoading, setFoldersLoading] = useState(false);
|
|
57
|
+
const [currentTreePath, setCurrentTreePath] = useState('');
|
|
58
|
+
const [selectedRootFolder, setSelectedRootFolder] = useState<string | null>(null);
|
|
59
|
+
|
|
60
|
+
// Step 2: Select skills to sync
|
|
61
|
+
const [skills, setSkills] = useState<any[]>([]);
|
|
62
|
+
const [skillsLoading, setSkillsLoading] = useState(false);
|
|
63
|
+
const [selectedSkills, setSelectedSkills] = useState<string[]>([]);
|
|
64
|
+
const [overwrite, setOverwrite] = useState(false);
|
|
65
|
+
const [importPrefix, setImportPrefix] = useState('');
|
|
66
|
+
const [skillsConfigInfo, setSkillsConfigInfo] = useState<any>(null);
|
|
67
|
+
const [searchText, setSearchText] = useState('');
|
|
68
|
+
|
|
69
|
+
// Step 3: Sync results
|
|
70
|
+
const [syncResults, setSyncResults] = useState<any[] | null>(null);
|
|
71
|
+
const [syncing, setSyncing] = useState(false);
|
|
72
|
+
|
|
73
|
+
// Load repositories
|
|
74
|
+
const loadRepos = useCallback(async () => {
|
|
75
|
+
setReposLoading(true);
|
|
76
|
+
try {
|
|
77
|
+
const { data } = await api.request({ url: 'gitRepositories:list', params: { pageSize: 100 } });
|
|
78
|
+
const responseData = data?.data?.data || data?.data || [];
|
|
79
|
+
setRepos(responseData.filter((r: any) => r.status === 'connected'));
|
|
80
|
+
} finally {
|
|
81
|
+
setReposLoading(false);
|
|
82
|
+
}
|
|
83
|
+
}, [api]);
|
|
84
|
+
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (open) {
|
|
87
|
+
loadRepos();
|
|
88
|
+
// Reset state
|
|
89
|
+
setStep(0);
|
|
90
|
+
setSelectedRepoId(null);
|
|
91
|
+
setSelectedRootFolder(null);
|
|
92
|
+
setSkills([]);
|
|
93
|
+
setSelectedSkills([]);
|
|
94
|
+
setSkillsConfigInfo(null);
|
|
95
|
+
setSyncResults(null);
|
|
96
|
+
setOverwrite(false);
|
|
97
|
+
setCurrentTreePath('');
|
|
98
|
+
setImportPrefix('');
|
|
99
|
+
setSearchText('');
|
|
100
|
+
}
|
|
101
|
+
}, [open, loadRepos]);
|
|
102
|
+
|
|
103
|
+
// Load branches when repo selected
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (!selectedRepoId) return;
|
|
106
|
+
api
|
|
107
|
+
.request({ url: 'gitManager:branches', params: { repositoryId: selectedRepoId } })
|
|
108
|
+
.then(({ data }) => {
|
|
109
|
+
const responseData = data?.data?.data || data?.data;
|
|
110
|
+
setBranches(responseData?.all || []);
|
|
111
|
+
const cur = responseData?.current || 'main';
|
|
112
|
+
setCurrentBranch(cur);
|
|
113
|
+
setSelectedRef(cur);
|
|
114
|
+
})
|
|
115
|
+
.catch(() => setBranches([]));
|
|
116
|
+
}, [selectedRepoId, api]);
|
|
117
|
+
|
|
118
|
+
// Load root folders when ref changes
|
|
119
|
+
const loadFolders = useCallback(async () => {
|
|
120
|
+
if (!selectedRepoId) return;
|
|
121
|
+
setFoldersLoading(true);
|
|
122
|
+
try {
|
|
123
|
+
const { data } = await api.request({
|
|
124
|
+
url: 'gitManager:fileTree',
|
|
125
|
+
params: { repositoryId: selectedRepoId, ref: selectedRef, treePath: currentTreePath },
|
|
126
|
+
});
|
|
127
|
+
// Only show directories
|
|
128
|
+
const responseData = data?.data?.data || data?.data || [];
|
|
129
|
+
setFolders(responseData.filter((f: any) => f.type === 'tree'));
|
|
130
|
+
} finally {
|
|
131
|
+
setFoldersLoading(false);
|
|
132
|
+
}
|
|
133
|
+
}, [api, selectedRepoId, selectedRef, currentTreePath]);
|
|
134
|
+
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
if (step === 1 && selectedRepoId) {
|
|
137
|
+
loadFolders();
|
|
138
|
+
}
|
|
139
|
+
}, [step, selectedRepoId, selectedRef, currentTreePath, loadFolders]);
|
|
140
|
+
|
|
141
|
+
// Load skills from selected folder (without prefix — prefix is applied only on sync)
|
|
142
|
+
const loadSkills = useCallback(async () => {
|
|
143
|
+
if (!selectedRepoId || selectedRootFolder === null) return;
|
|
144
|
+
setSkillsLoading(true);
|
|
145
|
+
try {
|
|
146
|
+
const { data } = await api.request({
|
|
147
|
+
url: 'skillHub:gitListSkills',
|
|
148
|
+
params: {
|
|
149
|
+
repositoryId: selectedRepoId,
|
|
150
|
+
ref: selectedRef,
|
|
151
|
+
rootFolder: selectedRootFolder,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
const list = data?.data?.data || data?.data || [];
|
|
155
|
+
setSkillsConfigInfo(data?.data?.config || data?.config || null);
|
|
156
|
+
setSkills(list);
|
|
157
|
+
// Pre-select all non-existing skills
|
|
158
|
+
setSelectedSkills(list.filter((s: any) => !s.existsInDb).map((s: any) => s.folder));
|
|
159
|
+
} catch (err: any) {
|
|
160
|
+
message.error(err?.response?.data?.errors?.[0]?.message || t('Failed to read skills from git'));
|
|
161
|
+
setSkillsConfigInfo(null);
|
|
162
|
+
setSkills([]);
|
|
163
|
+
} finally {
|
|
164
|
+
setSkillsLoading(false);
|
|
165
|
+
}
|
|
166
|
+
}, [api, selectedRepoId, selectedRef, selectedRootFolder, t]);
|
|
167
|
+
|
|
168
|
+
// Load skills only when entering step 2
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
if (step === 2 && selectedRootFolder !== null) {
|
|
171
|
+
loadSkills();
|
|
172
|
+
}
|
|
173
|
+
}, [step, selectedRootFolder, loadSkills]);
|
|
174
|
+
|
|
175
|
+
// Filter skills by search text (title and description)
|
|
176
|
+
const filteredSkills = useMemo(() => {
|
|
177
|
+
if (!searchText.trim()) return skills;
|
|
178
|
+
const lower = searchText.toLowerCase();
|
|
179
|
+
return skills.filter(
|
|
180
|
+
(s) =>
|
|
181
|
+
(s.title || s.name || '').toLowerCase().includes(lower) ||
|
|
182
|
+
(s.description || '').toLowerCase().includes(lower),
|
|
183
|
+
);
|
|
184
|
+
}, [skills, searchText]);
|
|
185
|
+
|
|
186
|
+
// Sync skills
|
|
187
|
+
const handleSync = async () => {
|
|
188
|
+
if (selectedSkills.length === 0) {
|
|
189
|
+
message.warning(t('Please select at least one skill'));
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
setSyncing(true);
|
|
193
|
+
try {
|
|
194
|
+
const { data } = await api.request({
|
|
195
|
+
url: 'skillHub:gitSyncSkills',
|
|
196
|
+
method: 'POST',
|
|
197
|
+
params: {
|
|
198
|
+
repositoryId: selectedRepoId,
|
|
199
|
+
ref: selectedRef,
|
|
200
|
+
rootFolder: selectedRootFolder,
|
|
201
|
+
prefix: importPrefix,
|
|
202
|
+
},
|
|
203
|
+
data: { skills: selectedSkills, overwrite },
|
|
204
|
+
});
|
|
205
|
+
setSyncResults(data?.data?.data || data?.data || []);
|
|
206
|
+
setStep(3);
|
|
207
|
+
} catch (err: any) {
|
|
208
|
+
message.error(err?.response?.data?.errors?.[0]?.message || t('Sync failed'));
|
|
209
|
+
} finally {
|
|
210
|
+
setSyncing(false);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
const canNext = () => {
|
|
215
|
+
if (step === 0) return !!selectedRepoId;
|
|
216
|
+
if (step === 1) return selectedRootFolder !== null;
|
|
217
|
+
if (step === 2) return selectedSkills.length > 0;
|
|
218
|
+
return false;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
const skillColumns = [
|
|
222
|
+
{
|
|
223
|
+
title: t('Skill'),
|
|
224
|
+
key: 'name',
|
|
225
|
+
render: (_: any, record: any) => (
|
|
226
|
+
<div>
|
|
227
|
+
<Text strong>{record.title || record.name}</Text>
|
|
228
|
+
<div>
|
|
229
|
+
<Text type="secondary" style={{ fontSize: 12 }}>
|
|
230
|
+
{record.name}
|
|
231
|
+
</Text>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
),
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
title: t('Language'),
|
|
238
|
+
dataIndex: 'language',
|
|
239
|
+
key: 'language',
|
|
240
|
+
width: 100,
|
|
241
|
+
render: (lang: string) => <Tag color={lang === 'python' ? 'blue' : 'green'}>{lang}</Tag>,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
title: t('Source'),
|
|
245
|
+
dataIndex: 'storageType',
|
|
246
|
+
key: 'storageType',
|
|
247
|
+
width: 100,
|
|
248
|
+
render: (storageType: string) => (
|
|
249
|
+
<Tag color={storageType === 'plugin' ? 'purple' : 'cyan'}>{(storageType || 'git').toUpperCase()}</Tag>
|
|
250
|
+
),
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
title: t('Description'),
|
|
254
|
+
dataIndex: 'description',
|
|
255
|
+
key: 'description',
|
|
256
|
+
ellipsis: true,
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
title: t('Status'),
|
|
260
|
+
key: 'status',
|
|
261
|
+
width: 120,
|
|
262
|
+
render: (_: any, record: any) =>
|
|
263
|
+
record.existsInDb ? <Tag color="orange">{t('Exists')}</Tag> : <Tag color="green">{t('New')}</Tag>,
|
|
264
|
+
},
|
|
265
|
+
];
|
|
266
|
+
|
|
267
|
+
// Result columns — show name with prefix applied
|
|
268
|
+
const resultColumns = [
|
|
269
|
+
{
|
|
270
|
+
title: t('Skill'),
|
|
271
|
+
dataIndex: 'name',
|
|
272
|
+
key: 'name',
|
|
273
|
+
render: (name: string) => {
|
|
274
|
+
const prefix = importPrefix ? importPrefix.trim() : '';
|
|
275
|
+
const displayName = prefix ? `${prefix}${name}` : name;
|
|
276
|
+
return (
|
|
277
|
+
<div>
|
|
278
|
+
<Text strong>{displayName}</Text>
|
|
279
|
+
{prefix && (
|
|
280
|
+
<div>
|
|
281
|
+
<Text type="secondary" style={{ fontSize: 11 }}>
|
|
282
|
+
{t('Original')}: {name}
|
|
283
|
+
</Text>
|
|
284
|
+
</div>
|
|
285
|
+
)}
|
|
286
|
+
</div>
|
|
287
|
+
);
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
title: t('Result'),
|
|
292
|
+
key: 'status',
|
|
293
|
+
render: (_: any, record: any) => {
|
|
294
|
+
const colorMap: Record<string, string> = { created: 'green', updated: 'blue', skipped: 'orange', error: 'red' };
|
|
295
|
+
return (
|
|
296
|
+
<Space>
|
|
297
|
+
<Tag color={colorMap[record.status] || 'default'}>{record.status}</Tag>
|
|
298
|
+
{record.reason && (
|
|
299
|
+
<Text type="secondary" style={{ fontSize: 12 }}>
|
|
300
|
+
{record.reason}
|
|
301
|
+
</Text>
|
|
302
|
+
)}
|
|
303
|
+
</Space>
|
|
304
|
+
);
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
];
|
|
308
|
+
|
|
309
|
+
return (
|
|
310
|
+
<Modal
|
|
311
|
+
open={open}
|
|
312
|
+
title={
|
|
313
|
+
<Space>
|
|
314
|
+
<BranchesOutlined />
|
|
315
|
+
{t('Import Skills from Git')}
|
|
316
|
+
</Space>
|
|
317
|
+
}
|
|
318
|
+
onCancel={() => onClose()}
|
|
319
|
+
width={800}
|
|
320
|
+
footer={
|
|
321
|
+
step === 3 ? (
|
|
322
|
+
<Button type="primary" onClick={() => onClose(true)}>
|
|
323
|
+
{t('Done')}
|
|
324
|
+
</Button>
|
|
325
|
+
) : (
|
|
326
|
+
<Space>
|
|
327
|
+
{step > 0 && step < 3 && <Button onClick={() => setStep(step - 1)}>{t('Back')}</Button>}
|
|
328
|
+
{step < 2 && (
|
|
329
|
+
<Button type="primary" disabled={!canNext()} onClick={() => setStep(step + 1)}>
|
|
330
|
+
{t('Next')}
|
|
331
|
+
</Button>
|
|
332
|
+
)}
|
|
333
|
+
{step === 2 && (
|
|
334
|
+
<Button type="primary" loading={syncing} disabled={selectedSkills.length === 0} onClick={handleSync}>
|
|
335
|
+
<SyncOutlined /> {t('Sync Selected')} ({selectedSkills.length})
|
|
336
|
+
</Button>
|
|
337
|
+
)}
|
|
338
|
+
</Space>
|
|
339
|
+
)
|
|
340
|
+
}
|
|
341
|
+
destroyOnClose
|
|
342
|
+
>
|
|
343
|
+
<Steps
|
|
344
|
+
current={step}
|
|
345
|
+
size="small"
|
|
346
|
+
style={{ marginBottom: 24 }}
|
|
347
|
+
items={[
|
|
348
|
+
{ title: t('Repository') },
|
|
349
|
+
{ title: t('Root Folder') },
|
|
350
|
+
{ title: t('Select Skills') },
|
|
351
|
+
{ title: t('Result') },
|
|
352
|
+
]}
|
|
353
|
+
/>
|
|
354
|
+
|
|
355
|
+
{/* Step 0: Select Repository */}
|
|
356
|
+
{step === 0 && (
|
|
357
|
+
<div>
|
|
358
|
+
{reposLoading ? (
|
|
359
|
+
<Spin />
|
|
360
|
+
) : repos.length === 0 ? (
|
|
361
|
+
<Empty description={t('No connected repositories. Please configure one in Git Manager first.')} />
|
|
362
|
+
) : (
|
|
363
|
+
<div>
|
|
364
|
+
<Text strong style={{ display: 'block', marginBottom: 8 }}>
|
|
365
|
+
<DatabaseOutlined /> {t('Select a connected git repository')}
|
|
366
|
+
</Text>
|
|
367
|
+
<Select
|
|
368
|
+
style={{ width: '100%' }}
|
|
369
|
+
placeholder={t('Select repository')}
|
|
370
|
+
value={selectedRepoId}
|
|
371
|
+
onChange={setSelectedRepoId}
|
|
372
|
+
options={repos.map((r) => ({
|
|
373
|
+
label: (
|
|
374
|
+
<Space>
|
|
375
|
+
{r.name}
|
|
376
|
+
<Text type="secondary" style={{ fontSize: 12 }}>
|
|
377
|
+
{r.repoUrl}
|
|
378
|
+
</Text>
|
|
379
|
+
</Space>
|
|
380
|
+
),
|
|
381
|
+
value: r.id,
|
|
382
|
+
}))}
|
|
383
|
+
/>
|
|
384
|
+
</div>
|
|
385
|
+
)}
|
|
386
|
+
</div>
|
|
387
|
+
)}
|
|
388
|
+
|
|
389
|
+
{/* Step 1: Select Root Folder */}
|
|
390
|
+
{step === 1 && (
|
|
391
|
+
<div>
|
|
392
|
+
<div style={{ marginBottom: 12, display: 'flex', gap: 12, alignItems: 'center' }}>
|
|
393
|
+
<BranchesOutlined />
|
|
394
|
+
<Select
|
|
395
|
+
size="small"
|
|
396
|
+
style={{ width: 200 }}
|
|
397
|
+
value={selectedRef}
|
|
398
|
+
onChange={(val) => {
|
|
399
|
+
setSelectedRef(val);
|
|
400
|
+
setSelectedRootFolder(null);
|
|
401
|
+
}}
|
|
402
|
+
options={branches.map((b) => ({ label: b, value: b }))}
|
|
403
|
+
/>
|
|
404
|
+
</div>
|
|
405
|
+
|
|
406
|
+
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: 8 }}>
|
|
407
|
+
<Text strong>
|
|
408
|
+
<FolderOutlined /> {t('Current Path')}: {currentTreePath || '/ (Root)'}
|
|
409
|
+
</Text>
|
|
410
|
+
<Button type="primary" onClick={() => setSelectedRootFolder(currentTreePath)}>
|
|
411
|
+
{t('Use Current Folder')}
|
|
412
|
+
</Button>
|
|
413
|
+
</div>
|
|
414
|
+
|
|
415
|
+
{foldersLoading ? (
|
|
416
|
+
<Spin />
|
|
417
|
+
) : (
|
|
418
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 8 }}>
|
|
419
|
+
{currentTreePath && (
|
|
420
|
+
<Button
|
|
421
|
+
icon={<FolderOutlined />}
|
|
422
|
+
onClick={() => {
|
|
423
|
+
const parts = currentTreePath.split('/');
|
|
424
|
+
parts.pop();
|
|
425
|
+
setCurrentTreePath(parts.join('/'));
|
|
426
|
+
}}
|
|
427
|
+
>
|
|
428
|
+
..
|
|
429
|
+
</Button>
|
|
430
|
+
)}
|
|
431
|
+
{folders.map((f) => (
|
|
432
|
+
<Button
|
|
433
|
+
key={f.path}
|
|
434
|
+
icon={<FolderOutlined />}
|
|
435
|
+
onClick={() => setCurrentTreePath(f.path)}
|
|
436
|
+
style={{ height: 'auto', padding: '8px 16px' }}
|
|
437
|
+
>
|
|
438
|
+
{f.name}
|
|
439
|
+
</Button>
|
|
440
|
+
))}
|
|
441
|
+
{folders.length === 0 && !currentTreePath && <Empty description={t('No folders found')} />}
|
|
442
|
+
</div>
|
|
443
|
+
)}
|
|
444
|
+
|
|
445
|
+
{selectedRootFolder !== null && (
|
|
446
|
+
<Alert
|
|
447
|
+
style={{ marginTop: 12 }}
|
|
448
|
+
type="success"
|
|
449
|
+
message={`${t('Selected Root Folder')}: ${selectedRootFolder || '/'}`}
|
|
450
|
+
showIcon
|
|
451
|
+
/>
|
|
452
|
+
)}
|
|
453
|
+
</div>
|
|
454
|
+
)}
|
|
455
|
+
|
|
456
|
+
{/* Step 2: Select Skills */}
|
|
457
|
+
{step === 2 && (
|
|
458
|
+
<div>
|
|
459
|
+
{skillsConfigInfo?.initializedSkillsJson && (
|
|
460
|
+
<Alert
|
|
461
|
+
style={{ marginBottom: 12 }}
|
|
462
|
+
type="info"
|
|
463
|
+
showIcon
|
|
464
|
+
message={`${t('Initialized skills.json')}: ${skillsConfigInfo.path || 'skills.json'}`}
|
|
465
|
+
/>
|
|
466
|
+
)}
|
|
467
|
+
{skillsLoading ? (
|
|
468
|
+
<Spin />
|
|
469
|
+
) : skills.length === 0 ? (
|
|
470
|
+
<Empty description={t('No skills found')} />
|
|
471
|
+
) : (
|
|
472
|
+
<div>
|
|
473
|
+
{/* Toolbar: Search + Options */}
|
|
474
|
+
<div
|
|
475
|
+
style={{
|
|
476
|
+
marginBottom: 12,
|
|
477
|
+
display: 'flex',
|
|
478
|
+
justifyContent: 'space-between',
|
|
479
|
+
alignItems: 'center',
|
|
480
|
+
gap: 12,
|
|
481
|
+
flexWrap: 'wrap',
|
|
482
|
+
}}
|
|
483
|
+
>
|
|
484
|
+
<Input
|
|
485
|
+
placeholder={t('Search by title or description...')}
|
|
486
|
+
prefix={<SearchOutlined style={{ color: token.colorTextQuaternary }} />}
|
|
487
|
+
value={searchText}
|
|
488
|
+
onChange={(e) => setSearchText(e.target.value)}
|
|
489
|
+
allowClear
|
|
490
|
+
style={{ width: 260 }}
|
|
491
|
+
/>
|
|
492
|
+
<Space>
|
|
493
|
+
<Input
|
|
494
|
+
size="small"
|
|
495
|
+
placeholder={t('Skill Name Prefix')}
|
|
496
|
+
value={importPrefix}
|
|
497
|
+
onChange={(e) => setImportPrefix(e.target.value)}
|
|
498
|
+
style={{ width: 150 }}
|
|
499
|
+
/>
|
|
500
|
+
<Text style={{ fontSize: 12, marginLeft: 8 }}>{t('Overwrite')}</Text>
|
|
501
|
+
<Switch size="small" checked={overwrite} onChange={setOverwrite} />
|
|
502
|
+
</Space>
|
|
503
|
+
</div>
|
|
504
|
+
|
|
505
|
+
<div style={{ marginBottom: 8 }}>
|
|
506
|
+
<Text type="secondary" style={{ fontSize: 12 }}>
|
|
507
|
+
{filteredSkills.length} / {skills.length} {t('skills found')}
|
|
508
|
+
{importPrefix && (
|
|
509
|
+
<span style={{ marginLeft: 8 }}>
|
|
510
|
+
• {t('Prefix')}: <Tag style={{ margin: 0 }}>{importPrefix}</Tag>{' '}
|
|
511
|
+
<Text type="secondary" style={{ fontSize: 11 }}>
|
|
512
|
+
({t('applied on sync')})
|
|
513
|
+
</Text>
|
|
514
|
+
</span>
|
|
515
|
+
)}
|
|
516
|
+
</Text>
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
<Table
|
|
520
|
+
dataSource={filteredSkills}
|
|
521
|
+
columns={skillColumns}
|
|
522
|
+
rowKey="folder"
|
|
523
|
+
size="small"
|
|
524
|
+
pagination={{
|
|
525
|
+
pageSize: 10,
|
|
526
|
+
size: 'small',
|
|
527
|
+
showSizeChanger: false,
|
|
528
|
+
showTotal: (total, range) => `${range[0]}-${range[1]} / ${total}`,
|
|
529
|
+
}}
|
|
530
|
+
rowSelection={{
|
|
531
|
+
selectedRowKeys: selectedSkills,
|
|
532
|
+
onChange: (keys) => setSelectedSkills(keys as string[]),
|
|
533
|
+
}}
|
|
534
|
+
/>
|
|
535
|
+
</div>
|
|
536
|
+
)}
|
|
537
|
+
</div>
|
|
538
|
+
)}
|
|
539
|
+
|
|
540
|
+
{/* Step 3: Results */}
|
|
541
|
+
{step === 3 && syncResults && (
|
|
542
|
+
<div>
|
|
543
|
+
<Result
|
|
544
|
+
status="success"
|
|
545
|
+
title={t('Sync Complete')}
|
|
546
|
+
subTitle={`${syncResults.filter((r) => r.status === 'created').length} ${t('created')}, ${
|
|
547
|
+
syncResults.filter((r) => r.status === 'updated').length
|
|
548
|
+
} ${t('updated')}, ${syncResults.filter((r) => r.status === 'skipped').length} ${t('skipped')}`}
|
|
549
|
+
/>
|
|
550
|
+
<Table dataSource={syncResults} columns={resultColumns} rowKey="folder" size="small" pagination={false} />
|
|
551
|
+
</div>
|
|
552
|
+
)}
|
|
553
|
+
</Modal>
|
|
554
|
+
);
|
|
555
|
+
};
|