Skip to content

fix: i18n index version 1, experimental ComponentGraph, public API comment (#624) - #629

Merged
JuroOravec merged 2 commits into
mainfrom
chore/1.0-prep-624
Nov 14, 2026
Merged

JuroOravec merged 2 commits into
mainfrom
chore/1.0-prep-624

Conversation

@JuroOravec

@JuroOravec JuroOravec commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Ships in 0.9.0.

Three small items from the 1.0.0 plan in #624 (decisions 2, 8 and 9).

What changes

  1. The i18n index goes back to version 1. citry.ext.i18n writes 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" in CLAUDE.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".
  2. ComponentGraph is marked experimental. The docstrings of ComponentGraph, its five helper classes and Citry.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.
  3. The comment in citry/__init__.py now says the public API is citry.__all__ plus the __all__ of each citry.ext.<name> package and each citry.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.md

Nothing 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 Unreleased section of each owning changelog (CHANGELOG.md and packages/py/citry_lsp/CHANGELOG.md), so they ship in 0.9.0. The rebase onto main had one conflict, in CHANGELOG.md: the 0.8.0 release had moved the entries' old home into the v0.8.0 section, so the two entries moved to the new Unreleased section.

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_VERSION or scripts/verify_citry_lsp_distribution.py.

  • Raise citry-lsp's Citry floor. Starting with this change, citry-lsp reads only version 1, but MINIMUM_CITRY_VERSION still 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: the citry>= requirement, MINIMUM_CITRY_VERSION, and scripts/verify_citry_lsp_distribution.py. It should also bump citry.lspVersion and the list of supported pairs in the VS Code README.
  • Ship it in 0.9.0, not a 0.8.x patch. It breaks the pairing with citry-lsp 0.3.0.

Checks

Run on the rebased branch (base d5ecd6847), against the worktree sources:

  • citry tests test_component_graph.py, test_check.py, test_i18n.py, test_i18n_cache.py: 280 passed.
  • citry-lsp tests, with the shared venv's ty 0.0.94: 970 passed and 11 failed, leaving out test_semantic.py and test_type_analysis.py. The failures need ty 0.0.97, which main pins since build(deps): apply the open Dependabot updates for ty, maturin, vscode-languageclient and the JS tools #621.
  • citry-lsp test_project.py, test_type_check.py, test_server.py, test_type_analysis.py and test_semantic.py, in a scratch venv with ty 0.0.97: 317 passed, 22 skipped, 1 failed. The one failure, test_runtime_ty_version_matches_every_declared_ty_pin, reads the ty 0.0.94 package metadata that the scratch venv borrows from the shared venv. It is not related to this change.
  • ruff check, ruff format, mypy, and mypy --platform linux on citry and citry_lsp: clean.
  • python -m docs_site build-check --strict: 0 errors, 0 warnings. Its info lines are heading lengths on other pages.
  • git range-diff of the old and the rebased commit: only the CHANGELOG.md hunk differs.
  • Before the rebase, an independent agent reviewed the code and the prose. Its findings are folded in: the public-API wording, the helper classes, the direction-aware message, the README and troubleshooting, and the changelog wording. The rebase added no new wording; it moved the two existing changelog entries.

🤖 Generated with Claude Code

- 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
JuroOravec marked this pull request as ready for review November 14, 2026 13:55
@JuroOravec
JuroOravec merged commit 16f25ac into main Nov 14, 2026
0 of 6 checks passed
@JuroOravec
JuroOravec deleted the chore/1.0-prep-624 branch November 14, 2026 14:09
@JuroOravec JuroOravec mentioned this pull request Nov 14, 2026
10 of 48 tasks
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