@voxket-ai/voxket-live 1.1.55 ā 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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -3
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
|
|
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
|
|
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.
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "https://github.com/voxket-ai/voxket-web-sdk.git"
|
|
19
|
+
"url": "git+https://github.com/voxket-ai/voxket-web-sdk.git"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"@radix-ui/react-toggle": "~1.1.9",
|
|
85
85
|
"@sentry/react": "^10.36.0",
|
|
86
86
|
"@tailwindcss/vite": "~4.1.10",
|
|
87
|
-
"@voxket-ai/voxket-live": "~1.1.38",
|
|
88
87
|
"ajv": "~8.17.1",
|
|
89
88
|
"ajv-draft-04": "~1.0.0",
|
|
90
89
|
"class-variance-authority": "~0.7.1",
|