@bymos/agentkit-sdk 0.6.4 → 0.7.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 +4 -7
- package/agentkit-widget.iife.js +85 -34
- package/agentkit-widget.js +1775 -1729
- package/index.cjs +89 -38
- package/index.js +2140 -2094
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Both integration paths take the **same single-argument config**.
|
|
|
21
21
|
### CDN (no build step)
|
|
22
22
|
|
|
23
23
|
```html
|
|
24
|
-
<script src="https://unpkg.com/@bymos/agentkit-sdk@0.
|
|
24
|
+
<script src="https://unpkg.com/@bymos/agentkit-sdk@0.7/agentkit-widget.iife.js"></script>
|
|
25
25
|
<script>
|
|
26
26
|
window.AgentKit.init({
|
|
27
27
|
agentId: 'your-agent-id',
|
|
@@ -32,8 +32,8 @@ Both integration paths take the **same single-argument config**.
|
|
|
32
32
|
</script>
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The `@0.
|
|
36
|
-
(`@0.
|
|
35
|
+
The `@0.7` pin tracks the latest patch of that minor line. Pin an exact version
|
|
36
|
+
(`@0.7.0`) if you need byte-identical builds, and add
|
|
37
37
|
[SRI](https://developer.mozilla.org/docs/Web/Security/Subresource_Integrity)
|
|
38
38
|
(`integrity` + `crossorigin="anonymous"`) when you do — an SRI hash only holds
|
|
39
39
|
against an exact version.
|
|
@@ -96,9 +96,6 @@ type AgentKitWidgetConfig = {
|
|
|
96
96
|
subtitle?: string; // Shown under the agent name in the header
|
|
97
97
|
description?: string; // Shown in the empty state
|
|
98
98
|
avatarUrl?: string;
|
|
99
|
-
privacyPolicyUrl?: string;
|
|
100
|
-
termsOfServiceUrl?: string;
|
|
101
|
-
disclosureText?: string; // AI processing notice; pass '' to hide it
|
|
102
99
|
|
|
103
100
|
// Behaviour (optional)
|
|
104
101
|
streaming?: boolean; // Default: true
|
|
@@ -187,7 +184,7 @@ or hands it back to the agent.
|
|
|
187
184
|
|
|
188
185
|
```html
|
|
189
186
|
<div id="chat"></div>
|
|
190
|
-
<script src="https://unpkg.com/@bymos/agentkit-sdk@0.
|
|
187
|
+
<script src="https://unpkg.com/@bymos/agentkit-sdk@0.7/agentkit-widget.iife.js"></script>
|
|
191
188
|
<script>
|
|
192
189
|
window.AgentKit.mount(document.getElementById('chat'), {
|
|
193
190
|
agentId: 'your-agent-id',
|