Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"express": "^4.21.1",
"mocha-junit-reporter": "^2.0.0",
"mocha": "^10.8.2",
"ms-rest-azure": "^3.0.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^3.5.3",
Expand Down
1 change: 0 additions & 1 deletion js/packages/teams-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"jsonwebtoken": "^9.0.2",
"mocha": "10.8.2",
"nyc": "^15.1.0",
"rimraf": "5.0.10",
"shx": "^0.4.0",
"ts-mocha": "10.1.0",
"typescript": "~5.5.4"
Expand Down
5 changes: 3 additions & 2 deletions js/packages/teams-ai/src/actions/SayCommand.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('actions.sayCommand', () => {
const citations = [
{
title: 'the title',
url: '',
url: 'http://example.com',
filepath: '',
content: 'some citation text...'
}
Expand Down Expand Up @@ -192,7 +192,8 @@ describe('actions.sayCommand', () => {
appearance: {
'@type': 'DigitalDocument',
name: 'the title',
abstract: 'some citation text...'
abstract: 'some citation text...',
url: 'http://example.com'
}
}
]
Expand Down
3 changes: 1 addition & 2 deletions js/samples/01.getting-started/a.echoBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/**/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -38,7 +38,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
}
Expand Down
2 changes: 1 addition & 1 deletion js/samples/01.getting-started/a.echoBot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ app.activity(ActivityTypes.Message, async (context: TurnContext, state: Applicat
// Listen for incoming server requests.
server.post('/api/messages', async (req, res) => {
// Route received a request to adapter for processing
await adapter.process(req, res as any, async (context) => {
await adapter.process(req, res as any, async (context: TurnContext) => {
// Dispatch to application for routing
await app.run(context);
});
Expand Down
5 changes: 5 additions & 0 deletions js/samples/01.getting-started/a.echoBot/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -35,7 +35,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"typescript": "~5.5.4",
"ts-node": "^10.9.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -39,7 +39,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
3 changes: 1 addition & 2 deletions js/samples/03.ai-concepts/a.twentyQuestions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build && shx cp -r ./src/prompts ./lib/",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -37,7 +37,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
Expand Down
5 changes: 5 additions & 0 deletions js/samples/03.ai-concepts/a.twentyQuestions/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build && shx cp -r ./src/prompts ./lib/",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -34,7 +34,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"typescript": "~5.5.4",
"shx": "^0.4.0",
"ts-node": "^10.9.2"
Expand Down
5 changes: 5 additions & 0 deletions js/samples/03.ai-concepts/b.AI-messageExtensions/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build && shx cp -r ./src/prompts ./lib/",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -37,7 +37,6 @@
"eslint": "^8.57.1",
"nodemon": "~1.19.4",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build && shx cp -r ./src/prompts ./lib/",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -38,7 +38,6 @@
"eslint": "^8.57.1",
"nodemon": "~1.19.4",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev:teamsfx:launch-testtool": "env-cmd --silent -f env/.env.testtool teamsapptester start",
"dev": "nodemon --watch ./src --exec node --inspect=9239 --signal SIGINT -r ts-node/register ./src/index.ts",
"build": "tsc --build && shx cp -r ./src/prompts ./lib/",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -37,7 +37,6 @@
"eslint": "^8.57.1",
"nodemon": "~1.19.4",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"typescript": "~5.5.4",
"shx": "^0.4.0",
"ts-node": "^10.9.2"
Expand Down
5 changes: 5 additions & 0 deletions js/samples/03.ai-concepts/e.customModel-LLAMA/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
3 changes: 1 addition & 2 deletions js/samples/04.ai-apps/a.teamsChefBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build",
"clean": "rimraf node_modules lib",
"clean": "npx rimraf node_modules lib",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -40,7 +40,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
}
Expand Down
5 changes: 5 additions & 0 deletions js/samples/04.ai-apps/a.teamsChefBot/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
3 changes: 1 addition & 2 deletions js/samples/04.ai-apps/b.devOpsBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build && shx cp -r ./src/prompts ./lib/",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -35,7 +35,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
Expand Down
5 changes: 5 additions & 0 deletions js/samples/04.ai-apps/b.devOpsBot/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
1 change: 0 additions & 1 deletion js/samples/04.ai-apps/c.vision-cardGazer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"env-cmd": "^10.1.0",
"eslint": "^8.57.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"nodemon": "~3.0.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
Expand Down
5 changes: 5 additions & 0 deletions js/samples/04.ai-apps/c.vision-cardGazer/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
1 change: 0 additions & 1 deletion js/samples/04.ai-apps/d.assistants-mathBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
}
Expand Down
5 changes: 5 additions & 0 deletions js/samples/04.ai-apps/d.assistants-mathBot/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
3 changes: 1 addition & 2 deletions js/samples/04.ai-apps/e.assistants-orderBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "./lib/index.js",
"scripts": {
"build": "tsc --build",
"clean": "rimraf node_modules lib tsconfig.tsbuildinfo",
"clean": "npx rimraf node_modules lib tsconfig.tsbuildinfo",
"lint": "eslint **/**/src/**/*.{j,t}s{,x} --fix --no-error-on-unmatched-pattern",
"start": "tsc --build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down Expand Up @@ -40,7 +40,6 @@
"eslint": "^8.57.1",
"nodemon": "~3.0.1",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
}
Expand Down
5 changes: 5 additions & 0 deletions js/samples/04.ai-apps/e.assistants-orderBot/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="false" />
<handlers>
Expand Down
Loading
Loading