@ray-js/t-agent-plugin-aistream 0.2.0-beta.19 → 0.2.1-beta-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/dist/AIStreamTypes.d.ts +5 -5
- package/dist/buildIn/withBuildIn.js +10 -10
- package/dist/utils/AIStream.js +3 -1
- package/package.json +2 -2
package/dist/AIStreamTypes.d.ts
CHANGED
|
@@ -1601,17 +1601,17 @@ export type ReceivedSearchKnowledgeSkill = ReceivedTextSkillPacketBody<BuildInSk
|
|
|
1601
1601
|
};
|
|
1602
1602
|
}>;
|
|
1603
1603
|
export interface ReceivedSmartHomeSkillDevice {
|
|
1604
|
-
|
|
1605
|
-
|
|
1604
|
+
devId: string;
|
|
1605
|
+
devIcon: string;
|
|
1606
1606
|
dps?: Record<string, string>;
|
|
1607
|
-
|
|
1607
|
+
devName: string;
|
|
1608
1608
|
room: string;
|
|
1609
1609
|
success: boolean;
|
|
1610
1610
|
}
|
|
1611
1611
|
export interface ReceivedSmartHomeSkillScene {
|
|
1612
1612
|
sceneId: string;
|
|
1613
|
-
|
|
1614
|
-
|
|
1613
|
+
sceneName: string;
|
|
1614
|
+
sceneIcon: 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.
|
|
94
|
-
name: scene.
|
|
93
|
+
icon: scene.sceneIcon,
|
|
94
|
+
name: scene.sceneName,
|
|
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.
|
|
107
|
-
name: scene.
|
|
106
|
+
icon: scene.sceneIcon,
|
|
107
|
+
name: scene.sceneName,
|
|
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.
|
|
119
|
-
name: dev.
|
|
120
|
-
deviceId: dev.
|
|
118
|
+
icon: dev.devIcon,
|
|
119
|
+
name: dev.devName,
|
|
120
|
+
deviceId: dev.devId,
|
|
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.
|
|
130
|
-
name: dev.
|
|
131
|
-
deviceId: dev.
|
|
129
|
+
icon: dev.devIcon,
|
|
130
|
+
name: dev.devName,
|
|
131
|
+
deviceId: dev.devId,
|
|
132
132
|
intent: 'controlDevice',
|
|
133
133
|
success: null
|
|
134
134
|
});
|
package/dist/utils/AIStream.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/t-agent-plugin-aistream",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1-beta-1",
|
|
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": "
|
|
38
|
+
"gitHead": "d2a87bb209c5649e75bc765a8174849274cda82e"
|
|
39
39
|
}
|