8e01191c68
- Add typing indicator in TaskChatPanel that shows when agent is working - Enhanced ToolCallCard component with expandable details section - Backend now passes tool call args (kind, path, locations, raw_input) to comments - Add generateUUID fallback for non-secure contexts (HTTP non-localhost) - Configure Next.js allowedDevOrigins for cross-origin dev access - Bind dev server to 0.0.0.0 for network access Backend changes: - Extract Kind, Locations, RawInput from ACP ToolCall updates - Add Args field to ToolCallData in watcher - Pass args through CommentCreator interface to comment metadata Frontend changes: - ToolCallCard shows file path, status icons, expandable args - getToolIcon matches ACP ToolKind values (read, edit, search, execute) - Typing indicator with animated dots when awaiting agent response - Replace crypto.randomUUID with fallback utility across all files
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
export type AppConfig = {
|
|
apiBaseUrl: string;
|
|
};
|
|
|
|
const DEFAULT_API_BASE_URL = 'http://nova:8080';
|
|
|
|
export function getBackendConfig(): AppConfig {
|
|
if (typeof window === 'undefined') {
|
|
return {
|
|
apiBaseUrl: process.env.KANDEV_API_BASE_URL ?? DEFAULT_API_BASE_URL,
|
|
};
|
|
}
|
|
return {
|
|
apiBaseUrl: process.env.NEXT_PUBLIC_KANDEV_API_BASE_URL ?? DEFAULT_API_BASE_URL,
|
|
};
|
|
}
|