@glodon-aiot/bot-client-sdk 3.26.0-alpha.4 → 3.26.0-alpha.8
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/es/AgentSession.mjs +32 -33
- package/dist/es/DialogSession.mjs +39 -40
- package/dist/es/Session.mjs +71 -63
- package/dist/es/package.json.mjs +4 -7
- package/dist/lib/index.js +9 -9
- package/dist/src/Session.d.ts +4 -0
- package/package.json +4 -7
package/dist/src/Session.d.ts
CHANGED
|
@@ -164,6 +164,10 @@ export default abstract class Session {
|
|
|
164
164
|
delete(): Promise<string | false>;
|
|
165
165
|
activate(): Promise<unknown>;
|
|
166
166
|
inactivate(immediately?: boolean): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* 会话标题摘要开关。应用详情返回布尔值时用该值,字段缺失时默认开启。
|
|
169
|
+
*/
|
|
170
|
+
protected resolveEnableTitleSummary(): boolean;
|
|
167
171
|
abstract prepareConnection(): Promise<boolean>;
|
|
168
172
|
abstract sendQuestion(params: QuestionBody, configs: QuestionConfig): any;
|
|
169
173
|
abstract stopAnswer(): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/bot-client-sdk",
|
|
3
|
-
"version": "3.26.0-alpha.
|
|
3
|
+
"version": "3.26.0-alpha.8",
|
|
4
4
|
"author": "glodoncv",
|
|
5
5
|
"description": "aiot bot client js sdk",
|
|
6
6
|
"type": "module",
|
|
@@ -36,9 +36,7 @@
|
|
|
36
36
|
"preview": "vite preview",
|
|
37
37
|
"check": "yarn prettier --check .",
|
|
38
38
|
"write": "yarn prettier --write .",
|
|
39
|
-
"lint": "eslint --ext .tsx,.ts --fix ./example -c .eslintrc.js"
|
|
40
|
-
"test": "vitest run",
|
|
41
|
-
"test:watch": "vitest"
|
|
39
|
+
"lint": "eslint --ext .tsx,.ts --fix ./example -c .eslintrc.js"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
|
44
42
|
"@babel/core": "^7.20.12",
|
|
@@ -71,8 +69,7 @@
|
|
|
71
69
|
"vite": "^4.1.1",
|
|
72
70
|
"vite-plugin-dts": "^4.3.0",
|
|
73
71
|
"vite-plugin-externalize-deps": "^0.9.0",
|
|
74
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
75
|
-
"vitest": "^0.34.6"
|
|
72
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
76
73
|
},
|
|
77
74
|
"lint-staged": {
|
|
78
75
|
"*.{js,css,md,jsx,less,ts,tsx,json}": "prettier --write"
|
|
@@ -82,7 +79,7 @@
|
|
|
82
79
|
"registry": "https://registry.npmjs.org/"
|
|
83
80
|
},
|
|
84
81
|
"dependencies": {
|
|
85
|
-
"@glodon-aiot/apis": "^3.26.0-alpha.
|
|
82
|
+
"@glodon-aiot/apis": "^3.26.0-alpha.8",
|
|
86
83
|
"axios": "0.24.0",
|
|
87
84
|
"buffer": "^6.0.3",
|
|
88
85
|
"dayjs": "^1.11.13",
|