mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(plugin): add annual summary plugin foundation
This commit is contained in:
1 parent
2142a35a49
commit
b00959fd5f
52 files changed
+2462
-662
No files matched your search
@@ -45,7 +45,7 @@ import {
|
||||
MergeSessionCache,
|
||||
type SemanticIndexRuntime,
|
||||
} from '@openchatlab/node-runtime'
|
||||
import { registerSharedRoutes } from '@openchatlab/http-routes'
|
||||
import { annualSummaryNodePlugin, registerSharedRoutes } from '@openchatlab/http-routes'
|
||||
import type { HttpRouteContext } from '@openchatlab/http-routes'
|
||||
import { registerImportRoutes } from './import'
|
||||
import { openDirectoryPath, showPathInFolder } from './cache'
|
||||
@@ -176,7 +176,10 @@ export function registerWebRoutes(
|
||||
runAgentStream: ai.runAgentStream,
|
||||
}),
|
||||
},
|
||||
ai ? { requireAi: true } : undefined
|
||||
{
|
||||
nodePlugins: [annualSummaryNodePlugin],
|
||||
...(ai && { requireAi: true }),
|
||||
}
|
||||
)
|
||||
|
||||
// CLI-specific routes not yet migrated to @openchatlab/http-routes
|
||||
|
||||
Reference in new issue
Block a user