@bymos/agentkit-sdk 0.9.3 → 0.9.5
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 +6 -5
- package/agentkit-widget.iife.js +379 -355
- package/agentkit-widget.js +380 -356
- package/index.cjs +378 -354
- package/index.d.ts +13 -4
- package/index.js +875 -970
- 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.9/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.9` pin tracks the latest patch of that minor line. Pin an exact version
|
|
36
|
+
(`@0.9.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.
|
|
@@ -95,7 +95,8 @@ type AgentKitWidgetConfig = {
|
|
|
95
95
|
title?: string; // Default: 'AI Assistant'
|
|
96
96
|
subtitle?: string; // Shown under the agent name in the header
|
|
97
97
|
description?: string; // Shown in the empty state
|
|
98
|
-
avatarUrl?: string;
|
|
98
|
+
avatarUrl?: string; // Face on the launcher and in the header greeting card
|
|
99
|
+
launcherLabel?: string; // Text on the closed launcher pill. Default: '' = round button with the avatar only
|
|
99
100
|
|
|
100
101
|
// Behaviour (optional)
|
|
101
102
|
streaming?: boolean; // Default: true
|
|
@@ -184,7 +185,7 @@ or hands it back to the agent.
|
|
|
184
185
|
|
|
185
186
|
```html
|
|
186
187
|
<div id="chat"></div>
|
|
187
|
-
<script src="https://unpkg.com/@bymos/agentkit-sdk@0.
|
|
188
|
+
<script src="https://unpkg.com/@bymos/agentkit-sdk@0.9/agentkit-widget.iife.js"></script>
|
|
188
189
|
<script>
|
|
189
190
|
window.AgentKit.mount(document.getElementById('chat'), {
|
|
190
191
|
agentId: 'your-agent-id',
|