@microsoft/teamsfx-core 3.0.6-alpha.c7c4a0079.0 → 3.0.6-beta.2025092402.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-core",
3
- "version": "3.0.6-alpha.c7c4a0079.0",
3
+ "version": "3.0.6-beta.2025092402.0",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "MIT",
@@ -101,7 +101,6 @@
101
101
  "@azure/arm-storage": "^17.2.1",
102
102
  "@azure/arm-subscriptions": "^5.0.0",
103
103
  "@azure/core-auth": "^1.4.0",
104
- "@azure/core-rest-pipeline": "^1.22.1",
105
104
  "@azure/identity": "^4.1.0",
106
105
  "@azure/msal-node": "^2.6.6",
107
106
  "@azure/storage-blob": "^12.25.0",
@@ -109,8 +108,8 @@
109
108
  "@microsoft/dev-tunnels-contracts": "1.1.9",
110
109
  "@microsoft/dev-tunnels-management": "1.1.9",
111
110
  "@microsoft/kiota": "1.26.1",
112
- "@microsoft/m365-spec-parser": "^0.2.10-alpha.c7c4a0079.0",
113
- "@microsoft/teamsfx-api": "0.23.10-alpha.c7c4a0079.0",
111
+ "@microsoft/m365-spec-parser": "^0.2.10-beta.2025092402.0",
112
+ "@microsoft/teamsfx-api": "0.23.10-beta.2025092402.0",
114
113
  "adm-zip": "^0.5.10",
115
114
  "ajv": "^8.5.0",
116
115
  "axios": "^1.8.3",
@@ -233,7 +232,7 @@
233
232
  "resource/**/*",
234
233
  "templates/**/*"
235
234
  ],
236
- "gitHead": "f9263f699ace3001779e8754f97991c95d04c8c6",
235
+ "gitHead": "3673eced4ca4faae0dc351a5f88761f467db97a9",
237
236
  "publishConfig": {
238
237
  "access": "public"
239
238
  },
@@ -984,7 +984,6 @@
984
984
  "error.common.ConcurrentError": "Previous task is still running. Wait until your previous task is finished and try again.",
985
985
  "error.common.NetworkError": "Network error: %s",
986
986
  "error.common.NetworkError.EAI_AGAIN": "DNS cannot resolve domain %s.",
987
- "error.MFARequired": "Mandatory MFA is enforced by Azure policy - 'User must authenticate with multi-factor authentication to create or update resources'. Please enable MFA for your account to continue.",
988
987
  "error.upgrade.NoNeedUpgrade": "This is the latest project, upgrade not required.",
989
988
  "error.collaboration.InvalidManifestError": "Unable to process your manifest file ('%s') due to absence of the 'id' key. To identify your app correctly, make sure the 'id' key is present in the manifest file.",
