mirror of
https://github.com/nocobase/nocobase.git
synced 2026-12-06 22:23:41 +08:00
develop
11
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c0d9710ce5 | Merge branch 'main' into next | ||
|
|
22f18cde55 | fix(ai): reject invalid editor patches (#10174) | ||
|
|
3223f9272c |
feat: plugin-ai-v2-migration (#9794)
* test(plugin-ai): add chatbox state regression fixtures * test(plugin-ai): add chatbox hooks contract tests * feat(plugin-ai): add client-v2 entry scaffold * feat(plugin-ai): add client-v2 ai config repository * refactor(plugin-ai): reuse client-v2 ai config repository * feat(plugin-ai): freeze client-v2 public api * feat(plugin-ai): add observable chatbox store facade * feat(plugin-ai): add client-v2 chatbox stores * feat(plugin-ai): add client-v2 chatbox hooks * docs(plugin-ai): record chatbox hook compatibility check * feat(plugin-ai): replace v1 chatbox hooks with v2 * feat(plugin-ai): migrate chatbox ui to client-v2 * fix(plugin-ai): fix chatbox declaration types * fix(plugin-ai): align chatbox block context rendering * fix(plugin-ai): preserve form block context parsing * fix(plugin-ai): register v2 form filler tool * fix(plugin-ai): align v2 builtin tool registration * fix(plugin-ai): add missing v2 tool UI components * fix(plugin-ai): align v2 workflow task list * fix(plugin-ai): show all v2 workflow task statuses * fix(plugin-ai): update v2 conversation unread state * fix(plugin-ai): replace v1 chatbox ui with v2 * fix(plugin-ai): remove legacy v1 chatbox ui * fix(plugin-ai): reuse v2 builtin tools in v1 * fix(plugin-ai): show all chat models * chore(plugin-ai): remove unused v1 chatbox shims * feat(plugin-ai): support v2 ai employee embed entry * refactor(plugin-ai): use v2 chatbox provider in v1 entry * feat(plugin-ai): migrate ai employee shortcut models to v2 * refactor(plugin-ai): reuse v2 ai employee flow models in v1 * feat(plugin-ai): add v2 ai manager registries * feat(plugin-ai): add v2 llm provider forms * feat(plugin-ai): add v2 admin settings page * feat(plugin-ai): add v2 employees settings page * feat(plugin-ai): add v2 llm services settings page * feat(plugin-ai): add v2 mcp settings page * feat(plugin-ai): add v2 datasource settings page * feat(plugin-ai): register v2 ai settings pages * refactor(plugin-ai): reuse v2 ai settings pages in v1 * feat(plugin-ai): add v2 ai permissions tab * feat(plugin-ai): register v2 ai permissions tab * refactor(plugin-ai): reuse v2 ai permissions tab in v1 * refactor(plugin-ai): align v1 llm provider surface with v2 * feat(plugin-ai): add v2 datasource work context selector * feat(plugin-ai): lazy load v2 ai tool modals * refactor(plugin-ai): reuse v2 ai contexts in v1 * refactor(plugin-ai): point v1 client exports to v2 * refactor(plugin-ai): remove duplicate v1 ai client code * chore(plugin-ai): drop unused chatbox state deps * refactor(plugin-ai): reuse v2 datasource selector in v1 * fix(plugin-ai): open ai action in global chatbox * fix(plugin-ai): align task capability option rendering * fix(plugin-ai): align v2 task settings form * fix(plugin-ai): align ai employee shortcut popover * refactor(plugin-ai): remove global chat store cache * fix(plugin-ai): open report modal for live messages * fix(plugin-ai): handle live tool card states * refactor(plugin-ai): migrate AI employee client to v2 * fix(plugin-ai): align admin settings pages with v1 * fix(plugin-ai): align mcp settings page * fix(plugin-ai): align datasource settings page * fix(plugin-ai): scope chatbox model switcher * fix(plugin-ai): align datasource work context selector * docs(plugin-ai): add workflow v2 migration tasks * docs(plugin-ai): record workflow ui baseline * feat(plugin-ai): add workflow v2 shared types * feat(plugin-ai): register workflow v2 extensions * feat(plugin-ai): migrate llm workflow model settings * feat(plugin-ai): migrate llm workflow messages * feat(plugin-ai): migrate llm structured output * test(plugin-ai): cover llm workflow fieldset * feat(plugin-ai): migrate ai employee workflow selector * feat(plugin-ai): migrate ai employee workflow task fields * feat(plugin-ai): migrate ai employee workflow capabilities * feat(plugin-ai): migrate ai employee workflow feedback * test(plugin-ai): cover ai employee workflow fieldset * feat(plugin-ai): migrate ai employee trigger parameters * fix(plugin-ai): validate ai employee trigger parameters * test(plugin-ai): cover ai employee workflow trigger * refactor(plugin-ai): reuse v2 llm workflow instruction * refactor(plugin-ai): reuse v2 ai employee workflow instruction * refactor(plugin-ai): reuse v2 ai employee workflow trigger * docs(plugin-ai): record workflow import validation * docs(plugin-ai): record workflow browser validation * docs(plugin-ai): finalize workflow migration validation * fix(plugin-ai): align v2 llm workflow config behavior * fix(plugin-ai): align ai employee workflow config UI * fix(plugin-ai): narrow llm message content types * fix(plugin-ai): support MCP request variables in v2 settings * fix(plugin-ai): restore work context selection layering * fix(plugin-ai): align block selection cancel icon * fix(plugin-ai): stop MCP tools drawer refresh loop * fix(plugin-ai): adjust AI employee workflow labels * fix(plugin-ai): align AI settings drawer behavior * fix(plugin-ai): align AI employee trigger config layout * chore(plugin-ai): remove migration prd files * feat(plugin-ai-gigachat): add client v2 provider * fix(plugin-ai): sync datasource context checkbox state * fix(plugin-ai): bundle v1 chatbox layout with entry * fix: variable select layout bug * fix(plugin-ai): register AI coding in client v2 * fix(plugin-flow-engine): translate Nathan tool metadata * fix(plugin-workflow): remove unintended drawer config changes * fix(plugin-workflow): revert unintended trigger layout changes * fix(plugin-data-visualization): isolate Dara chatbox runtime * fix(plugin-ai): make datasource settings responsive * refactor(plugin-ai): remove legacy v1 client code * fix(plugin-ai): dedupe v2 provider model options * fix(plugin-ai): revert AI employee button compatibility changes * fix(plugin-ai): handle completed tool calls in AI chat * fix(plugin-ai): share AI employee stores globally * revert(plugin-data-visualization): remove Dara runtime isolation * fix(plugin-ai): refine AI selection control layout * fix(plugin-ai): clear shortcut composer after auto send --------- Co-authored-by: PiEgg <marksz@teamsz.xyz> |
||
|
|
d2bcf3d12c |
feat(ai): improve Nathan RunJS tools and chat performance (#9311)
* feat(ai): improve Nathan RunJS editing tools * fix(ai): reduce chat streaming rerenders * fix(ai): avoid global tool card args cache * fix(ai): handle invalid coding tool args * fix(ai): guard streamed tool card args * fix(ai): narrow stream update sender type * fix(ai): reset chat state on stream cancellation * fix(ai): remind users to save RunJS edits |
||
|
|
b8626caded | Merge branch 'next' into develop | ||
|
|
808fc90735 |
Fix/mssing category in emloyee register (#9300)
* fix(ai): mssing catecory in ai employee register * fix(ai): should not set nickname to category |
||
|
|
f7229ff266 |
feat(ai): search docs with bash (#9269)
* feat(ai): search docs with bash * fix(ai): block broad docs searches with quoted patterns |
||
|
|
6668c2f30b |
Fix/ai employee instruction skill settings (#9232)
* refactor(ai): ai employee instruction skills settings * fix(ai): ai employee instruction skills settings incorrect initial * chore(ai): ai employee instruction skills settings i18n |
||
|
|
5efa9ad2d8 |
feat(ai): add sub agents for ai employee (#8935)
* feat(ai): add SKIILS features for AI employee * feat(ai): add buildSkiilsTool for skill use * feat(plugin-ai): add skill query tools and simplify employee setup * feat(ai): implement the SKILLS loading mechanism * feat(ai): renaming skillSettings.skills to skillSettings.tools * feat(ai): added metadata for AI skills * feat(ai): refactor skills and tools definition * feat(ai): added skills list api for client * refactor(ai): change `skills` to `tools` in skilSettings.tsx * refactor(ai): show skills and tools in skilSettings.tsx * fix(ai): fixed SkillsLoader fail in app install * fix(ai): fixed SkillsLoader not auto bind tools * feat(ai): add AIEmployeeLoader * test(ai): add AIEmployeeLoader test case * fix(core/ai): add missing dependency * chore(ai): load ai employee profile info from locals * chore(ai): load built in ai employee by loader not builtInManager * chore(ai): move built-in ai employee to ai/ai-employees * refactor(ai): split skills and tools in two tabs * fix(core/ai): add missing dependency `gray-matter` * feat(ai): add mcp manager and loader * chore(core/ai): add dependency `@langchain/mcp-adapters` in core * fix(core/ai): ai employee loader conflict with aiEmployees collection migration * fix(ai): fixed build error * feat(ai): add MCP settings * refactor(ai): skills manager do persistence after app started * fix(ai): remove duplicate skills manager persistence method invoke * fix(ai): fixed MCPSettings build error * fix(ai): ai-employee loader not loading .js file * fix(ai): split skills and tools in ai task config page * refactor(ai): change skills and tools select component style in ai emplpoyee task config page * fix(ai): skill setting for task not effect * fix(ai): list binding tools api should not include mcp tools * refactor(ai): change mcp list to table * refactor(ai): add view drawer for mcp tools list * refactor(ai): mcp tools view style adjustment * fix(plugin-ai): add missing MCP test connection translations * refactor(ai): add ToolsRuntime as arg in ToolsOptions.invok method * chore(ai): merge docs from develop * refactor(ai): add AIConversationsManager * refactor(ai): change AIEmployee constructor to accept ChatStreamProtocol from outside * feat(ai): add SubAgentsDispatcher * refactor(ai): add "from" field to split main-agent and sub-agent created conversation * refactor(mcp): align action spacing with llm services * feat(ai): add sub agents dispatch skill * fix(mcp): pin edit drawer footer to bottom * style(ai): adjust skills and tools selector width in task edit page * fix(ai): build error * style(ai): mcp tools description should support ellipsis * docs(ai): add AI employee MCP integration document * feat(ai): complete the resume mechanism for nested tool calls when sub agent interrupted * refactor(ai): add conversation info to splite main / sub agent chunks in stream * feat(ai): message render adapting sub agent messages * feat(ai): ai employee loader support external prompt markdown file reading * refactor(ai): change sub agents scheduling capability from SKILLS to atlas`s system prompt * refactor(ai): add sub agents list in system prompt * fix(ai): main agent should only read last meesage from sub agent * refactor(ai): add custome Card UI for sub agent tool * refactor(ai): add `status`, `toolCallId` properties to subAgentConversations entry * refactor(ai): add sub agent conversation complete hint to message list * refactor(ai): restore specific scene ai employee * feat(ai): ai employee loader support sort field * feat(ai): make chat button switch to atlas as default * fix(ai): tool chartGenerator shoule auto run * feat(ai): update sub agent complete status in time * fix(ai): new message should auto reject interrupted tool call from sub agent * fix(ai): new message to reject sub agent tool call should be sent and persistence * refactor(ai): show user message in sub agent conversation * refactor(ai): sub agent messages no support resend action * style(ai): make sub agent task tool card clickable * feat(ai): folding completed sub agent conversation * fix(ai): hide edit button when user message in sub agent conversation * fix(ai): sub agent reply status incorrect * style(ai): change sub agent conversation divider`s margin * fix(ai): page render error while sub agent conversation without messages * fix(ai): user decisions should not share in dispatch-sub-agent-task tool call * fix(ai): incorrect message appending for sub agent conversation * style(ai): make sub agent conversation collapsed default open * fix(ai): fixed build error * fix(ai): sub agent should use same webSearch parameter as main agent * chore(ai): merge docs change from develop * refactor(ai): prompt optimization nathan`s mandatory Workflow * refactor(ai): keep sender state while selected ai employee changed * fix(ai): message render incorrect while editing message that behind sub agent conversatiuon * chore(ai): add introduction for sub agent tools * docs(ai): add introduction of built in ai employee Atlas * docs(ai): adjust the skills and tools documents for the AI employee |
||
|
|
b183a88df7 |
feat(ai): add SKILLS support for AI Employee (#8797)
* feat(ai): add SKIILS features for AI employee * feat(ai): add buildSkiilsTool for skill use * feat(plugin-ai): add skill query tools and simplify employee setup * feat(ai): implement the SKILLS loading mechanism * feat(ai): renaming skillSettings.skills to skillSettings.tools * feat(ai): added metadata for AI skills * feat(ai): refactor skills and tools definition * feat(ai): added skills list api for client * refactor(ai): change `skills` to `tools` in skilSettings.tsx * refactor(ai): show skills and tools in skilSettings.tsx * fix(ai): fixed SkillsLoader fail in app install * fix(ai): fixed SkillsLoader not auto bind tools * feat(ai): add AIEmployeeLoader * test(ai): add AIEmployeeLoader test case * fix(core/ai): add missing dependency * chore(ai): load ai employee profile info from locals * chore(ai): load built in ai employee by loader not builtInManager * chore(ai): move built-in ai employee to ai/ai-employees * refactor(ai): split skills and tools in two tabs * fix(core/ai): add missing dependency `gray-matter` * feat(ai): add mcp manager and loader * chore(core/ai): add dependency `@langchain/mcp-adapters` in core * fix(core/ai): ai employee loader conflict with aiEmployees collection migration * fix(ai): fixed build error * feat(ai): add MCP settings * refactor(ai): skills manager do persistence after app started * fix(ai): remove duplicate skills manager persistence method invoke * fix(ai): fixed MCPSettings build error * fix(ai): ai-employee loader not loading .js file * fix(ai): split skills and tools in ai task config page * refactor(ai): change skills and tools select component style in ai emplpoyee task config page * fix(ai): skill setting for task not effect * fix(ai): list binding tools api should not include mcp tools * refactor(ai): change mcp list to table * refactor(ai): add view drawer for mcp tools list * refactor(ai): mcp tools view style adjustment * fix(plugin-ai): add missing MCP test connection translations * chore(ai): merge docs from develop * refactor(mcp): align action spacing with llm services * fix(mcp): pin edit drawer footer to bottom * style(ai): adjust skills and tools selector width in task edit page * fix(ai): build error * style(ai): mcp tools description should support ellipsis * docs(ai): add AI employee MCP integration document |
||
|
|
54388d2939 |
refactor: optimize ai features (#8427)
* fix: get infos path option * fix(plugin-ai): user message editing not work * feat(core/database): add blob field for langChain checkpoint saver * fix(core/database): collection defind with `allowNull:false` occur error in mysql * feat(plugin-ai): add checkpoint saver base on SequelizeCollectionManager * test(plugin-ai): add test for SequelizeCollectionSaver * feat: AI tool get context apis and envs * chore: update docs index * refactor: getApiInfos getVarInfos getEnvInfos api * chore: hide inner apis from getApiInfos * chore: update apis * fix: ctx.logger should pipe logs into code editor preview * fix: incorrect code editor hint * feat: use ctx.render instead of ctx.element in snippets * refactor: AI runtime context tool * fix: show log when using deprecated api in runjs * fix(plugin-ai): build package oversize * fix: build * fix: version * fix: dep * fix(plugin-ai): frontend tools not working * fix: update AI context tools * feat: add context tool i18n text * fix(ai): init command * fix(plugin-ai): parallel tools call issue * feat: update ai docs * docs: translate * chore: update docs tool * fix: ai-coding bug * chore: remove log * chore: optimize doc structure * chore: update new apis info * fix: ai doc * feat(client): support disabling redundant default appends params for `ResourceActionProvider` (#8527) * docs: refine examples and remove redundant comments in formatting documentation * fix(plugin-workflow): add fault-tolerant for collection record select component (#8528) * feat: support env.ESM_CDN_BASE_URL (#8529) * feat: support env.ESM_CDN_BASE_URL * fix: support load css * fix: support example.css?v=123 * feat: improve resolveModuleUrl * fix: remove * fix: update docs head metadata and sitemap * fix: double refresh after submit a form (#8531) * feat(workflow-cc): add TaskCardCommonItemModel and update exports * fix: cn doc * fix: home link * fix(plugin-ai): issues of auto call defindCollection an suggestions tools (#8532) * fix: doc theme * chore: git ignore * feat: runjs doc * feat: add example * feat: add ctx.previewRunJS * chore: update message * fix: incorrect preview runjs behaviour * feat: llm and model settings * feat: update runjs doc * feat: AI Debug * refactor: simplify useRecommand * fix: build * refactor(plugin-ai): move tools register into core/ai * fix: build error * fix: build error * fix(plugin-ai): suggestions tools adapted the new forntedn tools flow * refactor(plugin-ai): add tools process event * fix(plugin-ai): dashscope adapted model switch * refactor(plugin-ai): remove redundant code * refactor(plugin-ai): add ChatStreamProtocol to control output stream * feat: update AI chat buttom * feat: ai coding add tool lintAndTestJSTool * fix: build error * fix: build error * refactor(plugin-ai): send tool call invoke status in chat stream * refactor(plugin-ai): add loading status for call button in DefaultToolCard * fix: ai build dist * refactor(plugin-ai): rename ToolOptions property `operation` to `defaultPermission` * fix(plugin-ai): tools auto invoke in frontend not working * refactor(plugin-ai): skill setting page of ai employee admin adapte tools refactoring * refactor(plugin-ai): tools lintAndTestJS adapted * chore: update nathan's prompt * fix(plugin-ai): incorrect response from Dashscope * refactor: create agent feat: invoke api * chore: improve code * fix: tests failing * chore: improve code * fix: incorrect hint for ctx.t in code editor * fix: incorrect error lines * chore: improve code * feat(core/ai): load tools from ai directory * chore(core/ai): move tools registion from pluin to sever/ai * fix(flow-engine): remove duplicate FlowContext doc types * chore(core/ai): rename typo definedTools to defineTools * chore(core/ai): move list tools api from core to plugin-ai * chore(core/ai): fix typo of defined * fix: version * chore(core/ai): remove schema in aiTools:list response * fix(plugin-ai): tools from workflow can not be add to aiEmployee * chore: optimize tools ui * fix(ai): fix import path error in testcase of lintAndTestJS * fix(ai): lintAndTestJS tools execute status always `error` * fix(ai): when tools invokeStatus is `done` should update status at time * fix(ai): if backend tools and frontend tools in same batch frontend tools not invoke * fix(ai): core/ai build error * fix(ai): plugin-data-source-manager and plugin-ai build error * chore: optimize * feat: update ai chat panel * feat: ai chat box support expanded and collapsed * fix(ai): resend message after error show will lost user message * feat: ai debug panel is allowed by default * feat: ai debug log support export * fix: remove model options setting * fix: remove llm config guide * feat: llm services support sorting * feat(ai): emphasize output summarization when GraphRecursionError occurs in the agent stream * chore: optimize style * chore: i18n & change directory * feat: ai llm and model config # Conflicts: # packages/plugins/@nocobase/plugin-ai/src/locale/en-US.json # packages/plugins/@nocobase/plugin-ai/src/locale/zh-CN.json * feat: llm services support enabled * chore: optimize build * chore: optimize import * fix(ai): tools loader not work after build * chore: update ai command * feat: llm config move test flight to the footer * feat: support add llm service in chatbox * fix: docs command * fix: doc dir * fix(ai): tools loader should ignore empty file * feat: update ai conversation list * fix(ai): optimize SequelizeCollectionSaver * refactor: update format model label * fix: ai chatbox collapsed style * fix: update model switch select model * feat: update ai llm form items order * fix(ai): cancel button not working while llm using tools * chore: optimize tool desc * fix(ai): fix duplicated tool execution when Kimi responds with repeated tool_call_ids * feat: improve ctx.request() doc * docs: improve ctx.getModel * refactor(ai): move listTools api into context * docs: improve ctx.t() * feat: llm enabled models recommand * feat: update llm config recommand models tips * docs: improve importAsync and requireAsync * docs: i18n * feat: ai chat box collapse at top-right, expand by click chat button * refactor: ai chat conversations * feat: llm services realtime update * fix: debug panel style * refactor(ai): optimize checkpointer * fix(ai): missing tool_call_chunks in response stream * fix(ai): missing tool card info * feat: improve ctx api * feat: ai employee switch * chore: optimize style * chore: optimize tool card * feat(ai): refresh tools when open chat box * chore: optimize tool desc * fix(ai): tools lintAndTestJS invoke error * fix: style * fix: style * feat: update doc * fix: doc * fix: version * feat: update enabled models options title * docs: update doc * feat: ai format model label * feat: update doc * feat: optimize debug panel using virtual list * feat: update recommended model kimi * fix: preview run js * feat: update debug panel not shown while expended * fix: ai chat box switch model when switch conversation * fix: render doc * fix: only fetch data when click select model, and toast error message * chore: optimize tool desc * fix(ai): add prefix to workflow tools for compatibility * fix(ai): ai employee task editor using old tools api * fix(ai): lost ai message when conversation aborted * fix: ai triggerTask has no model * fix: editing message * fix: set conversation panel shown when expnaded mode * fix: styles * style: update ai chat box and id card style # Conflicts: # packages/plugins/@nocobase/plugin-ai/src/client/ai-employees/AIEmployeeListItem.tsx * fix: ai web search * chore(ai): optimize chatpointer * feat: ai web search settings by llm services * fix: styles * chore: optimize doc index logic * feat(ai): add LLM provider Kimi * feat: update local storage api use # Conflicts: # packages/plugins/@nocobase/plugin-ai/src/client/llm-services/LLMServices.tsx * feat: update llm services order * fix: doc * fix: version * chore: optimize prompt * docs: update doc * fix: test error * fix: doc index script * fix: styles * fix(ai): fix plugin-ai build issue * chore: improve get model auto completion * fix(ai): increase suggestions tools robustness * chore: optimize default tool card * fix(ai): invoke status not load from message api response * fix(ai): lost workflow tools when built in ai employee upgrade * feat: optimize ai chat box model name display * feat: update ai llm providers list * fix: ai llm services test case * test: simplify ai llm services tests * fix: ai trigger task without model * fix(ai): incorrect name of tools intentRouter * fix(ai): permission setting for customer tools not effective * chore: improve preview runjs to include logs * fix(ai): fix breaking lintAndTestJS test case * fix(ai): tools loader enhance robustness * fix(ai): incorrect resource path in tools loader test for CI * fix(ai): legacy conversation compatibility * fix: conversation model override missing * test(ai): skip breaking test case of tools loader * chore: remove .yarnrc --------- Co-authored-by: gchust <gchust@qq.com> Co-authored-by: Drol <cgyrock@gmail.com> Co-authored-by: Ziqiang <ziqianghe123@gmail.com> Co-authored-by: mytharcher <mytharcher@gmail.com> Co-authored-by: chenos <chenlinxh@gmail.com> Co-authored-by: Albert Ma <albertma9254@gmail.com> Co-authored-by: Junyi <mytharcher@users.noreply.github.com> Co-authored-by: Zeke Zhang <958414905@qq.com> |