mirror of
https://github.com/nocobase/nocobase.git
synced 2026-10-16 15:07:08 +08:00
* Add the agents, projects, knowledge and releases plugins Four plugins for agent-run applications, the UI Library's agents and projects items, and the generated UI Library catalog of the application Skill with its check. * Wait on the sent attachment's link as it renders last in the chat test * Keep the demo chat's reply timers off window, so they outlive a test's environment quietly
24 lines
585 B
TypeScript
24 lines
585 B
TypeScript
import path from 'node:path';
|
|
|
|
import {
|
|
defineServerPlugin,
|
|
type AppServerPlugin,
|
|
} from '@nocobase/app-server/plugins';
|
|
|
|
import serviceProviders from './providers/index.js';
|
|
import routes from './routes/index.js';
|
|
|
|
const projectsPlugin: AppServerPlugin = defineServerPlugin({
|
|
baseDir: path.resolve(import.meta.dirname, '..'),
|
|
packageName: '@nocobase/app-plugin-projects',
|
|
locales: () => import('./locales/index.js'),
|
|
serviceProviders,
|
|
routes,
|
|
database: {
|
|
migrations: './database/migrations',
|
|
seeds: './database/seeds',
|
|
},
|
|
});
|
|
|
|
export default projectsPlugin;
|