@microsoft/agents-hosting-express 0.6.16-gc874f0c9d8 → 0.6.18

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.
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/package.json",
3
+ "name": "@microsoft/agents-hosting-express",
4
+ "version": "0.6.18",
5
+ "homepage": "https://github.com/microsoft/Agents-for-js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/microsoft/Agents-for-js.git"
9
+ },
10
+ "author": {
11
+ "name": "Microsoft",
12
+ "email": "agentssdk@microsoft.com",
13
+ "url": "https://aka.ms/Agents"
14
+ },
15
+ "description": "Microsoft 365 Agents SDK for JavaScript",
16
+ "keywords": [
17
+ "Agents"
18
+ ],
19
+ "main": "dist/src/index.js",
20
+ "types": "dist/src/index.d.ts",
21
+ "dependencies": {
22
+ "@microsoft/agents-hosting": "0.6.18",
23
+ "express": "^5.1.0"
24
+ },
25
+ "license": "MIT",
26
+ "files": [
27
+ "README.md",
28
+ "dist/src",
29
+ "src",
30
+ "package.json"
31
+ ],
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/src/index.d.ts",
35
+ "import": "./dist/src/index.js",
36
+ "require": "./dist/src/index.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "engines": {
41
+ "node": ">=20.0.0"
42
+ }
43
+ }
@@ -42,7 +42,7 @@ const startServer = (agent, authConfiguration) => {
42
42
  const authConfig = authConfiguration !== null && authConfiguration !== void 0 ? authConfiguration : (0, agents_hosting_1.loadAuthConfigFromEnv)();
43
43
  let adapter;
44
44
  if (agent instanceof agents_hosting_1.ActivityHandler || !agent.adapter) {
45
- adapter = new agents_hosting_1.CloudAdapter(authConfig);
45
+ adapter = new agents_hosting_1.CloudAdapter();
46
46
  }
47
47
  else {
48
48
  adapter = agent.adapter;
@@ -1 +1 @@
1
- {"version":3,"file":"startServer.js","sourceRoot":"","sources":["../../src/start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AAI,WAAW,sBAAO,cAAc,UAAU,CAAC,QAAQ,UAAU,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;IACjI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;AAC/B,CAAC,CAAA;AAtBY,QAAA,WAAW,eAsBvB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-hosting-express",
4
- "version": "0.6.16-gc874f0c9d8",
4
+ "version": "0.6.18",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,17 +19,19 @@
19
19
  "main": "dist/src/index.js",
20
20
  "types": "dist/src/index.d.ts",
21
21
  "dependencies": {
22
- "@microsoft/agents-hosting": "0.6.16-gc874f0c9d8",
22
+ "@microsoft/agents-hosting": "0.6.18",
23
23
  "express": "^5.1.0"
24
24
  },
25
25
  "license": "MIT",
26
26
  "files": [
27
27
  "README.md",
28
28
  "dist/src",
29
- "src"
29
+ "src",
30
+ "package.json"
30
31
  ],
31
32
  "exports": {
32
33
  ".": {
34
+ "types": "./dist/src/index.d.ts",
33
35
  "import": "./dist/src/index.js",
34
36
  "require": "./dist/src/index.js"
35
37
  },
@@ -37,7 +37,7 @@ export const startServer = (agent: AgentApplication<TurnState<any, any>> | Activ
37
37
  const authConfig: AuthConfiguration = authConfiguration ?? loadAuthConfigFromEnv()
38
38
  let adapter: CloudAdapter
39
39
  if (agent instanceof ActivityHandler || !agent.adapter) {
40
- adapter = new CloudAdapter(authConfig)
40
+ adapter = new CloudAdapter()
41
41
  } else {
42
42
  adapter = agent.adapter as CloudAdapter
43
43
  }