Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.2] - 2025-09-XX

### Fixed
- **File Logging Stack Mode**: Fixed file logging to properly respect `stackMode` configuration, ensuring that both `full` and `condensed` stack modes work correctly when writing logs to files
- **Stack Trace Formatting**: Enhanced stack logging in middleware to properly format stack traces according to the configured stack mode

## [1.0.1] - 2025-08-24

### Changed
- **Configuration System**: Migrated from `.browser-echo-mcp.json` to `.cursor/mcp.json` for better Cursor IDE integration and cleaner project setup
- **MCP Server Configuration**: Updated MCP server configuration to use the new Cursor-native format for improved developer experience

### Fixed
- **Workspace Dependencies**: Fixed workspace dependency versioning to ensure proper publishing of packages with correct version references

## [1.0.0] - 2025-08-XX

### Added
- Initial release of Browser Echo MCP
- Support for streaming browser console logs to development terminals and AI assistants
- Framework support for React, Vue, Nuxt 3/4, Next.js, TanStack Start, and Vite-based frameworks
- MCP (Model Context Protocol) server for AI assistant integration
- Optional file logging with configurable stack trace modes
- Colorized terminal output
- Source hints with file:line:col information
- Batched log transmission using `sendBeacon` when available
7 changes: 6 additions & 1 deletion packages/vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ function attachMiddleware(server: any, options: ResolvedOptions) {
if (options.fileLog.enabled) {
const time = new Date().toISOString();
const toFile = [`[${time}] ${line}`];
if (entry.stack && options.stackMode !== 'none') toFile.push(indent(entry.stack, ' '));
if (entry.stack && options.stackMode !== 'none') {
const stackLines = options.stackMode === 'full'
? indent(entry.stack, ' ')
: ` ${(String(entry.stack).split(/\r?\n/g).find((l) => l.trim().length > 0) || '').trim()}`;
toFile.push(stackLines);
}
try { appendFileSync(logFilePath, toFile.join('\n') + '\n'); } catch {}
}
}
Expand Down
Loading