robopark 3.3.4 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/robopark/elevenlabs-set.js +65 -0
- package/dist/robopark/elevenlabs-set.js.map +1 -0
- package/dist/robopark/serve.js +8 -1
- package/dist/robopark/serve.js.map +1 -1
- package/dist/robopark/vision-onboard.js +56 -0
- package/dist/robopark/vision-onboard.js.map +1 -1
- package/dist/robopark-cli.js +13 -0
- package/dist/robopark-cli.js.map +1 -1
- package/package.json +1 -1
- package/scheduler/main.py +9231 -9183
- package/scheduler/static/voice-join.html +5 -1
- package/ui/standalone/public/voice-join.html +5 -1
|
@@ -166,7 +166,11 @@
|
|
|
166
166
|
// A 4xx means the link itself is wrong and retrying cannot fix it. Anything
|
|
167
167
|
// else (5xx, signing timeout, network drop) is transient, and dead-ending
|
|
168
168
|
// here is what left a failed call with no reconnect until a manual re-join.
|
|
169
|
-
|
|
169
|
+
// 4xx: the link itself is wrong. 503: the scheduler is telling us this
|
|
170
|
+
// deployment is misconfigured (no ElevenLabs key, or a key the provider
|
|
171
|
+
// rejected) — retrying that forever just mints a dead session every 30s
|
|
172
|
+
// and never recovers. Everything else really is transient.
|
|
173
|
+
var status=Number(error&&error.status||0),permanent=(status>=400&&status<500)||status===503;
|
|
170
174
|
if(!permanent&&alwaysOn&&desired&&!ending){el('join').hidden=true;el('end').hidden=false;scheduleReconnect();return}
|
|
171
175
|
fail(details.message)})}
|
|
172
176
|
function start(){if(desired||conversation||connecting)return;if(mode==='production'&&!robot){fail('Select a registered production robot first.');return}alwaysOn=true;el('always-on').classList.add('on');el('always-on').setAttribute('aria-pressed','true');el('always-on').textContent='Always on: ON';if(mode==='test')ensureMicAudioContext();desired=true;retryAttempt=0;el('join').disabled=true;text('state','requesting microphone permission');stage('permission');var audio=inputDeviceId?{deviceId:{exact:inputDeviceId}}:true;navigator.mediaDevices.getUserMedia({audio:audio}).then(function(stream){stream.getTracks().forEach(function(track){track.stop()});return startLocalVideo()}).then(function(){connectAttempt('initial')}).catch(function(error){if(desired){text('state','microphone unavailable; retrying');scheduleReconnect()}else{fail(error&&error.message||String(error))}})}
|
|
@@ -165,7 +165,11 @@
|
|
|
165
165
|
// A 4xx means the link itself is wrong and retrying cannot fix it. Anything
|
|
166
166
|
// else (5xx, signing timeout, network drop) is transient, and dead-ending
|
|
167
167
|
// here is what left a failed call with no reconnect until a manual re-join.
|
|
168
|
-
|
|
168
|
+
// 4xx: the link itself is wrong. 503: the scheduler is telling us this
|
|
169
|
+
// deployment is misconfigured (no ElevenLabs key, or a key the provider
|
|
170
|
+
// rejected) — retrying that forever just mints a dead session every 30s
|
|
171
|
+
// and never recovers. Everything else really is transient.
|
|
172
|
+
var status=Number(error&&error.status||0),permanent=(status>=400&&status<500)||status===503;
|
|
169
173
|
if(!permanent&&alwaysOn&&desired&&!ending){el('join').hidden=true;el('end').hidden=false;scheduleReconnect();return}
|
|
170
174
|
fail(details.message)})}
|
|
171
175
|
function start(){if(desired||conversation||connecting)return;if(mode==='production'&&!robot){fail('Select a registered production robot first.');return}alwaysOn=true;el('always-on').classList.add('on');el('always-on').setAttribute('aria-pressed','true');el('always-on').textContent='Always on: ON';if(mode==='test')ensureMicAudioContext();desired=true;retryAttempt=0;el('join').disabled=true;text('state','requesting microphone permission');stage('permission');var audio=inputDeviceId?{deviceId:{exact:inputDeviceId}}:true;navigator.mediaDevices.getUserMedia({audio:audio}).then(function(stream){stream.getTracks().forEach(function(track){track.stop()});return startLocalVideo()}).then(function(){connectAttempt('initial')}).catch(function(error){if(desired){text('state','microphone unavailable; retrying');scheduleReconnect()}else{fail(error&&error.message||String(error))}})}
|