Commit Graph

158 Commits

Author SHA1 Message Date
CaptainB 10957d827f chore: refactor MCP configuration retrieval and add MCP view 2025-12-23 18:30:35 +08:00
CaptainB 8a785b2c7b chore: refactor imports for better organization in tool_code.py 2025-12-23 12:01:03 +08:00
CaptainB 3de7249587 chore: refactor imports for better organization in tool_code.py 2025-12-23 11:28:10 +08:00
CaptainB 56f9132b64 Revert "chore: refactor app MCP configuration and implement AI chat functionality"
This reverts commit bf9ae948d5.
2025-12-23 11:19:36 +08:00
CaptainB bf9ae948d5 chore: refactor app MCP configuration and implement AI chat functionality 2025-12-23 10:51:06 +08:00
CaptainB 74b7633c2f chore: remove leading slash from API URLs in tool_code.py 2025-12-22 15:07:20 +08:00
CaptainB c9fc207cac chore: remove empty name parameter from mcp.tool decorator 2025-12-22 14:58:45 +08:00
CaptainB 336bb8cc2d chore: update tool decorator to handle non-ASCII names 2025-12-22 14:56:41 +08:00
CaptainB 54e16acee6 feat: add application enable flag and application IDs to application model 2025-12-22 10:24:49 +08:00
zhangzhanwei ff2a14817e feat: Knowledge workflow import and export
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-19 16:47:42 +08:00
liqiang-fit2cloud ebfc290bd3 refactor: log tool execution duration 2025-12-11 17:20:01 +08:00
zhangzhanwei e919666f01 fix: Filter special character 2025-12-11 16:23:24 +08:00
liqiang-fit2cloud d68acede6f refactor: change error number. 2025-12-09 19:02:49 +08:00
liqiang-fit2cloud 3c8601639c refactor: remove duplicated function. 2025-12-08 15:04:16 +08:00
shaohuzhang1 8a9de5964d
fix: update file handling functions (#4455) 2025-12-08 14:26:44 +08:00
liqiang-fit2cloud ff5150d520 refactor: redirect stdout. 2025-12-08 10:17:56 +08:00
liqiang-fit2cloud 21437632af refactor: change print to sys.stdout. 2025-12-05 16:45:30 +08:00
liqiang-fit2cloud 3eff896f2d refactor: change print to sys.stdout. 2025-12-05 16:25:54 +08:00
liqiang-fit2cloud f8ada9a110 refactor: remove init parameter from class ToolExecutor. 2025-12-04 15:40:50 +08:00
liqiang-fit2cloud 94eb6959d9 feat: add MAXKB_SANDBOX_PYTHON_PROCESS_LIMIT_CPU_CORES env.
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-04 11:23:33 +08:00
liqiang-fit2cloud b1db3a6c25 perf: simplify initialization of ToolExecutor. 2025-12-03 17:46:13 +08:00
liqiang-fit2cloud 243cc6ccd2 feat: catch memory error. 2025-12-03 14:39:34 +08:00
liqiang-fit2cloud f55f38bce3 Merge branch 'v2' of https://github.com/maxkb-dev/maxkb into v2 2025-12-03 11:35:33 +08:00
liqiang-fit2cloud 6960262757 feat: add mem limit. 2025-12-03 11:35:23 +08:00
CaptainB ec238b7132 feat: set current working directory for sandbox execution 2025-12-03 11:23:18 +08:00
CaptainB ae0a34a220 chore: remove newline character from split characters in split_model.py 2025-12-03 10:32:36 +08:00
liqiang-fit2cloud 71f1e26c8f refactor: run python code without su -. 2025-12-03 09:52:02 +08:00
liqiang-fit2cloud 0638f6951a fix: handle long arguments in sandbox. 2025-12-02 16:07:51 +08:00
liqiang-fit2cloud 9b621bc783 fix: handle long arguments in sandbox. 2025-12-02 15:42:55 +08:00
liqiang-fit2cloud e3c36b3476 refactor: catch more exception details. 2025-12-01 14:52:05 +08:00
liqiang-fit2cloud 5b393e92d6 fix: remove useless code caused by merge. 2025-12-01 11:25:25 +08:00
shaohuzhang1 bfae088df6
feat: knowledge workflow (#4399)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
* feat: init knowledge workflow

* feat: add knowledge workflow and version models, serializers, and API views

* feat: knowledge workflow

* feat: knowledge workflow

* feat: add KnowledgeWorkflowModelSerializer and Operate class for workflow management

* fix: route

* feat: knowledge workflow

* feat: Knowledge workflow permission

* feat: knowledge workflow

* feat: knowledge workflow

* feat: knowledge workflow

* feat: knowledge workflow

* feat: Data source web node

* fix: Back route

* feat: knowledge workflow

* feat: knowledge workflow

* feat: Knowledge write node

* feat: add Data Source tool functionality and localization

* feat: add Data Source tool functionality and localization

* feat: knowledge workflow

* feat: knowledge workflow

* fix: simplify export tool permission check in ToolListContainer.vue

* fix: simplify export condition in ToolResourceIndex.vue

* fix: simplify condition for copying tool in ToolListContainer

* feat: knowledge workflow

* fix: Upload local files and add output fields

* feat: Knowledge write

* feat: add Document Split Node functionality and localization

* feat: add Document Split Node functionality and localization

* feat: Knowledge write

* feat: enhance Document Split Node with result processing and problem list generation

* fix: Allow problem be blank

* feat: enhance Document Split Node with result processing and problem list generation

* feat: tool datasource

* fix: Optimization of knowledge base workflow execution logic

* refactor: streamline image handling by updating application and knowledge ID management

* refactor: streamline image handling by updating application and knowledge ID management

* feat: extend support modes in variable aggregation node to include knowledge workflows

* feat: Chunks stored

* refactor: simplify file handling in document extraction by removing unnecessary byte conversion and enhancing file saving logic

* refactor: update file ID assignment in document extraction to use provided metadata

* feat: Workflow menu that distinguishes between applications and knowledge bases

* refactor: update file ID assignment in document extraction to use provided metadata

* fix: Add workspace ID as workflow execution parameter

* feat: add code template for Data Source tool form functionality

* refactor: remove unused sys import and improve module handling

* feat: Execution details support loading status

* refactor: update tool type handling and improve category merging logic

* feat: Alter fork depth

* fix: ensure filterList is properly initialized and updated in getList function

* refactor: simplify ToolStoreDialog by removing unused toolType logic

* perf: Optimize the style

* style: adjust div width for improved layout in Tree component

* refactor: improve polling mechanism for knowledge workflow action

* fix: Get workspace_id from workflow params

* fix: filter out 'file_bytes' from result in get_details method

* feat: add recursive filtering for file_bytes in context data

* fix: append results to paragraph_list instead of replacing it

* perf: Optimize translation files

* fix: include document name in bytes_to_uploaded_file call for better file handling

* refactor: optimize buffer retrieval in document processing

* refactor: remove redundant parameter from bytes_to_uploaded_file call

* fix: Page style optimization

* feat: add slider for setting limit in document rules form

* feat: add workflow knowledge management endpoints and related functionality

* fix: swap file size and file count limits in form inputs

* refactor: update tool_config args to use list format for improved readability

* feat: Node supports knowledge base workflow

* feat: Node supports knowledge base workflow

* fix: Basic node data cannot be obtained in the workflow

* style: Knowledge base workflow debugging page style adjustment

* fix: Loop nodes cannot be used in the knowledge base workflow

* fix: Knowledge base workflow variable assignment node

* feat: add chunk size slider to form for custom split strategy

* fix: Workflow style optimization

---------

Co-authored-by: CaptainB <bin@fit2cloud.com>
Co-authored-by: zhangzhanwei <zhanwei.zhang@fit2cloud.com>
Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
2025-11-28 15:38:20 +08:00
liqiang-fit2cloud cf59cca8bd fix: change dir permission. 2025-11-28 14:14:31 +08:00
liqiang-fit2cloud 94b2659019 refactor: use /tmp instead of /opt/maxkb-app/sandbox/tmp if SANDBOX_TMP_DIR_ENABLED is enabled. 2025-11-28 10:13:48 +08:00
liqiang-fit2cloud f67aef11fd fix: os.execvp() can create subprocess.
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-27 20:11:38 +08:00
liqiang-fit2cloud 94e60b073f refactor: optimize timeout exception msg. 2025-11-27 16:56:20 +08:00
liqiang-fit2cloud 715adc13c5 deps: upgrade redis-server. 2025-11-27 15:41:51 +08:00
liqiang-fit2cloud 10b466ba91 refactor: change lib dir.
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-27 11:21:55 +08:00
liqiang-fit2cloud 674e34a735 refactor: change lib dir. 2025-11-27 10:29:20 +08:00
liqiang-fit2cloud 74ba4ce4fc fix: kill all processes after timeout.
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-26 14:01:43 +08:00
liqiang-fit2cloud 9ec9cf7e0f fix: kill all processes after timeout. 2025-11-26 12:23:15 +08:00
liqiang-fit2cloud 197d514cb4 refactor: clear all env from sandbox. 2025-11-25 14:33:13 +08:00
liqiang-fit2cloud 5e909a4ba1 feat: add MAXKB_SANDBOX_PYTHON_PROCESS_TIMEOUT_SECONDS env. 2025-11-25 10:27:08 +08:00
liqiang-fit2cloud eb30b88d10 refactor: remove MAXKB_SANDBOX_PYTHON_BANNED_KEYWORDS.
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-24 18:42:06 +08:00
liqiang-fit2cloud 057e0420cf security: not allow to create subprocess in sandbox by default. 2025-11-24 18:25:20 +08:00
liqiang-fit2cloud d6a3a3cf1f refactor: change dir permissions.
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled
2025-11-21 15:05:32 +08:00
liqiang-fit2cloud 49e52aa53c refactor: change dir permissions. 2025-11-21 14:58:59 +08:00
liqiang-fit2cloud e27d39c1ac refactor: change dir permissions. 2025-11-21 14:10:28 +08:00
liqiang-fit2cloud 491c39f4d0 refactor: change dir permissions. 2025-11-21 12:23:36 +08:00
liqiang-fit2cloud a9b6f2b211 refactor: change dir permissions. 2025-11-21 10:35:47 +08:00