Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6a59fe4
feat: submit hook for capture both successful, failed submissions
jingyi-zhao-01 Sep 23, 2025
606ac3d
fix: bundle entire item into the submit hook and delegate logic outside
jingyi-zhao-01 Dec 7, 2025
ec9c0a7
feat: add upload commands for test and submit results with hook trigg…
jingyi-zhao-01 Feb 23, 2026
c77b282
feat: implement timer functionality with hooks for question sessions
jingyi-zhao-01 Feb 23, 2026
e2891f5
docs: update README to reflect extended features and new hooks for se…
jingyi-zhao-01 Feb 23, 2026
2eca73f
- hightlight thought sytnax in the question buffer
jingyi-zhao-01 Feb 23, 2026
28f2383
feat: implement timer stop hook and update related commands
jingyi-zhao-01 Feb 25, 2026
a9def5a
- feat: add timer color
jingyi-zhao-01 Feb 25, 2026
5513433
feat: implement leave hooks for timer management and enhance hook exe…
jingyi-zhao-01 May 25, 2026
3bd9b7d
feat: add on_test_result hook and update related commands for improve…
jingyi-zhao-01 May 25, 2026
1617643
Merge branch 'kawre-master' into merge-kawre-master
jingyi-zhao-01 May 25, 2026
c84ac7f
Merge pull request #3 from jingyi-zhao-01/merge-kawre-master
jingyi-zhao-01 May 25, 2026
0fda2d5
feat: add submission side panel and hooks for past submissions tracking
jingyi-zhao-01 May 25, 2026
9d38b4c
feat: enhance submission details display with status icons
jingyi-zhao-01 May 25, 2026
227e6ee
feat: add CodeCompanion integration for enhanced problem context assi…
jingyi-zhao-01 Jun 7, 2026
e4323c8
feat: implement current_question and require_question functions for b…
jingyi-zhao-01 Jun 8, 2026
69042ac
feat: enhance chat management with binding and unbinding functions
jingyi-zhao-01 Jun 8, 2026
b2dec77
Refactor code structure for improved readability and maintainability
jingyi-zhao-01 Jun 8, 2026
80808d2
feat: enhance submissions and memory handling with new state manageme…
jingyi-zhao-01 Jun 8, 2026
f281bac
feat: add memory refresh functionality and manage active panels
jingyi-zhao-01 Jun 8, 2026
54cdeff
feat: add compact_string_list function and enhance session_failure_su…
jingyi-zhao-01 Jun 8, 2026
7e89b6c
feat: enhance submissions display with similar matches and update mem…
jingyi-zhao-01 Jun 8, 2026
5f7fd78
feat: add support for similar questions in submissions panel with upd…
jingyi-zhao-01 Jun 8, 2026
185a99c
feat: add auto_fence_code option to enhance code block rendering in c…
jingyi-zhao-01 Jun 10, 2026
1dc9a55
feat: add .playwright-mcp/ to .gitignore to exclude Playwright config…
jingyi-zhao-01 Jun 11, 2026
6a43c5d
feat: add AI assist toggle functionality for enhanced error analysis
jingyi-zhao-01 Jun 26, 2026
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.luarc.json
README.zh.md
.playwright-mcp/
61 changes: 61 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# AGENTS.md

Agent map for `leetcode.nvim`.

Read ADRs first when changing session behavior, hooks, or the CodeCompanion bridge. Use `README.md` and nearby Lua modules after that.

## What This Repo Owns

- LeetCode UI, commands, and question lifecycle inside Neovim
- hook dispatch around test / submit / timer events
- CodeCompanion bridge for LeetCode context injection
- editor-side rendering for submission-service-backed companion events

## Start Here

1. [docs/adrs/001-codecompanion-session-failure-event-bridge.md](./docs/adrs/001-codecompanion-session-failure-event-bridge.md)
2. [README.md](./README.md)
3. [lua/leetcode/integrations/codecompanion.lua](./lua/leetcode/integrations/codecompanion.lua)
4. [lua/leetcode/config/hooks.lua](./lua/leetcode/config/hooks.lua)
5. [lua/leetcode/runner/init.lua](./lua/leetcode/runner/init.lua)

## File Map

- `lua/leetcode/integrations/codecompanion.lua`
CodeCompanion bridge, hidden context injection, question-bound chat tracking, failure-event rendering.
- `lua/leetcode/config/hooks.lua`
Canonical hook registration and defaults.
- `lua/leetcode/runner/init.lua`
Execution path for test / submit flows and hook dispatch.
- `lua/leetcode/command/init.lua`
User-facing `:Leet` commands.
- `lua/leetcode-ui/`
Question, result, and side-panel rendering.
- `docs/adrs/`
Durable behavior decisions for this fork.

## Guardrails

- Keep `leetcode.nvim` as a UI/context bridge; do not move provider or model ownership into this repo.
- Prefer stable data from submission service over reconstructing session truth inside Lua.
- Keep hook payload shapes backward compatible unless the user explicitly asks for a contract change.
- Prefer hidden context for companion-side lifecycle metadata over visible user-message injection.

## D2 Diagram Style Preference

When adding or updating D2 diagrams, prefer the user's established high-level architecture style:

- Treat D2 as a system overview first, not an implementation-detail dump.
- Group nodes by runtime boundary before drawing flows, for example `Strict local`.
- Clearly separate entry points, runtime surfaces, external systems, and data planes.
- Prefer a left-to-right primary reading direction with straight main flows and minimal crossing lines.
- Optimize for ownership and data flow clarity, not source-file completeness.
- Use a small number of stable responsibility-oriented node labels rather than many file/module names.
- Keep edge labels short and protocol/action-oriented, such as `JSON over TCP`.
- Preserve generous whitespace and a clean overview feel; prefer one readable system map plus optional focused sub-diagrams.

## When To Update Docs

- Update ADRs when the companion bridge, session binding, or hook semantics change.
- Update `README.md` when user-facing setup or behavior changes.
- Update this file only when the navigation order or edit guardrails change.
Loading