feat(workbench): 分层记忆——长期记忆+项目记忆,派发注入与成果自动记账(0.10.0)

This commit is contained in:
QQ 2026-11-10 21:50:17 +08:00
parent 96bb4eb682
commit 0aaf54c471
1 changed files with 23 additions and 0 deletions

View File

@ -361,6 +361,29 @@ export function buildRouteTable(service, options = {}) {
revisesArtifactId: body.revisesArtifactId,
}),
},
[`${ROUTE_PREFIX}/memory/get`]: {
method: 'POST',
handler: async ({ body }) => service.getMemory({
scope: body.scope,
projectId: select(body),
}),
},
[`${ROUTE_PREFIX}/memory/put`]: {
method: 'POST',
handler: async ({ body }) => service.putMemory({
scope: body.scope,
projectId: select(body),
text: body.text,
}),
},
[`${ROUTE_PREFIX}/memory/append`]: {
method: 'POST',
handler: async ({ body }) => service.appendMemory({
scope: body.scope,
projectId: select(body),
text: body.text,
}),
},
[`${ROUTE_PREFIX}/events`]: {
method: 'GET',
handler: async ({ query, req, res }) => {