fix(photon): bump spectrum-ts to ^1.18.0 and always install latest on
setup
This commit is contained in:
committed by
Teknium
parent
0337658904
commit
9fb83eaa2f
@@ -332,9 +332,13 @@ def _install_sidecar() -> int:
|
|||||||
file=sys.stderr,
|
file=sys.stderr,
|
||||||
)
|
)
|
||||||
return 1
|
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
|
proc = subprocess.run( # noqa: S603
|
||||||
[npm, "install"],
|
[npm, "install", "spectrum-ts@latest"],
|
||||||
cwd=str(_SIDECAR_DIR),
|
cwd=str(_SIDECAR_DIR),
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"name": "@hermes-agent/photon-sidecar",
|
"name": "@hermes-agent/photon-sidecar",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"spectrum-ts": "^1.17.1"
|
"spectrum-ts": "^1.18.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.17"
|
"node": ">=18.17"
|
||||||
|
|||||||
@@ -12,6 +12,6 @@
|
|||||||
"node": ">=18.17"
|
"node": ">=18.17"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"spectrum-ts": "^1.17.1"
|
"spectrum-ts": "^1.18.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user