Repository navigation
fix: i18n index version 1, experimental ComponentGraph, public API comment (#624) - #629
Merged
Merged
Conversation
- Write and read i18n index version 1 in citry and citry-lsp, following the rule that pre-1.0 contract versions stay at 1. When the versions disagree, the editor status names both packages and which to upgrade. - Mark ComponentGraph, its helper classes and Citry.inspect_component_graph() experimental in their docstrings, on the component discovery page, on the reference page and in the design doc. - State the public API in citry/__init__.py as citry.__all__ plus the __all__ of each citry.ext.<name> package and citry.contrib.<name> module. - Correct the render-cache version that docs/design/i18n.md states for configured i18n (the code uses 1). Co-Authored-By: Claude Opus 5.5 <[email protected]>
JuroOravec
force-pushed
the
chore/1.0-prep-624
branch
from
November 14, 2026 13:55
c36c25a to
d6db7ff
Compare
JuroOravec
marked this pull request as ready for review
November 14, 2026 13:55
10 of 48 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ships in 0.9.0.
Three small items from the 1.0.0 plan in #624 (decisions 2, 8 and 9).
What changes
citry.ext.i18nwrites the editor's i18n data with"version": 1, and citry-lsp reads version 1. Both packages are below 1.0.0, so the contract version stays at 1 (see "Pre-1.0 contracts stay at version 1" inCLAUDE.md). No released package ever wrote a version 1 index with another shape. When the two packages disagree, the editor status now names both package versions and which one to upgrade. Before this change it said only "App worker protocol mismatch".ComponentGraphis marked experimental. The docstrings ofComponentGraph, its five helper classes andCitry.inspect_component_graph()each get an "Experimental" section, and the component discovery page gets a warning block. The reference page intro and the design doc status say the same. The export stays.citry/__init__.pynow says the public API iscitry.__all__plus the__all__of eachcitry.ext.<name>package and eachcitry.contrib.<name>module.It also fixes a stale line in
docs/design/i18n.md: the render-cache version for configured i18n is 1 in the code.Files touched for the version change
packages/py/citry/citry/ext/i18n/extension.py(writes the index)packages/py/citry_lsp/citry_lsp/project.py(reads it, and reports a mismatch)packages/py/citry_lsp/tests/test_project.py(mismatch test in both directions; the existing end-to-end i18n test covers version 1)packages/py/citry_lsp/README.md,docs_site/content/ide/vscode.md("Syntax only" troubleshooting)CHANGELOG.md,packages/py/citry_lsp/CHANGELOG.mdNothing else reads the index. The VS Code extension and the browser runtime don't read it, and no fixture hard-codes it.
Changelog
Both entries sit in the top
Unreleasedsection of each owning changelog (CHANGELOG.mdandpackages/py/citry_lsp/CHANGELOG.md), so they ship in 0.9.0. The rebase ontomainhad one conflict, inCHANGELOG.md: the 0.8.0 release had moved the entries' old home into thev0.8.0section, so the two entries moved to the newUnreleasedsection.Left for the 0.9.0 release pull request
This pull request does not change citry-lsp's Citry floor. It touches none of
pyproject.toml,MINIMUM_CITRY_VERSIONorscripts/verify_citry_lsp_distribution.py.MINIMUM_CITRY_VERSIONstill accepts citry 0.7.0 and 0.8.0, which write 2. That pairing fails with the new status message rather than silently. The floor can't move before the workspace's own citry version does (packages/py/citry_lsp/AGENTS.md, "Raising the required Citry version"). So the release that ships this change must raise three values together: thecitry>=requirement,MINIMUM_CITRY_VERSION, andscripts/verify_citry_lsp_distribution.py. It should also bumpcitry.lspVersionand the list of supported pairs in the VS Code README.Checks
Run on the rebased branch (base
d5ecd6847), against the worktree sources:test_component_graph.py,test_check.py,test_i18n.py,test_i18n_cache.py: 280 passed.ty0.0.94: 970 passed and 11 failed, leaving outtest_semantic.pyandtest_type_analysis.py. The failures needty0.0.97, whichmainpins since build(deps): apply the open Dependabot updates for ty, maturin, vscode-languageclient and the JS tools #621.test_project.py,test_type_check.py,test_server.py,test_type_analysis.pyandtest_semantic.py, in a scratch venv withty0.0.97: 317 passed, 22 skipped, 1 failed. The one failure,test_runtime_ty_version_matches_every_declared_ty_pin, reads thety0.0.94 package metadata that the scratch venv borrows from the shared venv. It is not related to this change.mypy --platform linuxoncitryandcitry_lsp: clean.python -m docs_site build-check --strict: 0 errors, 0 warnings. Its info lines are heading lengths on other pages.git range-diffof the old and the rebased commit: only theCHANGELOG.mdhunk differs.🤖 Generated with Claude Code