feat(extension): add GetConversation + rawRPC endpoints for full conversation history
This commit is contained in:
Binary file not shown.
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user