Skip to content

Commit b79d2e4

Browse files
Add da-adaptive-card-dialog sample (#97)
1 parent 6d62a05 commit b79d2e4

28 files changed

Lines changed: 1746 additions & 0 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.funcignore
2+
*.js.map
3+
.git*
4+
.localConfigs
5+
.vscode
6+
local.settings.json
7+
test
8+
.DS_Store
9+
.deployment
10+
node_modules/.bin
11+
node_modules/azure-functions-core-tools
12+
README.md
13+
m365agents.yml
14+
m365agents.*.yml
15+
/env/
16+
/appPackage/
17+
/infra/
18+
/devTools/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
# TeamsFx files
3+
env/.env.*.user
4+
env/.env.local
5+
.DS_Store
6+
build
7+
appPackage/build
8+
.deployment
9+
10+
# dependencies
11+
/node_modules
12+
13+
# testing
14+
/coverage
15+
16+
# Dev tool directories
17+
/devTools/
18+
19+
# Azure Functions artifacts
20+
bin
21+
obj
22+
appsettings.json
23+
local.settings.json
24+
25+
# Local data
26+
.localConfigs
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"teamsdevapp.ms-teams-vscode-extension"
4+
]
5+
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Agent in Teams (Edge)",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${local:agent-hint}?auth=2&developerMode=Basic",
9+
"cascadeTerminateToConfigurations": [
10+
"Attach to Backend"
11+
],
12+
"presentation": {
13+
"group": "all",
14+
"hidden": true
15+
},
16+
"internalConsoleOptions": "neverOpen",
17+
"perScriptSourcemaps": "yes",
18+
"runtimeArgs": [
19+
"--remote-debugging-port=9222",
20+
"--no-first-run"
21+
]
22+
},
23+
{
24+
"name": "Launch Agent in Teams (Chrome)",
25+
"type": "chrome",
26+
"request": "launch",
27+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${local:agent-hint}?auth=2&developerMode=Basic",
28+
"cascadeTerminateToConfigurations": [
29+
"Attach to Backend"
30+
],
31+
"presentation": {
32+
"group": "all",
33+
"hidden": true
34+
},
35+
"internalConsoleOptions": "neverOpen",
36+
"perScriptSourcemaps": "yes",
37+
"runtimeArgs": [
38+
"--remote-debugging-port=9223",
39+
"--no-first-run"
40+
]
41+
},
42+
{
43+
"name": "Preview in Copilot (Edge)",
44+
"type": "msedge",
45+
"request": "launch",
46+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${agent-hint}?auth=2&developerMode=Basic",
47+
"presentation": {
48+
"group": "remote",
49+
"order": 1
50+
},
51+
"internalConsoleOptions": "neverOpen",
52+
"runtimeArgs": [
53+
"--remote-debugging-port=9224",
54+
"--no-first-run"
55+
]
56+
},
57+
{
58+
"name": "Preview in Copilot (Chrome)",
59+
"type": "chrome",
60+
"request": "launch",
61+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${agent-hint}?auth=2&developerMode=Basic",
62+
"presentation": {
63+
"group": "remote",
64+
"order": 2
65+
},
66+
"internalConsoleOptions": "neverOpen",
67+
"runtimeArgs": [
68+
"--remote-debugging-port=9225",
69+
"--no-first-run"
70+
]
71+
},
72+
{
73+
"name": "Attach to Backend",
74+
"type": "node",
75+
"request": "attach",
76+
"port": 9229,
77+
"restart": true,
78+
"presentation": {
79+
"group": "all",
80+
"hidden": true
81+
},
82+
"internalConsoleOptions": "neverOpen"
83+
}
84+
],
85+
"compounds": [
86+
{
87+
"name": "Debug in Copilot (Edge)",
88+
"configurations": [
89+
"Launch Agent in Teams (Edge)",
90+
"Attach to Backend"
91+
],
92+
"preLaunchTask": "Start Agent Locally",
93+
"presentation": {
94+
"group": "all",
95+
"order": 1
96+
},
97+
"stopAll": true
98+
},
99+
{
100+
"name": "Debug in Copilot (Chrome)",
101+
"configurations": [
102+
"Launch Agent in Teams (Chrome)",
103+
"Attach to Backend"
104+
],
105+
"preLaunchTask": "Start Agent Locally",
106+
"presentation": {
107+
"group": "all",
108+
"order": 2
109+
},
110+
"stopAll": true
111+
}
112+
]
113+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"debug.onTaskErrors": "abort",
3+
"json.schemas": [
4+
{
5+
"fileMatch": [
6+
"/aad.*.json"
7+
],
8+
"schema": {}
9+
}
10+
],
11+
"azureFunctions.stopFuncTaskPostDebug": false,
12+
"azureFunctions.showProjectWarning": false,
13+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
// This file is automatically generated by Microsoft 365 Agents Toolkit.
2+
// The teamsfx tasks defined in this file require Microsoft 365 Agents Toolkit version >= 5.0.0.
3+
// See https://aka.ms/teamsfx-tasks for details on how to customize each task.
4+
{
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "Start Agent Locally",
9+
"dependsOn": [
10+
"Validate prerequisites",
11+
"Start local tunnel",
12+
"Create resources",
13+
"Build project",
14+
"Start application"
15+
],
16+
"dependsOrder": "sequence"
17+
},
18+
{
19+
"label": "Validate prerequisites",
20+
"type": "teamsfx",
21+
"command": "debug-check-prerequisites",
22+
"args": {
23+
"prerequisites": [
24+
"nodejs",
25+
"m365Account",
26+
"portOccupancy"
27+
],
28+
"portOccupancy": [
29+
7071,
30+
9229
31+
]
32+
}
33+
},
34+
{
35+
// Start the local tunnel service to forward public URL to local port and inspect traffic.
36+
// See https://aka.ms/teamsfx-tasks/local-tunnel for the detailed args definitions.
37+
"label": "Start local tunnel",
38+
"type": "teamsfx",
39+
"command": "debug-start-local-tunnel",
40+
"args": {
41+
"type": "dev-tunnel",
42+
"ports": [
43+
{
44+
"portNumber": 7071,
45+
"protocol": "http",
46+
"access": "public",
47+
"writeToEnvironmentFile": {
48+
"endpoint": "OPENAPI_SERVER_URL", // output tunnel endpoint as OPENAPI_SERVER_URL
49+
"domain": "BOT_DOMAIN" // output tunnel domain as BOT_DOMAIN
50+
}
51+
}
52+
],
53+
"env": "local"
54+
},
55+
"isBackground": true,
56+
"problemMatcher": "$teamsfx-local-tunnel-watch"
57+
},
58+
{
59+
"label": "Create resources",
60+
"type": "teamsfx",
61+
"command": "provision",
62+
"args": {
63+
"env": "local"
64+
}
65+
},
66+
{
67+
"label": "Build project",
68+
"type": "teamsfx",
69+
"command": "deploy",
70+
"args": {
71+
"env": "local"
72+
}
73+
},
74+
{
75+
"label": "Start application",
76+
"dependsOn": [
77+
"Start backend"
78+
]
79+
},
80+
{
81+
"label": "Start backend",
82+
"type": "shell",
83+
"command": "npm run dev:teamsfx",
84+
"isBackground": true,
85+
"options": {
86+
"cwd": "${workspaceFolder}",
87+
"env": {
88+
"PATH": "${workspaceFolder}/devTools/func:${env:PATH}"
89+
}
90+
},
91+
"windows": {
92+
"options": {
93+
"env": {
94+
"PATH": "${workspaceFolder}/devTools/func;${env:PATH}"
95+
}
96+
}
97+
},
98+
"problemMatcher": {
99+
"pattern": {
100+
"regexp": "^.*$",
101+
"file": 0,
102+
"location": 1,
103+
"message": 2
104+
},
105+
"background": {
106+
"activeOnStart": true,
107+
"beginsPattern": "^.*(Job host stopped|signaling restart).*$",
108+
"endsPattern": "^.*(Worker process started and initialized|Host lock lease acquired by instance ID).*$"
109+
}
110+
},
111+
"presentation": {
112+
"reveal": "silent"
113+
}
114+
}
115+
]
116+
}

0 commit comments

Comments
 (0)