Commit 8d4ed32
authored
feat(semble): upgrade to v0.4.1, flatten result parsing, localize status messages (#734)
* feat(semble): upgrade to v0.4.1, flatten result parsing, localize status messages
- Bump SEMBLE_VERSION v0.3.1 -> v0.4.1 and refresh SEMBLE_SHA256 checksums
- Adapt to semble v0.4.0+ flat JSON output (no chunk wrapper); remove
SembleChunk and flatten SembleSearchResult (file_path, start_line,
end_line, score, content)
- Update provider.ts and semble-cli.ts parsing accordingly
- Version-prefix the local archive cache path so a stale archive from a
previous semble version is never reused or verified against the new
checksum; remove partial archive before re-downloading
- Add cleanupStaleArchives to best-effort sweep orphaned archives after
a version upgrade
- Localize SembleProvider status strings via i18n embeddings:semble.*
keys across all 18 locales
- Update provider/cli/downloader unit tests for the new shape and
version-prefixed cache path
Closes #733
* fix(semble): clean legacy unversioned archives and cover stale-archive sweep
CodeRabbit PR #734 follow-ups:
- cleanupStaleArchives now also matches the exact unversioned archive name
(pre-v0.4.0 cache layout) in addition to the version-prefixed suffix, so a
v0.3.1 -> v0.4.1 upgrade also clears the legacy file. The current archive
path is still preserved.
- semble-downloader.spec: the version-upgrade test now simulates a prior-version
archive (v0.4.0-*) and a legacy unversioned archive in the cache, and asserts
both are swept during the upgrade flow.
- Add coverage for the cleanupStaleArchives catch block (readdir rejects) and
for the current-archive/unrelated-file preservation behavior.
- provider.spec: add a test that rejects search with a non-Error value to cover
the 'error instanceof Error' false branch of the telemetry payload (stack:
undefined), raising provider.ts patch coverage.
* feat(semble): surface active version in the CodeIndexPopover status message
Export SEMBLE_VERSION from semble-downloader and re-export from the semble
barrel. SembleProvider now interpolates the active version into the
'embeddings:semble.ready' system-state message (set in both _doInitialize and
startIndexing), so the CodeIndexPopover status line shows e.g.
'Indexed - Semble v0.4.1 is ready. Searches index on-the-fly.'
- semble-downloader.ts: export SEMBLE_VERSION.
- index.ts: re-export SEMBLE_VERSION.
- provider.ts: pass { version: SEMBLE_VERSION } to t('embeddings:semble.ready').
- i18n: update semble.ready across all 18 locales to include {{version}}.
- provider.spec.ts: mock SEMBLE_VERSION, update the ready-message mock to
interpolate version, and add a test asserting the version appears in the
ready status message.
* fix review comments1 parent 29c2d2e commit 8d4ed32
26 files changed
Lines changed: 629 additions & 253 deletions
File tree
- src
- i18n/locales
- ca
- de
- en
- es
- fr
- hi
- id
- it
- ja
- ko
- nl
- pl
- pt-BR
- ru
- tr
- vi
- zh-CN
- zh-TW
- services/code-index/semble
- __tests__
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments