Commit Graph
665 Commits
Author SHA1 Message Date
can1357 36db3ff6fc feat(tui): added hardware cursor support for native terminal blinking
- Added terminal cursor mode support to Editor component with setUseTerminalCursor() and getCursorPosition() methods.
- Added getCursorPosition() method to Component interface and Container class for cursor position aggregation.
- Added hardware cursor positioning and visibility management to TUI class with change detection.
- Enabled terminal cursor mode in HookEditorComponent and CustomEditor for proper cursor blinking.
2026-01-05 05:16:39 +01:00
can1357 f26493824e feat(coding-agent): added 65 themes to expand user customization options
- Added 65 new built-in color themes including dark, light, and material variants.
- Added theme sync script to generate theme index from JSON files.
- Expanded default theme collection from approximately 30 to 96 themes.
2026-01-05 05:16:07 +01:00
can1357 21192e2056 refactor: consolidated tool execution params into details object
- Changed isError property from required to optional across ToolResultMessage and tool event interfaces.
- Added SpinnerType variants with distinct animation frames per symbol preset.
- Fixed spinner animation crash when frames array is empty by adding guard clause.
- Refactored agent-loop tool execution to consolidate toolCallId, toolName, and isError into details object.
2026-01-05 04:44:43 +01:00
can1357 7f68705afa fix(coding-agent): corrected bash spinner syntax and removed redundant metadata
- Fixed string interpolation syntax error in bash execution spinner text.
- Removed redundant line count display from file read tool output metadata.
2026-01-05 04:32:22 +01:00
can1357 fa726683b1 fix(coding-agent): used theme ellipsis in loading animation text
Replaced hardcoded "..." with theme.format.ellipsis in the "Working..."
loading message for consistent styling. Fixed template literal syntax.
2026-01-05 04:23:15 +01:00
can1357 d5dd582753 fix(coding-agent): used theme ellipsis in bash execution component
Replaced hardcoded "..." with theme.format.ellipsis for consistent styling.
2026-01-05 04:22:37 +01:00
can1357 2c7950d08e feat(coding-agent): added image processing for CLI file attachments
Added automatic resizing (>2048px triggers resize to max 1920x1080) and
JPEG conversion (>2MB) for image file attachments using sharp. Reduces
payload size when attaching large screenshots or high-resolution images.
2026-01-05 04:22:36 +01:00
can1357 58d9952f9b chore(coding-agent): added blank line before Theme class definition 2026-01-05 04:22:09 +01:00
can1357 f3bc4db78a feat(coding-agent): registered session flush in async cleanup registry
InteractiveMode now registers sessionManager.flush() with the async cleanup
registry, ensuring pending writes are flushed on SIGINT/SIGTERM/SIGHUP.
2026-01-05 04:22:00 +01:00
can1357 e7495a9b0e feat(coding-agent): added animated spinner and language icons for tool display
- Added animated spinner for task tool progress (spinnerFrame in render options)
- Added 35+ language/file type icons to theme (lang.* symbols for Unicode/Nerd/ASCII)
- Read tool now displays file type icons and metadata inline with path
- Added getFileType helper to detect image/binary/text files by extension
2026-01-05 04:21:18 +01:00
can1357 c4e26ee614 feat(coding-agent): added subagent token usage aggregation to task tool results
Task tool now parses NDJSON events from subagent execution and aggregates
token usage (input, output, cache read/write) and costs across all completed
message_end events. Usage is stored in tool result details and included in
session statistics via getUsageStatistics().

Also changed AgentSession.dispose() to async to properly flush pending writes.
2026-01-05 04:21:02 +01:00
can1357 7f1d071843 feat(coding-agent): added streaming NDJSON session persistence with crash-safe writes
Rewrote SessionManager to use streaming NDJSON writes with proper backpressure
handling instead of synchronous file appends. Key changes:

