@mastra/playground-ui 6.1.3-alpha.0 → 6.1.3

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/index.es.js CHANGED
@@ -8965,12 +8965,13 @@ const useSpeechRecognition = ({
8965
8965
  }) => {
8966
8966
  const client = useMastraClient();
8967
8967
  const [agent, setAgent] = useState(null);
8968
+ const { runtimeContext } = usePlaygroundStore();
8968
8969
  useEffect(() => {
8969
8970
  if (!agentId) return;
8970
8971
  const agent2 = client.getAgent(agentId);
8971
8972
  const check = async () => {
8972
8973
  try {
8973
- await agent2.voice.getSpeakers();
8974
+ await agent2.voice.getSpeakers(runtimeContext);
8974
8975
  setAgent(agent2);
8975
8976
  } catch (error) {
8976
8977
  setAgent(null);
@@ -9684,11 +9685,12 @@ const useAdapters = (agentId) => {
9684
9685
  const [isReady, setIsReady] = useState(false);
9685
9686
  const [speechAdapter, setSpeechAdapter] = useState(void 0);
9686
9687
  const baseClient = useMastraClient();
9688
+ const { runtimeContext } = usePlaygroundStore();
9687
9689
  useEffect(() => {
9688
9690
  const check = async () => {
9689
9691
  const agent = baseClient.getAgent(agentId);
9690
9692
  try {
9691
- await agent.voice.getSpeakers();
9693
+ await agent.voice.getSpeakers(runtimeContext);
9692
9694
  setSpeechAdapter(new VoiceAttachmentAdapter(agent));
9693
9695
  setIsReady(true);
9694
9696
  } catch {