Skip to content

Conversation

wuzhiguocarter
Copy link

@wuzhiguocarter wuzhiguocarter commented Oct 9, 2025

Summary

This PR implements a centralized version management system to eliminate hardcoded version hashes across the OpenAI Apps SDK examples codebase.

Changes

  • Centralized version management: Created version modules in TypeScript (src/version.ts), Node.js (pizzaz_server_node/src/version.ts), and Python (pizzaz_server_python/version.py, solar-system_server_python/version.py)
  • Eliminated hardcoded hashes: Replaced all hardcoded -0038 version references with dynamic hash generation based on package.json version
  • Unified build process: Updated build-all.mts to use the centralized version hash function
  • Improved documentation: Updated README with clearer Python server execution instructions
  • Development support: Added support for local development mode with relative asset paths

Benefits

  • Single source of truth: Version hashes are now generated from package.json version
  • Maintainability: Easy to update version without searching for hardcoded references
  • Consistency: All servers (Node.js and Python) use the same version logic
  • Development flexibility: Supports both production and local development modes

    - Add centralized version management modules for TypeScript and Python
    - Replace hardcoded version hashes with dynamic SHA256 generation
    - Update build system to use centralized version hash
    - Fix Python import issues with fallback path handling
    - Update README with correct Python server execution instructions
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