Skip to content

Major codebase cleanup and refactoring#9

Merged
MelbourneDeveloper merged 31 commits intomainfrom
cleanup
Mar 26, 2026
Merged

Major codebase cleanup and refactoring#9
MelbourneDeveloper merged 31 commits intomainfrom
cleanup

Conversation

@MelbourneDeveloper
Copy link
Copy Markdown
Collaborator

TLDR;

Large-scale cleanup: refactored providers, discovery modules, and tests for consistency, strict TypeScript compliance, and better code organization.

Details

  • Refactored core providers (CommandTreeProvider, QuickTasksProvider, TagConfig) — reduced complexity, improved functional style
  • Reorganized semantic/db layer — moved db.ts from semantic/ to db/, added lifecycle.ts, removed unused embedding modules (embedder.ts, embeddingPipeline.ts, similarity.ts, store.ts, types.ts, index.ts)
  • Added new discovery modules — C# script (csharp-script.ts), F# script (fsharp-script.ts) discovery
  • Extracted reusable codepowershellParser.ts, nodeFactory.ts, tagSync.ts, watchers.ts
  • Overhauled tests — replaced fake/indirect tests with proper E2E tests, added unit tests (discovery.unit.test.ts, modelSelection.unit.test.ts, taskRunner.unit.test.ts, treehierarchy.unit.test.ts), removed Copilot-dependent and embedding tests
  • CI improvements — added format check, spell check, coverage threshold (90%), excluded Copilot-dependent tests
  • Added docs — split SPEC.md into focused doc files, added Rust LSP plan/spec
  • Added Claude skillsci-prep, fix-bug for agent workflows
  • ESLint/Prettier/tsconfig tightened — stricter rules, consistent formatting
  • Website — minor content and config updates

How do the tests prove the change works

  • 65 unit tests pass covering tree hierarchy, model selection, task runner params, PowerShell parsing, and discovery logic
  • E2E tests cover all major user flows: discovery, execution, filtering, quick tasks, tagging, tree view, configuration, markdown, and AI summaries
  • CI enforces 90% coverage threshold on lines, functions, branches, and statements

MelbourneDeveloper and others added 30 commits February 9, 2026 20:16
docs/RUST-LSP-SPEC.md: comprehensive technical specification for rewriting
CommandTree's 19 TypeScript parsers as a Rust LSP server using tree-sitter
grammars, including custom JSON-RPC protocol, binary distribution strategy,
VS Code client integration, and Zed/Neovim extension designs.

docs/RUST-LSP-PLAN.md: phased implementation plan with checkboxes covering
all 8 phases from Rust scaffold through Neovim plugin, plus a detailed VSIX
bundling and CI/CD deployment checklist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tags AI/Copilot tests with @exclude-ci and updates CI workflow to skip
them, preventing CI failures in environments without Copilot auth.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
docs/RUST-LSP-SPEC.md: comprehensive technical specification for rewriting
CommandTree's 19 TypeScript parsers as a Rust LSP server using tree-sitter
grammars, including custom JSON-RPC protocol, binary distribution strategy,
VS Code client integration, and Zed/Neovim extension designs.

docs/RUST-LSP-PLAN.md: phased implementation plan with checkboxes covering
all 8 phases from Rust scaffold through Neovim plugin, plus a detailed VSIX
bundling and CI/CD deployment checklist.
Tags AI/Copilot tests with @exclude-ci and updates CI workflow to skip
them, preventing CI failures in environments without Copilot auth.
@MelbourneDeveloper MelbourneDeveloper merged commit 9968382 into main Mar 26, 2026
2 checks passed
@MelbourneDeveloper MelbourneDeveloper deleted the cleanup branch March 26, 2026 03:47
MelbourneDeveloper added a commit that referenced this pull request Mar 26, 2026
# TLDR;

Large-scale cleanup: refactored providers, discovery modules, and tests
for consistency, strict TypeScript compliance, and better code
organization.

# Details

- **Refactored core providers** (`CommandTreeProvider`,
`QuickTasksProvider`, `TagConfig`) — reduced complexity, improved
functional style
- **Reorganized semantic/db layer** — moved `db.ts` from `semantic/` to
`db/`, added `lifecycle.ts`, removed unused embedding modules
(`embedder.ts`, `embeddingPipeline.ts`, `similarity.ts`, `store.ts`,
`types.ts`, `index.ts`)
- **Added new discovery modules** — C# script (`csharp-script.ts`), F#
script (`fsharp-script.ts`) discovery
- **Extracted reusable code** — `powershellParser.ts`, `nodeFactory.ts`,
`tagSync.ts`, `watchers.ts`
- **Overhauled tests** — replaced fake/indirect tests with proper E2E
tests, added unit tests (`discovery.unit.test.ts`,
`modelSelection.unit.test.ts`, `taskRunner.unit.test.ts`,
`treehierarchy.unit.test.ts`), removed Copilot-dependent and embedding
tests
- **CI improvements** — added format check, spell check, coverage
threshold (90%), excluded Copilot-dependent tests
- **Added docs** — split SPEC.md into focused doc files, added Rust LSP
plan/spec
- **Added Claude skills** — `ci-prep`, `fix-bug` for agent workflows
- **ESLint/Prettier/tsconfig** tightened — stricter rules, consistent
formatting
- **Website** — minor content and config updates

# How do the tests prove the change works

- 65 unit tests pass covering tree hierarchy, model selection, task
runner params, PowerShell parsing, and discovery logic
- E2E tests cover all major user flows: discovery, execution, filtering,
quick tasks, tagging, tree view, configuration, markdown, and AI
summaries
- CI enforces 90% coverage threshold on lines, functions, branches, and
statements

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant