Skip to content

Add get_version for CodeAlive Skills v3#6

Merged
rodion-m merged 1 commit into
mainfrom
codex/skills-v3-version
Jul 11, 2026
Merged

Add get_version for CodeAlive Skills v3#6
rodion-m merged 1 commit into
mainfrom
codex/skills-v3-version

Conversation

@rodion-m

Copy link
Copy Markdown
Member

Summary

  • add offline get_version.py method backed by a packaged VERSION file
  • return stable JSON for installed-version discovery
  • document the method and enforce parity with the plugin manifest

Verification

  • pytest tests -v (10 passed)
  • python skills/codealive-context-engine/scripts/get_version.py

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new get_version.py script to retrieve and output the installed CodeAlive skill version as JSON without requiring authentication or network requests. It also adds a VERSION file, updates the documentation, and includes corresponding unit tests. The review feedback suggests adding error handling to get_version.py to gracefully handle cases where the VERSION file is missing or unreadable by catching OSError and returning a fallback value of 'unknown'.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +11 to +13
def get_version() -> str:
"""Return the current installed skill version."""
return VERSION_FILE.read_text(encoding="utf-8").strip()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

If the VERSION file is missing or unreadable (e.g., due to permission issues or incomplete installation), read_text() will raise an unhandled exception and crash the script. Since this script is a diagnostic utility, it should handle OSError gracefully and return a fallback value like "unknown".

Suggested change
def get_version() -> str:
"""Return the current installed skill version."""
return VERSION_FILE.read_text(encoding="utf-8").strip()
def get_version() -> str:
"""Return the current installed skill version."""
try:
return VERSION_FILE.read_text(encoding="utf-8").strip()
except OSError:
return "unknown"

@rodion-m rodion-m merged commit 57c211b into main Jul 11, 2026
4 checks passed
@rodion-m rodion-m deleted the codex/skills-v3-version branch July 11, 2026 04:46
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