The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(human): update voice control stub to LiveVoiceControls
Steven Enamakel60bd900675f1
diff --git a/app/src/features/human/HumanPage.realtimeMode.test.tsx b/app/src/features/human/HumanPage.realtimeMode.test.tsxindex 4a7d7389ea..ba6730d7b4 100644--- a/app/src/features/human/HumanPage.realtimeMode.test.tsx+++ b/app/src/features/human/HumanPage.realtimeMode.test.tsx@@ -4,9 +4,8 @@* one the classic push-to-talk mic used to own — and which of the two renders is* decided by two build flags. This pins the wiring from those flags through to* the props HumanPage hands Conversations; the controls themselves and the- * precedence rule are covered separately (RealtimeVoiceControls.test.tsx,- * voiceEntry.test.ts). RealtimeVoiceControls is stubbed so the ElevenLabs SDK- * never loads.+ * precedence rule are covered separately (LiveVoiceControls.test.tsx,+ * voiceEntry.test.ts). LiveVoiceControls is stubbed so no socket or mic opens.*/import { configureStore } from '@reduxjs/toolkit';import { render, screen } from '@testing-library/react';@@ -36,8 +35,8 @@ vi.mock('../../utils/config', async importOriginal => {};});-vi.mock('./RealtimeVoiceControls', () => ({- default: () => <div data-testid="realtime-voice-controls-stub" />,+vi.mock('./LiveVoiceControls', () => ({+ default: () => <div data-testid="live-voice-controls-stub" />,}));// Render the slot props so the test observes what the card would actually show,@@ -96,7 +95,7 @@ describe('HumanPage — voice entry point', () => {it('shows the realtime control in place of the mic composer by default', async () => {await renderPage();- expect(screen.getByTestId('realtime-voice-controls-stub')).toBeInTheDocument();+ expect(screen.getByTestId('live-voice-controls-stub')).toBeInTheDocument();expect(screen.queryByTestId('mic-composer-stub')).not.toBeInTheDocument();});@@ -109,7 +108,7 @@ describe('HumanPage — voice entry point', () => {it('shows a mascot-only stage with no voice control when realtime is off', async () => {flags.realtimeEnabled = false;await renderPage();- expect(screen.queryByTestId('realtime-voice-controls-stub')).not.toBeInTheDocument();+ expect(screen.queryByTestId('live-voice-controls-stub')).not.toBeInTheDocument();expect(screen.queryByTestId('mic-composer-stub')).not.toBeInTheDocument();});@@ -119,7 +118,7 @@ describe('HumanPage — voice entry point', () => {it('still shows a single realtime control when the show-both flag is on', async () => {flags.showBoth = true;await renderPage();- expect(screen.getAllByTestId('realtime-voice-controls-stub')).toHaveLength(1);+ expect(screen.getAllByTestId('live-voice-controls-stub')).toHaveLength(1);expect(screen.queryByTestId('mic-composer-stub')).not.toBeInTheDocument();});@@ -131,6 +130,6 @@ describe('HumanPage — voice entry point', () => {])('renders the realtime control exactly once in %s mode', async (_label, next) => {Object.assign(flags, next);await renderPage();- expect(screen.getAllByTestId('realtime-voice-controls-stub')).toHaveLength(1);+ expect(screen.getAllByTestId('live-voice-controls-stub')).toHaveLength(1);});});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 68d8bef325..fcd94ee15d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -50,9 +50,6 @@ importers:'@base-ui/react':specifier: ^1.7.0- '@elevenlabs/react':- specifier: ^1.12.0- version: 1.12.0(@types/[email protected])([email protected])'@noble/ciphers':specifier: ^1.2.1version: 1.3.0@@ -571,9 +568,6 @@ packages:resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==}hasBin: true- '@bufbuild/[email protected]':- resolution: {integrity: sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ==}-'@csstools/[email protected]':resolution: {integrity: sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q==}engines: {node: '>=20.19.0'}@@ -613,17 +607,6 @@ packages:'@dimforge/[email protected]':resolution: {integrity: sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==}- '@elevenlabs/[email protected]':- resolution: {integrity: sha512-TcFF3KlfuI/ol1yrl6OXfFopCJ1+B8EHtEmx1k4XTNduqnucwTM5u61AtCGBskWUVxdCaYzNXWysEqMvEhXIgQ==}-- '@elevenlabs/[email protected]':- resolution: {integrity: sha512-Cp/Mzla6IWnPH5VjWUSyjTT2VW9It26Cwpn6dJ5PXcZ+6uddh5qVLuI+S6sE7oOMd4kLC+HC4MRd6FZ8VQHeOg==}- peerDependencies:- react: '>=16.8.0'-- '@elevenlabs/[email protected]':- resolution: {integrity: sha512-CjaWT0Q4CWJPFbYrTSxzkW2NwUb9Z88m1hWL+7R07YZSp444OGl70/u1U/7fS3gjkeG/RgadzipDrhXYTZ5SAw==}-'@emnapi/[email protected]':resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==}@@ -1292,12 +1275,6 @@ packages:typescript:optional: true- '@livekit/[email protected]':- resolution: {integrity: sha512-EsshAucklmpuUAfkABPxJNhzj9v2sG7JuzFDL4ML1oJQSV14sqrpTYnsaOudMAw9yOaW53NU3QQTlUQoRs4czw==}-- '@livekit/[email protected]':- resolution: {integrity: sha512-0jeCwoMJKcwsZICg5S6RZM4xhJoF78qMvQELjACJQn6/VB+jmiySQKOSELTXvPBVafHfEbMlqxUw2UR1jTXs2g==}-'@napi-rs/[email protected]':resolution: {integrity: sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==}peerDependencies:@@ -2980,9 +2957,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}- '@types/[email protected]':- resolution: {integrity: sha512-mUMZLK3NvwRLcAAT9qmcK+9p7tpU2FHdDsntR3YI4+GY88XrgG4XiE7u1Q2LAN2/FZOz/tdMDC3GQCR4T8nFuw==}-'@types/[email protected]':resolution: {integrity: sha512-k/9fOUGO39yd2sCjrbAJvGDEQvRwRnQIZlBz43roGwUZo5SHAmyVvSFyaVVZkicRVCaDXPKlbxrUcBuJoSWunQ==}@@ -5083,9 +5057,6 @@ packages:resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}hasBin: true- resolution: {integrity: sha512-Bsdjwm3Qsd/P0jR+BHDe3LytDfY7WBq2HmCCLIwuVRHMuEC9ae7/R474GIUdF1NgCyZjzVo/A9DOiOBtXq8ZoQ==}-resolution: {integrity: sha512-xezGJmOb4lk/M1ZZLTR/jaBHQ4gG/lqQnJqdIv4721DMggsa1bDVlHXNeHYogaIEHD9vCRv0fcL4hMA+Coarkg==}@@ -5252,11 +5223,6 @@ packages:resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}- resolution: {integrity: sha512-PmOHiGdkzw2P/t0vLbJRwHU59+T+JcFlGTYDV7PObWmzvypIij1Vlj0WhZKDZ/Ac7CvwWinbiGCVw/Pb/OiYYw==}- peerDependencies:- '@types/dom-mediacapture-record': ^1-resolution: {integrity: sha512-xIqbzPMBYArJRmPGUZD9CzV9wOqmVtQnaAn3wrj3s6WYW0bQvPI7x+sPYUGmDTYMHefVK//zc6HEYZ1qnxIK+Q==}@@ -6257,13 +6223,6 @@ packages:resolution: {integrity: sha512-bnnvJL28/Rtz/kz2+4wpBjHzWoEzXhVg/TE8BeVGJHUqE8THNIRnDxDWMktwM+qahvlRdvlLdsQfYe+cuqfZeA==}- resolution: {integrity: sha512-KrOH82c/W+GYQ0LHqtr3caRpM3ITglq3ljGUIb8LTki7ByacJZ9z+piSGiwZDsRyhQbYBOBJgr2k6X4BZXi3Kw==}- hasBin: true-- resolution: {integrity: sha512-xZocWwfyp4hkbN4hLWxMjmv2Q8aNa9MhmOZ7L9aCZPT+dZsgRr6wZRrSYE3HTdyk/2pZKPSgqI7ns7Een1xMSA==}-resolution: {integrity: sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==}@@ -6618,9 +6577,6 @@ packages:peerDependencies:typescript: '>=4.8.4'- resolution: {integrity: sha512-+1iDGY6NmOGidq7i7xZGA4cm8DAa6fqdYcvO5Z6yBevH++Bdo9Qt/mN0TzHUgcCcKv1gmh9+W5dHqz8pMWbCbg==}-resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}@@ -6675,9 +6631,6 @@ packages:resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-g/KzbYKbH5C2vPkaXGu8DJlHrGKHLsM25Zg9WuC9pMGfuvT+X25tZQWo5fK1BjBm8+UrVE9LDCvaY0CQk+fXDA==}-resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}engines: {node: '>=14.17'}@@ -6967,10 +6920,6 @@ packages:resolution: {integrity: sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==}- resolution: {integrity: sha512-CHbl2ZQbxx164IgWRgzJno4hWtM4tFbRam1QfI3Yxhs3w/DvqluVxVWeXs3oL5/fbGkSNLKo0Ty5MgUWceNhog==}- engines: {node: '>=6.0.0', npm: '>=3.10.0'}-resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}engines: {node: '>=18'}@@ -7437,8 +7386,6 @@ snapshots:dependencies:css-tree: 3.2.1- '@bufbuild/[email protected]': {}-'@csstools/[email protected]': {}'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':@@ -7465,22 +7412,6 @@ snapshots:'@dimforge/[email protected]': {}- '@elevenlabs/[email protected](@types/[email protected])':- dependencies:- '@elevenlabs/types': 0.19.0- livekit-client: 2.16.1(@types/[email protected])- transitivePeerDependencies:- - '@types/dom-mediacapture-record'-- dependencies:- '@elevenlabs/client': 1.17.0(@types/[email protected])- react: 19.2.5- transitivePeerDependencies:- - '@types/dom-mediacapture-record'-- '@elevenlabs/[email protected]': {}-'@emnapi/[email protected]':dependencies:'@emnapi/wasi-threads': 1.2.1@@ -8129,12 +8060,6 @@ snapshots:optionalDependencies:typescript: 5.8.3- '@livekit/[email protected]': {}-- '@livekit/[email protected]':- dependencies:- '@bufbuild/protobuf': 1.10.1-dependencies:'@emnapi/core': 1.10.0@@ -9649,8 +9574,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]':@@ -12226,8 +12149,6 @@ snapshots:- [email protected]: {}-@@ -12397,20 +12318,6 @@ snapshots:- [email protected](@types/[email protected]):- dependencies:- '@livekit/mutex': 1.1.1- '@livekit/protocol': 1.42.2- '@types/dom-mediacapture-record': 1.0.22- events: 3.3.0- jose: 6.2.8- loglevel: 1.9.2- sdp-transform: 2.15.0- ts-debounce: 4.0.0- tslib: 2.8.1- typed-emitter: 2.1.0- webrtc-adapter: 9.0.6-dependencies:'@promptbook/utils': 0.69.5@@ -13917,10 +13824,6 @@ snapshots:- [email protected]: {}-- [email protected]: {}-@@ -14331,8 +14234,6 @@ snapshots:dependencies:typescript: 5.8.3- [email protected]: {}-dependencies:'@types/json5': 0.0.29@@ -14400,10 +14301,6 @@ snapshots:possible-typed-array-names: 1.1.0reflect.getprototypeof: 1.0.10- optionalDependencies:- rxjs: 7.8.2-@@ -14719,10 +14616,6 @@ snapshots:- dependencies:- sdp: 3.2.2-dependencies:iconv-lite: 0.6.3