Files
nocobase/packages/plugins/app-plugin-projects/server/plugin.ts
T
YANG QIA 68d4febbcc feat(plugins): add the agents, projects, knowledge and releases plugins (#554)
* 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
2026-10-08 07:10:52 +08:00

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;