@ray-js/t-agent-plugin-aistream 0.2.0-beta.18 → 0.2.0-beta.19

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.
@@ -1601,17 +1601,17 @@ export type ReceivedSearchKnowledgeSkill = ReceivedTextSkillPacketBody<BuildInSk
1601
1601
  };
1602
1602
  }>;
1603
1603
  export interface ReceivedSmartHomeSkillDevice {
1604
- devId: string;
1605
- devIcon: string;
1604
+ deviceId: string;
1605
+ icon: string;
1606
1606
  dps?: Record<string, string>;
1607
- devName: string;
1607
+ name: string;
1608
1608
  room: string;
1609
1609
  success: boolean;
1610
1610
  }
1611
1611
  export interface ReceivedSmartHomeSkillScene {
1612
1612
  sceneId: string;
1613
- sceneName: string;
1614
- sceneIcon: string;
1613
+ name: string;
1614
+ icon: string;
1615
1615
  type: number;
1616
1616
  valid: boolean;
1617
1617
  displayColor: string;
@@ -90,8 +90,8 @@ export function withBuildIn() {
90
90
  data.sceneInfo.push({
91
91
  type: scene.type,
92
92
  enabled: scene.enable,
93
- icon: scene.sceneIcon,
94
- name: scene.sceneName,
93
+ icon: scene.icon,
94
+ name: scene.name,
95
95
  sceneId: scene.sceneId,
96
96
  intent: 'queryScene',
97
97
  valid: scene.valid,
@@ -103,8 +103,8 @@ export function withBuildIn() {
103
103
  for (const scene of content.general.data.scenes) {
104
104
  data.sceneInfo.push({
105
105
  type: scene.type,
106
- icon: scene.sceneIcon,
107
- name: scene.sceneName,
106
+ icon: scene.icon,
107
+ name: scene.name,
108
108
  sceneId: scene.sceneId,
109
109
  intent: 'controlScene',
110
110
  valid: scene.valid,
@@ -115,9 +115,9 @@ export function withBuildIn() {
115
115
  } else if (content.general.action === ReceivedSmartHomeSkillAction.QUERY_DEVICE) {
116
116
  for (const dev of content.general.data.devices) {
117
117
  data.deviceInfo.push({
118
- icon: dev.devIcon,
119
- name: dev.devName,
120
- deviceId: dev.devId,
118
+ icon: dev.icon,
119
+ name: dev.name,
120
+ deviceId: dev.deviceId,
121
121
  intent: 'queryDevice',
122
122
  room: dev.room,
123
123
  success: dev.success
@@ -126,9 +126,9 @@ export function withBuildIn() {
126
126
  } else if (content.general.action === ReceivedSmartHomeSkillAction.CONTROL_DEVICE) {
127
127
  for (const dev of content.general.data.devices) {
128
128
  data.deviceInfo.push({
129
- icon: dev.devIcon,
130
- name: dev.devName,
131
- deviceId: dev.devId,
129
+ icon: dev.icon,
130
+ name: dev.name,
131
+ deviceId: dev.deviceId,
132
132
  intent: 'controlDevice',
133
133
  success: null
134
134
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent-plugin-aistream",
3
- "version": "0.2.0-beta.18",
3
+ "version": "0.2.0-beta.19",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@types/url-parse": "^1.4.11"
37
37
  },
38
- "gitHead": "3826cdeac61109618670dcbbeafd4103113f04d7"
38
+ "gitHead": "0db50eef90b217b739bab1d824e4c6b2d495a169"
39
39
  }