fix(photon): bump spectrum-ts to ^1.18.0 and always install latest on

setup
This commit is contained in:
underthestars-zhy 2026-06-08 21:12:59 -07:00 committed by Teknium
parent 0337658904
commit 9fb83eaa2f
3 changed files with 8 additions and 4 deletions

View file

@ -332,9 +332,13 @@ def _install_sidecar() -> int:
file=sys.stderr,
)
return 1
print(f" $ cd {_SIDECAR_DIR} && {npm} install")
# Always pull the newest published spectrum-ts so every setup runs against
# the latest SDK. `spectrum-ts@latest` bumps package.json + package-lock.json
# to the current release before installing — a plain `npm install` would
# stay pinned to whatever the committed lockfile already resolved.
print(f" $ cd {_SIDECAR_DIR} && {npm} install spectrum-ts@latest")
proc = subprocess.run( # noqa: S603
[npm, "install"],
[npm, "install", "spectrum-ts@latest"],
cwd=str(_SIDECAR_DIR),
check=False,
)

View file

@ -8,7 +8,7 @@
"name": "@hermes-agent/photon-sidecar",
"version": "0.2.0",
"dependencies": {
"spectrum-ts": "^1.17.1"
"spectrum-ts": "^1.18.0"
},
"engines": {
"node": ">=18.17"

View file

@ -12,6 +12,6 @@
"node": ">=18.17"
},
"dependencies": {
"spectrum-ts": "^1.17.1"
"spectrum-ts": "^1.18.0"
}
}