feat(plugin): migrate time investment plugin

This commit is contained in:
digua committed 2026-08-18 14:29:38 +08:00
1 parent b00959fd5f
commit 0f46352b8d
28 files changed
+511 -436

No files matched your search

+2 -2
View File
@@ -45,7 +45,7 @@ import {
MergeSessionCache,
type SemanticIndexRuntime,
} from '@openchatlab/node-runtime'
import { annualSummaryNodePlugin, registerSharedRoutes } from '@openchatlab/http-routes'
import { annualSummaryNodePlugin, registerSharedRoutes, timeInvestmentNodePlugin } from '@openchatlab/http-routes'
import type { HttpRouteContext } from '@openchatlab/http-routes'
import { registerImportRoutes } from './import'
import { openDirectoryPath, showPathInFolder } from './cache'
@@ -177,7 +177,7 @@ export function registerWebRoutes(
}),
},
{
nodePlugins: [annualSummaryNodePlugin],
nodePlugins: [annualSummaryNodePlugin, timeInvestmentNodePlugin],
...(ai && { requireAi: true }),
}
)