Files
nocobase/tsconfig.json
T
YANG QIA 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

40 lines
967 B
JSON

{
"extends": "./tsconfig.paths.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"jsx": "react",
"target": "esnext",
"module": "esnext",
"allowJs": true,
"noUnusedLocals": false,
"preserveConstEnums": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"sourceMap": true,
"inlineSources": true,
"resolveJsonModule": true,
"declaration": true,
"experimentalDecorators": true,
"downlevelIteration": true,
"baseUrl": "."
},
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
},
"include": [".dumi/**/*", ".dumirc.ts", "packages/**/*", "playwright.config.ts", "vitest.config.mts"],
"exclude": [
"packages/**/node_modules",
"packages/**/dist",
"packages/**/public",
"packages/core/build/bin",
"packages/core/cli/src",
"packages/core/cli/bin",
"packages/**/lib",
"packages/**/es",
"docs/**/*"
]
}