From c040baae118787cd0573e5b674a2a225f36d898c Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 27 May 2025 02:17:35 -0400 Subject: Refactor LSP tools and add hover functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Split diagnostics tool into separate lsp-diagnostics.ts file - Add new lsp-hover.ts tool for LSP hover information - Update tool exports and session integration - Remove old diagnostics.ts file 🤖 Generated with opencode Co-Authored-By: opencode --- js/src/session/session.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/src/session') diff --git a/js/src/session/session.ts b/js/src/session/session.ts index cbe6cd89c..8b3f7fba1 100644 --- a/js/src/session/session.ts +++ b/js/src/session/session.ts @@ -42,6 +42,7 @@ export namespace Session { export type Message = UIMessage<{ time: { created: number; + completed?: number; }; sessionID: string; tool: Record; @@ -305,6 +306,8 @@ export namespace Session { } await write(next); } + next.metadata!.time.completed = Date.now(); + await write(next); return next; } } -- cgit v1.2.3