@voxket-ai/voxket-live 1.1.56 → 1.1.57

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.cjs CHANGED
@@ -212,7 +212,7 @@ const response = await participant.performRpc({
212
212
  })
213
213
  });
214
214
 
215
- console.log('User response:', response);`})]})]})}const Yq={async checkAvailableRpcs(e){const t=e.getRegisteredRpcMethods();return console.log("šŸ” Agent: Available RPC methods:",t),t},async triggerAssignment(e,t){const n={title:"Complete Q4 Sales Analysis Report",description:"Please analyze the Q4 sales data and create a comprehensive report with insights, trends, and recommendations for the upcoming quarter. Include visualizations and executive summary.",estimated_time_of_completion:"2-3 hours"};try{console.log("šŸ¤– Agent: Triggering give_assignment RPC with data:",n);const i=await e.localParticipant.performRpc(t,"give_assignment",JSON.stringify(n),{responseTimeout:12e4}),r=JSON.parse(i);return console.log("āœ… Agent: Received user response:",r),await this.processAssignmentResponse(r),r}catch(i){throw console.error("āŒ Agent: RPC failed:",i),i}},async processAssignmentResponse(e){console.log("🧠 Agent: Processing assignment response...");const t=e.status,n=e.assignmentId,i=e.timeSpent;return t==="accepted"?(console.log("šŸŽ‰ Agent: User accepted the assignment!"),console.log(`ļæ½ Assignment ID: ${n}`),console.log(`ā±ļø Time to respond: ${i}ms`),console.log("šŸ’¬ Agent: Sending follow-up:","Great! I've recorded that you've accepted the assignment. You'll receive the detailed requirements and access to the data shortly. Let me know if you need any clarification!")):t==="declined"?(console.log("āŒ Agent: User declined the assignment"),console.log("šŸ’¬ Agent: Sending follow-up:","No problem! Is there anything specific about this assignment that doesn't work for you? I can suggest alternatives or modify the requirements.")):t==="completed"&&(console.log("āœ… Agent: User completed the assignment"),console.log("šŸ’¬ Agent: Sending follow-up:","Excellent work! Could you please share the completed report? I'm excited to review your analysis and insights.")),{status:t,assignmentId:n,timeSpent:i,processed:!0,followupAction:t==="accepted"?"send_requirements":t==="declined"?"offer_alternatives":"request_deliverables"}},getAssignmentExamples(){return{marketing:{title:"Create Social Media Campaign",description:"Design and plan a social media campaign for our new product launch. Include content calendar, post designs, and engagement strategy.",estimated_time_of_completion:"4-5 hours"},technical:{title:"API Integration Documentation",description:"Create comprehensive documentation for our new API endpoints, including examples, error codes, and best practices for developers.",estimated_time_of_completion:"6-8 hours"},research:{title:"Market Research Analysis",description:"Research and analyze competitor pricing strategies in our target market. Provide recommendations for our pricing model.",estimated_time_of_completion:"3-4 hours"},quick:{title:"Customer Feedback Summary",description:"Review this week's customer feedback and create a summary of key themes and actionable insights.",estimated_time_of_completion:"30-45 minutes"}}}};pq();typeof document<"u"&&setTimeout(()=>{const e=document.createElement("div");e.className="flex",e.style.cssText="position:absolute;visibility:hidden;pointer-events:none;",document.body.appendChild(e);const t=window.getComputedStyle(e).display==="flex";document.body.removeChild(e),t?console.log("āœ… Voxket SDK: CSS styles loaded successfully"):console.warn(`%cāš ļø Voxket SDK: CSS styles not loaded!
215
+ console.log('User response:', response);`})]})]})}const Yq={async checkAvailableRpcs(e){const t=e.getRegisteredRpcMethods();return console.log("šŸ” Agent: Available RPC methods:",t),t},async triggerAssignment(e,t){const n={title:"Complete Q4 Sales Analysis Report",description:"Please analyze the Q4 sales data and create a comprehensive report with insights, trends, and recommendations for the upcoming quarter. Include visualizations and executive summary.",estimated_time_of_completion:"2-3 hours"};try{console.log("šŸ¤– Agent: Triggering give_assignment RPC with data:",n);const i=await e.localParticipant.performRpc(t,"give_assignment",JSON.stringify(n),{responseTimeout:12e4}),r=JSON.parse(i);return console.log("āœ… Agent: Received user response:",r),await this.processAssignmentResponse(r),r}catch(i){throw console.error("āŒ Agent: RPC failed:",i),i}},async processAssignmentResponse(e){console.log("🧠 Agent: Processing assignment response...");const t=e.status,n=e.assignmentId,i=e.timeSpent;return t==="accepted"?(console.log("šŸŽ‰ Agent: User accepted the assignment!"),console.log(`ļæ½ Assignment ID: ${n}`),console.log(`ā±ļø Time to respond: ${i}ms`),console.log("šŸ’¬ Agent: Sending follow-up:","Great! I've recorded that you've accepted the assignment. You'll receive the detailed requirements and access to the data shortly. Let me know if you need any clarification!")):t==="declined"?(console.log("āŒ Agent: User declined the assignment"),console.log("šŸ’¬ Agent: Sending follow-up:","No problem! Is there anything specific about this assignment that doesn't work for you? I can suggest alternatives or modify the requirements.")):t==="completed"&&(console.log("āœ… Agent: User completed the assignment"),console.log("šŸ’¬ Agent: Sending follow-up:","Excellent work! Could you please share the completed report? I'm excited to review your analysis and insights.")),{status:t,assignmentId:n,timeSpent:i,processed:!0,followupAction:t==="accepted"?"send_requirements":t==="declined"?"offer_alternatives":"request_deliverables"}},getAssignmentExamples(){return{marketing:{title:"Create Social Media Campaign",description:"Design and plan a social media campaign for our new product launch. Include content calendar, post designs, and engagement strategy.",estimated_time_of_completion:"4-5 hours"},technical:{title:"API Integration Documentation",description:"Create comprehensive documentation for our new API endpoints, including examples, error codes, and best practices for developers.",estimated_time_of_completion:"6-8 hours"},research:{title:"Market Research Analysis",description:"Research and analyze competitor pricing strategies in our target market. Provide recommendations for our pricing model.",estimated_time_of_completion:"3-4 hours"},quick:{title:"Customer Feedback Summary",description:"Review this week's customer feedback and create a summary of key themes and actionable insights.",estimated_time_of_completion:"30-45 minutes"}}}};pq();typeof document<"u"&&setTimeout(()=>{const e=document.createElement("div");e.className="flex",e.style.cssText="position:absolute;visibility:hidden;pointer-events:none;",document.body.appendChild(e);const t=window.getComputedStyle(e).display==="flex";document.body.removeChild(e),t||console.warn(`%cāš ļø Voxket SDK: CSS styles not loaded!
216
216
 
217
217
  %cThe widget will not display correctly.
218
218
  Please add this import to your app:
package/dist/index.js CHANGED
@@ -66776,7 +66776,7 @@ typeof document < "u" && setTimeout(() => {
66776
66776
  const e = document.createElement("div");
66777
66777
  e.className = "flex", e.style.cssText = "position:absolute;visibility:hidden;pointer-events:none;", document.body.appendChild(e);
66778
66778
  const t = window.getComputedStyle(e).display === "flex";
66779
- document.body.removeChild(e), t ? console.log("āœ… Voxket SDK: CSS styles loaded successfully") : console.warn(
66779
+ document.body.removeChild(e), t || console.warn(
66780
66780
  `%cāš ļø Voxket SDK: CSS styles not loaded!
66781
66781
 
66782
66782
  %cThe widget will not display correctly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxket-ai/voxket-live",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "description": "A React widget for embedding Voxket-powered audio/video/chat experiences.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",