feat(plugin): add annual summary plugin foundation

This commit is contained in:
digua committed 2026-08-18 14:29:38 +08:00
1 parent 2142a35a49
commit b00959fd5f
52 files changed
+2462 -662

No files matched your search

+5 -2
View File
@@ -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