@webless/agent 0.11.0 → 0.12.1

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/README.md CHANGED
@@ -45,6 +45,12 @@ Agent Studio generates a live preview of the agent on your pages, so you can che
45
45
 
46
46
  `@webless/agent` is published for Webless tooling and internal use. It powers the script bundle served from the console install flow.
47
47
 
48
+ ### Embedded human handoff
49
+
50
+ Set `handoffEnabled: true` in the embed manifest or React `AgentWidget` props only for a runtime with handoff support. It defaults to false. The runtime decides whether the visitor can request a person; the widget displays representative replies and requires an explicit return to AI after resolution.
51
+
52
+ For opted-in conversations, an unavailable ownership lookup blocks sending until ownership is confirmed. This prevents the AI from replying while a person may own the conversation. Widgets without the opt-in make no handoff requests and retain their existing chat behavior.
53
+
48
54
  ### Location-aware tool requests
49
55
 
50
56
  The built-in widget advertises `locationConsent: "v1"` during bootstrap. A compatible runtime can then pause on `request_location`, which the widget renders as a toggle rather than a generic approval card. Headless clients should set `createAgentClient({ locationConsent: true, ... })` only if they implement that UI and resolve its pending request IDs.