- SessionManager.open() and continueRecent() are now async for proper init
- Session writes use atomic rename pattern with fsync for crash safety
- Added flush() method for explicit control over pending write completion
- Large content blocks (>500KB) are truncated before writing to prevent OOM
- Images are replaced with placeholder thumbnails during persistence
2026-01-05 04:20:44 +01:00
can1357 fef71188ff feat(coding-agent): added async cleanup registry for graceful signal handling
Introduced registerAsyncCleanup() for registering async callbacks that run
on SIGINT, SIGTERM, and SIGHUP. This enables proper session flushing before
exit without blocking synchronous signal handlers.
2026-01-05 04:20:22 +01:00
can1357 27d56f39f8 refactor(coding-agent): simplified tool output rendering with collapsible content
- Changed read tool result display to hide content by default with expand hint, showing only metadata until expanded.
- Changed diagnostics display to group messages by file with tree structure and severity icons.
- Changed diff stats formatting to use colored +/- indicators with slash separators.
- Removed custom renderers for ls, find, and grep tools in favor of generic tool display.
- Simplified truncation warning formatting for read tool output.
2026-01-05 03:13:24 +01:00
can1357 fd67003028 feat(coding-agent): added streaming persistence with backpressure control
- Added streaming NDJSON writer with backpressure handling for session persistence.
- Added SessionManager.flush() method for explicit write synchronization before session operations.
- Added content truncation for oversized blocks (500K char limit) to prevent memory exhaustion.
- Replaced synchronous file appends with streaming NDJSON writer in session persistence.
2026-01-05 02:23:36 +01:00
can1357 f693c285ef feat(coding-agent): added /exit command for interactive mode termination
- Added /exit slash command to exit the application from interactive mode.
2026-01-05 02:20:46 +01:00
can1357 af05f81bde feat(coding-agent/core): added fuzzy path suggestions to read tool
- Added fuzzy path matching suggestions when read tool encounters file-not-found errors, showing closest matches using Levenshtein distance.
- Changed read tool to automatically redirect to ls when given a directory path instead of a file.
- Implemented Levenshtein distance algorithm for computing path similarity scores.
- Added fd-based file candidate listing with gitignore support for fuzzy matching.
2026-01-05 02:18:38 +01:00
can1357 3aa17d9d1a docs(coding-agent/prompts): restructured tool docs for clarity and usability
- Rewrote tool documentation with structured sections and clearer usage guidelines.
- Added explicit guidance on when to use and avoid each tool.
- Simplified examples and removed implementation details from tool prompts.
- Added best practices for read, write, and bash tools.
2026-01-05 02:17:32 +01:00
can1357 71b59649b5 refactor(coding-agent): externalized tool prompts to markdown files
- Extracted tool description prompts from inline strings to external markdown files in src/prompts/tools/.
- Moved descriptions for 12 tools (ask, bash, edit, find, grep, lsp, output, read, web-fetch, web-search, write) to dedicated .md files.
- Updated tool implementations to import descriptions from external markdown files.
2026-01-05 01:50:35 +01:00
can1357 cd73708831 feat(coding-agent/core): added crates.io API handler with parallel fetching
- Added crates.io API handler for fetching Rust crate metadata, versions, and README content.
- Added weekly download statistics to npm package fetch results.
- Parallelized npm registry and download stats fetches for improved performance.
2026-01-05 01:46:38 +01:00
can1357 885f59c4a0 fix(coding-agent/core): resolved type narrowing by binding array items locally
- Bound array items to local variables to enable TypeScript union type narrowing in diagnostic rendering.
2026-01-05 01:37:29 +01:00
can1357 1bf6621b69 refactor(coding-agent/core): migrated Exa provider to REST API for simpler integration
- Migrated Exa web search provider from MCP protocol to direct REST API for simpler integration.
- Added defensive handling for malformed response data with fallback text display in web search rendering.
- Replaced SSE parsing and markdown response handling with direct JSON API responses.
- Added type guards and null coalescing throughout render.ts to prevent runtime errors on unexpected data.
- Normalized search type parameter to map deprecated 'keyword' to 'fast' for API compatibility.
2026-01-05 01:34:16 +01:00
can1357 dda587217d docs(coding-agent/prompts): expanded prompts for structured handoffs
- Enhanced compaction prompts to require structured handoff summaries with preserved tool outputs and repository state.
- Added core behavior guidelines and task completion reminder to system prompt.
- Expanded reviewer prompt with suggestion block formatting and evidence-backed finding requirements.
- Added runtime/tooling preferences section and formatting requirements to init prompt.
2026-01-05 01:33:50 +01:00
can1357 b18193e230 refactor(coding-agent): centralized prompts to src/prompts/ for maintainability
- Consolidated all prompt templates into centralized src/prompts/ directory.
- Extracted inline prompt constants to external markdown files for better maintainability.
- Refactored system-prompt.ts to use template string replacement with placeholders.
- Relocated bundled agent and command prompts from scattered directories to prompts/.
2026-01-05 01:25:20 +01:00
can1357 ce4703905f feat(coding-agent): introduced structured tree layouts for tool results
- Enhanced tool result renderers to use structured tree layouts with expand hints and truncation indicators.
- Added detailed metadata fields to grep, find, ls, and output tools for richer TUI display.
- Improved web-search renderer with section-based layout including Answer, Sources, Related, and Meta sections.
- Added helper functions for tree-style list formatting, diagnostics rendering, and diff preview truncation.
2026-01-05 01:13:44 +01:00
can1357 d2b3b870e9 fix(coding-agent): corrected extension status symbols for shadowed state
- Added status.shadowed symbol key to theme system for proper shadowed extension state display.
- Fixed extension list and inspector panel to use correct disabled and shadowed status symbols.
- Changed tree.hook symbol from └ to ⎿ in UNICODE_SYMBOLS.
2026-01-05 01:08:15 +01:00
can1357 db726287f8 fix(coding-agent): corrected token counting for mixed usage formats
- Fixed token counting for subagent progress to handle different usage object formats (camelCase and snake_case).
- Added getUsageTokens helper to normalize usage objects from different event formats.
2026-01-05 01:01:12 +01:00
can1357 9b7596c4aa feat(coding-agent): added theme system with 30+ presets and status line editor
- Added 30+ built-in color themes and comprehensive symbol customization via theme presets and overrides.
- Added status line segment editor with presets, separators, and customizable left/right segments.
- Added Biome CLI-based linter client as alternative to LSP for diagnostics and formatting.
- Added 20MB file size limit for image files to prevent memory issues during serialization.
- Replaced hardcoded Unicode symbols throughout codebase with theme-configurable symbol system.
2026-01-05 00:57:16 +01:00
can1357 8ef2697f21 feat(coding-agent): added usage statistics API to centralize tracking
- Added getUsageStatistics() method to SessionManager for tracking token usage and costs.
- Added UsageStatistics interface and type export for session usage tracking.
- Replaced inline token/cost calculation with centralized getUsageStatistics() method in status line.
- Added Pi segment and updated model icon in status line display.
2026-01-04 19:16:54 +01:00
can1357 b0ce4696ae fix(coding-agent): resolved status line not updating after new session
- Fixed status line not updating token counts and cost after starting a new session.
2026-01-04 16:12:01 +01:00
can1357 4811403bed feat(tui): changed cursor to thin blinking bar, updated status line icons 2026-01-04 15:48:46 +01:00
can1357 eba38cfa6e feat(coding-agent): introduced powerline status bar with git integration
- Replaced FooterComponent with new StatusLineComponent featuring powerline-style segments and Nerd Font icons.
- Added git branch detection with file watching and status tracking with 1-second TTL cache.
- Added setTopBorder() method to Editor component for custom status content in top border.
- Changed Editor component to use rounded box-drawing characters for borders.
- Renamed footer theme properties to statusLine prefix across dark and light themes.
2026-01-04 15:24:39 +01:00
can1357 ee187c3ef8 feat(coding-agent): disabled formatOnWrite by default to reduce friction
- Changed default for `lsp.formatOnWrite` setting from `true` to `false`.
- Reformatted settings-manager.ts with consistent indentation.
2026-01-04 15:18:13 +01:00
can1357 f3108ba51c fix(coding-agent): resolved stale diagnostics in LSP client after edits
- Fixed stale diagnostics persisting after file content changes in LSP client.
2026-01-04 14:59:26 +01:00
can1357 441d60f9dc fix(coding-agent): persisted session title to in-memory header before flush 2026-01-04 14:24:04 +01:00
can1357 c711092c6f feat(coding-agent): added auto-open browser for HTML export and Gist sharing
- Added automatic browser opening after exporting session to HTML.
- Added automatic browser opening after sharing session as a Gist.
- Extracted browser-opening logic into reusable openInBrowser method.
2026-01-04 14:20:47 +01:00
can1357 68ebf75622 refactor(coding-agent): simplified once import in lsp tool module
- Replaced utils.once import with direct once import from local utils module.
2026-01-04 14:19:01 +01:00
can1357 b2f577f49d refactor(coding-agent/core): migrated to async streams with ScopeSignal
- Added ScopeSignal class for composable cancellation with AbortSignal and timeout support.
- Refactored bash-executor to use async/await with stream pipelines and ScopeSignal utility.
- Replaced manual abort handling with untilAborted wrapper across find, ls, notebook, and read tools.
- Simplified error handling by removing manual abort signal listener setup and cleanup logic.
2026-01-04 04:26:33 +01:00
can1357 47837a0fa7 feat(coding-agent): introduced LSP writethrough for unified file operations
- Added createLspWritethrough factory for unified LSP-aware file write operations with formatting and diagnostics.
- Added syncContent and notifySaved LSP client methods for in-memory content synchronization.
- Added EditMatchError class and utils module with once and untilAborted helper functions.
- Changed FileDiagnosticsResult interface: renamed diagnostics->messages, hasErrors->errored, serverName->server.
- Changed session title generation to trigger before first message instead of after agent work begins.
- Simplified edit and write tools by delegating to writethrough callback and removing manual abort handling.
2026-01-04 02:23:00 +01:00
can1357 f676ef0521 refactor(coding-agent): moved title generation to turn start for earlier feedback
- Moved session title generation to trigger at turn start instead of turn end for earlier feedback.
2026-01-03 23:37:39 +01:00
can1357 0e9bf88e4d chore: bump version to 3.6.1337 2026-01-03 23:30:22 +01:00
can1357 7904c7d33e perf(coding-agent): ~500x faster session parsing
- Replaced crypto.randomUUID() with nanoid() for ID generation across session-manager and rpc-mode.
- Added RecentSessionInfo class with lazy getters for fullName, name, and timeAgo properties.
- Simplified session retrieval by consolidating isValidSessionFile() into getSortedSessions() helper.
- Added nanoid ^5.1.6 dependency and removed duplicate safe-buffer entries from lockfile.
2026-01-03 23:24:59 +01:00
can1357 67ad18c4af chore: bump version to 3.5.1337 2026-01-03 21:53:56 +01:00
can1357 44ccf7c1cb feat(coding-agent): replaced 3-column layout with tabbed interface
- Redesigned Extension Control Center from 3-column layout to tabbed interface with provider tabs.
- Replaced sidebar tree navigation with horizontal tab bar supporting TAB/Shift+TAB cycling.
- Added session header/footer output in text mode showing version, model, provider, and thinking level.
- Removed HolyGrailLayout and SidebarTree components in favor of TwoColumnBody with tabs.
2026-01-03 21:53:01 +01:00
can1357 b7cf5a0296 feat(coding-agent): introduced extension control dashboard with search
- Added Extension Control Center dashboard with three-column layout, fuzzy search, and keyboard navigation.
- Added extension enable/disable functionality with persistent settings via SettingsManager.
- Renamed /status command to /extensions with /status as alias.
- Removed dynamic discovery settings from settings selector in favor of new extension dashboard.
2026-01-03 21:25:29 +01:00
can1357 d61a196864 fix: resolved title generation flag reset on new session start
- Fixed title generation flag reset when starting new sessions.
- Added localhost URL detection for OpenAI-compatible provider auto-configuration.
- Changed terminal title prefix from 'pi:' to 'omp:'.
- Added debug logging for title generation model lookup, API key retrieval, and request/response handling.
- Removed title length validation that rejected titles over 60 characters.
2026-01-03 21:04:13 +01:00
can1357 bb7ec343d9 feat(coding-agent): added rulebook tool for runtime rule access
- Added rulebook tool for agents to fetch rule content by name during execution.
- Added rulebook rules filtering to exclude TTSR, always-apply, and description-less rules.
- Added XML-formatted rulebook rules to system prompt generation.
- Exported rulebook utilities including createRulebookTool, filterRulebookRules, and formatRulesForPrompt.
2026-01-03 20:01:11 +01:00
can1357 13f3eae8c0 feat: introduced TTSR for real-time pattern matching during streaming
- Added Time Traveling Streamed Rules (TTSR) feature for real-time pattern matching and rule injection during streaming.
- Added TtsrManager with configurable settings for context mode, repeat mode, and repeat gap.
- Added TTSR trigger support across all rule discovery sources (builtin, cline, cursor, windsurf).
- Added abort signal handling in agent loop to support stream interruption for TTSR.
- Added TtsrNotificationComponent for displaying rule violation notifications in interactive mode.
2026-01-03 19:43:17 +01:00
can1357 f8e642adce fix(coding-agent): added git status cache to prevent excessive spawns
- Added 1-second TTL cache for git status to prevent excessive subprocess spawns in footer component.
2026-01-03 19:13:22 +01:00
can1357 0654e5e477 fix(coding-agent): corrected /status column alignment across all sections
- Fixed /status command output to use consistent column alignment across all sections.
- Refactored status rendering to collect all line sections before calculating max width.
- Renamed dev:install script to install:dev for consistency.
2026-01-03 18:38:33 +01:00