@toothfairyai/cli 1.1.0 → 1.1.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/package.json +1 -1
- package/src/api.js +3 -0
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -507,6 +507,9 @@ class ToothFairyAPI {
|
|
|
507
507
|
) {
|
|
508
508
|
// Callback metadata with function details and execution plan
|
|
509
509
|
onEvent('callback', eventData);
|
|
510
|
+
} else if (eventData.type === 'chat_created' || eventData.event === 'chat_created') {
|
|
511
|
+
// Chat creation event
|
|
512
|
+
onEvent('chat_created', eventData);
|
|
510
513
|
} else {
|
|
511
514
|
// Generic event data
|
|
512
515
|
onEvent('unknown', eventData);
|