fix(build): accept scoped package name @valknarthing/llmx in build script

The build_npm_package.py script now accepts '@valknarthing/llmx' as a valid
--package argument and normalizes it to 'llmx' internally for processing.

This allows the workflow to use the full scoped package name for clarity
while maintaining backward compatibility with the 'llmx' identifier.
This commit is contained in:
Sebastian Krüger
2025-11-13 07:42:12 +01:00
parent 3821a18ec1
commit 8c04526619

View File

@@ -31,9 +31,9 @@ def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Build or stage the LLMX CLI npm package.")
parser.add_argument(
"--package",
choices=("llmx", "llmx-responses-api-proxy", "llmx-sdk"),
choices=("llmx", "llmx-responses-api-proxy", "llmx-sdk", "@valknarthing/llmx"),
default="llmx",
help="Which npm package to stage (default: codex).",
help="Which npm package to stage (default: llmx).",
)
parser.add_argument(
"--version",
@@ -76,6 +76,9 @@ def main() -> int:
args = parse_args()
package = args.package
# Normalize scoped package name to internal identifier
if package == "@valknarthing/llmx":
package = "llmx"
version = args.version
release_version = args.release_version
if release_version: