@flowcore/sdk 1.26.1 → 1.26.2
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/CHANGELOG.md +8 -0
- package/esm/commands/ai-agent-coordinator/conversation-stream.command.d.ts +1 -1
- package/esm/commands/ai-agent-coordinator/conversation-stream.command.d.ts.map +1 -1
- package/esm/commands/ai-agent-coordinator/conversation-stream.command.js +8 -5
- package/package.json +1 -1
- package/script/commands/ai-agent-coordinator/conversation-stream.command.d.ts +1 -1
- package/script/commands/ai-agent-coordinator/conversation-stream.command.d.ts.map +1 -1
- package/script/commands/ai-agent-coordinator/conversation-stream.command.js +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.26.2](https://github.com/flowcore-io/flowcore-sdk/compare/v1.26.1...v1.26.2) (2025-04-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ai-agent-coordinator:** :art: clean up import formatting in websocket-client test ([9a8c2ff](https://github.com/flowcore-io/flowcore-sdk/commit/9a8c2ffa61ac4aec47ca387cafece5525a1812f0))
|
|
9
|
+
* **ai-agent-coordinator:** :art: update WebSocket path and improve payload serialization ([60c8f80](https://github.com/flowcore-io/flowcore-sdk/commit/60c8f803f104bc77848617eb90482b3544d416c1))
|
|
10
|
+
|
|
3
11
|
## [1.26.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.26.0...v1.26.1) (2025-04-10)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -23,7 +23,7 @@ export declare class ConversationStreamCommand implements WebSocketCommand<Conve
|
|
|
23
23
|
/** Get the base WebSocket URL. */
|
|
24
24
|
getWebSocketBaseUrl(): string;
|
|
25
25
|
/** Get the WebSocket path segment. */
|
|
26
|
-
getWebSocketPathSegment(
|
|
26
|
+
getWebSocketPathSegment(): string;
|
|
27
27
|
/** Serializer function for outgoing payloads. */
|
|
28
28
|
serializeSendPayload(payload: ConversationStreamSendPayload): string;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-stream.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEzE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,yBACX,YAAW,gBAAgB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IACpF,OAAO,CAAC,MAAM,CAA0B;gBAE5B,MAAM,EAAE,wBAAwB;IAO5C,oDAAoD;IACpD,SAAS,IAAI,wBAAwB;IAIrC,kCAAkC;IAClC,mBAAmB,IAAI,MAAM;IAK7B,sCAAsC;IACtC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"conversation-stream.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEzE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,yBACX,YAAW,gBAAgB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IACpF,OAAO,CAAC,MAAM,CAA0B;gBAE5B,MAAM,EAAE,wBAAwB;IAO5C,oDAAoD;IACpD,SAAS,IAAI,wBAAwB;IAIrC,kCAAkC;IAClC,mBAAmB,IAAI,MAAM;IAK7B,sCAAsC;IACtC,uBAAuB,IAAI,MAAM;IAKjC,iDAAiD;IACjD,oBAAoB,CAAC,OAAO,EAAE,6BAA6B,GAAG,MAAM;CAOrE"}
|
|
@@ -24,13 +24,16 @@ export class ConversationStreamCommand {
|
|
|
24
24
|
return "wss://ai-coordinator.api.flowcore.io";
|
|
25
25
|
}
|
|
26
26
|
/** Get the WebSocket path segment. */
|
|
27
|
-
getWebSocketPathSegment(
|
|
28
|
-
//
|
|
29
|
-
return `/
|
|
27
|
+
getWebSocketPathSegment() {
|
|
28
|
+
// Path includes the conversation ID
|
|
29
|
+
return `/stream/${this.config.conversationId}`;
|
|
30
30
|
}
|
|
31
31
|
/** Serializer function for outgoing payloads. */
|
|
32
32
|
serializeSendPayload(payload) {
|
|
33
|
-
//
|
|
34
|
-
return JSON.stringify(
|
|
33
|
+
// Send a structured message with type and payload
|
|
34
|
+
return JSON.stringify({
|
|
35
|
+
type: "message", // Example type, adjust as needed
|
|
36
|
+
payload: payload, // Send the original payload nested
|
|
37
|
+
});
|
|
35
38
|
}
|
|
36
39
|
}
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export declare class ConversationStreamCommand implements WebSocketCommand<Conve
|
|
|
23
23
|
/** Get the base WebSocket URL. */
|
|
24
24
|
getWebSocketBaseUrl(): string;
|
|
25
25
|
/** Get the WebSocket path segment. */
|
|
26
|
-
getWebSocketPathSegment(
|
|
26
|
+
getWebSocketPathSegment(): string;
|
|
27
27
|
/** Serializer function for outgoing payloads. */
|
|
28
28
|
serializeSendPayload(payload: ConversationStreamSendPayload): string;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-stream.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEzE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,yBACX,YAAW,gBAAgB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IACpF,OAAO,CAAC,MAAM,CAA0B;gBAE5B,MAAM,EAAE,wBAAwB;IAO5C,oDAAoD;IACpD,SAAS,IAAI,wBAAwB;IAIrC,kCAAkC;IAClC,mBAAmB,IAAI,MAAM;IAK7B,sCAAsC;IACtC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"conversation-stream.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEzE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,qBAAa,yBACX,YAAW,gBAAgB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IACpF,OAAO,CAAC,MAAM,CAA0B;gBAE5B,MAAM,EAAE,wBAAwB;IAO5C,oDAAoD;IACpD,SAAS,IAAI,wBAAwB;IAIrC,kCAAkC;IAClC,mBAAmB,IAAI,MAAM;IAK7B,sCAAsC;IACtC,uBAAuB,IAAI,MAAM;IAKjC,iDAAiD;IACjD,oBAAoB,CAAC,OAAO,EAAE,6BAA6B,GAAG,MAAM;CAOrE"}
|
|
@@ -27,14 +27,17 @@ class ConversationStreamCommand {
|
|
|
27
27
|
return "wss://ai-coordinator.api.flowcore.io";
|
|
28
28
|
}
|
|
29
29
|
/** Get the WebSocket path segment. */
|
|
30
|
-
getWebSocketPathSegment(
|
|
31
|
-
//
|
|
32
|
-
return `/
|
|
30
|
+
getWebSocketPathSegment() {
|
|
31
|
+
// Path includes the conversation ID
|
|
32
|
+
return `/stream/${this.config.conversationId}`;
|
|
33
33
|
}
|
|
34
34
|
/** Serializer function for outgoing payloads. */
|
|
35
35
|
serializeSendPayload(payload) {
|
|
36
|
-
//
|
|
37
|
-
return JSON.stringify(
|
|
36
|
+
// Send a structured message with type and payload
|
|
37
|
+
return JSON.stringify({
|
|
38
|
+
type: "message", // Example type, adjust as needed
|
|
39
|
+
payload: payload, // Send the original payload nested
|
|
40
|
+
});
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
exports.ConversationStreamCommand = ConversationStreamCommand;
|