@economic/agents 2.3.13 → 2.3.14

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.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -49,6 +49,12 @@ function sendAgentType(connection, agentType) {
49
49
  agentType
50
50
  }));
51
51
  }
52
+ function sendSubAgentName(connection, subAgentName) {
53
+ connection.send(JSON.stringify({
54
+ type: "sub_agent_name",
55
+ subAgentName
56
+ }));
57
+ }
52
58
  //#endregion
53
59
  //#region src/server/agents/Agent.ts
54
60
  var Agent = class extends Think {
@@ -634,6 +640,7 @@ var Assistant = class extends Agent$1 {
634
640
  }
635
641
  async onConnect(connection, ctx) {
636
642
  sendAgentType(connection, "assistant");
643
+ sendSubAgentName(connection, this.agent.name);
637
644
  sendConnectionStatus(connection, "connecting");
638
645
  const getJwtAuthConfig = this.agent.getJwtAuthConfig;
639
646
  if (getJwtAuthConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents",
3
- "version": "2.3.13",
3
+ "version": "2.3.14",
4
4
  "description": "A starter for creating a TypeScript package.",
5
5
  "license": "MIT",
6
6
  "files": [