From 0aaf54c47137d3b775c2229b001071a20ec1f013 Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 10 Nov 2026 21:50:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(workbench):=20=E5=88=86=E5=B1=82=E8=AE=B0?= =?UTF-8?q?=E5=BF=86=E2=80=94=E2=80=94=E9=95=BF=E6=9C=9F=E8=AE=B0=E5=BF=86?= =?UTF-8?q?+=E9=A1=B9=E7=9B=AE=E8=AE=B0=E5=BF=86=EF=BC=8C=E6=B4=BE?= =?UTF-8?q?=E5=8F=91=E6=B3=A8=E5=85=A5=E4=B8=8E=E6=88=90=E6=9E=9C=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=AE=B0=E8=B4=A6=EF=BC=880.10.0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workbench/host/routes.mjs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/workbench/host/routes.mjs b/workbench/host/routes.mjs index 0541e94..764d69f 100644 --- a/workbench/host/routes.mjs +++ b/workbench/host/routes.mjs @@ -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 }) => {