@frockbot/client-core 0.2.5 → 0.3.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 +5 -5
- package/src/index.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/client-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@frockbot/configuration-core": "0.
|
|
17
|
-
"@frockbot/connection-core": "0.
|
|
18
|
-
"@frockbot/kernel-contracts": "0.
|
|
19
|
-
"@frockbot/protocol": "0.
|
|
16
|
+
"@frockbot/configuration-core": "0.3.1",
|
|
17
|
+
"@frockbot/connection-core": "0.3.1",
|
|
18
|
+
"@frockbot/kernel-contracts": "0.3.1",
|
|
19
|
+
"@frockbot/protocol": "0.3.1",
|
|
20
20
|
"vue": "3.5.41"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SkillRefV1 } from "@frockbot/kernel-contracts";
|
|
2
|
+
import type { BotStateTopicV1 } from "@frockbot/protocol";
|
|
2
3
|
import {
|
|
3
4
|
decodeRevokeConnectionResultV1,
|
|
4
5
|
decodeStartConnectionResultV1,
|
|
@@ -188,6 +189,13 @@ export interface AgentTransport {
|
|
|
188
189
|
method?: "GET" | "POST",
|
|
189
190
|
body?: string,
|
|
190
191
|
): Promise<unknown>;
|
|
192
|
+
watchBotState?(
|
|
193
|
+
botId: string,
|
|
194
|
+
observer: {
|
|
195
|
+
invalidate(topic: BotStateTopicV1 | undefined): Promise<void>;
|
|
196
|
+
status(status: "connecting" | "open" | "fallback" | "hidden"): void;
|
|
197
|
+
},
|
|
198
|
+
): () => void;
|
|
191
199
|
openExternalAuthorization?(
|
|
192
200
|
url: string,
|
|
193
201
|
nativeReturnNonce?: string,
|