keyring-chatbot-agent-sdk-test 1.0.13 → 1.0.16

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
@@ -24,9 +24,9 @@ An AI-powered Web3 chatbot SDK. Provides a floating chat widget with on-chain ca
24
24
  ## Installation
25
25
 
26
26
  ```bash
27
- npm install keyring-chatbot-agent
27
+ npm install keyring-chatbot-agent-sdk-test
28
28
  # or
29
- yarn add keyring-chatbot-agent
29
+ yarn add keyring-chatbot-agent-sdk-test
30
30
  ```
31
31
 
32
32
  **Peer dependencies** (React 17, 18, or 19):
@@ -42,8 +42,11 @@ npm install react react-dom
42
42
  ### Basic example
43
43
 
44
44
  ```tsx
45
- import { ChatWidget } from 'keyring-chatbot-agent';
46
- import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
45
+ import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
46
+ import type {
47
+ Transaction,
48
+ TransactionResult,
49
+ } from 'keyring-chatbot-agent-sdk-test';
47
50
 
48
51
  function App() {
49
52
  const handleTransaction = async (
@@ -69,8 +72,11 @@ function App() {
69
72
  ### Full example
70
73
 
71
74
  ```tsx
72
- import { ChatWidget } from 'keyring-chatbot-agent';
73
- import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
75
+ import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
76
+ import type {
77
+ Transaction,
78
+ TransactionResult,
79
+ } from 'keyring-chatbot-agent-sdk-test';
74
80
 
75
81
  function App() {
76
82
  const handleTransaction = async (
@@ -126,8 +132,11 @@ function App() {
126
132
 
127
133
  ```tsx
128
134
  import { useSendTransaction, useAccount } from 'wagmi';
129
- import { ChatWidget } from 'keyring-chatbot-agent';
130
- import type { Transaction, TransactionResult } from 'keyring-chatbot-agent';
135
+ import { ChatWidget } from 'keyring-chatbot-agent-sdk-test';
136
+ import type {
137
+ Transaction,
138
+ TransactionResult,
139
+ } from 'keyring-chatbot-agent-sdk-test';
131
140
 
132
141
  function App() {
133
142
  const { address, chainId } = useAccount();
@@ -210,7 +219,7 @@ type SuggestionButtonConfig = {
210
219
  You can clear the current chat history programmatically:
211
220
 
212
221
  ```tsx
213
- import { ChatWidget, clearChat } from 'keyring-chatbot-agent';
222
+ import { ChatWidget, clearChat } from 'keyring-chatbot-agent-sdk-test';
214
223
 
215
224
  function App() {
216
225
  return (
@@ -282,7 +291,7 @@ Web Component method:
282
291
  </head>
283
292
  <body>
284
293
  <!-- 1. Load the bundle -->
285
- <script src="https://unpkg.com/keyring-chatbot-agent/dist/chat-widget-wc.umd.js"></script>
294
+ <script src="https://unpkg.com/keyring-chatbot-agent-sdk-test/dist/chat-widget-wc.umd.js"></script>
286
295
 
287
296
  <!-- 2. Place the custom element with basic attributes -->
288
297
  <chat-widget
@@ -359,7 +368,7 @@ Web Component method:
359
368
  ></chat-widget>
360
369
 
361
370
  <script type="module">
362
- import 'https://unpkg.com/keyring-chatbot-agent/dist/chat-widget-wc.es.js';
371
+ import 'https://unpkg.com/keyring-chatbot-agent-sdk-test/dist/chat-widget-wc.es.js';
363
372
 
364
373
  const widget = document.getElementById('my-chat');
365
374
 
@@ -382,7 +391,7 @@ Web Component method:
382
391
  <meta charset="UTF-8" />
383
392
  <title>My dApp</title>
384
393
  <script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/6.13.0/ethers.umd.min.js"></script>
385
- <script src="https://unpkg.com/keyring-chatbot-agent/dist/chat-widget-wc.umd.js"></script>
394
+ <script src="https://unpkg.com/keyring-chatbot-agent-sdk-test/dist/chat-widget-wc.umd.js"></script>
386
395
  </head>
387
396
  <body>
388
397
  <button id="connect-btn">Connect Wallet</button>
@@ -623,7 +632,7 @@ src/
623
632
 
624
633
  ```bash
625
634
  # Build a specific package name and update README/.env/package.json accordingly
626
- yarn build:package keyring-chatbot-agent
635
+ yarn build:package keyring-chatbot-agent-sdk-test
627
636
 
628
637
  # Publish current package, then auto commit + tag
629
638
  yarn publish:package