@flowcore/sdk 1.26.0 → 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 +16 -0
- package/esm/commands/ai-agent-coordinator/context-add-item.command.d.ts +1 -2
- package/esm/commands/ai-agent-coordinator/context-add-item.command.d.ts.map +1 -1
- package/esm/commands/ai-agent-coordinator/context-remove-item.command.d.ts +1 -2
- package/esm/commands/ai-agent-coordinator/context-remove-item.command.d.ts.map +1 -1
- package/esm/commands/ai-agent-coordinator/conversation-delete.command.d.ts +1 -2
- package/esm/commands/ai-agent-coordinator/conversation-delete.command.d.ts.map +1 -1
- package/esm/commands/ai-agent-coordinator/conversation-get.command.d.ts +1 -2
- package/esm/commands/ai-agent-coordinator/conversation-get.command.d.ts.map +1 -1
- package/esm/commands/ai-agent-coordinator/conversation-list.command.d.ts +1 -2
- package/esm/commands/ai-agent-coordinator/conversation-list.command.d.ts.map +1 -1
- 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/context-add-item.command.d.ts +1 -2
- package/script/commands/ai-agent-coordinator/context-add-item.command.d.ts.map +1 -1
- package/script/commands/ai-agent-coordinator/context-remove-item.command.d.ts +1 -2
- package/script/commands/ai-agent-coordinator/context-remove-item.command.d.ts.map +1 -1
- package/script/commands/ai-agent-coordinator/conversation-delete.command.d.ts +1 -2
- package/script/commands/ai-agent-coordinator/conversation-delete.command.d.ts.map +1 -1
- package/script/commands/ai-agent-coordinator/conversation-get.command.d.ts +1 -2
- package/script/commands/ai-agent-coordinator/conversation-get.command.d.ts.map +1 -1
- package/script/commands/ai-agent-coordinator/conversation-list.command.d.ts +1 -2
- package/script/commands/ai-agent-coordinator/conversation-list.command.d.ts.map +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,21 @@
|
|
|
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
|
+
|
|
11
|
+
## [1.26.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.26.0...v1.26.1) (2025-04-10)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **ai-agent-coordinator:** :art: improve class formatting in command files ([5d574fb](https://github.com/flowcore-io/flowcore-sdk/commit/5d574fb31a2ee793aff32c7a2912e600276ea5e4))
|
|
17
|
+
* **ai-agent-coordinator:** :art: remove unnecessary interface implementation in command classes ([18a26de](https://github.com/flowcore-io/flowcore-sdk/commit/18a26dee0a96ebdb014478f97c2341143dac7aaa))
|
|
18
|
+
|
|
3
19
|
## [1.26.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.25.0...v1.26.0) (2025-04-10)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { AddContextItem, ContextUpdateResponse } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -17,7 +16,7 @@ export type ContextAddItemCommandOutput = ContextUpdateResponse;
|
|
|
17
16
|
/**
|
|
18
17
|
* Command to add one or more items to the context of a specific conversation.
|
|
19
18
|
*/
|
|
20
|
-
export declare class ContextAddItemCommand extends BaseCommandClass<ContextAddItemCommandInput, ContextAddItemCommandOutput>
|
|
19
|
+
export declare class ContextAddItemCommand extends BaseCommandClass<ContextAddItemCommandInput, ContextAddItemCommandOutput> {
|
|
21
20
|
constructor(input: ContextAddItemCommandInput);
|
|
22
21
|
protected getBaseUrl(): string;
|
|
23
22
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-add-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-add-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"context-add-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-add-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAKpG;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,KAAK,EAAE,cAAc,EAAE,CAAA;CACxB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAA;AAE/D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;gBACtG,KAAK,EAAE,0BAA0B;cAI1B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAMlC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,2BAA2B;CASjF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { ContextUpdateResponse } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -17,7 +16,7 @@ export type ContextRemoveItemCommandOutput = ContextUpdateResponse;
|
|
|
17
16
|
/**
|
|
18
17
|
* Command to remove a specific item from the context of a conversation.
|
|
19
18
|
*/
|
|
20
|
-
export declare class ContextRemoveItemCommand extends BaseCommandClass<ContextRemoveItemCommandInput, ContextRemoveItemCommandOutput>
|
|
19
|
+
export declare class ContextRemoveItemCommand extends BaseCommandClass<ContextRemoveItemCommandInput, ContextRemoveItemCommandOutput> {
|
|
21
20
|
constructor(input: ContextRemoveItemCommandInput);
|
|
22
21
|
protected getBaseUrl(): string;
|
|
23
22
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-remove-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-remove-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"context-remove-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-remove-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAKpF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAAA;AAElE;;GAEG;AACH,qBAAa,wBACX,SAAQ,gBAAgB,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;gBAC3E,KAAK,EAAE,6BAA6B;cAI7B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAIlC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,8BAA8B;CAQpF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { ConversationDeleteResponse } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -15,7 +14,7 @@ export type ConversationDeleteCommandOutput = ConversationDeleteResponse;
|
|
|
15
14
|
/**
|
|
16
15
|
* Command to delete a specific conversation by its ID.
|
|
17
16
|
*/
|
|
18
|
-
export declare class ConversationDeleteCommand extends BaseCommandClass<ConversationDeleteCommandInput, ConversationDeleteCommandOutput>
|
|
17
|
+
export declare class ConversationDeleteCommand extends BaseCommandClass<ConversationDeleteCommandInput, ConversationDeleteCommandOutput> {
|
|
19
18
|
constructor(input: ConversationDeleteCommandInput);
|
|
20
19
|
protected getBaseUrl(): string;
|
|
21
20
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-delete.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-delete.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAA;AAKzF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,0BAA0B,CAAA;AAExE;;GAEG;AACH,qBAAa,yBACX,SAAQ,gBAAgB,CAAC,8BAA8B,EAAE,+BAA+B,CAAC;gBAC7E,KAAK,EAAE,8BAA8B;cAI9B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAMjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,+BAA+B;CAUrF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { Conversation } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
import type { ClientError } from "../../exceptions/client-error.js";
|
|
@@ -16,7 +15,7 @@ export type ConversationGetCommandOutput = Conversation;
|
|
|
16
15
|
/**
|
|
17
16
|
* Command to fetch the details of a specific conversation by its ID.
|
|
18
17
|
*/
|
|
19
|
-
export declare class ConversationGetCommand extends BaseCommandClass<ConversationGetCommandInput, ConversationGetCommandOutput>
|
|
18
|
+
export declare class ConversationGetCommand extends BaseCommandClass<ConversationGetCommandInput, ConversationGetCommandOutput> {
|
|
20
19
|
constructor(input: ConversationGetCommandInput);
|
|
21
20
|
protected getBaseUrl(): string;
|
|
22
21
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-get.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-get.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-get.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-get.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAMnE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAA;AAEvD;;GAEG;AACH,qBAAa,sBACX,SAAQ,gBAAgB,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;gBACvE,KAAK,EAAE,2BAA2B;cAI3B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,4BAA4B;cAS9D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAS/D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { ConversationMetadata } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -13,7 +12,7 @@ export type ConversationListCommandOutput = ConversationMetadata[];
|
|
|
13
12
|
/**
|
|
14
13
|
* Command to list all conversations accessible by the user.
|
|
15
14
|
*/
|
|
16
|
-
export declare class ConversationListCommand extends BaseCommandClass<ConversationListCommandInput, ConversationListCommandOutput>
|
|
15
|
+
export declare class ConversationListCommand extends BaseCommandClass<ConversationListCommandInput, ConversationListCommandOutput> {
|
|
17
16
|
constructor();
|
|
18
17
|
protected getBaseUrl(): string;
|
|
19
18
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-list.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-list.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAA4B,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAK7G;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,EAAE,CAAA;AAElE;;GAEG;AACH,qBAAa,uBACX,SAAQ,gBAAgB,CAAC,4BAA4B,EAAE,6BAA6B,CAAC;;cAKlE,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,6BAA6B;CAQnF"}
|
|
@@ -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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { AddContextItem, ContextUpdateResponse } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -17,7 +16,7 @@ export type ContextAddItemCommandOutput = ContextUpdateResponse;
|
|
|
17
16
|
/**
|
|
18
17
|
* Command to add one or more items to the context of a specific conversation.
|
|
19
18
|
*/
|
|
20
|
-
export declare class ContextAddItemCommand extends BaseCommandClass<ContextAddItemCommandInput, ContextAddItemCommandOutput>
|
|
19
|
+
export declare class ContextAddItemCommand extends BaseCommandClass<ContextAddItemCommandInput, ContextAddItemCommandOutput> {
|
|
21
20
|
constructor(input: ContextAddItemCommandInput);
|
|
22
21
|
protected getBaseUrl(): string;
|
|
23
22
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-add-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-add-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"context-add-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-add-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAKpG;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,KAAK,EAAE,cAAc,EAAE,CAAA;CACxB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAA;AAE/D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;gBACtG,KAAK,EAAE,0BAA0B;cAI1B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAMlC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,2BAA2B;CASjF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { ContextUpdateResponse } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -17,7 +16,7 @@ export type ContextRemoveItemCommandOutput = ContextUpdateResponse;
|
|
|
17
16
|
/**
|
|
18
17
|
* Command to remove a specific item from the context of a conversation.
|
|
19
18
|
*/
|
|
20
|
-
export declare class ContextRemoveItemCommand extends BaseCommandClass<ContextRemoveItemCommandInput, ContextRemoveItemCommandOutput>
|
|
19
|
+
export declare class ContextRemoveItemCommand extends BaseCommandClass<ContextRemoveItemCommandInput, ContextRemoveItemCommandOutput> {
|
|
21
20
|
constructor(input: ContextRemoveItemCommandInput);
|
|
22
21
|
protected getBaseUrl(): string;
|
|
23
22
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-remove-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-remove-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"context-remove-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-remove-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAKpF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAAA;AAElE;;GAEG;AACH,qBAAa,wBACX,SAAQ,gBAAgB,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;gBAC3E,KAAK,EAAE,6BAA6B;cAI7B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAIlC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,8BAA8B;CAQpF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { ConversationDeleteResponse } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -15,7 +14,7 @@ export type ConversationDeleteCommandOutput = ConversationDeleteResponse;
|
|
|
15
14
|
/**
|
|
16
15
|
* Command to delete a specific conversation by its ID.
|
|
17
16
|
*/
|
|
18
|
-
export declare class ConversationDeleteCommand extends BaseCommandClass<ConversationDeleteCommandInput, ConversationDeleteCommandOutput>
|
|
17
|
+
export declare class ConversationDeleteCommand extends BaseCommandClass<ConversationDeleteCommandInput, ConversationDeleteCommandOutput> {
|
|
19
18
|
constructor(input: ConversationDeleteCommandInput);
|
|
20
19
|
protected getBaseUrl(): string;
|
|
21
20
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-delete.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-delete.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAA;AAKzF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,0BAA0B,CAAA;AAExE;;GAEG;AACH,qBAAa,yBACX,SAAQ,gBAAgB,CAAC,8BAA8B,EAAE,+BAA+B,CAAC;gBAC7E,KAAK,EAAE,8BAA8B;cAI9B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAMjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,+BAA+B;CAUrF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { Conversation } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
import type { ClientError } from "../../exceptions/client-error.js";
|
|
@@ -16,7 +15,7 @@ export type ConversationGetCommandOutput = Conversation;
|
|
|
16
15
|
/**
|
|
17
16
|
* Command to fetch the details of a specific conversation by its ID.
|
|
18
17
|
*/
|
|
19
|
-
export declare class ConversationGetCommand extends BaseCommandClass<ConversationGetCommandInput, ConversationGetCommandOutput>
|
|
18
|
+
export declare class ConversationGetCommand extends BaseCommandClass<ConversationGetCommandInput, ConversationGetCommandOutput> {
|
|
20
19
|
constructor(input: ConversationGetCommandInput);
|
|
21
20
|
protected getBaseUrl(): string;
|
|
22
21
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-get.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-get.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-get.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-get.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAMnE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAA;AAEvD;;GAEG;AACH,qBAAa,sBACX,SAAQ,gBAAgB,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;gBACvE,KAAK,EAAE,2BAA2B;cAI3B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,4BAA4B;cAS9D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAS/D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Command } from "../../common/command.js";
|
|
2
1
|
import { Command as BaseCommandClass } from "../../common/command.js";
|
|
3
2
|
import type { ConversationMetadata } from "../../contracts/ai-agent-coordinator.js";
|
|
4
3
|
/**
|
|
@@ -13,7 +12,7 @@ export type ConversationListCommandOutput = ConversationMetadata[];
|
|
|
13
12
|
/**
|
|
14
13
|
* Command to list all conversations accessible by the user.
|
|
15
14
|
*/
|
|
16
|
-
export declare class ConversationListCommand extends BaseCommandClass<ConversationListCommandInput, ConversationListCommandOutput>
|
|
15
|
+
export declare class ConversationListCommand extends BaseCommandClass<ConversationListCommandInput, ConversationListCommandOutput> {
|
|
17
16
|
constructor();
|
|
18
17
|
protected getBaseUrl(): string;
|
|
19
18
|
protected getMethod(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-list.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-list.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAA4B,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAK7G;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,EAAE,CAAA;AAElE;;GAEG;AACH,qBAAa,uBACX,SAAQ,gBAAgB,CAAC,4BAA4B,EAAE,6BAA6B,CAAC;;cAKlE,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,6BAA6B;CAQnF"}
|
|
@@ -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;
|