Changesets · Branches · Tags · Compare
| Changeset | cd9781d18fda65e52ac8a196dec4ee1dcc3a9a106252d1c0ec2f79cf300757d5 |
|---|---|
| Author | Nate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-08-29 10:31 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-08-29 10:31 -07:00 |
| Parents | 96e49bfda5ce, dc42dd67a510 |
11 files changed
modified extensions/cli/src/commands/serve.helpers.ts +36 −84
| @@ -1,9 +1,4 @@ | ||
| 1 | -import type { | |
| 2 | - ChatHistoryItem, | |
| 3 | - Session, | |
| 4 | - ToolCallState, | |
| 5 | - ToolStatus, | |
| 6 | -} from "core/index.js"; | |
| 1 | +import type { Session, ToolCallState, ToolStatus } from "core/index.js"; | |
| 7 | 2 | |
| 8 | 3 | import { streamChatResponse } from "../stream/streamChatResponse.js"; |
| 9 | 4 | import { StreamCallbacks } from "../stream/streamChatResponse.types.js"; |
| @@ -27,85 +22,45 @@ | ||
| 27 | 22 | // Set up periodic interruption checks |
| 28 | 23 | const interruptionChecker = setInterval(checkInterruption, 100); |
| 29 | 24 | |
| 30 | - let currentStreamingItem: ChatHistoryItem | null = null; | |
| 31 | - | |
| 32 | 25 | // Create callbacks to capture tool events |
| 33 | 26 | const callbacks: StreamCallbacks = { |
| 34 | - onContent: (content: string) => { | |
| 35 | - if (!currentStreamingItem) { | |
| 36 | - currentStreamingItem = { | |
| 37 | - message: { role: "assistant", content: "" }, | |
| 38 | - contextItems: [], | |
| 39 | - }; | |
| 40 | - state.session.history.push(currentStreamingItem); | |
| 41 | - } | |
| 42 | - currentStreamingItem.message.content = | |
| 43 | - (currentStreamingItem.message.content as string) + content; | |
| 27 | + onContent: (_: string) => { | |
| 28 | + // onContent is empty - doesn't update history during streaming | |
| 29 | + // This is just for real-time display purposes | |
| 44 | 30 | }, |
| 45 | - onContentComplete: (content: string) => { | |
| 46 | - if (currentStreamingItem) { | |
| 47 | - currentStreamingItem.message.content = content; | |
| 48 | - currentStreamingItem = null; | |
| 49 | - } else { | |
| 50 | - // Add complete assistant message | |
| 51 | - state.session.history.push({ | |
| 52 | - message: { role: "assistant", content: content }, | |
| 53 | - contextItems: [], | |
| 54 | - }); | |
| 55 | - } | |
| 31 | + onContentComplete: (_: string) => { | |
| 32 | + // Note: streamChatResponse already adds messages to history via handleToolCalls | |
| 33 | + // so we don't need to add them here - this callback is just for notification | |
| 34 | + // that content streaming is complete | |
| 56 | 35 | }, |
| 57 | - onToolStart: (toolName: string, toolArgs?: any) => { | |
| 58 | - // If there was streaming content, finalize it first | |
| 59 | - if (currentStreamingItem && currentStreamingItem.message.content) { | |
| 60 | - currentStreamingItem = null; | |
| 61 | - } | |
| 62 | - | |
| 63 | - // Always create a new assistant message for each tool call | |
| 64 | - const toolCallId = `tool_${Date.now()}_${Math.random().toString(36).substring(2, 15)}`; | |
| 65 | - const toolCallState: ToolCallState = { | |
| 66 | - toolCallId: toolCallId, | |
| 67 | - toolCall: { | |
| 68 | - id: toolCallId, | |
| 69 | - type: "function", | |
| 70 | - function: { | |
| 71 | - name: toolName, | |
| 72 | - arguments: JSON.stringify(toolArgs || {}), | |
| 73 | - }, | |
| 74 | - }, | |
| 75 | - status: "calling", | |
| 76 | - parsedArgs: toolArgs, | |
| 77 | - }; | |
| 78 | - | |
| 79 | - state.session.history.push({ | |
| 80 | - message: { role: "assistant", content: "" }, | |
| 81 | - contextItems: [], | |
| 82 | - toolCallStates: [toolCallState], | |
| 83 | - }); | |
| 36 | + onToolStart: (__: string, _?: any) => { | |
| 37 | + // Note: handleToolCalls already adds the tool call message to history | |
| 38 | + // This callback is just for notification/UI updates | |
| 39 | + // The tool call state is already created and added by handleToolCalls | |
| 84 | 40 | }, |
| 85 | 41 | onToolResult: (result: string, toolName: string, status: ToolStatus) => { |
| 86 | - // Find and update the corresponding tool call state | |
| 42 | + // Update only the tool call state status | |
| 43 | + // The actual result is already added as a separate message by handleToolCalls | |
| 87 | 44 | for (let i = state.session.history.length - 1; i >= 0; i--) { |
| 88 | 45 | const item = state.session.history[i]; |
| 89 | 46 | if (item.toolCallStates) { |
| 90 | 47 | const toolState = item.toolCallStates.find( |
| 91 | 48 | (ts: ToolCallState) => |
| 92 | - ts.toolCall.function.name === toolName && ts.status === "calling", | |
| 49 | + ts.toolCall.function.name === toolName && | |
| 50 | + (ts.status === "calling" || ts.status === "generated"), | |
| 93 | 51 | ); |
| 94 | 52 | if (toolState) { |
| 53 | + // Only update the status, not the output | |
| 95 | 54 | toolState.status = status; |
| 96 | - toolState.output = [ | |
| 97 | - { | |
| 98 | - content: result, | |
| 99 | - name: `Tool Result: ${toolName}`, | |
| 100 | - description: "Tool execution result", | |
| 101 | - }, | |
| 102 | - ]; | |
| 103 | - return; | |
| 55 | + break; | |
| 104 | 56 | } |
| 105 | 57 | } |
| 106 | 58 | } |
| 107 | 59 | }, |
| 108 | 60 | onToolError: (error: string, toolName?: string) => { |
| 61 | + // Only update the tool call state to errored status when tool name is provided | |
| 62 | + // The error message is already added as a separate tool result message | |
| 63 | + // by handleToolCalls/preprocessStreamedToolCalls/executeStreamedToolCalls | |
| 109 | 64 | if (toolName) { |
| 110 | 65 | // Find and update the corresponding tool call state |
| 111 | 66 | for (let i = state.session.history.length - 1; i >= 0; i--) { |
| @@ -114,32 +69,22 @@ | ||
| 114 | 69 | const toolState = item.toolCallStates.find( |
| 115 | 70 | (ts: ToolCallState) => |
| 116 | 71 | ts.toolCall.function.name === toolName && |
| 117 | - ts.status === "calling", | |
| 72 | + (ts.status === "calling" || ts.status === "generated"), | |
| 118 | 73 | ); |
| 119 | 74 | if (toolState) { |
| 75 | + // Only update the status, not the output | |
| 120 | 76 | toolState.status = "errored"; |
| 121 | - toolState.output = [ | |
| 122 | - { | |
| 123 | - content: error, | |
| 124 | - name: `Tool Error: ${toolName}`, | |
| 125 | - description: "Tool execution error", | |
| 126 | - }, | |
| 127 | - ]; | |
| 128 | - return; | |
| 77 | + break; | |
| 129 | 78 | } |
| 130 | 79 | } |
| 131 | 80 | } |
| 132 | 81 | } |
| 133 | - // Generic error if tool not found | |
| 134 | - state.session.history.push({ | |
| 135 | - message: { role: "system", content: error }, | |
| 136 | - contextItems: [], | |
| 137 | - }); | |
| 138 | 82 | }, |
| 139 | 83 | onToolPermissionRequest: ( |
| 140 | 84 | toolName: string, |
| 141 | 85 | toolArgs: any, |
| 142 | 86 | requestId: string, |
| 87 | + toolCallPreview?: any[], | |
| 143 | 88 | ) => { |
| 144 | 89 | // Set pending permission state |
| 145 | 90 | state.pendingPermission = { |
| @@ -147,6 +92,7 @@ | ||
| 147 | 92 | toolArgs, |
| 148 | 93 | requestId, |
| 149 | 94 | timestamp: Date.now(), |
| 95 | + toolCallPreview, | |
| 150 | 96 | }; |
| 151 | 97 | |
| 152 | 98 | // Add a system message indicating permission is needed |
| @@ -160,6 +106,15 @@ | ||
| 160 | 106 | |
| 161 | 107 | // Don't wait here - the streamChatResponse will handle waiting |
| 162 | 108 | }, |
| 109 | + onSystemMessage: (message: string) => { | |
| 110 | + state.session.history.push({ | |
| 111 | + message: { | |
| 112 | + role: "system", | |
| 113 | + content: message, | |
| 114 | + }, | |
| 115 | + contextItems: [], | |
| 116 | + }); | |
| 117 | + }, | |
| 163 | 118 | }; |
| 164 | 119 | |
| 165 | 120 | try { |
| @@ -173,10 +128,6 @@ | ||
| 173 | 128 | return response || ""; |
| 174 | 129 | } finally { |
| 175 | 130 | clearInterval(interruptionChecker); |
| 176 | - // Ensure any streaming message is finalized | |
| 177 | - if (currentStreamingItem !== null) { | |
| 178 | - currentStreamingItem = null; | |
| 179 | - } | |
| 180 | 131 | } |
| 181 | 132 | } |
| 182 | 133 | |
| @@ -185,6 +136,7 @@ | ||
| 185 | 136 | toolArgs: any; |
| 186 | 137 | requestId: string; |
| 187 | 138 | timestamp: number; |
| 139 | + toolCallPreview?: any[]; | |
| 188 | 140 | } |
| 189 | 141 | |
| 190 | 142 | export interface ServerState { |
modified extensions/cli/src/commands/serve.ts +1 −2
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | |
| 4 | 4 | import chalk from "chalk"; |
| 5 | 5 | import type { ChatHistoryItem } from "core/index.js"; |
| 6 | -import { convertFromUnifiedHistory } from "core/util/messageConversion.js"; | |
| 7 | 6 | import express, { Request, Response } from "express"; |
| 8 | 7 | |
| 9 | 8 | import { getAssistantSlug } from "../auth/workos.js"; |
| @@ -148,7 +147,7 @@ | ||
| 148 | 147 | app.get("/state", (_req: Request, res: Response) => { |
| 149 | 148 | state.lastActivity = Date.now(); |
| 150 | 149 | res.json({ |
| 151 | - chatHistory: convertFromUnifiedHistory(state.session.history), // Convert back to legacy format for API | |
| 150 | + session: state.session, // Return session directly instead of converting | |
| 152 | 151 | isProcessing: state.isProcessing, |
| 153 | 152 | messageQueueLength: state.messageQueue.length, |
| 154 | 153 | pendingPermission: state.pendingPermission, |
modified extensions/cli/src/e2e/auth.test.ts +7 −7
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | authPath, |
| 31 | 31 | JSON.stringify({ |
| 32 | 32 | userId: "test-user", |
| 33 | - userEmail: "test@example.com", | |
| 33 | + userEmail: "test@example.com", | |
| 34 | 34 | accessToken: "test-token", |
| 35 | 35 | refreshToken: "test-refresh-token", |
| 36 | 36 | expiresAt: Date.now() + 3600000, |
| @@ -39,12 +39,12 @@ | ||
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | // Run logout |
| 42 | - const result = await runCLI(context, { | |
| 42 | + const result = await runCLI(context, { | |
| 43 | 43 | args: ["logout"], |
| 44 | 44 | env: { |
| 45 | 45 | HOME: context.testDir, |
| 46 | - CONTINUE_GLOBAL_DIR: path.join(context.testDir, ".continue") | |
| 47 | - } | |
| 46 | + CONTINUE_GLOBAL_DIR: path.join(context.testDir, ".continue"), | |
| 47 | + }, | |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | expect(result.exitCode).toBe(0); |
| @@ -59,12 +59,12 @@ | ||
| 59 | 59 | }); |
| 60 | 60 | |
| 61 | 61 | it("should handle logout when not logged in", async () => { |
| 62 | - const result = await runCLI(context, { | |
| 62 | + const result = await runCLI(context, { | |
| 63 | 63 | args: ["logout"], |
| 64 | 64 | env: { |
| 65 | 65 | HOME: context.testDir, |
| 66 | - CONTINUE_GLOBAL_DIR: path.join(context.testDir, ".continue") | |
| 67 | - } | |
| 66 | + CONTINUE_GLOBAL_DIR: path.join(context.testDir, ".continue"), | |
| 67 | + }, | |
| 68 | 68 | }); |
| 69 | 69 | |
| 70 | 70 | expect(result.exitCode).toBe(0); |
modified extensions/cli/src/e2e/resume-flag.test.ts +7 −7
| @@ -46,16 +46,16 @@ | ||
| 46 | 46 | |
| 47 | 47 | // Verify that a session file was created |
| 48 | 48 | const sessionDir = path.join(context.testDir, ".continue", "sessions"); |
| 49 | - | |
| 49 | + | |
| 50 | 50 | // Ensure session directory exists |
| 51 | 51 | try { |
| 52 | 52 | await fs.mkdir(sessionDir, { recursive: true }); |
| 53 | 53 | } catch (error) { |
| 54 | 54 | // Directory already exists, continue |
| 55 | 55 | } |
| 56 | - | |
| 56 | + | |
| 57 | 57 | const sessionFiles = (await fs.readdir(sessionDir)).filter( |
| 58 | - f => f.endsWith('.json') && f !== 'sessions.json' | |
| 58 | + (f) => f.endsWith(".json") && f !== "sessions.json", | |
| 59 | 59 | ); |
| 60 | 60 | expect(sessionFiles).toHaveLength(1); |
| 61 | 61 | |
| @@ -150,16 +150,16 @@ | ||
| 150 | 150 | |
| 151 | 151 | // Verify the first session was saved correctly |
| 152 | 152 | const sessionDir = path.join(context.testDir, ".continue", "sessions"); |
| 153 | - | |
| 153 | + | |
| 154 | 154 | // Ensure session directory exists |
| 155 | 155 | try { |
| 156 | 156 | await fs.mkdir(sessionDir, { recursive: true }); |
| 157 | 157 | } catch (error) { |
| 158 | 158 | // Directory already exists, continue |
| 159 | 159 | } |
| 160 | - | |
| 160 | + | |
| 161 | 161 | let sessionFiles = (await fs.readdir(sessionDir)).filter( |
| 162 | - f => f.endsWith('.json') && f !== 'sessions.json' | |
| 162 | + (f) => f.endsWith(".json") && f !== "sessions.json", | |
| 163 | 163 | ); |
| 164 | 164 | expect(sessionFiles).toHaveLength(1); |
| 165 | 165 | |
| @@ -193,7 +193,7 @@ | ||
| 193 | 193 | |
| 194 | 194 | // Check that the session file contains both messages |
| 195 | 195 | sessionFiles = (await fs.readdir(sessionDir)).filter( |
| 196 | - f => f.endsWith('.json') && f !== 'sessions.json' | |
| 196 | + (f) => f.endsWith(".json") && f !== "sessions.json", | |
| 197 | 197 | ); |
| 198 | 198 | sessionFile = sessionFiles[0]; |
| 199 | 199 | sessionPath = path.join(sessionDir, sessionFile); |
modified extensions/cli/src/slashCommands.test.ts +22 −0
| @@ -96,6 +96,28 @@ | ||
| 96 | 96 | }); |
| 97 | 97 | |
| 98 | 98 | describe("handleSlashCommands", () => { |
| 99 | + it("should handle /help command", async () => { | |
| 100 | + const result = await handleSlashCommands("/help", mockAssistant); | |
| 101 | + | |
| 102 | + expect(result).toBeDefined(); | |
| 103 | + expect(result?.output).toContain("Keyboard Shortcuts:"); | |
| 104 | + expect(result?.output).toContain("Navigation:"); | |
| 105 | + expect(result?.output).toContain("↑/↓"); | |
| 106 | + expect(result?.output).toContain("Tab"); | |
| 107 | + expect(result?.output).toContain("Enter"); | |
| 108 | + expect(result?.output).toContain("Shift+Enter"); | |
| 109 | + expect(result?.output).toContain("Controls:"); | |
| 110 | + expect(result?.output).toContain("Ctrl+C"); | |
| 111 | + expect(result?.output).toContain("Ctrl+D"); | |
| 112 | + expect(result?.output).toContain("Ctrl+L"); | |
| 113 | + expect(result?.output).toContain("Shift+Tab"); | |
| 114 | + expect(result?.output).toContain("Esc"); | |
| 115 | + expect(result?.output).toContain("Special Characters:"); | |
| 116 | + expect(result?.output).toContain("@"); | |
| 117 | + expect(result?.output).toContain("/"); | |
| 118 | + expect(result?.exit).toBeUndefined(); | |
| 119 | + }); | |
| 120 | + | |
| 99 | 121 | it("should handle /info command when not authenticated", async () => { |
| 100 | 122 | const { isAuthenticated } = await import("./auth/workos.js"); |
| 101 | 123 | const { services } = await import("./services/index.js"); |
modified extensions/cli/src/slashCommands.ts +23 −9
| @@ -18,16 +18,30 @@ | ||
| 18 | 18 | assistant: AssistantConfig, |
| 19 | 19 | ) => Promise<SlashCommandResult> | SlashCommandResult; |
| 20 | 20 | |
| 21 | -async function handleHelp(args: string[], assistant: AssistantConfig) { | |
| 22 | - const allCommands = getAllSlashCommands(assistant); | |
| 21 | +async function handleHelp(_args: string[], _assistant: AssistantConfig) { | |
| 23 | 22 | const helpMessage = [ |
| 24 | - "Slash commands:", | |
| 25 | - ...allCommands | |
| 26 | - .sort((a, b) => a.name.localeCompare(b.name)) | |
| 27 | - .map( | |
| 28 | - (cmd) => | |
| 29 | - `- ${chalk.white(`/${cmd.name}:`)} ${chalk.gray(cmd.description)}`, | |
| 30 | - ), | |
| 23 | + chalk.bold("Keyboard Shortcuts:"), | |
| 24 | + "", | |
| 25 | + chalk.white("Navigation:"), | |
| 26 | + ` ${chalk.cyan("↑/↓")} Navigate command/file suggestions or history`, | |
| 27 | + ` ${chalk.cyan("Tab")} Complete command or file selection`, | |
| 28 | + ` ${chalk.cyan("Enter")} Submit message`, | |
| 29 | + ` ${chalk.cyan("Shift+Enter")} New line`, | |
| 30 | + ` ${chalk.cyan("\\")} Line continuation (at end of line)`, | |
| 31 | + "", | |
| 32 | + chalk.white("Controls:"), | |
| 33 | + ` ${chalk.cyan("Ctrl+C")} Clear input`, | |
| 34 | + ` ${chalk.cyan("Ctrl+D")} Exit application`, | |
| 35 | + ` ${chalk.cyan("Ctrl+L")} Clear screen`, | |
| 36 | + ` ${chalk.cyan("Shift+Tab")} Cycle permission modes (normal/plan/auto)`, | |
| 37 | + ` ${chalk.cyan("Esc")} Cancel streaming or close suggestions`, | |
| 38 | + "", | |
| 39 | + chalk.white("Special Characters:"), | |
| 40 | + ` ${chalk.cyan("@")} Search and attach files for context`, | |
| 41 | + ` ${chalk.cyan("/")} Access slash commands`, | |
| 42 | + "", | |
| 43 | + chalk.white("Available Commands:"), | |
| 44 | + ` Type ${chalk.cyan("/")} to see available slash commands`, | |
| 31 | 45 | ].join("\n"); |
| 32 | 46 | posthogService.capture("useSlashCommand", { name: "help" }); |
| 33 | 47 | return { output: helpMessage }; |
modified extensions/cli/src/ui/ToolResultSummary.tsx +6 −2
| @@ -85,7 +85,9 @@ | ||
| 85 | 85 | <Text color="gray"> Terminal output:</Text> |
| 86 | 86 | </Box> |
| 87 | 87 | <Box paddingLeft={2}> |
| 88 | - <Text color={isStderr ? "red" : "white"}>{actualOutput}</Text> | |
| 88 | + <Text color={isStderr ? "red" : "white"}> | |
| 89 | + {actualOutput.trimEnd()} | |
| 90 | + </Text> | |
| 89 | 91 | </Box> |
| 90 | 92 | </Box> |
| 91 | 93 | ); |
| @@ -99,7 +101,9 @@ | ||
| 99 | 101 | <Text color="gray"> Terminal output:</Text> |
| 100 | 102 | </Box> |
| 101 | 103 | <Box paddingLeft={2}> |
| 102 | - <Text color={isStderr ? "red" : "white"}>{firstLines}</Text> | |
| 104 | + <Text color={isStderr ? "red" : "white"}> | |
| 105 | + {firstLines.trimEnd()} | |
| 106 | + </Text> | |
| 103 | 107 | </Box> |
| 104 | 108 | <Box paddingLeft={2}> |
| 105 | 109 | <Text color="gray"> |
modified extensions/cli/src/ui/__tests__/mockRemoteServer.ts +9 −1
| @@ -29,9 +29,17 @@ | ||
| 29 | 29 | // GET /state - Return the current state |
| 30 | 30 | this.app.get("/state", (req, res) => { |
| 31 | 31 | res.json({ |
| 32 | - chatHistory: this.messages, | |
| 32 | + session: { | |
| 33 | + history: this.messages.map((msg) => ({ | |
| 34 | + message: msg, | |
| 35 | + contextItems: [], | |
| 36 | + })), | |
| 37 | + id: "mock-session", | |
| 38 | + workspaceDirectory: "/mock/workspace", | |
| 39 | + }, | |
| 33 | 40 | isProcessing: this.isProcessing, |
| 34 | 41 | messageQueueLength: 0, |
| 42 | + pendingPermission: null, | |
| 35 | 43 | }); |
| 36 | 44 | }); |
| 37 | 45 |
modified extensions/cli/src/ui/hooks/useChat.remote.helpers.ts +4 −5
| @@ -1,5 +1,4 @@ | ||
| 1 | 1 | import type { ChatHistoryItem } from "core/index.js"; |
| 2 | -import { convertToUnifiedHistory } from "core/util/messageConversion.js"; | |
| 3 | 2 | |
| 4 | 3 | import { posthogService } from "../../telemetry/posthogService.js"; |
| 5 | 4 | import { logger } from "../../util/logger.js"; |
| @@ -98,11 +97,11 @@ | ||
| 98 | 97 | responseStartTime, |
| 99 | 98 | setResponseStartTime, |
| 100 | 99 | }: UpdateStateFromRemoteOptions): void { |
| 101 | - // Update chat history from server | |
| 102 | - if (state.chatHistory) { | |
| 100 | + // Update chat history from server - now using session.history directly | |
| 101 | + if (state.session && state.session.history) { | |
| 103 | 102 | setChatHistory((prevHistory) => { |
| 104 | - // Convert server's legacy format to unified format | |
| 105 | - const newHistory = convertToUnifiedHistory(state.chatHistory); | |
| 103 | + // Use session history directly - it already has the correct type | |
| 104 | + const newHistory = state.session.history; | |
| 106 | 105 | |
| 107 | 106 | // Quick length check first |
| 108 | 107 | if (prevHistory.length !== newHistory.length) { |
modified extensions/cli/src/ui/hooks/useChat.types.ts +4 −8
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | import { AssistantUnrolled, ModelConfig } from "@continuedev/config-yaml"; |
| 2 | 2 | import { BaseLlmApi } from "@continuedev/openai-adapters"; |
| 3 | -import { ChatCompletionMessageParam } from "openai/resources.mjs"; | |
| 3 | +import type { Session } from "core/index.js"; | |
| 4 | 4 | |
| 5 | 5 | import { ToolCallPreview } from "../../tools/types.js"; |
| 6 | 6 | |
| @@ -37,14 +37,10 @@ | ||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | export interface RemoteServerState { |
| 40 | - messages: Array<{ | |
| 41 | - role: string; | |
| 42 | - content?: string; | |
| 43 | - tool_calls?: any[]; | |
| 44 | - }>; | |
| 45 | - chatHistory: ChatCompletionMessageParam[]; | |
| 40 | + session: Session; | |
| 46 | 41 | isProcessing: boolean; |
| 47 | - activePermissionRequest?: { | |
| 42 | + messageQueueLength: number; | |
| 43 | + pendingPermission?: { | |
| 48 | 44 | toolName: string; |
| 49 | 45 | toolArgs: any; |
| 50 | 46 | requestId: string; |
modified extensions/cli/validate-aliases.mjs +2 −2
| @@ -8,14 +8,14 @@ | ||
| 8 | 8 | let logger; |
| 9 | 9 | try { |
| 10 | 10 | // Try to import the compiled logger |
| 11 | - const loggerModule = await import('./dist/util/logger.js'); | |
| 11 | + const loggerModule = await import("./dist/util/logger.js"); | |
| 12 | 12 | logger = loggerModule.logger; |
| 13 | 13 | } catch { |
| 14 | 14 | // Fallback to console if logger not available (e.g., not built yet) |
| 15 | 15 | logger = { |
| 16 | 16 | info: console.log, |
| 17 | 17 | warn: console.warn, |
| 18 | - error: console.error | |
| 18 | + error: console.error, | |
| 19 | 19 | }; |
| 20 | 20 | } |
| 21 | 21 |