@microsoft/teamsfx-core 3.0.10-alpha.5572a8259.0 → 3.0.10-alpha.5cc07b2c7.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/common/featureFlags.d.ts +5 -20
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +6 -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.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.js +3 -7
- package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/component/driver/script/scriptDriver.js +1 -1
- package/build/component/driver/script/scriptDriver.js.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 +168 -0
- package/build/component/generator/configFiles/configGenerator.js.map +1 -0
- package/build/component/generator/configFiles/copyPolicy.d.ts +12 -0
- package/build/component/generator/configFiles/copyPolicy.d.ts.map +1 -0
- package/build/component/generator/configFiles/copyPolicy.js +63 -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/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 +2 -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/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 +43 -246
- 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 +64 -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 +4 -4
- package/resource/package.nls.cs.json +4 -5
- package/resource/package.nls.de.json +3 -4
- package/resource/package.nls.es.json +4 -5
- package/resource/package.nls.fr.json +3 -4
- package/resource/package.nls.it.json +4 -5
- package/resource/package.nls.ja.json +4 -5
- package/resource/package.nls.json +3 -4
- package/resource/package.nls.ko.json +3 -4
- package/resource/package.nls.pl.json +4 -5
- package/resource/package.nls.pt-BR.json +4 -5
- package/resource/package.nls.ru.json +3 -4
- package/resource/package.nls.tr.json +3 -4
- package/resource/package.nls.zh-Hans.json +4 -5
- package/resource/package.nls.zh-Hant.json +4 -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/env/.env.playground.user +0 -0
- package/templates/configs/playground/python/m365agents.playground.yml +14 -0
- package/templates/configs/playground/typescript/.gitignore +4 -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/configs/remote/python/.vscode/launch.json.tpl +70 -0
- package/templates/configs/remote/python/.webappignore +11 -0
- package/templates/configs/remote/python/env/.env.dev +11 -0
- package/templates/configs/remote/python/infra/azure.bicep.tpl +108 -0
- package/templates/configs/remote/python/infra/azure.parameters.json.tpl +20 -0
- package/templates/configs/remote/python/infra/botRegistration/azurebot.bicep +42 -0
- package/templates/configs/remote/python/infra/botRegistration/readme.md +1 -0
- package/templates/configs/remote/python/m365agents.yml.tpl +131 -0
- package/templates/configs/remote/typescript/.vscode/launch.json.tpl +70 -0
- package/templates/configs/remote/typescript/.webappignore +27 -0
- package/templates/configs/remote/typescript/env/.env.dev +11 -0
- package/templates/configs/remote/typescript/infra/azure.bicep.tpl +105 -0
- package/templates/configs/remote/typescript/infra/azure.parameters.json.tpl +17 -0
- package/templates/configs/remote/typescript/infra/botRegistration/azurebot.bicep +42 -0
- package/templates/configs/remote/typescript/infra/botRegistration/readme.md +1 -0
- package/templates/configs/remote/typescript/m365agents.yml.tpl +142 -0
- package/templates/configs/remote/typescript/web.config +60 -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,142 @@
|
|
|
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
|
+
- uses: arm/deploy # Deploy given ARM templates parallelly.
|
|
18
|
+
with:
|
|
19
|
+
# AZURE_SUBSCRIPTION_ID is a built-in environment variable,
|
|
20
|
+
# if its value is empty, toolkit will prompt you to select a subscription.
|
|
21
|
+
# Referencing other environment variables with empty values
|
|
22
|
+
# will skip the subscription selection prompt.
|
|
23
|
+
subscriptionId: $\{{AZURE_SUBSCRIPTION_ID}}
|
|
24
|
+
# AZURE_RESOURCE_GROUP_NAME is a built-in environment variable,
|
|
25
|
+
# if its value is empty, toolkit will prompt you to select or create one
|
|
26
|
+
# resource group.
|
|
27
|
+
# Referencing other environment variables with empty values
|
|
28
|
+
# will skip the resource group selection prompt.
|
|
29
|
+
resourceGroupName: $\{{AZURE_RESOURCE_GROUP_NAME}}
|
|
30
|
+
templates:
|
|
31
|
+
- path: ./infra/azure.bicep # Relative path to this file
|
|
32
|
+
# Placeholders will be replaced with corresponding environment
|
|
33
|
+
# variable before ARM deployment.
|
|
34
|
+
parameters: ./infra/azure.parameters.json
|
|
35
|
+
# Required when deploying ARM template
|
|
36
|
+
deploymentName: Create-resources
|
|
37
|
+
# Microsoft 365 Agents Toolkit will download this bicep CLI version from github for you,
|
|
38
|
+
# will use bicep CLI in PATH if you remove this config.
|
|
39
|
+
bicepCliVersion: v0.9.1
|
|
40
|
+
|
|
41
|
+
# Validate using manifest schema
|
|
42
|
+
- uses: teamsApp/validateManifest
|
|
43
|
+
with:
|
|
44
|
+
# Path to manifest template
|
|
45
|
+
manifestPath: ./appPackage/manifest.json
|
|
46
|
+
|
|
47
|
+
# Build app package with latest env value
|
|
48
|
+
- uses: teamsApp/zipAppPackage
|
|
49
|
+
with:
|
|
50
|
+
# Path to manifest template
|
|
51
|
+
manifestPath: ./appPackage/manifest.json
|
|
52
|
+
outputZipPath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
53
|
+
outputFolder: ./appPackage/build
|
|
54
|
+
|
|
55
|
+
# Validate app package using validation rules
|
|
56
|
+
- uses: teamsApp/validateAppPackage
|
|
57
|
+
with:
|
|
58
|
+
# Relative path to this file. This is the path for built zip file.
|
|
59
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
60
|
+
|
|
61
|
+
# Apply the app manifest to an existing app in Developer Portal.
|
|
62
|
+
# Will use the app id in manifest file to determine which app to update.
|
|
63
|
+
- uses: teamsApp/update
|
|
64
|
+
with:
|
|
65
|
+
# Relative path to this file. This is the path for built zip file.
|
|
66
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
67
|
+
|
|
68
|
+
{{#hasCopilot}}
|
|
69
|
+
- uses: teamsApp/extendToM365
|
|
70
|
+
with:
|
|
71
|
+
# Relative path to the build app package.
|
|
72
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
73
|
+
# Write the information of created resources into environment file for
|
|
74
|
+
# the specified environment variable(s).
|
|
75
|
+
writeToEnvironmentFile:
|
|
76
|
+
titleId: M365_TITLE_ID
|
|
77
|
+
appId: M365_APP_ID
|
|
78
|
+
{{/hasCopilot}}
|
|
79
|
+
|
|
80
|
+
deploy:
|
|
81
|
+
# Run npm command
|
|
82
|
+
- uses: cli/runNpmCommand
|
|
83
|
+
name: install dependencies
|
|
84
|
+
with:
|
|
85
|
+
args: install
|
|
86
|
+
|
|
87
|
+
- uses: cli/runNpmCommand
|
|
88
|
+
name: build app
|
|
89
|
+
with:
|
|
90
|
+
args: run build --if-present
|
|
91
|
+
|
|
92
|
+
# Deploy your application to Azure App Service using the zip deploy feature.
|
|
93
|
+
# For additional details, refer to https://aka.ms/zip-deploy-to-app-services.
|
|
94
|
+
- uses: azureAppService/zipDeploy
|
|
95
|
+
with:
|
|
96
|
+
# Deploy base folder
|
|
97
|
+
artifactFolder: .
|
|
98
|
+
# Ignore file location, leave blank will ignore nothing
|
|
99
|
+
ignoreFile: .webappignore
|
|
100
|
+
# The resource id of the cloud resource to be deployed to.
|
|
101
|
+
# This key will be generated by arm/deploy action automatically.
|
|
102
|
+
# You can replace it with your existing Azure Resource id
|
|
103
|
+
# or add it to your environment variable file.
|
|
104
|
+
resourceId: $\{{AZURE_APP_SERVICE_RESOURCE_ID}}
|
|
105
|
+
|
|
106
|
+
publish:
|
|
107
|
+
# Validate using manifest schema
|
|
108
|
+
- uses: teamsApp/validateManifest
|
|
109
|
+
with:
|
|
110
|
+
# Path to manifest template
|
|
111
|
+
manifestPath: ./appPackage/manifest.json
|
|
112
|
+
|
|
113
|
+
# Build app package with latest env value
|
|
114
|
+
- uses: teamsApp/zipAppPackage
|
|
115
|
+
with:
|
|
116
|
+
# Path to manifest template
|
|
117
|
+
manifestPath: ./appPackage/manifest.json
|
|
118
|
+
outputZipPath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
119
|
+
outputFolder: ./appPackage/build
|
|
120
|
+
|
|
121
|
+
# Validate app package using validation rules
|
|
122
|
+
- uses: teamsApp/validateAppPackage
|
|
123
|
+
with:
|
|
124
|
+
# Relative path to this file. This is the path for built zip file.
|
|
125
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
126
|
+
|
|
127
|
+
# Apply the app manifest to an existing app in Developer Portal.
|
|
128
|
+
# Will use the app id in manifest file to determine which app to update.
|
|
129
|
+
- uses: teamsApp/update
|
|
130
|
+
with:
|
|
131
|
+
# Relative path to this file. This is the path for built zip file.
|
|
132
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
133
|
+
|
|
134
|
+
# Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps)
|
|
135
|
+
# for review and approval
|
|
136
|
+
- uses: teamsApp/publishAppPackage
|
|
137
|
+
with:
|
|
138
|
+
appPackagePath: ./appPackage/build/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
139
|
+
# Write the information of created resources into environment file for
|
|
140
|
+
# the specified environment variable(s).
|
|
141
|
+
writeToEnvironmentFile:
|
|
142
|
+
publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
This configuration file is required if iisnode is used to run node processes behind
|
|
4
|
+
IIS or IIS Express. For more information, visit:
|
|
5
|
+
|
|
6
|
+
https://github.com/tjanczuk/iisnode/blob/master/lib/src/samples/configuration/web.config
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<configuration>
|
|
10
|
+
<system.webServer>
|
|
11
|
+
<webSocket enabled="false" />
|
|
12
|
+
<handlers>
|
|
13
|
+
<!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
|
|
14
|
+
<add name="iisnode" path="dist/index.js" verb="*" modules="iisnode"/>
|
|
15
|
+
</handlers>
|
|
16
|
+
<rewrite>
|
|
17
|
+
<rules>
|
|
18
|
+
<!-- Do not interfere with requests for node-inspector debugging -->
|
|
19
|
+
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
|
|
20
|
+
<match url="^dist/index.js\/debug[\/]?" />
|
|
21
|
+
</rule>
|
|
22
|
+
|
|
23
|
+
<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
|
|
24
|
+
<rule name="StaticContent">
|
|
25
|
+
<action type="Rewrite" url="public{PATH_INFO}"/>
|
|
26
|
+
</rule>
|
|
27
|
+
|
|
28
|
+
<!-- All other URLs are mapped to the node.js site entry point -->
|
|
29
|
+
<rule name="DynamicContent">
|
|
30
|
+
<conditions>
|
|
31
|
+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
|
|
32
|
+
</conditions>
|
|
33
|
+
<action type="Rewrite" url="dist/index.js"/>
|
|
34
|
+
</rule>
|
|
35
|
+
</rules>
|
|
36
|
+
</rewrite>
|
|
37
|
+
|
|
38
|
+
<!-- 'bin' directory has no special meaning in node.js and apps can be placed in it -->
|
|
39
|
+
<security>
|
|
40
|
+
<requestFiltering>
|
|
41
|
+
<hiddenSegments>
|
|
42
|
+
<remove segment="bin"/>
|
|
43
|
+
</hiddenSegments>
|
|
44
|
+
</requestFiltering>
|
|
45
|
+
</security>
|
|
46
|
+
|
|
47
|
+
<!-- Make sure error responses are left untouched -->
|
|
48
|
+
<httpErrors existingResponse="PassThrough" />
|
|
49
|
+
|
|
50
|
+
<!--
|
|
51
|
+
You can control how Node is hosted within IIS using the following options:
|
|
52
|
+
* watchedFiles: semi-colon separated list of files that will be watched for changes to restart the server
|
|
53
|
+
* node_env: will be propagated to node as NODE_ENV environment variable
|
|
54
|
+
* debuggingEnabled - controls whether the built-in debugger is enabled
|
|
55
|
+
|
|
56
|
+
See https://github.com/tjanczuk/iisnode/blob/master/lib/src/samples/configuration/web.config for a full list of options
|
|
57
|
+
-->
|
|
58
|
+
<!--<iisnode watchedFiles="web.config;*.js"/>-->
|
|
59
|
+
</system.webServer>
|
|
60
|
+
</configuration>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/metadata.zip
CHANGED
|
Binary file
|