@microsoft/teamsfx-core 2.0.7-alpha.bdb04bd16.0 → 2.0.7-alpha.c341ae107.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/constants.d.ts +3 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/featureFlags.d.ts +1 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +5 -1
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +1 -2
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts +1 -0
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +13 -0
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectTypeChecker.d.ts.map +1 -1
- package/build/common/projectTypeChecker.js +1 -2
- package/build/common/projectTypeChecker.js.map +1 -1
- package/build/common/samples.d.ts +3 -2
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +84 -40
- package/build/common/samples.js.map +1 -1
- package/build/common/templates-config.json +1 -1
- package/build/component/coordinator/index.d.ts +8 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +36 -4
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -0
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +14 -0
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/apiKey/create.js +2 -2
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +5 -5
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +30 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +63 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +3 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +3 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +63 -14
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.d.ts +21 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.js +5 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.d.ts +17 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.js +16 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.d.ts +41 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.js +5 -0
- package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.js.map +1 -0
- package/build/component/generator/copilotPlugin/generator.d.ts +3 -2
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +31 -15
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +1 -1
- package/build/component/generator/copilotPlugin/helper.js +19 -19
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/error.d.ts +1 -1
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +4 -4
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts +5 -0
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +27 -25
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +5 -15
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +44 -92
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.d.ts +1 -0
- package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.js +1 -0
- package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.d.ts +1 -4
- package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.js +4 -11
- package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +7 -6
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +2 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +21 -10
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/utils.d.ts +0 -1
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +26 -18
- package/build/component/generator/utils.js.map +1 -1
- package/build/core/FxCore.js +3 -3
- package/build/core/FxCore.js.map +1 -1
- package/build/error/arm.d.ts.map +1 -1
- package/build/error/arm.js +0 -2
- package/build/error/arm.js.map +1 -1
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +1 -1
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +17 -6
- package/build/error/deploy.js.map +1 -1
- package/build/question/create.d.ts +17 -0
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +293 -35
- package/build/question/create.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +16 -4
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +52 -8
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/questionNames.d.ts +9 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +8 -0
- package/build/question/questionNames.js.map +1 -1
- package/package.json +6 -6
- package/resource/package.nls.json +100 -56
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Enable SSO.txt +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts +0 -7
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +0 -1
- package/build/common/spec-parser/adaptiveCardGenerator.js +0 -168
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +0 -1
- package/build/common/spec-parser/adaptiveCardWrapper.d.ts +0 -15
- package/build/common/spec-parser/adaptiveCardWrapper.d.ts.map +0 -1
- package/build/common/spec-parser/adaptiveCardWrapper.js +0 -98
- package/build/common/spec-parser/adaptiveCardWrapper.js.map +0 -1
- package/build/common/spec-parser/constants.d.ts +0 -41
- package/build/common/spec-parser/constants.d.ts.map +0 -1
- package/build/common/spec-parser/constants.js +0 -95
- package/build/common/spec-parser/constants.js.map +0 -1
- package/build/common/spec-parser/index.browser.d.ts +0 -6
- package/build/common/spec-parser/index.browser.d.ts.map +0 -1
- package/build/common/spec-parser/index.browser.js +0 -16
- package/build/common/spec-parser/index.browser.js.map +0 -1
- package/build/common/spec-parser/index.d.ts +0 -5
- package/build/common/spec-parser/index.d.ts.map +0 -1
- package/build/common/spec-parser/index.js +0 -16
- package/build/common/spec-parser/index.js.map +0 -1
- package/build/common/spec-parser/interfaces.d.ts +0 -180
- package/build/common/spec-parser/interfaces.d.ts.map +0 -1
- package/build/common/spec-parser/interfaces.js +0 -51
- package/build/common/spec-parser/interfaces.js.map +0 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +0 -7
- package/build/common/spec-parser/manifestUpdater.d.ts.map +0 -1
- package/build/common/spec-parser/manifestUpdater.js +0 -98
- package/build/common/spec-parser/manifestUpdater.js.map +0 -1
- package/build/common/spec-parser/specFilter.d.ts +0 -3
- package/build/common/spec-parser/specFilter.d.ts.map +0 -1
- package/build/common/spec-parser/specFilter.js +0 -40
- package/build/common/spec-parser/specFilter.js.map +0 -1
- package/build/common/spec-parser/specParser.browser.d.ts +0 -46
- package/build/common/spec-parser/specParser.browser.d.ts.map +0 -1
- package/build/common/spec-parser/specParser.browser.js +0 -139
- package/build/common/spec-parser/specParser.browser.js.map +0 -1
- package/build/common/spec-parser/specParser.d.ts +0 -46
- package/build/common/spec-parser/specParser.d.ts.map +0 -1
- package/build/common/spec-parser/specParser.js +0 -244
- package/build/common/spec-parser/specParser.js.map +0 -1
- package/build/common/spec-parser/specParserError.d.ts +0 -6
- package/build/common/spec-parser/specParserError.d.ts.map +0 -1
- package/build/common/spec-parser/specParserError.js +0 -13
- package/build/common/spec-parser/specParserError.js.map +0 -1
- package/build/common/spec-parser/utils.d.ts +0 -43
- package/build/common/spec-parser/utils.d.ts.map +0 -1
- package/build/common/spec-parser/utils.js +0 -587
- package/build/common/spec-parser/utils.js.map +0 -1
|
@@ -10,6 +10,7 @@ export declare class ProjectTypeOptions {
|
|
|
10
10
|
static me(platform?: Platform): OptionItem;
|
|
11
11
|
static outlookAddin(platform?: Platform): OptionItem;
|
|
12
12
|
static copilotPlugin(platform?: Platform): OptionItem;
|
|
13
|
+
static customCopilot(platform?: Platform): OptionItem;
|
|
13
14
|
}
|
|
14
15
|
export declare class CapabilityOptions {
|
|
15
16
|
static basicBot(): OptionItem;
|
|
@@ -36,6 +37,7 @@ export declare class CapabilityOptions {
|
|
|
36
37
|
static collectMECaps(): OptionItem[];
|
|
37
38
|
static mes(inputs?: Inputs): OptionItem[];
|
|
38
39
|
static copilotPlugins(): OptionItem[];
|
|
40
|
+
static customCopilots(): OptionItem[];
|
|
39
41
|
static tdpIntegrationCapabilities(): OptionItem[];
|
|
40
42
|
/**
|
|
41
43
|
* static capability list, which does not depend on any feature flags
|
|
@@ -54,6 +56,9 @@ export declare class CapabilityOptions {
|
|
|
54
56
|
static copilotPluginOpenAIPlugin(): OptionItem;
|
|
55
57
|
static aiBot(): OptionItem;
|
|
56
58
|
static aiAssistantBot(): OptionItem;
|
|
59
|
+
static customCopilotBasic(): OptionItem;
|
|
60
|
+
static customCopilotRag(): OptionItem;
|
|
61
|
+
static customCopilotAssistant(): OptionItem;
|
|
57
62
|
}
|
|
58
63
|
export declare function capabilityQuestion(): SingleSelectQuestion;
|
|
59
64
|
export declare class MeArchitectureOptions {
|
|
@@ -123,6 +128,18 @@ export declare function apiSpecLocationQuestion(includeExistingAPIs?: boolean):
|
|
|
123
128
|
export declare function openAIPluginManifestLocationQuestion(): TextInputQuestion;
|
|
124
129
|
export declare function apiMessageExtensionAuthQuestion(): SingleSelectQuestion;
|
|
125
130
|
export declare function apiOperationQuestion(includeExistingAPIs?: boolean): MultiSelectQuestion;
|
|
131
|
+
export declare class CustomCopilotRagOptions {
|
|
132
|
+
static customize(): OptionItem;
|
|
133
|
+
static azureAISearch(): OptionItem;
|
|
134
|
+
static customApi(): OptionItem;
|
|
135
|
+
static microsoft365(): OptionItem;
|
|
136
|
+
static all(): OptionItem[];
|
|
137
|
+
}
|
|
138
|
+
export declare class CustomCopilotAssistantOptions {
|
|
139
|
+
static new(): OptionItem;
|
|
140
|
+
static assistantsApi(): OptionItem;
|
|
141
|
+
static all(): OptionItem[];
|
|
142
|
+
}
|
|
126
143
|
export declare function capabilitySubTree(): IQTreeNode;
|
|
127
144
|
export declare function createProjectQuestionNode(): IQTreeNode;
|
|
128
145
|
export declare function createSampleProjectQuestionNode(): IQTreeNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/question/create.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,cAAc,EACd,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,oBAAoB,EAGpB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/question/create.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,cAAc,EACd,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,oBAAoB,EAGpB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AA6ChC,qBAAa,cAAc;IACzB,MAAM,CAAC,GAAG,IAAI,UAAU;IAOxB,MAAM,CAAC,EAAE,IAAI,UAAU;IAOvB,MAAM,CAAC,GAAG,IAAI,UAAU,EAAE;CAG3B;AAED,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU;IAU3C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU;IAU3C,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU;IAc1C,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU;IAUpD,MAAM,CAAC,aAAa,CAAC,Q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MAAM,IAAI,UAAU;CAO5B;AAgID,qBAAa,8BAA8B;IACzC,MAAM,CAAC,IAAI,IAAI,UAAU;IAMzB,MAAM,CAAC,MAAM,IAAI,UAAU;IAO3B,MAAM,CAAC,GAAG,IAAI,UAAU,EAAE;CAG3B;AAuBD,wBAAgB,uBAAuB,CAAC,mBAAmB,UAAO,GAAG,yBAAyB,CAoF7F;AAED,wBAAgB,oCAAoC,IAAI,iBAAiB,CAyExE;AAED,wBAAgB,+BAA+B,IAAI,oBAAoB,CAYtE;AAED,wBAAgB,oBAAoB,CAAC,mBAAmB,UAAO,GAAG,mBAAmB,CA2FpF;AAED,qBAAa,uBAAuB;IAClC,MAAM,CAAC,SAAS,IAAI,UAAU;IAY9B,MAAM,CAAC,aAAa,IAAI,UAAU;IAYlC,MAAM,CAAC,SAAS,IAAI,UAAU;IAa9B,MAAM,CAAC,YAAY,IAAI,UAAU;IAYjC,MAAM,CAAC,GAAG,IAAI,UAAU,EAAE;CAQ3B;AAED,qBAAa,6BAA6B;IACxC,MAAM,CAAC,GAAG,IAAI,UAAU;IAYxB,MAAM,CAAC,aAAa,IAAI,UAAU;IAalC,MAAM,CAAC,GAAG,IAAI,UAAU,EAAE;CAG3B;AA0GD,wBAAgB,iBAAiB,IAAI,UAAU,CA2L9C;AAED,wBAAgB,yBAAyB,IAAI,UAAU,CAiDtD;AAED,wBAAgB,+BAA+B,IAAI,UAAU,CAS5D;AAED,wBAAgB,wBAAwB,IAAI,UAAU,CAerD"}
|
package/build/question/create.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.apiOperationQuestion = exports.apiMessageExtensionAuthQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.ApiMessageExtensionAuthOptions = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.officeAddinHostingQuestion = exports.getTemplate = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxFrameworkQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.meArchitectureQuestion = exports.MeArchitectureOptions = exports.capabilityQuestion = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
5
|
+
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.CustomCopilotAssistantOptions = exports.CustomCopilotRagOptions = exports.apiOperationQuestion = exports.apiMessageExtensionAuthQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.ApiMessageExtensionAuthOptions = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.officeAddinHostingQuestion = exports.getTemplate = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxFrameworkQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.meArchitectureQuestion = exports.MeArchitectureOptions = exports.capabilityQuestion = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -83,10 +83,17 @@ class ProjectTypeOptions {
|
|
|
83
83
|
static copilotPlugin(platform) {
|
|
84
84
|
return {
|
|
85
85
|
id: "copilot-plugin-type",
|
|
86
|
-
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(
|
|
86
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-copilot-plugin) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.label")}`,
|
|
87
87
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.detail"),
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
+
static customCopilot(platform) {
|
|
91
|
+
return {
|
|
92
|
+
id: "custom-copilot-type",
|
|
93
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-custom-copilot) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.label")}`,
|
|
94
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.detail"),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
90
97
|
}
|
|
91
98
|
exports.ProjectTypeOptions = ProjectTypeOptions;
|
|
92
99
|
function projectTypeQuestion() {
|
|
@@ -103,22 +110,14 @@ function projectTypeQuestion() {
|
|
|
103
110
|
staticOptions: staticOptions,
|
|
104
111
|
dynamicOptions: (inputs) => {
|
|
105
112
|
var _a;
|
|
106
|
-
|
|
113
|
+
const staticOptions = [];
|
|
107
114
|
if (featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
108
|
-
staticOptions
|
|
109
|
-
ProjectTypeOptions.copilotPlugin(inputs.platform),
|
|
110
|
-
ProjectTypeOptions.bot(inputs.platform),
|
|
111
|
-
ProjectTypeOptions.tab(inputs.platform),
|
|
112
|
-
ProjectTypeOptions.me(inputs.platform),
|
|
113
|
-
];
|
|
115
|
+
staticOptions.push(ProjectTypeOptions.copilotPlugin(inputs.platform));
|
|
114
116
|
}
|
|
115
|
-
|
|
116
|
-
staticOptions
|
|
117
|
-
ProjectTypeOptions.bot(inputs.platform),
|
|
118
|
-
ProjectTypeOptions.tab(inputs.platform),
|
|
119
|
-
ProjectTypeOptions.me(inputs.platform),
|
|
120
|
-
];
|
|
117
|
+
if (featureFlags_1.isCustomCopilotEnabled()) {
|
|
118
|
+
staticOptions.push(ProjectTypeOptions.customCopilot(inputs.platform));
|
|
121
119
|
}
|
|
120
|
+
staticOptions.push(ProjectTypeOptions.bot(inputs.platform), ProjectTypeOptions.tab(inputs.platform), ProjectTypeOptions.me(inputs.platform));
|
|
122
121
|
if (developerPortalScaffoldUtils_1.isFromDevPortal(inputs)) {
|
|
123
122
|
const projectType = (_a = developerPortalScaffoldUtils_1.getProjectTypeAndCapability(inputs.teamsAppFromTdp)) === null || _a === void 0 ? void 0 : _a.projectType;
|
|
124
123
|
if (projectType) {
|
|
@@ -352,7 +351,14 @@ class CapabilityOptions {
|
|
|
352
351
|
return [
|
|
353
352
|
CapabilityOptions.copilotPluginNewApi(),
|
|
354
353
|
CapabilityOptions.copilotPluginApiSpec(),
|
|
355
|
-
CapabilityOptions.copilotPluginOpenAIPlugin(),
|
|
354
|
+
// CapabilityOptions.copilotPluginOpenAIPlugin(),
|
|
355
|
+
];
|
|
356
|
+
}
|
|
357
|
+
static customCopilots() {
|
|
358
|
+
return [
|
|
359
|
+
CapabilityOptions.customCopilotBasic(),
|
|
360
|
+
CapabilityOptions.customCopilotRag(),
|
|
361
|
+
CapabilityOptions.customCopilotAssistant(),
|
|
356
362
|
];
|
|
357
363
|
}
|
|
358
364
|
static tdpIntegrationCapabilities() {
|
|
@@ -372,7 +378,9 @@ class CapabilityOptions {
|
|
|
372
378
|
...CapabilityOptions.tabs(),
|
|
373
379
|
...CapabilityOptions.collectMECaps(),
|
|
374
380
|
...CapabilityOptions.copilotPlugins(),
|
|
381
|
+
...CapabilityOptions.customCopilots(),
|
|
375
382
|
...CapabilityOptions.tdpIntegrationCapabilities(),
|
|
383
|
+
...CapabilityOptions.officeAddinItems(),
|
|
376
384
|
];
|
|
377
385
|
return capabilityOptions;
|
|
378
386
|
}
|
|
@@ -384,10 +392,14 @@ class CapabilityOptions {
|
|
|
384
392
|
...CapabilityOptions.bots(inputs, true),
|
|
385
393
|
...CapabilityOptions.tabs(),
|
|
386
394
|
...CapabilityOptions.collectMECaps(),
|
|
395
|
+
...CapabilityOptions.officeAddinItems(),
|
|
387
396
|
];
|
|
388
397
|
if (featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
389
398
|
capabilityOptions.push(...CapabilityOptions.copilotPlugins());
|
|
390
399
|
}
|
|
400
|
+
if (featureFlags_1.isCustomCopilotEnabled()) {
|
|
401
|
+
capabilityOptions.push(...CapabilityOptions.customCopilots());
|
|
402
|
+
}
|
|
391
403
|
if (featureFlags_1.isTdpTemplateCliTestEnabled()) {
|
|
392
404
|
// test templates that are used by TDP integration only
|
|
393
405
|
capabilityOptions.push(...CapabilityOptions.tdpIntegrationCapabilities());
|
|
@@ -459,6 +471,28 @@ class CapabilityOptions {
|
|
|
459
471
|
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
460
472
|
};
|
|
461
473
|
}
|
|
474
|
+
// custom copilot
|
|
475
|
+
static customCopilotBasic() {
|
|
476
|
+
return {
|
|
477
|
+
id: "custom-copilot-basic",
|
|
478
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotBasicOption.label"),
|
|
479
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotBasicOption.detail"),
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
static customCopilotRag() {
|
|
483
|
+
return {
|
|
484
|
+
id: "custom-copilot-rag",
|
|
485
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagOption.label"),
|
|
486
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagOption.detail"),
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
static customCopilotAssistant() {
|
|
490
|
+
return {
|
|
491
|
+
id: "custom-copilot-assistant",
|
|
492
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantOption.label"),
|
|
493
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantOption.detail"),
|
|
494
|
+
};
|
|
495
|
+
}
|
|
462
496
|
}
|
|
463
497
|
exports.CapabilityOptions = CapabilityOptions;
|
|
464
498
|
function capabilityQuestion() {
|
|
@@ -477,6 +511,8 @@ function capabilityQuestion() {
|
|
|
477
511
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.title");
|
|
478
512
|
case ProjectTypeOptions.copilotPlugin().id:
|
|
479
513
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.title");
|
|
514
|
+
case ProjectTypeOptions.customCopilot().id:
|
|
515
|
+
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.title");
|
|
480
516
|
default:
|
|
481
517
|
return localizeUtils_1.getLocalizedString("core.createCapabilityQuestion.titleNew");
|
|
482
518
|
}
|
|
@@ -521,6 +557,9 @@ function capabilityQuestion() {
|
|
|
521
557
|
else if (projectType === ProjectTypeOptions.copilotPlugin().id) {
|
|
522
558
|
return CapabilityOptions.copilotPlugins();
|
|
523
559
|
}
|
|
560
|
+
else if (projectType === ProjectTypeOptions.customCopilot().id) {
|
|
561
|
+
return CapabilityOptions.customCopilots();
|
|
562
|
+
}
|
|
524
563
|
else {
|
|
525
564
|
return CapabilityOptions.all(inputs);
|
|
526
565
|
}
|
|
@@ -529,6 +568,9 @@ function capabilityQuestion() {
|
|
|
529
568
|
if (inputs[questionNames_1.QuestionNames.ProjectType] === ProjectTypeOptions.copilotPlugin().id) {
|
|
530
569
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.placeholder");
|
|
531
570
|
}
|
|
571
|
+
else if (inputs[questionNames_1.QuestionNames.ProjectType] === ProjectTypeOptions.customCopilot().id) {
|
|
572
|
+
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.placeholder");
|
|
573
|
+
}
|
|
532
574
|
return localizeUtils_1.getLocalizedString("core.createCapabilityQuestion.placeholder");
|
|
533
575
|
},
|
|
534
576
|
forgetLastValue: true,
|
|
@@ -557,14 +599,14 @@ class MeArchitectureOptions {
|
|
|
557
599
|
return {
|
|
558
600
|
id: "new-api",
|
|
559
601
|
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginNewApiOption.label"),
|
|
560
|
-
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.
|
|
602
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.messageExtensionNewApiOption.detail"),
|
|
561
603
|
};
|
|
562
604
|
}
|
|
563
605
|
static apiSpec() {
|
|
564
606
|
return {
|
|
565
607
|
id: "api-spec",
|
|
566
608
|
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginApiSpecOption.label"),
|
|
567
|
-
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.
|
|
609
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.messageExtensionApiSpecOption.detail"),
|
|
568
610
|
};
|
|
569
611
|
}
|
|
570
612
|
static all() {
|
|
@@ -962,7 +1004,7 @@ function programmingLanguageQuestion() {
|
|
|
962
1004
|
const programmingLanguageQuestion = {
|
|
963
1005
|
name: questionNames_1.QuestionNames.ProgrammingLanguage,
|
|
964
1006
|
cliShortName: "l",
|
|
965
|
-
title: "
|
|
1007
|
+
title: localizeUtils_1.getLocalizedString("core.ProgrammingLanguageQuestion.title"),
|
|
966
1008
|
type: "singleSelect",
|
|
967
1009
|
staticOptions: [
|
|
968
1010
|
{ id: ProgrammingLanguage.JS, label: "JavaScript" },
|
|
@@ -1021,7 +1063,7 @@ function appNameQuestion() {
|
|
|
1021
1063
|
type: "text",
|
|
1022
1064
|
name: questionNames_1.QuestionNames.AppName,
|
|
1023
1065
|
cliShortName: "n",
|
|
1024
|
-
title: "
|
|
1066
|
+
title: localizeUtils_1.getLocalizedString("core.question.appName.title"),
|
|
1025
1067
|
required: true,
|
|
1026
1068
|
default: async (inputs) => {
|
|
1027
1069
|
var _a, _b;
|
|
@@ -1075,7 +1117,7 @@ function appNameQuestion() {
|
|
|
1075
1117
|
return undefined;
|
|
1076
1118
|
},
|
|
1077
1119
|
},
|
|
1078
|
-
placeholder: "
|
|
1120
|
+
placeholder: localizeUtils_1.getLocalizedString("core.question.appName.placeholder"),
|
|
1079
1121
|
};
|
|
1080
1122
|
return question;
|
|
1081
1123
|
}
|
|
@@ -1306,7 +1348,7 @@ function selectBotIdsQuestion() {
|
|
|
1306
1348
|
}
|
|
1307
1349
|
const maximumLengthOfDetailsErrorMessageInInputBox = 90;
|
|
1308
1350
|
function apiSpecLocationQuestion(includeExistingAPIs = true) {
|
|
1309
|
-
const correlationId = correlator_1.Correlator.getId(); // This is a workaround for VSCode which will
|
|
1351
|
+
const correlationId = correlator_1.Correlator.getId(); // This is a workaround for VSCode which will lose correlation id when user accepts the value.
|
|
1310
1352
|
const validationOnAccept = async (input, inputs) => {
|
|
1311
1353
|
try {
|
|
1312
1354
|
if (!inputs) {
|
|
@@ -1456,17 +1498,36 @@ function apiMessageExtensionAuthQuestion() {
|
|
|
1456
1498
|
exports.apiMessageExtensionAuthQuestion = apiMessageExtensionAuthQuestion;
|
|
1457
1499
|
function apiOperationQuestion(includeExistingAPIs = true) {
|
|
1458
1500
|
// export for unit test
|
|
1501
|
+
let placeholder = "";
|
|
1502
|
+
const isApiPlugin = (inputs) => {
|
|
1503
|
+
return (!!inputs && inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.copilotPluginApiSpec().id);
|
|
1504
|
+
};
|
|
1459
1505
|
return {
|
|
1460
1506
|
type: "multiSelect",
|
|
1461
1507
|
name: questionNames_1.QuestionNames.ApiOperation,
|
|
1462
|
-
title:
|
|
1508
|
+
title: (inputs) => {
|
|
1509
|
+
return isApiPlugin(inputs)
|
|
1510
|
+
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.copilotOperation.title")
|
|
1511
|
+
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.title");
|
|
1512
|
+
},
|
|
1463
1513
|
cliDescription: "Select Operation(s) Teams Can Interact with.",
|
|
1464
1514
|
cliShortName: "o",
|
|
1465
|
-
placeholder:
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1515
|
+
placeholder: (inputs) => {
|
|
1516
|
+
const isApiPlugin = inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.copilotPluginApiSpec().id;
|
|
1517
|
+
if (!includeExistingAPIs) {
|
|
1518
|
+
placeholder = localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder.skipExisting");
|
|
1519
|
+
}
|
|
1520
|
+
else if (isApiPlugin) {
|
|
1521
|
+
placeholder = ""; // TODO: add placeholder for api plugin
|
|
1522
|
+
}
|
|
1523
|
+
else if (featureFlags_1.isApiKeyEnabled()) {
|
|
1524
|
+
placeholder = localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.apikey.placeholder");
|
|
1525
|
+
}
|
|
1526
|
+
else {
|
|
1527
|
+
placeholder = localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder");
|
|
1528
|
+
}
|
|
1529
|
+
return placeholder;
|
|
1530
|
+
},
|
|
1470
1531
|
forgetLastValue: true,
|
|
1471
1532
|
staticOptions: [],
|
|
1472
1533
|
validation: {
|
|
@@ -1504,6 +1565,153 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1504
1565
|
};
|
|
1505
1566
|
}
|
|
1506
1567
|
exports.apiOperationQuestion = apiOperationQuestion;
|
|
1568
|
+
class CustomCopilotRagOptions {
|
|
1569
|
+
static customize() {
|
|
1570
|
+
return {
|
|
1571
|
+
id: "custom-copilot-rag-customize",
|
|
1572
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomizeOption.label"),
|
|
1573
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomizeOption.detail"),
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
static azureAISearch() {
|
|
1577
|
+
return {
|
|
1578
|
+
id: "custom-copilot-rag-azureAISearch",
|
|
1579
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagAzureAISearchOption.label"),
|
|
1580
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagAzureAISearchOption.detail"),
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
static customApi() {
|
|
1584
|
+
return {
|
|
1585
|
+
id: "custom-copilot-rag-customApi",
|
|
1586
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomApiOption.label"),
|
|
1587
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomApiOption.detail"),
|
|
1588
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
static microsoft365() {
|
|
1592
|
+
return {
|
|
1593
|
+
id: "custom-copilot-rag-microsoft365",
|
|
1594
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagMicrosoft365Option.label"),
|
|
1595
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagMicrosoft365Option.detail"),
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
static all() {
|
|
1599
|
+
return [
|
|
1600
|
+
CustomCopilotRagOptions.customize(),
|
|
1601
|
+
CustomCopilotRagOptions.azureAISearch(),
|
|
1602
|
+
CustomCopilotRagOptions.customApi(),
|
|
1603
|
+
CustomCopilotRagOptions.microsoft365(),
|
|
1604
|
+
];
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
exports.CustomCopilotRagOptions = CustomCopilotRagOptions;
|
|
1608
|
+
class CustomCopilotAssistantOptions {
|
|
1609
|
+
static new() {
|
|
1610
|
+
return {
|
|
1611
|
+
id: "custom-copilot-assistant-new",
|
|
1612
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantNewOption.label"),
|
|
1613
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantNewOption.detail"),
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
static assistantsApi() {
|
|
1617
|
+
return {
|
|
1618
|
+
id: "custom-copilot-assistant-assistantsApi",
|
|
1619
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantAssistantsApiOption.label"),
|
|
1620
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantAssistantsApiOption.detail"),
|
|
1621
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
static all() {
|
|
1625
|
+
return [CustomCopilotAssistantOptions.new(), CustomCopilotAssistantOptions.assistantsApi()];
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
exports.CustomCopilotAssistantOptions = CustomCopilotAssistantOptions;
|
|
1629
|
+
function customCopilotRagQuestion() {
|
|
1630
|
+
return {
|
|
1631
|
+
type: "singleSelect",
|
|
1632
|
+
name: questionNames_1.QuestionNames.CustomCopilotRag,
|
|
1633
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRag.title"),
|
|
1634
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRag.placeholder"),
|
|
1635
|
+
staticOptions: CustomCopilotRagOptions.all(),
|
|
1636
|
+
dynamicOptions: () => CustomCopilotRagOptions.all(),
|
|
1637
|
+
default: CustomCopilotRagOptions.customize().id,
|
|
1638
|
+
};
|
|
1639
|
+
}
|
|
1640
|
+
function customCopilotAssistantQuestion() {
|
|
1641
|
+
return {
|
|
1642
|
+
type: "singleSelect",
|
|
1643
|
+
name: questionNames_1.QuestionNames.CustomCopilotAssistant,
|
|
1644
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistant.title"),
|
|
1645
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistant.placeholder"),
|
|
1646
|
+
staticOptions: CustomCopilotAssistantOptions.all(),
|
|
1647
|
+
dynamicOptions: () => CustomCopilotAssistantOptions.all(),
|
|
1648
|
+
default: CustomCopilotAssistantOptions.new().id,
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
function llmServiceQuestion() {
|
|
1652
|
+
return {
|
|
1653
|
+
type: "singleSelect",
|
|
1654
|
+
name: questionNames_1.QuestionNames.LLMService,
|
|
1655
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.title"),
|
|
1656
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.placeholder"),
|
|
1657
|
+
staticOptions: [
|
|
1658
|
+
{
|
|
1659
|
+
id: "llm-service-azureOpenAI",
|
|
1660
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceAzureOpenAIOption.label"),
|
|
1661
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceAzureOpenAIOption.detail"),
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
id: "llm-service-openAI",
|
|
1665
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceOpenAIOption.label"),
|
|
1666
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceOpenAIOption.detail"),
|
|
1667
|
+
},
|
|
1668
|
+
],
|
|
1669
|
+
dynamicOptions: (inputs) => {
|
|
1670
|
+
const options = [];
|
|
1671
|
+
if (inputs[questionNames_1.QuestionNames.CustomCopilotAssistant] !== "custom-copilot-assistant-assistantsApi") {
|
|
1672
|
+
options.push({
|
|
1673
|
+
id: "llm-service-azureOpenAI",
|
|
1674
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceAzureOpenAIOption.label"),
|
|
1675
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceAzureOpenAIOption.detail"),
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
options.push({
|
|
1679
|
+
id: "llm-service-openAI",
|
|
1680
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceOpenAIOption.label"),
|
|
1681
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmServiceOpenAIOption.detail"),
|
|
1682
|
+
});
|
|
1683
|
+
return options;
|
|
1684
|
+
},
|
|
1685
|
+
skipSingleOption: true,
|
|
1686
|
+
default: "llm-service-azureOpenAI",
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
function openAIKeyQuestion() {
|
|
1690
|
+
return {
|
|
1691
|
+
type: "text",
|
|
1692
|
+
password: true,
|
|
1693
|
+
name: questionNames_1.QuestionNames.OpenAIKey,
|
|
1694
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.openAIKey.title"),
|
|
1695
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.openAIKey.placeholder"),
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
function azureOpenAIKeyQuestion() {
|
|
1699
|
+
return {
|
|
1700
|
+
type: "text",
|
|
1701
|
+
password: true,
|
|
1702
|
+
name: questionNames_1.QuestionNames.AzureOpenAIKey,
|
|
1703
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIKey.title"),
|
|
1704
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIKey.placeholder"),
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
function azureOpenAIEndpointQuestion() {
|
|
1708
|
+
return {
|
|
1709
|
+
type: "text",
|
|
1710
|
+
name: questionNames_1.QuestionNames.AzureOpenAIEndpoint,
|
|
1711
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIEndpoint.title"),
|
|
1712
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIEndpoint.placeholder"),
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1507
1715
|
function capabilitySubTree() {
|
|
1508
1716
|
const node = {
|
|
1509
1717
|
data: capabilityQuestion(),
|
|
@@ -1584,10 +1792,10 @@ function capabilitySubTree() {
|
|
|
1584
1792
|
},
|
|
1585
1793
|
data: apiSpecLocationQuestion(),
|
|
1586
1794
|
},
|
|
1587
|
-
{
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
},
|
|
1795
|
+
// {
|
|
1796
|
+
// condition: { equals: CapabilityOptions.copilotPluginOpenAIPlugin().id },
|
|
1797
|
+
// data: openAIPluginManifestLocationQuestion(),
|
|
1798
|
+
// },
|
|
1591
1799
|
{
|
|
1592
1800
|
data: apiOperationQuestion(),
|
|
1593
1801
|
},
|
|
@@ -1601,6 +1809,32 @@ function capabilitySubTree() {
|
|
|
1601
1809
|
},
|
|
1602
1810
|
data: apiMessageExtensionAuthQuestion(),
|
|
1603
1811
|
},
|
|
1812
|
+
{
|
|
1813
|
+
condition: (inputs) => {
|
|
1814
|
+
return inputs[questionNames_1.QuestionNames.Capabilities] == CapabilityOptions.customCopilotRag().id;
|
|
1815
|
+
},
|
|
1816
|
+
data: customCopilotRagQuestion(),
|
|
1817
|
+
children: [
|
|
1818
|
+
{
|
|
1819
|
+
condition: (inputs) => {
|
|
1820
|
+
return (inputs[questionNames_1.QuestionNames.CustomCopilotRag] === CustomCopilotRagOptions.customApi().id);
|
|
1821
|
+
},
|
|
1822
|
+
data: apiSpecLocationQuestion(),
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
condition: (inputs) => {
|
|
1826
|
+
return (inputs[questionNames_1.QuestionNames.CustomCopilotRag] === CustomCopilotRagOptions.customApi().id);
|
|
1827
|
+
},
|
|
1828
|
+
data: apiOperationQuestion(),
|
|
1829
|
+
},
|
|
1830
|
+
],
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
condition: (inputs) => {
|
|
1834
|
+
return (inputs[questionNames_1.QuestionNames.Capabilities] == CapabilityOptions.customCopilotAssistant().id);
|
|
1835
|
+
},
|
|
1836
|
+
data: customCopilotAssistantQuestion(),
|
|
1837
|
+
},
|
|
1604
1838
|
{
|
|
1605
1839
|
// programming language
|
|
1606
1840
|
data: programmingLanguageQuestion(),
|
|
@@ -1612,6 +1846,33 @@ function capabilitySubTree() {
|
|
|
1612
1846
|
inputs[questionNames_1.QuestionNames.MeArchitectureType] !== MeArchitectureOptions.apiSpec().id);
|
|
1613
1847
|
},
|
|
1614
1848
|
},
|
|
1849
|
+
{
|
|
1850
|
+
condition: (inputs) => {
|
|
1851
|
+
return (inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.customCopilotBasic().id ||
|
|
1852
|
+
inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.customCopilotRag().id ||
|
|
1853
|
+
inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.customCopilotAssistant().id);
|
|
1854
|
+
},
|
|
1855
|
+
data: llmServiceQuestion(),
|
|
1856
|
+
children: [
|
|
1857
|
+
{
|
|
1858
|
+
condition: { equals: "llm-service-azureOpenAI" },
|
|
1859
|
+
data: azureOpenAIKeyQuestion(),
|
|
1860
|
+
children: [
|
|
1861
|
+
{
|
|
1862
|
+
condition: (inputs) => {
|
|
1863
|
+
var _a;
|
|
1864
|
+
return ((_a = inputs[questionNames_1.QuestionNames.AzureOpenAIKey]) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
1865
|
+
},
|
|
1866
|
+
data: azureOpenAIEndpointQuestion(),
|
|
1867
|
+
},
|
|
1868
|
+
],
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
condition: { equals: "llm-service-openAI" },
|
|
1872
|
+
data: openAIKeyQuestion(),
|
|
1873
|
+
},
|
|
1874
|
+
],
|
|
1875
|
+
},
|
|
1615
1876
|
{
|
|
1616
1877
|
// root folder
|
|
1617
1878
|
data: folderQuestion(),
|
|
@@ -1701,9 +1962,6 @@ function createProjectCliHelpNode() {
|
|
|
1701
1962
|
if (!featureFlags_1.isCLIDotNetEnabled()) {
|
|
1702
1963
|
deleteNames.push(questionNames_1.QuestionNames.Runtime);
|
|
1703
1964
|
}
|
|
1704
|
-
if (!featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
1705
|
-
deleteNames.push(questionNames_1.QuestionNames.CopilotPluginExistingApi);
|
|
1706
|
-
}
|
|
1707
1965
|
trimQuestionTreeForCliHelp(node, deleteNames);
|
|
1708
1966
|
return node;
|
|
1709
1967
|
}
|