@microsoft/teamsfx-core 3.0.10-alpha.3344620f2.0 → 3.0.10-alpha.3c606d131.0
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.
- package/build/client/graphClient.d.ts +1 -0
- package/build/client/graphClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.d.ts +1 -0
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/common/featureFlags.d.ts +10 -20
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +11 -20
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/telemetry.d.ts +2 -0
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +2 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +0 -11
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.d.ts +5 -1
- package/build/component/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.js +16 -8
- package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/component/driver/deploy/spfx/utility/spoClient.d.ts +1 -0
- package/build/component/driver/deploy/spfx/utility/spoClient.d.ts.map +1 -1
- package/build/component/driver/devTool/httpClient.d.ts +1 -0
- package/build/component/driver/devTool/httpClient.d.ts.map +1 -1
- package/build/component/driver/devTool/nodeInstaller.d.ts +1 -0
- package/build/component/driver/devTool/nodeInstaller.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +1 -0
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +1 -1
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +2 -2
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -0
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/appPackage.d.ts +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/appPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +1 -0
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/generator/configFiles/configGenerator.d.ts +15 -0
- package/build/component/generator/configFiles/configGenerator.d.ts.map +1 -0
- package/build/component/generator/configFiles/configGenerator.js +167 -0
- package/build/component/generator/configFiles/configGenerator.js.map +1 -0
- package/build/component/generator/configFiles/copyPolicy.d.ts +10 -0
- package/build/component/generator/configFiles/copyPolicy.d.ts.map +1 -0
- package/build/component/generator/configFiles/copyPolicy.js +42 -0
- package/build/component/generator/configFiles/copyPolicy.js.map +1 -0
- package/build/component/generator/configFiles/jsonMerger.d.ts +11 -0
- package/build/component/generator/configFiles/jsonMerger.d.ts.map +1 -0
- package/build/component/generator/configFiles/jsonMerger.js +83 -0
- package/build/component/generator/configFiles/jsonMerger.js.map +1 -0
- package/build/component/generator/configFiles/renderTemplate.d.ts +2 -0
- package/build/component/generator/configFiles/renderTemplate.d.ts.map +1 -0
- package/build/component/generator/configFiles/renderTemplate.js +16 -0
- package/build/component/generator/configFiles/renderTemplate.js.map +1 -0
- package/build/component/generator/declarativeAgent/generator.d.ts +5 -0
- package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/generator.js +76 -36
- package/build/component/generator/declarativeAgent/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/helper.js +0 -1
- package/build/component/generator/declarativeAgent/helper.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +1 -0
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/common.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/common.js +11 -22
- package/build/component/generator/openApiSpec/common.js.map +1 -1
- package/build/component/generator/openApiSpec/kiota.d.ts +0 -6
- package/build/component/generator/openApiSpec/kiota.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/kiota.js +2 -17
- package/build/component/generator/openApiSpec/kiota.js.map +1 -1
- package/build/component/generator/templates/templateInfo.d.ts +1 -1
- package/build/component/generator/templates/templateInfo.d.ts.map +1 -1
- package/build/component/generator/utils.d.ts +3 -2
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +16 -20
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +1 -0
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/pathUtils.d.ts +2 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +19 -3
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.d.ts +1 -1
- package/build/component/utils/settingsUtil.d.ts.map +1 -1
- package/build/component/utils/settingsUtil.js +20 -7
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/core/FxCore.d.ts +6 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +6 -0
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -0
- package/build/core/FxCore.declarativeAgent.js +210 -0
- package/build/core/FxCore.declarativeAgent.js.map +1 -0
- package/build/core/FxCore.js +45 -248
- package/build/core/FxCore.js.map +1 -1
- package/build/core/generateConfigFiles.d.ts +4 -0
- package/build/core/generateConfigFiles.d.ts.map +1 -0
- package/build/core/generateConfigFiles.js +61 -0
- package/build/core/generateConfigFiles.js.map +1 -0
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +8 -2
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +0 -2
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +0 -3
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +0 -3
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts +0 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.js +1 -14
- package/build/question/scaffold/vsc/ProjectTypeOptions.js.map +1 -1
- package/build/question/scaffold/vsc/createRootNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/createRootNode.js +1 -5
- package/build/question/scaffold/vsc/createRootNode.js.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.js +1 -2
- package/build/question/scaffold/vsc/daProjectTypeNode.js.map +1 -1
- package/build/question/scaffold/vsc/officeAddinProjectTypeNode.d.ts +0 -1
- package/build/question/scaffold/vsc/officeAddinProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/officeAddinProjectTypeNode.js +2 -51
- package/build/question/scaffold/vsc/officeAddinProjectTypeNode.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +4 -15
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/package.json +5 -5
- package/resource/package.nls.cs.json +1 -0
- package/resource/package.nls.de.json +13 -12
- package/resource/package.nls.es.json +12 -11
- package/resource/package.nls.fr.json +1 -0
- package/resource/package.nls.it.json +1 -0
- package/resource/package.nls.ja.json +2 -1
- package/resource/package.nls.json +3 -4
- package/resource/package.nls.ko.json +12 -11
- package/resource/package.nls.pl.json +12 -11
- package/resource/package.nls.pt-BR.json +8 -7
- package/resource/package.nls.ru.json +3 -2
- package/resource/package.nls.tr.json +1 -0
- package/resource/package.nls.zh-Hans.json +1 -0
- package/resource/package.nls.zh-Hant.json +6 -5
- package/templates/configs/local/python/.vscode/launch.json.tpl +93 -0
- package/templates/configs/local/python/.vscode/tasks.json.tpl +103 -0
- package/templates/configs/local/python/env/.env.local +6 -0
- package/templates/configs/local/python/m365agents.local.yml.tpl +121 -0
- package/templates/configs/local/typescript/.gitignore +1 -0
- package/templates/configs/local/typescript/.vscode/launch.json.tpl +147 -0
- package/templates/configs/local/typescript/.vscode/tasks.json.tpl +129 -0
- package/templates/configs/local/typescript/env/.env.local +6 -0
- package/templates/configs/local/typescript/m365agents.local.yml.tpl +129 -0
- package/templates/configs/local/typescript/package.json +8 -0
- package/templates/configs/playground/python/.vscode/launch.json +46 -0
- package/templates/configs/playground/python/.vscode/tasks.json +35 -0
- package/templates/configs/playground/python/env/.env.playground +7 -0
- package/templates/configs/playground/python/m365agents.playground.yml +14 -0
- package/templates/configs/playground/typescript/.gitignore +4 -0
- package/templates/configs/playground/typescript/.localConfigs.playground +0 -0
- package/templates/configs/playground/typescript/.vscode/launch.json +31 -0
- package/templates/configs/playground/typescript/.vscode/tasks.json +104 -0
- package/templates/configs/playground/typescript/env/.env.playground +7 -0
- package/templates/configs/playground/typescript/env/.env.playground.user +0 -0
- package/templates/configs/playground/typescript/m365agents.playground.yml +23 -0
- package/templates/configs/playground/typescript/package.json +9 -0
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata.zip +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://aka.ms/m365-agents-toolkits/v1.11/yaml.schema.json
|
|
2
|
+
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
|
|
3
|
+
# Visit https://aka.ms/teamsfx-actions for details on actions
|
|
4
|
+
version: v1.11
|
|
5
|
+
|
|
6
|
+
provision:
|
|
7
|
+
# Creates an app
|
|
8
|
+
- uses: teamsApp/create
|
|
9
|
+
with:
|
|
10
|
+
# app name
|
|
11
|
+
name: {{appName}}$\{{APP_NAME_SUFFIX}}
|
|
12
|
+
# Write the information of created resources into environment file for
|
|
13
|
+
# the specified environment variable(s).
|
|
14
|
+
writeToEnvironmentFile:
|
|
15
|
+
teamsAppId: TEAMS_APP_ID
|
|
16
|
+
|
|
17
|
+
{{^hasAzureBot}}
|
|
18
|
+
{{#hasTab}}
|
|
19
|
+
# Set BOT_DOMAIN and BOT_ENDPOINT for local launch
|
|
20
|
+
- uses: script
|
|
21
|
+
with:
|
|
22
|
+
run:
|
|
23
|
+
echo "::set-teamsfx-env BOT_DOMAIN=localhost";
|
|
24
|
+
echo "::set-teamsfx-env BOT_ENDPOINT=https://localhost:3978";
|
|
25
|
+
{{/hasTab}}
|
|
26
|
+
{{/hasAzureBot}}
|
|
27
|
+
|
|
28
|
+
{{#hasAzureBot}}
|
|
29
|
+
# Create or reuse an existing Microsoft Entra application for bot.
|
|
30
|
+
- uses: aadApp/create
|
|
31
|
+
with:
|
|
32
|
+
# The Microsoft Entra application's display name
|
|
33
|
+
name: {{appName}}$\{{APP_NAME_SUFFIX}}
|
|
34
|
+
generateClientSecret: true
|
|
35
|
+
generateServicePrincipal: true
|
|
36
|
+
signInAudience: AzureADMultipleOrgs
|
|
37
|
+
writeToEnvironmentFile:
|
|
38
|
+
# The Microsoft Entra application's client id created for bot.
|
|
39
|
+
clientId: BOT_ID
|
|
40
|
+
# The Microsoft Entra application's client secret created for bot.
|
|
41
|
+
clientSecret: SECRET_BOT_PASSWORD
|
|
42
|
+
# The Microsoft Entra application's object id created for bot.
|
|
43
|
+
objectId: BOT_OBJECT_ID
|
|
44
|
+
|
|
45
|
+
# Create or update the bot registration on dev.botframework.com
|
|
46
|
+
- uses: botFramework/create
|
|
47
|
+
with:
|
|
48
|
+
botId: $\{{BOT_ID}}
|
|
49
|
+
name: {{appName}}
|
|
50
|
+
messagingEndpoint: $\{{BOT_ENDPOINT}}/api/messages
|
|
51
|
+
description: ""
|
|
52
|
+
channels:
|
|
53
|
+
- name: msteams
|
|
54
|
+
{{/hasAzureBot}}
|
|
55
|
+
|
|
56
|
+
# Validate using manifest schema
|
|
57
|
+
- uses: teamsApp/validateManifest
|
|
58
|
+
with:
|
|
59
|
+
# Path to manifest template
|
|
60
|
+
manifestPath: ./appPackage/manifest.json
|
|
61
|
+
|
|
62
|
+
# Build app package with latest env value
|
|
63
|
+
- uses: teamsApp/zipAppPackage
|
|
64
|
+
with:
|
|
65
|
+
# Path to manifest template
|
|
66
|
+
manifestPath: ./appPackage/manifest.json
|
|
67
|
+
outputZipPath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
68
|
+
outputFolder: ./appPackage/build
|
|
69
|
+
|
|
70
|
+
# Validate app package using validation rules
|
|
71
|
+
- uses: teamsApp/validateAppPackage
|
|
72
|
+
with:
|
|
73
|
+
# Relative path to this file. This is the path for built zip file.
|
|
74
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
75
|
+
|
|
76
|
+
# Apply the app manifest to an existing app in Developer Portal.
|
|
77
|
+
# Will use the app id in manifest file to determine which app to update.
|
|
78
|
+
- uses: teamsApp/update
|
|
79
|
+
with:
|
|
80
|
+
# Relative path to this file. This is the path for built zip file.
|
|
81
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
82
|
+
|
|
83
|
+
{{#hasCopilot}}
|
|
84
|
+
- uses: teamsApp/extendToM365
|
|
85
|
+
with:
|
|
86
|
+
# Relative path to the build app package.
|
|
87
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
88
|
+
# Write the information of created resources into environment file for
|
|
89
|
+
# the specified environment variable(s).
|
|
90
|
+
writeToEnvironmentFile:
|
|
91
|
+
titleId: M365_TITLE_ID
|
|
92
|
+
appId: M365_APP_ID
|
|
93
|
+
{{/hasCopilot}}
|
|
94
|
+
|
|
95
|
+
deploy:
|
|
96
|
+
{{#hasTab}}
|
|
97
|
+
# Install development tool(s)
|
|
98
|
+
- uses: devTool/install
|
|
99
|
+
with:
|
|
100
|
+
devCert:
|
|
101
|
+
trust: true
|
|
102
|
+
# Write the information of installed development tool(s) into environment
|
|
103
|
+
# file for the specified environment variable(s).
|
|
104
|
+
writeToEnvironmentFile:
|
|
105
|
+
sslCertFile: SSL_CRT_FILE
|
|
106
|
+
sslKeyFile: SSL_KEY_FILE
|
|
107
|
+
|
|
108
|
+
{{/hasTab}}
|
|
109
|
+
# Run npm command
|
|
110
|
+
- uses: cli/runNpmCommand
|
|
111
|
+
name: install dependencies
|
|
112
|
+
with:
|
|
113
|
+
args: install
|
|
114
|
+
|
|
115
|
+
# Generate runtime environment variables
|
|
116
|
+
- uses: file/createOrUpdateEnvironmentFile
|
|
117
|
+
with:
|
|
118
|
+
target: ./.localConfigs
|
|
119
|
+
envs:
|
|
120
|
+
PORT: 3978
|
|
121
|
+
{{#hasAzureBot}}
|
|
122
|
+
CLIENT_ID: $\{{BOT_ID}}
|
|
123
|
+
CLIENT_SECRET: $\{{SECRET_BOT_PASSWORD}}
|
|
124
|
+
TENANT_ID: $\{{TEAMS_APP_TENANT_ID}}
|
|
125
|
+
{{/hasAzureBot}}
|
|
126
|
+
{{#hasTab}}
|
|
127
|
+
SSL_CRT_FILE: $\{{SSL_CRT_FILE}}
|
|
128
|
+
SSL_KEY_FILE: $\{{SSL_KEY_FILE}}
|
|
129
|
+
{{/hasTab}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Start Python",
|
|
6
|
+
"type": "debugpy",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "${workspaceFolder}/src/app.py",
|
|
9
|
+
"cwd": "${workspaceFolder}/src",
|
|
10
|
+
"console": "integratedTerminal"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Start Microsoft 365 Agents Playground",
|
|
14
|
+
"type": "node",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"program": "${workspaceFolder}/devTools/playground/node_modules/@microsoft/m365agentsplayground/cli.js",
|
|
17
|
+
"args": [
|
|
18
|
+
"start"
|
|
19
|
+
],
|
|
20
|
+
"env": {
|
|
21
|
+
"PATH": "${workspaceFolder}/devTools/nodejs;${env:PATH}"
|
|
22
|
+
},
|
|
23
|
+
"cwd": "${workspaceFolder}",
|
|
24
|
+
"console": "integratedTerminal",
|
|
25
|
+
"internalConsoleOptions": "neverOpen"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"compounds": [
|
|
29
|
+
{
|
|
30
|
+
"name": "Debug in Microsoft 365 Agents Playground",
|
|
31
|
+
"configurations": [
|
|
32
|
+
"Start Python",
|
|
33
|
+
"Start Microsoft 365 Agents Playground"
|
|
34
|
+
],
|
|
35
|
+
"cascadeTerminateToConfigurations": [
|
|
36
|
+
"Start Microsoft 365 Agents Playground"
|
|
37
|
+
],
|
|
38
|
+
"preLaunchTask": "Deploy (Microsoft 365 Agents Playground)",
|
|
39
|
+
"presentation": {
|
|
40
|
+
"group": "1-playground",
|
|
41
|
+
"order": 1
|
|
42
|
+
},
|
|
43
|
+
"stopAll": true
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
// Check all required prerequisites.
|
|
6
|
+
// See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
|
|
7
|
+
"label": "Validate prerequisites (Microsoft 365 Agents Playground)",
|
|
8
|
+
"type": "teamsfx",
|
|
9
|
+
"command": "debug-check-prerequisites",
|
|
10
|
+
"args": {
|
|
11
|
+
"prerequisites": [
|
|
12
|
+
"nodejs", // Check if Node.js is installed and the version is >= 12.
|
|
13
|
+
"portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
|
|
14
|
+
],
|
|
15
|
+
"portOccupancy": [
|
|
16
|
+
3978, // app service port
|
|
17
|
+
56150, // Microsoft 365 Agents Playground port
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
// Build project.
|
|
23
|
+
// See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
|
|
24
|
+
"label": "Deploy (Microsoft 365 Agents Playground)",
|
|
25
|
+
"dependsOn": [
|
|
26
|
+
"Validate prerequisites (Microsoft 365 Agents Playground)"
|
|
27
|
+
],
|
|
28
|
+
"type": "teamsfx",
|
|
29
|
+
"command": "deploy",
|
|
30
|
+
"args": {
|
|
31
|
+
"env": "playground"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# This file includes environment variables that can be committed to git. It's gitignored by default because it represents your local development environment.
|
|
2
|
+
|
|
3
|
+
# Built-in environment variables
|
|
4
|
+
TEAMSFX_ENV=playground
|
|
5
|
+
|
|
6
|
+
# Environment variables used by Microsoft 365 Agents Playground
|
|
7
|
+
TEAMSAPPTESTER_PORT=56150
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://aka.ms/m365-agents-toolkits/v1.11/yaml.schema.json
|
|
2
|
+
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
|
|
3
|
+
# Visit https://aka.ms/teamsfx-actions for details on actions
|
|
4
|
+
version: v1.11
|
|
5
|
+
|
|
6
|
+
deploy:
|
|
7
|
+
# Install development tool(s)
|
|
8
|
+
- uses: devTool/install
|
|
9
|
+
with:
|
|
10
|
+
testTool:
|
|
11
|
+
version: ~0.2.7
|
|
12
|
+
symlinkDir: ./devTools/playground
|
|
13
|
+
nodejs:
|
|
14
|
+
symlinkDir: ./devTools/nodejs
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Attach to Local Service",
|
|
6
|
+
"type": "node",
|
|
7
|
+
"request": "attach",
|
|
8
|
+
"port": 9239,
|
|
9
|
+
"restart": true,
|
|
10
|
+
"presentation": {
|
|
11
|
+
"group": "all",
|
|
12
|
+
"hidden": true
|
|
13
|
+
},
|
|
14
|
+
"internalConsoleOptions": "neverOpen"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"compounds": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Debug in Microsoft 365 Agents Playground",
|
|
20
|
+
"configurations": [
|
|
21
|
+
"Attach to Local Service"
|
|
22
|
+
],
|
|
23
|
+
"preLaunchTask": "Start App in Microsoft 365 Agents Playground",
|
|
24
|
+
"presentation": {
|
|
25
|
+
"group": "1-playground",
|
|
26
|
+
"order": 1
|
|
27
|
+
},
|
|
28
|
+
"stopAll": true
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
"label": "Start App in Microsoft 365 Agents Playground",
|
|
6
|
+
"dependsOn": [
|
|
7
|
+
"Validate prerequisites (Microsoft 365 Agents Playground)",
|
|
8
|
+
"Deploy (Microsoft 365 Agents Playground)",
|
|
9
|
+
"Start application (Microsoft 365 Agents Playground)",
|
|
10
|
+
"Start Microsoft 365 Agents Playground"
|
|
11
|
+
],
|
|
12
|
+
"dependsOrder": "sequence"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
// Check all required prerequisites.
|
|
16
|
+
// See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
|
|
17
|
+
"label": "Validate prerequisites (Microsoft 365 Agents Playground)",
|
|
18
|
+
"type": "teamsfx",
|
|
19
|
+
"command": "debug-check-prerequisites",
|
|
20
|
+
"args": {
|
|
21
|
+
"prerequisites": [
|
|
22
|
+
"nodejs", // Validate if Node.js is installed.
|
|
23
|
+
"portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
|
|
24
|
+
],
|
|
25
|
+
"portOccupancy": [
|
|
26
|
+
3978, // app service port
|
|
27
|
+
9239, // app inspector port for Node.js debugger
|
|
28
|
+
56150 // Microsoft 365 Agents Playground port
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
// Build project.
|
|
34
|
+
// See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
|
|
35
|
+
"label": "Deploy (Microsoft 365 Agents Playground)",
|
|
36
|
+
"type": "teamsfx",
|
|
37
|
+
"command": "deploy",
|
|
38
|
+
"args": {
|
|
39
|
+
"env": "playground"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"label": "Start application (Microsoft 365 Agents Playground)",
|
|
44
|
+
"type": "shell",
|
|
45
|
+
"command": "npm run dev:teamsfx:playground",
|
|
46
|
+
"isBackground": true,
|
|
47
|
+
"options": {
|
|
48
|
+
"cwd": "${workspaceFolder}"
|
|
49
|
+
},
|
|
50
|
+
"problemMatcher": {
|
|
51
|
+
"pattern": [
|
|
52
|
+
{
|
|
53
|
+
"regexp": "^.*$",
|
|
54
|
+
"file": 0,
|
|
55
|
+
"location": 1,
|
|
56
|
+
"message": 2
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"background": {
|
|
60
|
+
"activeOnStart": true,
|
|
61
|
+
"beginsPattern": "[nodemon] starting",
|
|
62
|
+
"endsPattern": "listening on port 3978|Bot/ME service listening at|[nodemon] app crashed"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": "Start Microsoft 365 Agents Playground",
|
|
68
|
+
"type": "shell",
|
|
69
|
+
"command": "npm run dev:teamsfx:launch-playground",
|
|
70
|
+
"isBackground": true,
|
|
71
|
+
"options": {
|
|
72
|
+
"env": {
|
|
73
|
+
"PATH": "${workspaceFolder}/devTools/playground/node_modules/.bin;${env:PATH}"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"windows": {
|
|
77
|
+
"options": {
|
|
78
|
+
"env": {
|
|
79
|
+
"PATH": "${workspaceFolder}/devTools/playground/node_modules/.bin;${env:PATH}"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"problemMatcher": {
|
|
84
|
+
"pattern": [
|
|
85
|
+
{
|
|
86
|
+
"regexp": "^.*$",
|
|
87
|
+
"file": 0,
|
|
88
|
+
"location": 1,
|
|
89
|
+
"message": 2
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"background": {
|
|
93
|
+
"activeOnStart": true,
|
|
94
|
+
"beginsPattern": ".*",
|
|
95
|
+
"endsPattern": "Listening on"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"presentation": {
|
|
99
|
+
"panel": "dedicated",
|
|
100
|
+
"reveal": "silent"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# This file includes environment variables that can be committed to git. It's gitignored by default because it represents your local development environment.
|
|
2
|
+
|
|
3
|
+
# Built-in environment variables
|
|
4
|
+
TEAMSFX_ENV=playground
|
|
5
|
+
|
|
6
|
+
# Environment variables used by Microsoft 365 Agents Playground
|
|
7
|
+
TEAMSAPPTESTER_PORT=56150
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://aka.ms/m365-agents-toolkits/v1.11/yaml.schema.json
|
|
2
|
+
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
|
|
3
|
+
# Visit https://aka.ms/teamsfx-actions for details on actions
|
|
4
|
+
version: v1.11
|
|
5
|
+
|
|
6
|
+
deploy:
|
|
7
|
+
# Install development tool(s)
|
|
8
|
+
- uses: devTool/install
|
|
9
|
+
with:
|
|
10
|
+
testTool:
|
|
11
|
+
version: ~0.2.7
|
|
12
|
+
symlinkDir: ./devTools/playground
|
|
13
|
+
|
|
14
|
+
# Run npm command
|
|
15
|
+
- uses: cli/runNpmCommand
|
|
16
|
+
with:
|
|
17
|
+
args: install
|
|
18
|
+
|
|
19
|
+
- uses: file/createOrUpdateEnvironmentFile
|
|
20
|
+
with:
|
|
21
|
+
target: ./.localConfigs.playground
|
|
22
|
+
envs:
|
|
23
|
+
PORT: 3978
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/metadata.zip
CHANGED
|
Binary file
|