Commit Graph
895 Commits
Author SHA1 Message Date
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>
2026-02-12 23:28:35 +08:00
nocobase[bot] d924347209 chore(versions): 😊 publish v2.0.0-alpha.71 2026-02-10 05:23:48 +00:00
nocobase[bot] a6672a17a7 chore(versions): 😊 publish v2.0.0-alpha.70 2026-02-06 02:51:35 +00:00
nocobase[bot] cf7de83ae4 chore(versions): 😊 publish v2.0.0-alpha.69 2026-02-05 07:09:38 +00:00
nocobase[bot] 0ac6983421 Merge branch 'next' into develop 2026-01-27 05:35:19 +00:00
chenos e54bee98f1 fix: chart model refresh 2026-01-27 13:34:34 +08:00
nocobase[bot] 4fbdd9ee10 chore(versions): 😊 publish v2.0.0-alpha.68 2026-01-27 02:44:58 +00:00
nocobase[bot] 8243bb23af chore(versions): 😊 publish v2.0.0-alpha.67 2026-01-26 10:42:38 +00:00
chenos 932a1699ac fix: update version 2026-01-26 10:35:41 +08:00
chenos 8bd1b54d4a chore: update version 2026-01-25 21:29:00 +08:00
nocobase[bot] 3f301d3feb chore(versions): 😊 publish v2.0.0-alpha.66 2026-01-16 08:45:48 +00:00
nocobase[bot] d1b1eb5a67 chore(versions): 😊 publish v2.0.0-alpha.65 2026-01-16 06:33:32 +00:00
nocobase[bot] d85b5e476a chore(versions): 😊 publish v2.0.0-alpha.64 2026-01-08 10:23:32 +00:00
nocobase[bot] cb21161af4 chore(versions): 😊 publish v2.0.0-alpha.63 2026-01-07 00:25:55 +00:00
nocobase[bot] 7baeaf4c58 chore(versions): 😊 publish v2.0.0-alpha.62 2026-01-05 12:06:13 +00:00
nocobase[bot] f2617a0d15 chore(versions): 😊 publish v2.0.0-alpha.61 2026-01-01 02:01:09 +00:00
chenos 11e76f00ef fix: version 2026-01-01 09:36:26 +08:00
nocobase[bot] 37839bab5c chore(versions): 😊 publish v2.1.0-alpha.1 2025-12-31 16:31:46 +00:00
nocobase[bot] 8f93d42247 chore(versions): 😊 publish v2.0.0-alpha.60 2025-12-31 15:47:58 +00:00
Ziqiang 3c1c00ef1b fix: restrict chart order field to selected fields only (#8309)
* fix: normalize option for dataset-based pie charts

* fix: restrict chart order field to selected fields only

* chore: update volta node version to 20.16

* fix: limit chart order fields to cases with aggregation only
2025-12-31 10:14:05 +08:00
nocobase[bot] e340bc68c4 chore(versions): 😊 publish v2.0.0-alpha.59 2025-12-25 01:46:32 +00:00
Zeke Zhang 548d834715 perf(flow-engine): replace formily observer with nocobase observer (#8241)
* refactor(flowModel): remove unused imports

* refactor(flow-engine): move reactive exports to new file

* refactor(flow-engine): move observer to separate file

* refactor(observer): optimize component memoization

* refactor(filter): replace formily observer with nocobase observer

* refactor(BlockModel): replace Observer with nocobase observer

* fix(flowModel): update type check for NocoBase observer

* refactor(PageModel): define tabActive property in context

* refactor(PageModel): optimize tabActive handling logic

* fix(observer): handle optional chaining for context values

* refactor(flow): consolidate observer imports

* refactor(flow): remove unused imports in DynamicFlowsEditor

* refactor(flow): replace @formily/react observer imports with local reactive imports

* refactor: update observer imports to flow-engine

* refactor(flow): update cached pages logic and limits

* refactor(flow): update view state management logic

* refactor(flow): add inputArgs to config and use as key

* refactor(KeepAlive): increase maximum cached pages limit

* refactor(useDialog): add key prop to FlowEngineProvider

* refactor(observer): add autorun for delayed updates

* refactor(observer): improve observer component structure

* fix(observer): prevent stack overflow during updates

* refactor(flow): use context for flowSettingsEnabled

* fix(observer): update condition for active page/tab check

* refactor(observer): memoize ComponentWithDefaultScheduler

* fix(observer): update condition for active page/tab check

* test(flow-engine): update type check
2025-12-25 08:13:03 +08:00
nocobase[bot] 9b9c1a216b chore(versions): 😊 publish v2.0.0-alpha.58 2025-12-24 07:37:44 +00:00
mytharcher 5a79c76c65 fix(plugin-data-visualization): codemirror package version 2025-12-24 14:01:47 +08:00
mytharcher 0942d4b606 fix(plugin-data-visualization): codemirror package version 2025-12-24 13:43:14 +08:00
nocobase[bot] 5a3f46b432 chore(versions): 😊 publish v2.0.0-alpha.57 2025-12-23 17:33:27 +00:00
Ziqiang 9ba16ad100 feat: improvements for ai employee (#8191)
* feat: add  margin for ai hint message box

* feat(ai-employee): add submit validation for AI employee form

* fix: delete unnecessary build-in AI employee Avery

* feat: improve and unify copywriting style

* feat(ai-employee): define default role permissions for AI employees

* fix: ai employee add error handler

* feat: ai support external data source

* feat: add ai work context variables

* fix: ai work context read from ctx

* feat: ai tool i18n text

* feat: ai chat messages add token limit

* fix: ai builder employee add dara

* fix: resolve data modeling tool issues

* fix: ai tool getDataSources type and displayName
2025-12-23 14:22:42 +08:00
mytharcher 8df828a5e7 Merge branch 'next' into develop 2025-12-20 10:48:20 +08:00
nocobase[bot] c814fb2cad Merge branch 'main' into next 2025-12-19 08:11:58 +00:00
Drol 2cb45f8ab3 fix(core): always get collection fields from main in parseFilter (#8181)
* fix(core): always get collection fields from main in parseFilter

* refactor(core): add current data source`db to ctx

* chore: fix breaking testcase
2025-12-19 16:11:33 +08:00
nocobase[bot] f41ba5330c chore(versions): 😊 publish v1.9.29 2025-12-18 07:23:03 +00:00
nocobase[bot] f5384bb61a chore(versions): 😊 publish v2.0.0-alpha.56 2025-12-18 05:21:03 +00:00
nocobase[bot] 49accd87c0 chore(versions): 😊 publish v2.0.0-alpha.55 2025-12-17 05:50:05 +00:00
nocobase[bot] fa75cacf05 chore(versions): 😊 publish v1.9.28 2025-12-17 03:40:14 +00:00
nocobase[bot] 86449a85aa chore(versions): 😊 publish v2.0.0-alpha.54 2025-12-17 01:47:55 +00:00
nocobase[bot] 01573b5cd3 chore(versions): 😊 publish v1.9.27 2025-12-16 23:58:38 +00:00
Ziqiang 05e5ba4340 fix(chart): resolve issue about sql external data source (#8169)
* fix(chart): resolve issue about sql external data source

* feat: chart block show loading

* fix: resolve issue about empty chart block cancel configure
2025-12-16 15:46:41 +08:00
nocobase[bot] bd06d06f14 chore(versions): 😊 publish v1.9.26 2025-12-16 03:13:12 +00:00
nocobase[bot] a425debe98 chore(versions): 😊 publish v2.0.0-alpha.53 2025-12-12 07:47:46 +00:00
nocobase[bot] 7f2a05a726 chore(versions): 😊 publish v1.9.25 2025-12-12 02:35:31 +00:00
nocobase[bot] a0e637a307 chore(versions): 😊 publish v1.9.24 2025-12-09 14:00:56 +00:00
nocobase[bot] 3a03c0fdc8 chore(versions): 😊 publish v2.0.0-alpha.52 2025-12-09 10:05:12 +00:00
nocobase[bot] 97bb9cd5ea chore(versions): 😊 publish v1.9.0-beta.18 2025-12-09 09:05:44 +00:00
nocobase[bot] bcd9887fac chore(versions): 😊 publish v1.9.23 2025-12-09 07:07:46 +00:00
nocobase[bot] b1355ebba7 chore(versions): 😊 publish v1.9.22 2025-12-09 05:21:47 +00:00
nocobase[bot] 40427e86bb chore(versions): 😊 publish v2.0.0-alpha.51 2025-12-06 17:43:33 +00:00
nocobase[bot] 9f030a67a3 chore(versions): 😊 publish v1.9.21 2025-12-06 16:42:30 +00:00
nocobase[bot] 1a98e2bfbe chore(versions): 😊 publish v1.9.20 2025-12-05 04:00:51 +00:00
nocobase[bot] 5bba576450 chore(versions): 😊 publish v1.9.19 2025-12-04 06:26:08 +00:00
nocobase[bot] b883e35964 chore(versions): 😊 publish v1.9.18 2025-12-03 17:55:21 +00:00