Skip to content

Commit 569a9ab

Browse files
feat(workflow): add comprehensive import/export functionality
- Add workflow export API supporting JSON/YAML formats - Add single workflow import API with validation - Add batch workflow import with transaction/parallel modes - Support ZIP format parsing and conversion to open source format - Add comprehensive frontend import/export UI components - Include performance testing scripts and documentation - Support workflow dependency analysis and resource management - Add proper error handling and rollback mechanisms - Include i18n support for Chinese and Englishntegrity - Add extensive validation for workflow data integrity
1 parent 61e8331 commit 569a9ab

File tree

95 files changed

+9390
-589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+9390
-589
lines changed

.github/scripts/check-file-size.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ EXCLUDE_PATTERNS=(
4040
'common/changes/**'
4141
'apps/fornax/**',
4242
"packages/arch/semi-theme-hand01"
43+
'frontend/packages/arch/resources/studio-i18n-resource/src/locale-data.d.ts'
4344
)
4445

4546
for pattern in "${EXCLUDE_PATTERNS[@]}"; do

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ common/temp
5353
.rush
5454
.eslintcache
5555

56+
# Python virtual environment
57+
venv/
58+
.venv/
59+
*.venv
60+
5661

5762
backend/conf/model/*.yaml
5863
values-dev.yaml
5964
**/conf/model_ark_doubao-seed-1.6.yaml
6065

6166
*.tsbuildinfo
6267

68+
# Generated i18n locale data files
69+
frontend/packages/arch/resources/studio-i18n-resource/src/locale-data.d.ts
70+

backend/api/handler/coze/workflow_service.go

Lines changed: 135 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/api/handler/coze/workflow_service_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,12 +3156,13 @@ func TestLLMWithSkills(t *testing.T) {
31563156
assert.Equal(t, "你是一个旅游推荐专家,通过用户提出的问题,推荐用户具体城市的旅游景点", message.Content)
31573157
}
31583158
if message.Role == schema.User {
3159-
assert.Contains(t, message.Content, "天安门广场 ‌:中国政治文化中心,见证了近现代重大历史事件‌", "八达岭长城 ‌:明代长城的精华段,被誉为“不到长城非好汉")
3159+
assert.Contains(t, message.Content, "天安门广场 ‌:中国政治文化中心,见证了近现代重大历史事件‌")
3160+
assert.Contains(t, message.Content, "八达岭长城 ‌:明代长城的精华段,被誉为\"不到长城非好汉\"")
31603161
}
31613162
}
31623163
return &schema.Message{
31633164
Role: schema.Assistant,
3164-
Content: `八达岭长城 ‌:明代长城的精华段,被誉为不到长城非好汉‌`,
3165+
Content: `八达岭长城 ‌:明代长城的精华段,被誉为"不到长城非好汉‌`,
31653166
}, nil
31663167
}
31673168
return nil, fmt.Errorf("unexpected index: %d", index)
@@ -3178,7 +3179,7 @@ func TestLLMWithSkills(t *testing.T) {
31783179
// r.knowledge.EXPECT().Retrieve(gomock.Any(), gomock.Any()).Return(&knowledge.RetrieveResponse{
31793180
// RetrieveSlices: []*knowledge.RetrieveSlice{
31803181
// {Slice: &knowledge.Slice{DocumentID: 1, Output: "天安门广场 ‌:中国政治文化中心,见证了近现代重大历史事件‌"}, Score: 0.9},
3181-
// {Slice: &knowledge.Slice{DocumentID: 2, Output: "八达岭长城 ‌:明代长城的精华段,被誉为不到长城非好汉"}, Score: 0.8},
3182+
// {Slice: &knowledge.Slice{DocumentID: 2, Output: "八达岭长城 ‌:明代长城的精华段,被誉为"不到长城非好汉"}, Score: 0.8},
31823183
// },
31833184
// }, nil).AnyTimes()
31843185

@@ -3189,7 +3190,7 @@ func TestLLMWithSkills(t *testing.T) {
31893190
// })
31903191
// e := r.getProcess(id, exeID)
31913192
// e.assertSuccess()
3192-
// assert.Equal(t, `{"output":"八达岭长城 ‌:明代长城的精华段,被誉为不到长城非好汉‌"}`, e.output)
3193+
// assert.Equal(t, `{"output":"八达岭长城 ‌:明代长城的精华段,被誉为"不到长城非好汉‌"}`, e.output)
31933194
// })
31943195
})
31953196
}

0 commit comments

Comments
 (0)