Files
autocomplete-model/shared
HarvmasterandClaude Opus 5.5 87d3c3c3bf
ci / build (push) Canceled after 0s
Extension 0.6.0: next-edit, token healing, TS errors context, cursor-move, prewarm
- shared/nextedit.ts: next-edit prompt format (region rewrite or NO_EDIT, Qwen spare special tokens)
- shared/diagnostics.ts: TS errors near the cursor as context; symbols format 2 adds namespace imports
- shared/prompt.ts: token healing (cut the half-typed word, force it via grammar), errors header section
- daemon: model profiles carry contextFormat/errors/members/nextEdit; /v1/next-edit with edit-burst
  tracking; /v1/prewarm; /v1/debug/last; token healing on by default
- extension: next-edit decorations (Tab apply / Esc dismiss), suggest on cursor move, prewarm on focus,
  Show Last Prompt, update check against releases, diagnostics in the edit recorder
- models/README: training-data attribution; release script profiles for stage-d/stage-e
- .gitea/workflows/ci.yml: build + test, publish release on vscode-v* tags (needs a runner + RELEASE_TOKEN)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J39imRDT8L7xYbWzsVWd8A
2026-10-03 17:21:38 +00:00
..

shared

Code used both by the training pipeline (to build training/eval data) and by the daemon at inference time. Keeping one copy is what guarantees the model sees exactly the prompt format it was trained on.

  • prompt.ts: FIM prompt layout (spm/psm), the repo-level header, KV-cache-friendly prefix truncation, and post-processing (suffix-overlap trimming, single-line detection). No dependencies.
  • symbols.ts: "symbols available at the cursor" context from the TypeScript language service (imported signatures, repo-local types, optional member completions) and the missing-this. detection. Pinned to typescript@5.9.3 and @vue/compiler-sfc@3.5.43: the output format is part of the model's training distribution, so upgrade only together with re-checking parity.
  • symbol-lang.ts: language-id mapping (dependency-free, so the daemon's main bundle stays small).