@bty/customer-service-cli 0.1.22 → 0.1.24

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.
Files changed (2) hide show
  1. package/dist/bin.js +6 -2
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1397,7 +1397,7 @@ async function sendAgentMessage(opts) {
1397
1397
  email: `${opts.conversationId}@gmail.com`
1398
1398
  };
1399
1399
  if (opts.imageUrl) {
1400
- content.image_url = opts.imageUrl;
1400
+ content.image = opts.imageUrl;
1401
1401
  }
1402
1402
  msgList = [
1403
1403
  {
@@ -1464,13 +1464,17 @@ function recordsToMsgList(records) {
1464
1464
  const context = r.context ?? {};
1465
1465
  const text = context.text ?? "";
1466
1466
  const imageUrl = context.image_url ?? context.image;
1467
+ const url = context.url;
1467
1468
  const content = {
1468
1469
  text,
1469
1470
  input: text,
1470
1471
  email: `${r.conversation_id}@gmail.com`
1471
1472
  };
1473
+ if (url) {
1474
+ content.url = url;
1475
+ }
1472
1476
  if (imageUrl) {
1473
- content.image_url = imageUrl;
1477
+ content.image = imageUrl;
1474
1478
  }
1475
1479
  const timestamp = originalTimestamps[i] + offset;
1476
1480
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bty/customer-service-cli",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "AI Customer Service CLI - Agent friendly",
5
5
  "type": "module",
6
6
  "main": "./dist/bin.js",