Commit Graph

15 Commits

Author SHA1 Message Date
feeb8b31b3 Bump version to 1.0.2 — module refactoring to one-function-per-file
Migrated 10 monolithic modules (parser, cmp, context_modal, diff_review,
logs, logs_panel, thinking, throbber, commands, autocmds) into granular
pure files. Deleted all barrel files and updated consumers to import
directly. Removed unused dead code files.

Made-with: Cursor
2026-03-24 22:58:30 -04:00
5c20f57eb4 migrating autocmds 2026-03-24 22:56:38 -04:00
75de3198cd Adding the migration to pure files only 2026-03-24 22:31:49 -04:00
35b808ca1e release: v1.0.1 — CI, formatting, docs, version command
- Add :Coder version command with M.version constant
- Add .stylua.toml (2-space) and .luacheckrc configs
- Rewrite CI: lua.yaml (lint + auto-format + health), release.yaml
- Remove avante.nvim Rust/pre-commit workflows
- Fix 7 files missing local M = {}, cmp newline bug, loop.lua syntax
- Update all docs to match current project state
- Switch codebase from tabs to 2-space indentation

Made-with: Cursor
2026-03-18 23:31:41 -04:00
3a1472670b feat: adding lua linter 2026-03-18 23:29:02 -04:00
fe118e0885 fixing github actions 2026-03-18 23:20:00 -04:00
9f229b26c9 Fixing the old configuration 2026-03-18 21:56:45 -04:00
0a1429a823 Adding the functionallity and refactoring 2026-02-17 00:15:40 -05:00
4bef7e2d55 Deleting unnecesary features 2026-02-16 10:38:09 -05:00
10c1de8843 Refactor: Restructure project into core, features, adapters, and config modules 2026-01-16 11:52:46 -05:00
84c8bcf92c Adding autocomplete and copilot suggestions 2026-01-14 21:43:56 -05:00
46672f6f87 feat: add function completion, apply delay, and VimLeavePre cleanup
Major improvements to the event-driven prompt processing system:

Function Completion:
- Override intent to "complete" when prompt is inside function/method scope
- Use Tree-sitter to detect enclosing scope and replace entire function
- Special LLM prompt instructs to complete function body without duplicating
- Patch apply uses "replace" strategy for scope range instead of appending

Apply Delay:
- Add `apply_delay_ms` config option (default 5000ms) for code review time
- Log "Code ready. Applying in X seconds..." before applying patches
- Configurable wait time before removing tags and injecting code

VimLeavePre Cleanup:
- Logs panel and queue windows close automatically on Neovim exit
- Context modal closes on VimLeavePre
- Scheduler stops timer and cleans up augroup on exit
- Handle QuitPre for :qa, :wqa commands
- Force close with buffer deletion for robust cleanup

Response Cleaning:
- Remove LLM special tokens (deepseek, llama markers)
- Add blank line spacing before appended code
- Log full raw LLM response in logs panel for debugging

Documentation:
- Add required dependencies (plenary.nvim, nvim-treesitter)
- Add optional dependencies (nvim-treesitter-textobjects, nui.nvim)
- Document all intent types including "complete"
- Add Logs Panel section with features and keymaps
- Update lazy.nvim example with dependencies

Tests:
- Add tests for patch create_from_event with different strategies
- Fix assert.is_true to assert.is_truthy for string.match

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:40:13 -05:00
0600144768 fixing the issues on the tags 2026-01-13 23:16:27 -05:00
8a3ee81c3f feat: add event-driven architecture with scope resolution
- Add event queue system (queue.lua) with priority-based processing
- Add patch system (patch.lua) with staleness detection via changedtick
- Add confidence scoring (confidence.lua) with 5 weighted heuristics
- Add async worker wrapper (worker.lua) with timeout handling
- Add scheduler (scheduler.lua) with completion-aware injection
- Add Tree-sitter scope resolution (scope.lua) for functions/methods/classes
- Add intent detection (intent.lua) for complete/refactor/fix/add/etc
- Add tag precedence rules (first tag in scope wins)
- Update autocmds to emit events instead of direct processing
- Add scheduler config options (ollama_scout, escalation_threshold)
- Update prompts with scope-aware context
- Update README with emojis and new features
- Update documentation (llms.txt, CHANGELOG.md, doc/codetyper.txt)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 21:55:44 -05:00
bba0647b47 feat: initial release of codetyper.nvim v0.2.0
AI-powered coding partner for Neovim with LLM integration.

Features:
- Split view for coder files (*.coder.*) and target files
- Tag-based prompts with /@ and @/ syntax
- Claude API and Ollama (local) LLM support
- Smart prompt detection (refactor, add, document, explain)
- Automatic code injection into target files
- Project tree logging (.coder/tree.log)
- Auto .gitignore management

Ask Panel (chat interface):
- Fixed at 1/4 screen width
- File attachment with @ key
- Ctrl+n for new chat
- Ctrl+Enter to submit
- Proper window close behavior
- Navigation with Ctrl+h/j/k/l

Commands: Coder, CoderOpen, CoderClose, CoderToggle,
CoderProcess, CoderAsk, CoderTree, CoderTreeView
2026-01-11 15:24:06 -05:00