diff --git a/extension/gravity-web-bridge-0.1.0.vsix b/extension/gravity-web-bridge-0.1.0.vsix index be21882..4e0962f 100644 Binary files a/extension/gravity-web-bridge-0.1.0.vsix and b/extension/gravity-web-bridge-0.1.0.vsix differ diff --git a/extension/src/extension.ts b/extension/src/extension.ts index fb534a1..e7eb701 100644 --- a/extension/src/extension.ts +++ b/extension/src/extension.ts @@ -205,6 +205,27 @@ export async function activate(context: vscode.ExtensionContext) { } }); + // 개별 대화 전체 내용 (스텝, 메시지, 도구 호출 등) + app.get('/api/conversation/:id', async (req: any, res: any) => { + try { + const conversation = await sdk.ls.getConversation(req.params.id); + res.json(conversation); + } catch (err: any) { + res.status(500).json({ error: err.message }); + } + }); + + // 임의 LS RPC 호출 (개발/디버그) + app.post('/api/ls/rpc', async (req: any, res: any) => { + try { + const { method, payload } = req.body; + const result = await sdk.ls.rawRPC(method, payload || {}); + res.json(result); + } catch (err: any) { + res.status(500).json({ error: err.message }); + } + }); + app.post('/api/ls/send', async (req: any, res: any) => { try { const { cascadeId, text, model } = req.body;