{"data":{"slug":"github-xberg-io-xberg-ai-rulez-skills-xberg-release-f9583edd0577","title":"Sync Xberg Version Across Packages","summary":"Automatically syncs the Xberg version across all package manifests and integrations to ensure version consistency before a release.","url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-release-f9583edd0577","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-release-f9583edd0577","markdown_url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-release-f9583edd0577.md","download_url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-xberg-release-f9583edd0577\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The root `Cargo.toml` `[workspace.package] version` is the authoritative source. Use `mise run version:sync` to sync versions across package manifests and integrations, and avoid manual edits to version fields.","instructions":"---\ntype: Playbook\ntitle: Xberg Release\ndescription: \"Prepare Xberg releases: version sync, generated bindings, chart and CI gates.\"\nx-ai-rulez:\n  kind: skill\n  id: xberg-release\n  metadata:\n    name: xberg-release\n---\n\n# Xberg release\n\nRepo specifics for the shared `release-workflow` skill: how the version propagates, and the readiness gate before a\npush or release.\n\n## Versioning\n\n### Single source of truth\n\nThe root `Cargo.toml` `[workspace.package] version` is the one authoritative version (including any\n`-rc.N` pre-release suffix). Everything else is derived from it \u2014 never hand-edit\na version in a package manifest.\n\n### `mise run version:sync` runs three steps\n\n`mise run version:sync` runs, in order\n(`mise.toml`):\n\n1. `alef sync-versions` \u2014 the **alef-managed binding manifests** (their own\n   version = core version). Targets are listed in `alef.toml` `[workspace.sync] extra_paths`\n   (packages\/python, packages\/ruby, crates\/xberg-node, packages\/go, cli-proxy, \u2026).\n2. `python3 scripts\/sync_integration_versions.py` \u2014 the **integrations** under\n   `integrations\/`, the Helm chart, and `plugin\/.ai-rulez\/config.plugins.toml` `[plugin].version`.\n   These are NOT alef-managed, so alef never touches them.\n3. `mise run plugin:generate` \u2014 `ai-rulez generate --plugin` (bundles under `plugin\/`) plus\n   `scripts\/sync_public_skills.py` (root `skills\/`). CI Lint fails on drift in either\n   (`mise run plugin:verify`).\n\nBump\/set helpers chain both automatically:\n`mise run version:bump:major|minor|patch`.\n`mise run version:check` prints the Cargo version and runs `sync_integration_versions.py --check`,\nfailing on integration drift. It does not dry-run `alef sync-versions`.\n\n### Integrations are lockstep with core\n\nThe integration packages under `integrations\/` are versioned and **published together\nwith core** across four target families:\n\n- **Python \u2192 PyPI**: langchain, llama-index (readers + node-parser), crewai, txtai, surrealdb.\n- **Java \u2192 Maven Central**: spring-ai (`io.xberg:spring-ai-xberg`).\n- **npm \u2192 npm**: n8n-nodes-xberg, langchain-xberg, llamaindex-xberg (`@xberg-io\/*`).\n- **Helm \u2192 chart**: `charts\/xberg\/Chart.yaml` (`version`, `appVersion`, the ArtifactHub image\n  tag and prerelease flag) plus `charts\/xberg\/README.md`'s `--version`.\n\n`scripts\/sync_integration_versions.py` sets, for each manifest:\n\n- the package's own `version` \u2014 PEP 440 form for pyproject (`1.0.0-rc.32` \u2192 `1.0.0rc32`),\n  native form for the Maven pom and npm `package.json` (`1.0.0-rc.32`, also valid semver);\n- the `xberg` dependency pin, so an integration always requires the core it ships with:\n  - pyproject: a **floor** `xberg>=<core>` (PEP 440 form). Naming the rc is deliberate \u2014\n    a bare `xberg>=1.0.0` excludes all `1.0.0rcN` pre-releases per PEP 440.\n  - pom: `<xberg.version>` (native form).\n  - npm `package.json`: an **exact** `@xberg-io\/xberg` pin (native\/semver form), matching\n    the package's own version.\n\nTo add a new integration: add its manifest to `VERSION_TARGETS` (own version) and, if it\ndepends on xberg, `XBERG_DEP_MANIFESTS` in `scripts\/sync_integration_versions.py`\n(npm `package.json` manifests are collected in `NPM_MANIFESTS`, which feeds both lists).\nThe llama-index dev aggregator (`integrations\/python\/llama-index\/pyproject.toml`, version\n`0.0.0`, unpublished) is dep-only \u2014 not a version target.\n\n### Do\n\n- Bump via `mise run version:bump:*`, then commit the synced manifests\n  together with the Cargo.toml change (atomic).\n\n### Don't\n\n- Don't hand-edit a package\/manifest version or an integration's `xberg` pin \u2014 run the sync.\n- Don't add integration manifests to `alef.toml` `[workspace.sync]` \u2014 alef would clobber\n  their independent-but-derived layout; the dedicated script owns them.\n\n## Readiness\n\nA release-ready commit is one for which CI, the Publish Release dry run, and Benchmarks complete successfully on the\nsame pushed SHA. A successful older run does not validate newer local commits.\n\n### Audit\n\n1. Check actual workflow failures; distinguish failures from cancellations, skipped jobs, and runs superseded by a\n   newer SHA.\n2. Map each failed job to a verified local fix or an explicit unresolved blocker. Do not infer that one similarly\n   named fix covers a different job.\n3. Verify generated Alef output is clean and reproducible with the version pinned in `alef.toml`; generated freshness\n   failures remain unresolved until regeneration converges.\n4. Keep the Unreleased changelog user-facing and synchronized with docs copies. Do not add CI, test, generator,\n   dependency, or internal implementation notes unless users are affected.\n5. Run targeted local checks for changed behavior plus the repository's formatting and linting tasks. Do not\n   substitute a broad passing suite for a failed job's exact configuration.\n\n### Publish dry-run contracts\n\n- Helm `appVersion`, the container tag, and every `artifacthub.io\/images` entry must describe an image that exists\n  in GHCR. A chart package that names a missing compatibility tag causes Artifact Hub scan failures even when the\n  chart itself published successfully.\n- Linux native-library verification must reject unreadable binaries and GLIBC imports above the supported floor.\n  A readable native library with no `GLIBC_*` imports is valid; it is not evidence that the scan failed.\n- Windows artifact verification must evaluate each DLL independently. Reset per-library status before inspecting\n  the next artifact so one result cannot leak into another.\n- Elixir musl smoke tests need the NIF and the directory containing its bundled native libraries. Passing only the\n  NIF path is insufficient when dependent shared libraries are staged beside it.\n- Windows GNU Ruby builds must use the ORT-free feature set because the GNU ABI has no compatible ORT prebuilt.\n- Scoop (shared `scoop-distribution` skill): `xberg.exe` imports `onnxruntime.dll`, so the publish job must vendor\n  the DLL closure into the zip; the shim resolves DLLs from the app directory and no `depends` entry is needed.\n  Tesseract is looked up on `PATH` at runtime and belongs in the manifest's `notes`, not `depends`.\n\n### Push and dispatch\n\n- Push one coherent state. Do not repeatedly push while intentional CI is still running merely to get newer diagnostics.\n- After the push, dispatch CI, Publish Release with dry-run inputs, and Benchmarks against that pushed SHA.\n- Retry only after identifying and addressing the cause. Cancellation alone is not a defect; a repeated actual\n  failure is.\n- Close addressed issues only after the fixing commit is reachable remotely, and state the intended release when\n  requested.\n","use_cases":["Ensure all package versions are aligned with the core Xberg version before a release.","Maintain version consistency across multiple package formats (Python, Java, npm, Helm)."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/xberg-io\/xberg\/blob\/ffbf7971796a126fc52f6bb8fb40418772071f61\/.ai-rulez\/skills\/xberg-release\/SKILL.md","source_commit":"ffbf7971796a126fc52f6bb8fb40418772071f61","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-15T13:51:16.000000Z","updated_at":"2026-11-16T05:16:54.000000Z","seo_title":"Sync Xberg Version Across Packages","seo_description":"Automatically syncs Xberg version across package manifests and integrations for consistent release.","seo_keywords":["sync xberg version","version sync across packages","xberg release workflow","package version alignment"]}}