Skip to content

Commit d8e7b1c

Browse files
authored
feat: Teams AI V2 template batch 2 (#14641)
* feat: first * refactor: more * refactor: more * refactor: more * refactor: more * refactor: more * feat: tab * feat: tab
1 parent a5fb760 commit d8e7b1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1224
-350
lines changed

packages/fx-core/src/component/generator/templates/metadata/teams.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ const chatWithYourDataTemplates: Template[] = [
4747
language: "csharp",
4848
description: "",
4949
},
50+
{
51+
id: "custom-copilot-rag-azure-ai-search-python",
52+
name: TemplateNames.CustomCopilotRagAzureAISearch,
53+
language: "python",
54+
description: "",
55+
},
5056
{
5157
id: "custom-copilot-rag-microsoft365-ts",
5258
name: TemplateNames.CustomCopilotRagMicrosoft365,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# TeamsFx files
2+
env/.env.*.user
3+
env/.env.local
4+
env/.env.playground
5+
.env
6+
appPackage/build
7+
8+
# python virtual environment
9+
.venv/
10+
__pycache__/
11+
12+
# others
13+
.deployment/
14+
node_modules/
15+
devTools/*.log
16+
17+
# Dev tool directories
18+
/devTools/
19+
20+
node_modules
21+
dist
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: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Remote in Teams (Edge)",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
9+
"presentation": {
10+
"group": "group 1: Teams",
11+
"order": 3
12+
},
13+
"internalConsoleOptions": "neverOpen"
14+
},
15+
{
16+
"name": "Launch Remote in Teams (Chrome)",
17+
"type": "chrome",
18+
"request": "launch",
19+
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
20+
"presentation": {
21+
"group": "group 1: Teams",
22+
"order": 3
23+
},
24+
"internalConsoleOptions": "neverOpen"
25+
},
26+
{
27+
"name": "Launch Remote in Outlook (Edge)",
28+
"type": "msedge",
29+
"request": "launch",
30+
"url": "https://outlook.office.com/host/${{M365_APP_ID}}?${account-hint}",
31+
"presentation": {
32+
"group": "group 2: Outlook",
33+
"order": 3
34+
},
35+
"internalConsoleOptions": "neverOpen"
36+
},
37+
{
38+
"name": "Launch Remote in Outlook (Chrome)",
39+
"type": "chrome",
40+
"request": "launch",
41+
"url": "https://outlook.office.com/host/${{M365_APP_ID}}?${account-hint}",
42+
"presentation": {
43+
"group": "group 2: Outlook",
44+
"order": 3
45+
},
46+
"internalConsoleOptions": "neverOpen"
47+
},
48+
{
49+
"name": "Launch Remote in the Microsoft 365 app (Edge)",
50+
"type": "msedge",
51+
"request": "launch",
52+
"url": "https://www.office.com/m365apps/${{M365_APP_ID}}?auth=2&${account-hint}",
53+
"presentation": {
54+
"group": "group 3: the Microsoft 365 app",
55+
"order": 3
56+
},
57+
"internalConsoleOptions": "neverOpen"
58+
},
59+
{
60+
"name": "Launch Remote in the Microsoft 365 app (Chrome)",
61+
"type": "chrome",
62+
"request": "launch",
63+
"url": "https://www.office.com/m365apps/${{M365_APP_ID}}?auth=2&${account-hint}",
64+
"presentation": {
65+
"group": "group 3: the Microsoft 365 app",
66+
"order": 3
67+
},
68+
"internalConsoleOptions": "neverOpen"
69+
},
70+
{
71+
"name": "Attach to Frontend in Teams (Edge)",
72+
"type": "msedge",
73+
"request": "launch",
74+
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
75+
"cascadeTerminateToConfigurations": [
76+
"Start Python"
77+
],
78+
"presentation": {
79+
"group": "all",
80+
"hidden": true
81+
},
82+
"internalConsoleOptions": "neverOpen"
83+
},
84+
{
85+
"name": "Attach to Frontend in Teams (Chrome)",
86+
"type": "chrome",
87+
"request": "launch",
88+
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
89+
"cascadeTerminateToConfigurations": [
90+
"Start Python"
91+
],
92+
"presentation": {
93+
"group": "all",
94+
"hidden": true
95+
},
96+
"internalConsoleOptions": "neverOpen"
97+
},
98+
{
99+
"name": "Attach to Frontend in Outlook (Edge)",
100+
"type": "msedge",
101+
"request": "launch",
102+
"url": "https://outlook.office.com/host/${{local:M365_APP_ID}}?${account-hint}",
103+
"cascadeTerminateToConfigurations": [
104+
"Start Python"
105+
],
106+
"presentation": {
107+
"group": "all",
108+
"hidden": true
109+
},
110+
"internalConsoleOptions": "neverOpen"
111+
},
112+
{
113+
"name": "Attach to Frontend in Outlook (Chrome)",
114+
"type": "chrome",
115+
"request": "launch",
116+
"url": "https://outlook.office.com/host/${{local:M365_APP_ID}}?${account-hint}",
117+
"cascadeTerminateToConfigurations": [
118+
"Start Python"
119+
],
120+
"presentation": {
121+
"group": "all",
122+
"hidden": true
123+
},
124+
"internalConsoleOptions": "neverOpen"
125+
},
126+
{
127+
"name": "Attach to Frontend in the Microsoft 365 app (Edge)",
128+
"type": "msedge",
129+
"request": "launch",
130+
"url": "https://www.office.com/m365apps/${{local:M365_APP_ID}}?auth=2&${account-hint}",
131+
"cascadeTerminateToConfigurations": [
132+
"Start Python"
133+
],
134+
"presentation": {
135+
"group": "all",
136+
"hidden": true
137+
},
138+
"internalConsoleOptions": "neverOpen"
139+
},
140+
{
141+
"name": "Attach to Frontend in the Microsoft 365 app (Chrome)",
142+
"type": "chrome",
143+
"request": "launch",
144+
"url": "https://www.office.com/m365apps/${{local:M365_APP_ID}}?auth=2&${account-hint}",
145+
"cascadeTerminateToConfigurations": [
146+
"Start Python"
147+
],
148+
"presentation": {
149+
"group": "all",
150+
"hidden": true
151+
},
152+
"internalConsoleOptions": "neverOpen"
153+
},
154+
{
155+
"name": "Start Python",
156+
"type": "debugpy",
157+
"request": "launch",
158+
"program": "${workspaceFolder}/src/app.py",
159+
"cwd": "${workspaceFolder}/src",
160+
"console": "integratedTerminal"
161+
},
162+
],
163+
"compounds": [
164+
{
165+
"name": "Debug in Teams (Edge)",
166+
"configurations": [
167+
"Attach to Frontend in Teams (Edge)",
168+
"Start Python"
169+
],
170+
"preLaunchTask": "Start App Locally",
171+
"presentation": {
172+
"group": "group 1: Teams",
173+
"order": 1
174+
},
175+
"stopAll": true
176+
},
177+
{
178+
"name": "Debug in Teams (Chrome)",
179+
"configurations": [
180+
"Attach to Frontend in Teams (Chrome)",
181+
"Start Python"
182+
],
183+
"preLaunchTask": "Start App Locally",
184+
"presentation": {
185+
"group": "group 1: Teams",
186+
"order": 2
187+
},
188+
"stopAll": true
189+
},
190+
{
191+
"name": "Debug in Outlook (Edge)",
192+
"configurations": [
193+
"Attach to Frontend in Outlook (Edge)",
194+
"Start Python"
195+
],
196+
"preLaunchTask": "Start App Locally",
197+
"presentation": {
198+
"group": "group 2: Outlook",
199+
"order": 1
200+
},
201+
"stopAll": true
202+
},
203+
{
204+
"name": "Debug in Outlook (Chrome)",
205+
"configurations": [
206+
"Attach to Frontend in Outlook (Chrome)",
207+
"Start Python"
208+
],
209+
"preLaunchTask": "Start App Locally",
210+
"presentation": {
211+
"group": "group 2: Outlook",
212+
"order": 2
213+
},
214+
"stopAll": true
215+
},
216+
{
217+
"name": "Debug in the Microsoft 365 app (Edge)",
218+
"configurations": [
219+
"Attach to Frontend in the Microsoft 365 app (Edge)",
220+
"Start Python"
221+
],
222+
"preLaunchTask": "Start App Locally",
223+
"presentation": {
224+
"group": "group 3: the Microsoft 365 app",
225+
"order": 1
226+
},
227+
"stopAll": true
228+
},
229+
{
230+
"name": "Debug in the Microsoft 365 app (Chrome)",
231+
"configurations": [
232+
"Attach to Frontend in the Microsoft 365 app (Chrome)",
233+
"Start Python"
234+
],
235+
"preLaunchTask": "Start App Locally",
236+
"presentation": {
237+
"group": "group 3: the Microsoft 365 app",
238+
"order": 2
239+
},
240+
"stopAll": true
241+
}
242+
]
243+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"debug.onTaskErrors": "abort",
3+
"json.schemas": [
4+
{
5+
"fileMatch": [
6+
"/aad.*.json"
7+
],
8+
"schema": {}
9+
}
10+
]
11+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 App Locally",
9+
"dependsOn": [
10+
"Validate prerequisites",
11+
"Start local tunnel",
12+
"Provision",
13+
"Deploy"
14+
],
15+
"dependsOrder": "sequence"
16+
},
17+
{
18+
// Check all required prerequisites.
19+
// See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
20+
"label": "Validate prerequisites",
21+
"type": "teamsfx",
22+
"command": "debug-check-prerequisites",
23+
"args": {
24+
"prerequisites": [
25+
"nodejs", // Validate if Node.js is installed.
26+
"m365Account", // Sign-in prompt for Microsoft 365 account, then validate if the account enables the sideloading permission.
27+
"portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
28+
],
29+
"portOccupancy": [
30+
53000
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": 53000,
45+
"protocol": "http",
46+
"access": "public",
47+
"writeToEnvironmentFile": {
48+
"endpoint": "TAB_ENDPOINT", // output tunnel endpoint as TAB_ENDPOINT
49+
"domain": "TAB_DOMAIN" // output tunnel domain as TAB_DOMAIN
50+
}
51+
}
52+
],
53+
"env": "local"
54+
},
55+
"isBackground": true,
56+
"problemMatcher": "$teamsfx-local-tunnel-watch"
57+
},
58+
{
59+
// Create the debug resources.
60+
// See https://aka.ms/teamsfx-tasks/provision to know the details and how to customize the args.
61+
"label": "Provision",
62+
"type": "teamsfx",
63+
"command": "provision",
64+
"args": {
65+
"env": "local"
66+
}
67+
},
68+
{
69+
// Build project.
70+
// See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
71+
"label": "Deploy",
72+
"type": "teamsfx",
73+
"command": "deploy",
74+
"args": {
75+
"env": "local"
76+
}
77+
}
78+
]
79+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.venv/
2+
.vscode/
3+
.env
4+
env/
5+
__pycache__/
6+
README.md
7+
m365agents.yml
8+
m365agents.local.yml
9+
m365agents.playground.yml
10+
/devTools/

0 commit comments

Comments
 (0)