990
989
  "error.collaboration.FailedToLoadManifest": "Unable to load manifest file. Reason: %s.",
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,11 +0,0 @@
1
- import { AuthenticationWWWAuthenticateRequest, AzureAccountProvider } from "@microsoft/teamsfx-api";
2
- import { ResourceManagementClient } from "@azure/arm-resources";
3
- import { Pipeline, PipelinePolicy } from "@azure/core-rest-pipeline";
4
- declare class AzureClientHelper {
5
- createRmClient(azureAccountProvider: AzureAccountProvider, subscriptionId: string): Promise<ResourceManagementClient>;
6
- addPipelinePolicy(pipeline: Pipeline, policy: PipelinePolicy): void;
7
- getChallengeHandler: (tokenProvider: AzureAccountProvider) => (scopes: AuthenticationWWWAuthenticateRequest) => Promise<string>;
8
- }
9
- export declare const azureClientHelper: AzureClientHelper;
10
- export {};
11
- //# sourceMappingURL=azureClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureClient.d.ts","sourceRoot":"","sources":["../../../src/component/utils/azureClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oCAAoC,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAIrE,cAAM,iBAAiB;IACf,cAAc,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM;IAgBvF,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc;IAI5D,mBAAmB,kBAAmB,oBAAoB,cAE9C,oCAAoC,KAC3C,QAAQ,MAAM,CAAC,CAUlB;CACH;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.azureClientHelper = void 0;
6
- const arm_resources_1 = require("@azure/arm-resources");
7
- const error_1 = require("../../error");
8
- const pipelinePolicy_1 = require("./pipelinePolicy");
9
- const constants_1 = require("../../common/constants");
10
- class AzureClientHelper {
11
- constructor() {
12
- this.getChallengeHandler = (tokenProvider) => {
13
- const getTokenForChallenge = async (scopes) => {
14
- const azureToken = await tokenProvider.getIdentityCredentialAsync(false, scopes);
15
- if (!azureToken) {
16
- throw new error_1.InvalidAzureCredentialError();
17
- }
18
- const token = (await azureToken.getToken(constants_1.AzureScopes));
19
- return token.token;
20
- };
21
- return getTokenForChallenge;
22
- };
23
- }
24
- async createRmClient(azureAccountProvider, subscriptionId) {
25
- const azureToken = await azureAccountProvider.getIdentityCredentialAsync();
26
- if (azureToken === undefined) {
27
- throw new error_1.InvalidAzureCredentialError();
28
- }
29
- await azureAccountProvider.setSubscription(subscriptionId);
30
- const rmClient = new arm_resources_1.ResourceManagementClient(azureToken, subscriptionId, {
31
- userAgentOptions: { userAgentPrefix: "AgentsToolkit" },
32
- });
33
- this.addPipelinePolicy(rmClient.pipeline, new pipelinePolicy_1.BearerChallengePolicy(this.getChallengeHandler(azureAccountProvider)));
34
- return rmClient;
35
- }
36
- addPipelinePolicy(pipeline, policy) {
37
- pipeline.addPolicy(policy, { phase: "Sign" });
38
- }
39
- }
40
- exports.azureClientHelper = new AzureClientHelper();
41
- //# sourceMappingURL=azureClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureClient.js","sourceRoot":"","sources":["../../../src/component/utils/azureClient.ts"],"names":[],"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AS,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;CAgBF;AAEY,QAAA,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
@@ -1,10 +0,0 @@
1
- import { PipelinePolicy, PipelineRequest, SendRequest, PipelineResponse } from "@azure/core-rest-pipeline";
2
- import { AuthenticationWWWAuthenticateRequest } from "@microsoft/teamsfx-api";
3
- export declare class BearerChallengePolicy implements PipelinePolicy {
4
- private readonly getTokenForChallenge;
5
- readonly name = "BearerChallengePolicy";
6
- private readonly challengeRetryHeader;
7
- constructor(getTokenForChallenge: (scopes: AuthenticationWWWAuthenticateRequest) => Promise<string | undefined>);
8
- sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse>;
9
- }
10
- //# sourceMappingURL=pipelinePolicy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipelinePolicy.d.ts","sourceRoot":"","sources":["../../../src/component/utils/pipelinePolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,WAAW,EACX,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oCAAoC,EAAE,MAAM,wBAAwB,CAAC;AAG9E,qBAAa,qBAAsB,YAAW,cAAc;IAKxD,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAJvC,SAAgB,IAAI,2BAA2B;IAC/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA2B;gBAG7C,oBAAoB,EAAE,CACrC,MAAM,EAAE,oCAAoC,KACzC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAGrB,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAuBjG"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.BearerChallengePolicy = void 0;
6
- const constants_1 = require("../../common/constants");
7
- class BearerChallengePolicy {
8
- constructor(getTokenForChallenge) {
9
- this.getTokenForChallenge = getTokenForChallenge;
10
- this.name = "BearerChallengePolicy";
11
- this.challengeRetryHeader = "x-atk-challenge-retry";
12
- }
13
- async sendRequest(request, next) {
14
- const initial = await next(request);
15
- // Only attempt a single retry on auth challenges
16
- if (initial.status === 401 && !request.headers.get(this.challengeRetryHeader)) {
17
- const header = initial.headers.get("WWW-Authenticate") || initial.headers.get("www-authenticate");
18
- if (header) {
19
- request.headers.set(this.challengeRetryHeader, "1");
20
- const token = await this.getTokenForChallenge({
21
- wwwAuthenticate: header,
22
- scopes: constants_1.AzureScopes,
23
- });
24
- if (token) {
25
- request.headers.set("Authorization", `Bearer ${token}`);
26
- return await next(request);
27
- }
28
- }
29
- }
30
- return initial;
31
- }
32
- }
33
- exports.BearerChallengePolicy = BearerChallengePolicy;
34
- //# sourceMappingURL=pipelinePolicy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipelinePolicy.js","sourceRoot":"","sources":["../../../src/component/utils/pipelinePolicy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AASlC,sDAAqD;AAErD,MAAa,qBAAqB;IAIhC,YACmB,oBAEe;QAFf,yBAAoB,GAApB,oBAAoB,CAEL;QANlB,SAAI,GAAG,uBAAuB,CAAC;QAC9B,yBAAoB,GAAG,uBAAuB,CAAC;IAM7D,CAAC;IAEG,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;QAClE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC;QAEpC,iDAAiD;QACjD,IAAI,OAAO,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE;YAC7E,MAAM,MAAM,GACV,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;YACrF,IAAI,MAAM,EAAE;gBACV,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;gBAEpD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC;oBAC5C,eAAe,EAAE,MAAM;oBACvB,MAAM,EAAE,uBAAW;iBACpB,CAAC,CAAC;gBACH,IAAI,KAAK,EAAE;oBACT,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,KAAK,EAAE,CAAC,CAAC;oBACxD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC;iBAC5B;aACF;SACF;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAjCD,sDAiCC"}