plugin-build-visualization-block 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +21 -0
- package/client.d.ts +2 -2
- package/client.js +1 -1
- package/dist/client/59.6bac6ada1dacea82.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/385.1e235c5081822f07.js +10 -0
- package/dist/client-v2/59.cdb723e410dac32b.js +10 -0
- package/dist/client-v2/index.js +37 -1
- package/dist/externalVersion.js +12 -7
- package/dist/locale/en-US.json +77 -37
- package/dist/locale/vi-VN.json +58 -40
- package/dist/locale/zh-CN.json +79 -40
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/actions/build.js +8 -720
- package/dist/server/collections/workflow-runs.js +51 -0
- package/dist/server/pipeline/analyzer.js +18 -4
- package/dist/server/plugin.js +17 -20
- package/dist/server/tools/build-visualization-block.js +9 -26
- package/dist/server/workflow-domain.js +209 -0
- package/dist/server/workflow.js +466 -0
- package/dist/shared/blockSpec.js +1 -1
- package/dist/shared/workflow.js +58 -0
- package/package.json +14 -3
- package/server.d.ts +2 -2
- package/server.js +1 -1
- package/src/client/locale.ts +18 -18
- package/src/client/plugin.tsx +11 -0
- package/src/client/workflow.ts +28 -0
- package/src/client-v2/__tests__/buildApi.test.ts +68 -0
- package/src/client-v2/__tests__/modelOptions.test.ts +190 -0
- package/src/client-v2/__tests__/nativeModels.test.ts +77 -0
- package/src/client-v2/buildApi.ts +93 -0
- package/src/client-v2/components/AISelectors.tsx +85 -0
- package/src/client-v2/components/BuildForm.tsx +186 -0
- package/src/client-v2/components/CollectionMultiSelect.tsx +63 -0
- package/src/client-v2/components/NativePreview.tsx +53 -0
- package/src/client-v2/locale.ts +5 -0
- package/src/client-v2/modelOptions.ts +201 -0
- package/src/client-v2/models/BuildVisualizationBlockModel.tsx +95 -0
- package/src/client-v2/nativeBlock.ts +28 -0
- package/src/client-v2/pages/SettingsPage.tsx +77 -0
- package/src/client-v2/plugin.tsx +17 -4
- package/src/client-v2/workflow-fields.tsx +23 -0
- package/src/client-v2/workflow.ts +28 -0
- package/src/locale/en-US.json +77 -37
- package/src/locale/namespace.ts +6 -6
- package/src/locale/vi-VN.json +58 -40
- package/src/locale/zh-CN.json +79 -40
- package/src/server/__tests__/build-action.test.ts +121 -117
- package/src/server/__tests__/plugin.test.ts +19 -34
- package/src/server/actions/build.ts +268 -1318
- package/src/server/collections/workflow-runs.ts +30 -0
- package/src/server/pipeline/analyzer.ts +395 -368
- package/src/server/plugin.ts +26 -35
- package/src/server/tools/build-visualization-block.ts +18 -28
- package/src/server/workflow-domain.ts +235 -0
- package/src/server/workflow.ts +519 -0
- package/src/shared/blockSpec.ts +10 -1
- package/src/shared/workflow.ts +26 -0
- package/dist/client-v2/812.6b4f5e757b898c82.js +0 -10
package/dist/locale/vi-VN.json
CHANGED
|
@@ -1,46 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Build Visualization Block": "Khối tạo trực quan hóa",
|
|
3
|
-
"Data source": "Nguồn dữ liệu",
|
|
4
|
-
"Collections": "Bộ sưu tập",
|
|
5
|
-
"Requirement": "Yêu cầu",
|
|
6
|
-
"Describe the block you want to build": "Mô tả khối bạn muốn tạo",
|
|
7
|
-
"AI service": "Dịch vụ AI",
|
|
8
|
-
"Model": "Mô hình",
|
|
9
|
-
"At least one collection is required": "Cần chọn ít nhất một bộ sưu tập",
|
|
10
|
-
"You can select at most {{max}} collections": "Bạn chỉ có thể chọn tối đa {{max}} bộ sưu tập",
|
|
11
|
-
"Requirement description is required": "Mô tả yêu cầu là bắt buộc",
|
|
12
|
-
"Requirement must be at most {{max}} characters": "Yêu cầu chỉ được tối đa {{max}} ký tự",
|
|
13
|
-
"AI service and model are required": "Dịch vụ AI và mô hình là bắt buộc",
|
|
14
|
-
"The AI service is unavailable": "Dịch vụ AI không khả dụng",
|
|
15
|
-
"Idle": "Nhàn rỗi",
|
|
16
|
-
"Queued": "Đang chờ xử lý",
|
|
17
|
-
"Analyzing": "Đang phân tích",
|
|
18
|
-
"Generating": "Đang tạo",
|
|
19
|
-
"Completed": "Hoàn thành",
|
|
20
|
-
"Failed": "Thất bại",
|
|
21
|
-
"Build": "Tạo",
|
|
22
|
-
"Insert": "Chèn",
|
|
23
|
-
"Regenerate": "Tạo lại",
|
|
24
|
-
"Cancel": "Hủy",
|
|
25
|
-
"Preview": "Xem trước",
|
|
26
|
-
"A fallback block was generated": "Đã tạo một khối dự phòng",
|
|
27
|
-
"Some fields were adjusted to match the collection": "Một số trường đã được điều chỉnh để khớp với bộ sưu tập",
|
|
28
|
-
"Failed to load the list": "Không tải được danh sách",
|
|
29
|
-
"Retry": "Thử lại",
|
|
30
|
-
"The requirement could not be saved": "Không thể lưu yêu cầu",
|
|
31
|
-
"A maximum of {{max}} collections can be selected": "Có thể chọn tối đa {{max}} bộ sưu tập",
|
|
32
|
-
"A requirement is required": "Yêu cầu là bắt buộc",
|
|
33
|
-
"The requirement must be {{max}} characters or fewer": "Yêu cầu phải có tối đa {{max}} ký tự",
|
|
34
|
-
"An LLM service and model are required": "Dịch vụ AI và mô hình là bắt buộc",
|
|
35
|
-
"You do not have permission to read collection \"{{collection}}\"": "Bạn không có quyền đọc bộ sưu tập \"{{collection}}\"",
|
|
36
|
-
"You do not have permission to read this build": "Bạn không có quyền đọc bản dựng này",
|
|
37
|
-
"A build id is required": "ID bản dựng là bắt buộc",
|
|
38
|
-
"Build record not found": "Không tìm thấy bản ghi bản dựng"
|
|
39
|
-
,
|
|
1
|
+
{
|
|
2
|
+
"Build Visualization Block": "Khối tạo trực quan hóa",
|
|
3
|
+
"Data source": "Nguồn dữ liệu",
|
|
4
|
+
"Collections": "Bộ sưu tập",
|
|
5
|
+
"Requirement": "Yêu cầu",
|
|
6
|
+
"Describe the block you want to build": "Mô tả khối bạn muốn tạo",
|
|
7
|
+
"AI service": "Dịch vụ AI",
|
|
8
|
+
"Model": "Mô hình",
|
|
9
|
+
"At least one collection is required": "Cần chọn ít nhất một bộ sưu tập",
|
|
10
|
+
"You can select at most {{max}} collections": "Bạn chỉ có thể chọn tối đa {{max}} bộ sưu tập",
|
|
11
|
+
"Requirement description is required": "Mô tả yêu cầu là bắt buộc",
|
|
12
|
+
"Requirement must be at most {{max}} characters": "Yêu cầu chỉ được tối đa {{max}} ký tự",
|
|
13
|
+
"AI service and model are required": "Dịch vụ AI và mô hình là bắt buộc",
|
|
14
|
+
"The AI service is unavailable": "Dịch vụ AI không khả dụng",
|
|
15
|
+
"Idle": "Nhàn rỗi",
|
|
16
|
+
"Queued": "Đang chờ xử lý",
|
|
17
|
+
"Analyzing": "Đang phân tích",
|
|
18
|
+
"Generating": "Đang tạo",
|
|
19
|
+
"Completed": "Hoàn thành",
|
|
20
|
+
"Failed": "Thất bại",
|
|
21
|
+
"Build": "Tạo",
|
|
22
|
+
"Insert": "Chèn",
|
|
23
|
+
"Regenerate": "Tạo lại",
|
|
24
|
+
"Cancel": "Hủy",
|
|
25
|
+
"Preview": "Xem trước",
|
|
26
|
+
"A fallback block was generated": "Đã tạo một khối dự phòng",
|
|
27
|
+
"Some fields were adjusted to match the collection": "Một số trường đã được điều chỉnh để khớp với bộ sưu tập",
|
|
28
|
+
"Failed to load the list": "Không tải được danh sách",
|
|
29
|
+
"Retry": "Thử lại",
|
|
30
|
+
"The requirement could not be saved": "Không thể lưu yêu cầu",
|
|
31
|
+
"A maximum of {{max}} collections can be selected": "Có thể chọn tối đa {{max}} bộ sưu tập",
|
|
32
|
+
"A requirement is required": "Yêu cầu là bắt buộc",
|
|
33
|
+
"The requirement must be {{max}} characters or fewer": "Yêu cầu phải có tối đa {{max}} ký tự",
|
|
34
|
+
"An LLM service and model are required": "Dịch vụ AI và mô hình là bắt buộc",
|
|
35
|
+
"You do not have permission to read collection \"{{collection}}\"": "Bạn không có quyền đọc bộ sưu tập \"{{collection}}\"",
|
|
36
|
+
"You do not have permission to read this build": "Bạn không có quyền đọc bản dựng này",
|
|
37
|
+
"A build id is required": "ID bản dựng là bắt buộc",
|
|
38
|
+
"Build record not found": "Không tìm thấy bản ghi bản dựng",
|
|
40
39
|
"Default collections": "Default collections",
|
|
41
40
|
"Default AI service": "Default AI service",
|
|
42
41
|
"Default model": "Default model",
|
|
43
42
|
"Enable AI tool": "Enable AI tool",
|
|
44
43
|
"Save": "Save",
|
|
45
|
-
"Saved successfully": "Saved successfully"
|
|
44
|
+
"Saved successfully": "Saved successfully",
|
|
45
|
+
"Managed workflow": "Workflow được quản lý",
|
|
46
|
+
"Index file": "Lập chỉ mục tệp",
|
|
47
|
+
"Analyze visualization": "Phân tích trực quan hóa",
|
|
48
|
+
"Validate visualization": "Kiểm tra trực quan hóa",
|
|
49
|
+
"Generate visualization": "Sinh trực quan hóa",
|
|
50
|
+
"This node requires an asynchronous workflow": "Node này yêu cầu workflow bất đồng bộ",
|
|
51
|
+
"Workflow request not found": "Không tìm thấy yêu cầu workflow",
|
|
52
|
+
"Workflow request does not belong to this execution": "Yêu cầu không thuộc lần thực thi workflow này",
|
|
53
|
+
"Managed workflow is unavailable or disabled": "Workflow chưa sẵn sàng hoặc đã bị tắt",
|
|
54
|
+
"Workflow request was canceled or superseded": "Yêu cầu workflow đã bị hủy hoặc thay thế",
|
|
55
|
+
"Workflow execution failed or was canceled": "Workflow thất bại hoặc đã bị hủy",
|
|
56
|
+
"Build queued in workflow": "Đã đưa tác vụ tạo vào workflow",
|
|
57
|
+
"Build completed in workflow": "Workflow đã tạo xong",
|
|
58
|
+
"Build running in workflow": "Workflow đang xử lý",
|
|
59
|
+
"Workflow stage input is invalid": "Đầu vào bước workflow không hợp lệ",
|
|
60
|
+
"Schema generation failed": "Sinh schema thất bại",
|
|
61
|
+
"This node processes the request that triggered this workflow. No configuration is required.": "Node xử lý yêu cầu đã kích hoạt workflow này. Không cần cấu hình thêm.",
|
|
62
|
+
"Build completed using fallback": "Đã tạo xong bằng phương án dự phòng",
|
|
63
|
+
"Workflow completed without finishing the plugin request": "Workflow đã kết thúc nhưng yêu cầu của plugin chưa hoàn thành"
|
|
46
64
|
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,46 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Build Visualization Block": "构建可视化区块",
|
|
3
|
-
"Data source": "数据源",
|
|
4
|
-
"Collections": "数据表",
|
|
5
|
-
"Requirement": "需求",
|
|
6
|
-
"Describe the block you want to build": "描述您想要构建的区块",
|
|
7
|
-
"AI service": "AI 服务",
|
|
8
|
-
"Model": "模型",
|
|
9
|
-
"At least one collection is required": "至少需要选择一个数据表",
|
|
10
|
-
"You can select at most {{max}} collections": "最多只能选择 {{max}} 个数据表",
|
|
11
|
-
"Requirement description is required": "需求描述不能为空",
|
|
12
|
-
"Requirement must be at most {{max}} characters": "需求描述最多 {{max}} 个字符",
|
|
13
|
-
"AI service and model are required": "AI 服务和模型为必填项",
|
|
14
|
-
"The AI service is unavailable": "AI 服务不可用",
|
|
15
|
-
"Idle": "空闲",
|
|
16
|
-
"Queued": "排队中",
|
|
17
|
-
"Analyzing": "分析中",
|
|
18
|
-
"Generating": "生成中",
|
|
19
|
-
"Completed": "已完成",
|
|
20
|
-
"Failed": "失败",
|
|
21
|
-
"Build": "构建",
|
|
22
|
-
"Insert": "插入",
|
|
23
|
-
"Regenerate": "重新生成",
|
|
24
|
-
"Cancel": "取消",
|
|
25
|
-
"Preview": "预览",
|
|
26
|
-
"A fallback block was generated": "已生成备用区块",
|
|
27
|
-
"Some fields were adjusted to match the collection": "部分字段已调整以匹配数据表",
|
|
28
|
-
"Failed to load the list": "加载列表失败",
|
|
29
|
-
"Retry": "重试",
|
|
30
|
-
"The requirement could not be saved": "无法保存需求",
|
|
31
|
-
"A maximum of {{max}} collections can be selected": "最多只能选择 {{max}} 个数据表",
|
|
32
|
-
"A requirement is required": "需求不能为空",
|
|
33
|
-
"The requirement must be {{max}} characters or fewer": "需求描述最多 {{max}} 个字符",
|
|
34
|
-
"An LLM service and model are required": "AI 服务和模型为必填项",
|
|
35
|
-
"You do not have permission to read collection \"{{collection}}\"": "您没有读取数据表“{{collection}}”的权限",
|
|
36
|
-
"You do not have permission to read this build": "您没有读取此构建的权限",
|
|
37
|
-
"A build id is required": "构建 ID 为必填项",
|
|
38
|
-
"Build record not found": "未找到构建记录"
|
|
39
|
-
,
|
|
1
|
+
{
|
|
2
|
+
"Build Visualization Block": "构建可视化区块",
|
|
3
|
+
"Data source": "数据源",
|
|
4
|
+
"Collections": "数据表",
|
|
5
|
+
"Requirement": "需求",
|
|
6
|
+
"Describe the block you want to build": "描述您想要构建的区块",
|
|
7
|
+
"AI service": "AI 服务",
|
|
8
|
+
"Model": "模型",
|
|
9
|
+
"At least one collection is required": "至少需要选择一个数据表",
|
|
10
|
+
"You can select at most {{max}} collections": "最多只能选择 {{max}} 个数据表",
|
|
11
|
+
"Requirement description is required": "需求描述不能为空",
|
|
12
|
+
"Requirement must be at most {{max}} characters": "需求描述最多 {{max}} 个字符",
|
|
13
|
+
"AI service and model are required": "AI 服务和模型为必填项",
|
|
14
|
+
"The AI service is unavailable": "AI 服务不可用",
|
|
15
|
+
"Idle": "空闲",
|
|
16
|
+
"Queued": "排队中",
|
|
17
|
+
"Analyzing": "分析中",
|
|
18
|
+
"Generating": "生成中",
|
|
19
|
+
"Completed": "已完成",
|
|
20
|
+
"Failed": "失败",
|
|
21
|
+
"Build": "构建",
|
|
22
|
+
"Insert": "插入",
|
|
23
|
+
"Regenerate": "重新生成",
|
|
24
|
+
"Cancel": "取消",
|
|
25
|
+
"Preview": "预览",
|
|
26
|
+
"A fallback block was generated": "已生成备用区块",
|
|
27
|
+
"Some fields were adjusted to match the collection": "部分字段已调整以匹配数据表",
|
|
28
|
+
"Failed to load the list": "加载列表失败",
|
|
29
|
+
"Retry": "重试",
|
|
30
|
+
"The requirement could not be saved": "无法保存需求",
|
|
31
|
+
"A maximum of {{max}} collections can be selected": "最多只能选择 {{max}} 个数据表",
|
|
32
|
+
"A requirement is required": "需求不能为空",
|
|
33
|
+
"The requirement must be {{max}} characters or fewer": "需求描述最多 {{max}} 个字符",
|
|
34
|
+
"An LLM service and model are required": "AI 服务和模型为必填项",
|
|
35
|
+
"You do not have permission to read collection \"{{collection}}\"": "您没有读取数据表“{{collection}}”的权限",
|
|
36
|
+
"You do not have permission to read this build": "您没有读取此构建的权限",
|
|
37
|
+
"A build id is required": "构建 ID 为必填项",
|
|
38
|
+
"Build record not found": "未找到构建记录",
|
|
40
39
|
"Default collections": "Default collections",
|
|
41
40
|
"Default AI service": "Default AI service",
|
|
42
41
|
"Default model": "Default model",
|
|
43
42
|
"Enable AI tool": "Enable AI tool",
|
|
44
43
|
"Save": "Save",
|
|
45
|
-
"Saved successfully": "Saved successfully"
|
|
44
|
+
"Saved successfully": "Saved successfully",
|
|
45
|
+
"Invalid build response": "构建响应无效",
|
|
46
|
+
"Invalid generated block specification": "生成的区块规范无效",
|
|
47
|
+
"No compatible chart configuration": "没有兼容的图表配置",
|
|
48
|
+
"No compatible field renderer": "没有兼容的字段渲染器",
|
|
49
|
+
"Collection is unavailable": "数据表不可用",
|
|
50
|
+
"Failed to save settings": "保存设置失败",
|
|
51
|
+
"Preview is unavailable": "预览不可用",
|
|
52
|
+
"Failed to load build status": "获取构建状态失败",
|
|
53
|
+
"Generated using fallback specification": "已使用备用规范生成",
|
|
54
|
+
"Adjustments": "调整说明",
|
|
55
|
+
"Save this configuration to insert the generated block.": "保存此配置以插入生成的区块。",
|
|
56
|
+
"Generate a block to get started": "请先生成区块",
|
|
57
|
+
"Build is not completed": "构建尚未完成",
|
|
58
|
+
"Data visualization plugin is unavailable": "数据可视化插件不可用",
|
|
59
|
+
"AI": "AI",
|
|
60
|
+
"idle": "空闲",
|
|
61
|
+
"queued": "排队中",
|
|
62
|
+
"analyzing": "分析中",
|
|
63
|
+
"generating": "生成中",
|
|
64
|
+
"completed": "已完成",
|
|
65
|
+
"failed": "失败",
|
|
66
|
+
"Managed workflow": "托管工作流",
|
|
67
|
+
"Index file": "索引文件",
|
|
68
|
+
"Analyze visualization": "分析可视化",
|
|
69
|
+
"Validate visualization": "验证可视化",
|
|
70
|
+
"Generate visualization": "生成可视化",
|
|
71
|
+
"This node requires an asynchronous workflow": "此节点需要异步工作流",
|
|
72
|
+
"Workflow request not found": "未找到工作流请求",
|
|
73
|
+
"Workflow request does not belong to this execution": "工作流请求不属于此执行",
|
|
74
|
+
"Managed workflow is unavailable or disabled": "托管工作流不可用或已禁用",
|
|
75
|
+
"Workflow request was canceled or superseded": "工作流请求已取消或被替代",
|
|
76
|
+
"Workflow execution failed or was canceled": "工作流执行失败或已取消",
|
|
77
|
+
"Build queued in workflow": "构建已进入工作流队列",
|
|
78
|
+
"Build completed in workflow": "工作流构建已完成",
|
|
79
|
+
"Build running in workflow": "工作流正在构建",
|
|
80
|
+
"Workflow stage input is invalid": "工作流步骤输入无效",
|
|
81
|
+
"Schema generation failed": "结构生成失败",
|
|
82
|
+
"This node processes the request that triggered this workflow. No configuration is required.": "此节点处理触发本工作流的请求,无需额外配置。",
|
|
83
|
+
"Build completed using fallback": "使用回退方案构建完成",
|
|
84
|
+
"Workflow completed without finishing the plugin request": "工作流已结束,但插件请求尚未完成"
|
|
46
85
|
}
|