@microsoft/m365agentstoolkit-cli 1.1.17-alpha.db74a278f9.0 → 1.1.17-alpha.df3411aa75.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/lib/index.js.map CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/lib/index.js.map
3
- size: 34497530 bytes
4
- sha256: 78851c0fa4ec1d7885d1212d742364c0029ebf1b997933a68914c9941c6fca88
3
+ size: 34612767 bytes
4
+ sha256: 22385c36f8bae15f883c03bb04fff53aa2e27fac0d0a7722c80a443bf5f1da0f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/m365agentstoolkit-cli",
3
- "version": "1.1.17-alpha.db74a278f9.0",
3
+ "version": "1.1.17-alpha.df3411aa75.0",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "Microsoft 365 Agents Toolkit CLI",
6
6
  "license": "MIT",
@@ -11,31 +11,6 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/OfficeDev/microsoft-365-agents-toolkit.git"
13
13
  },
14
- "scripts": {
15
- "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css lib/",
16
- "build": "rimraf lib && tsc -p ./ && npm run copy-files",
17
- "watch": "rimraf lib && npm run copy-files && tsc -w -p ./",
18
- "package": "rimraf lib && node --max-old-space-size=4096 node_modules/webpack/bin/webpack.js --mode production --config ./webpack.config.js",
19
- "prepack": "npm run package",
20
- "test:unit": "vitest run --coverage --config vitest.config.ts --maxWorkers=75%",
21
- "test:unit:log": "vitest run --coverage --config vitest.config.ts --maxWorkers=75% > unit-test.log 2>&1",
22
- "test:unit:vitest": "vitest run --config vitest.config.ts --maxWorkers=75%",
23
- "test:unit:vitest:watch": "vitest --config vitest.config.ts",
24
- "test:coverage:changed": "node scripts/run-changed-coverage.js",
25
- "test:helper": "vitest run tests/unit/helper.tests.ts --config vitest.config.ts",
26
- "test:engine": "vitest run tests/unit/engine.tests.ts --config vitest.config.ts",
27
- "test:cmds": "vitest run tests/unit/cmds/**/*.tests.ts --config vitest.config.ts",
28
- "test:commands": "vitest run tests/unit/commands.tests.ts tests/unit/commands/**/*.tests.ts --config vitest.config.ts",
29
- "test:telemetry": "vitest run tests/unit/telemetry.tests.ts tests/unit/telemetry/**/*.tests.ts --config vitest.config.ts",
30
- "test:prompts": "vitest run tests/unit/prompts/**/*.tests.ts --config vitest.config.ts",
31
- "check-format": "prettier --list-different --config .prettierrc.json --ignore-path .prettierignore \"{src,tests}/**/*.ts\" \"*.{js,json}\"",
32
- "format": "prettier --write --config .prettierrc.json --ignore-path .prettierignore \"{src,tests}/**/*.ts\" \"*.{js,json}\"",
33
- "lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
34
- "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
35
- "precommit": "lint-staged",
36
- "postinstall": "node deletePS1.js",
37
- "build-metrics": "npx eslint --plugin=@microsoft/eslint-plugin-teamsfx --rule=\"@microsoft/teamsfx/metrics: warn\" --ignore-pattern=\"src/telemetry/**/*.ts\" --ignore-pattern=\"src/cmds/**/*.ts\" \"src/**/*.ts\" --fix"
38
- },
39
14
  "keywords": [
40
15
  "teamsfx",
41
16
  "teamsfx-cli",
@@ -54,7 +29,6 @@
54
29
  "aiKey": "1c56be97-bb74-42cf-b04b-8f1aabf04592",
55
30
  "devDependencies": {
56
31
  "@inquirer/testing": "^2.1.2",
57
- "@microsoft/metrics-ts": "0.0.13-alpha.db74a278f9.0",
58
32
  "@types/chai": "^4.2.14",
59
33
  "@types/chai-as-promised": "^7.1.3",
60
34
  "@types/express": "^4.17.21",
@@ -100,7 +74,8 @@
100
74
  "uuid": "^11.1.1",
101
75
  "vitest": "^4.1.8",
102
76
  "webpack": "^5.95.0",
103
- "webpack-cli": "^5.1.4"
77
+ "webpack-cli": "^5.1.4",
78
+ "@microsoft/metrics-ts": "0.0.13-alpha.df3411aa75.0"
104
79
  },
105
80
  "dependencies": {
106
81
  "@azure/arm-subscriptions": "^5.0.0",
@@ -111,8 +86,6 @@
111
86
  "@inquirer/core": "^5.1.2",
112
87
  "@inquirer/prompts": "^7.10.1",
113
88
  "@inquirer/type": "^1.1.5",
114
- "@microsoft/teamsfx-api": "0.24.3-alpha.db74a278f9.0",
115
- "@microsoft/teamsfx-core": "3.1.4-alpha.db74a278f9.0",
116
89
  "ansi-escapes": "^4.3.2",
117
90
  "applicationinsights": "^1.8.10",
118
91
  "async-mutex": "^0.3.1",
@@ -129,7 +102,9 @@
129
102
  "semver": "^7.5.4",
130
103
  "tas-client": "^0.1.73",
131
104
  "tree-kill": "^1.2.2",
132
- "underscore": "^1.13.8"
105
+ "underscore": "^1.13.8",
106
+ "@microsoft/teamsfx-api": "0.24.3-alpha.df3411aa75.0",
107
+ "@microsoft/teamsfx-core": "3.1.4-alpha.df3411aa75.0"
133
108
  },
134
109
  "optionalDependencies": {
135
110
  "keytar": "^7.7.0"
@@ -145,12 +120,37 @@
145
120
  ],
146
121
  "gitHead": "7d60c0765c0ea8c023a26c10d1c93001c597afbb",
147
122
  "publishConfig": {
148
- "access": "public"
123
+ "access": "public",
124
+ "tag": "alpha"
149
125
  },
150
126
  "lint-staged": {
151
127
  "*.{js,jsx,css,ts,tsx}": [
152
128
  "eslint --cache --fix --quiet",
153
129
  "prettier --cache --write --ignore-unknown"
154
130
  ]
131
+ },
132
+ "scripts": {
133
+ "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css lib/",
134
+ "build": "rimraf lib && tsc -p ./ && npm run copy-files",
135
+ "watch": "rimraf lib && npm run copy-files && tsc -w -p ./",
136
+ "package": "rimraf lib && node --max-old-space-size=4096 node_modules/webpack/bin/webpack.js --mode production --config ./webpack.config.js",
137
+ "test:unit": "vitest run --coverage --config vitest.config.ts --maxWorkers=75%",
138
+ "test:unit:log": "vitest run --coverage --config vitest.config.ts --maxWorkers=75% > unit-test.log 2>&1",
139
+ "test:unit:vitest": "vitest run --config vitest.config.ts --maxWorkers=75%",
140
+ "test:unit:vitest:watch": "vitest --config vitest.config.ts",
141
+ "test:coverage:changed": "node scripts/run-changed-coverage.js",
142
+ "test:helper": "vitest run tests/unit/helper.tests.ts --config vitest.config.ts",
143
+ "test:engine": "vitest run tests/unit/engine.tests.ts --config vitest.config.ts",
144
+ "test:cmds": "vitest run tests/unit/cmds/**/*.tests.ts --config vitest.config.ts",
145
+ "test:commands": "vitest run tests/unit/commands.tests.ts tests/unit/commands/**/*.tests.ts --config vitest.config.ts",
146
+ "test:telemetry": "vitest run tests/unit/telemetry.tests.ts tests/unit/telemetry/**/*.tests.ts --config vitest.config.ts",
147
+ "test:prompts": "vitest run tests/unit/prompts/**/*.tests.ts --config vitest.config.ts",
148
+ "check-format": "prettier --list-different --config .prettierrc.json --ignore-path .prettierignore \"{src,tests}/**/*.ts\" \"*.{js,json}\"",
149
+ "format": "prettier --write --config .prettierrc.json --ignore-path .prettierignore \"{src,tests}/**/*.ts\" \"*.{js,json}\"",
150
+ "lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
151
+ "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
152
+ "precommit": "lint-staged",
153
+ "postinstall": "node deletePS1.js",
154
+ "build-metrics": "npx eslint --plugin=@microsoft/eslint-plugin-teamsfx --rule=\"@microsoft/teamsfx/metrics: warn\" --ignore-pattern=\"src/telemetry/**/*.ts\" --ignore-pattern=\"src/cmds/**/*.ts\" \"src/**/*.ts\" --fix"
155
155
  }
156
- }
156
+ }
@@ -10,7 +10,8 @@
10
10
  "core.addKnowledge.continue": "Add",
11
11
  "core.addSkill.confirm": "Microsoft 365 Agents Toolkit will modify files in your \"%s\" folder to add the agent skill. To avoid losing unexpected changes, back up your files or use git for change tracking before proceeding.",
12
12
  "core.addSkill.continue": "Add",
13
- "core.addSkill.featureFlagDisabled": "Agent skills are not enabled. Set the environment variable TEAMSFX_AGENT_SKILLS=true to enable this preview feature.",
13
+ "core.addSkill.featureFlagDisabled": "Agent skills are not enabled. Set the environment variable ATK_FRONTIER=true to enable this preview feature.",
14
+ "core.featureFlaggedLabel.frontier": "%s (Frontier)",
14
15
  "core.setSensitivityLabel.confirm": "Teams Toolkit will modify the file \"%s\" based on the sensitivity label you provided. To avoid losing unexpected changes, back up your files or use git for change tracking before proceeding.",
15
16
  "core.setSensitivityLabel.continue": "Set",
16
17
  "core.provision.provision": "Provision",
@@ -405,6 +406,12 @@
405
406
  "core.createProjectQuestion.apiSpecInputUrl.label": "Enter OpenAPI Document URL",
406
407
  "core.createProjectQuestion.ApiKey": "Enter API Key in OpenAPI Description Document",
407
408
  "core.addOpenApiActionQuestion.ApiKey.title": "API Key (optional)",
409
+ "core.addOpenApiActionQuestion.IdentityProvider.title": "Select the identity provider for OpenAPI OAuth",
410
+ "core.addOpenApiActionQuestion.IdentityProvider.description": "Identity provider for OpenAPI OAuth (optional; defaults to OAuth).",
411
+ "core.addOpenApiActionQuestion.OAuthClientId.title": "OpenAPI OAuth client ID (optional)",
412
+ "core.addOpenApiActionQuestion.OAuthClientSecret.title": "OpenAPI OAuth client secret (optional)",
413
+ "core.addOpenApiActionQuestion.OAuthScopes.title": "OpenAPI OAuth scopes (optional)",
414
+ "core.addOpenApiActionQuestion.OAuthPKCE.title": "Enable PKCE for OpenAPI OAuth?",
408
415
  "core.createProjectQuestion.ApiKeyConfirm": "Microsoft 365 Agents Toolkit will upload the API key to Developer Portal. The API key will be used by Teams client to securely access your API in runtime. Microsoft 365 Agents Toolkit will not store your API key.",
409
416
  "core.createProjectQuestion.OauthClientId": "Oauth registration client ID",
410
417
  "core.createProjectQuestion.OauthClientId.placeholder": "Input client ID for OAuth registration in OpenAPI Description Document",
@@ -936,6 +943,9 @@
936
943
  "error.common.MissingEnvironmentVariablesError": "Missing environment variables '%s' for file: %s. Please edit the .env file '%s' or '%s', or adjust system environment variables. For new projects, run local debugging or provision a remote environment to set these variables.",
937
944
  "error.common.InvalidProjectError": "This command only works for project created by Microsoft 365 Agents Toolkit. 'm365agents.yml' or 'm365agents.local.yml' not found",
938
945
  "error.common.InvalidProjectError.display": "This command only works for project created by Microsoft 365 Agents Toolkit. Yaml file not found: %s",
946
+ "error.common.AmbiguousOpenApiAuthCredentialError": "OpenAPI credentials cannot be mapped because the selected operations use multiple authentication registrations. Omit the scalar credentials or select operations that use one registration.",
947
+ "error.common.InapplicableOpenApiAuthCredentialError": "The supplied OpenAPI credentials do not apply to the authentication type used by the selected operations. Omit the credentials or supply credentials for the discovered authentication type.",
948
+ "error.common.IncompleteOpenApiOAuthCredentialError": "OpenAPI OAuth client secret, scopes, and PKCE require --openapi-auth-client-id. Supply a client ID or omit the OAuth credential options to configure credentials during provision.",
939
949
  "error.common.FileNotFoundError": "The file or directory is not found: '%s'. Check if it exists and you have permission to access it.",
940
950
  "error.common.JSONSyntaxError": "JSON syntax error: %s. Check the JSON syntax to ensure it is properly formatted.",
941
951
  "error.common.ReadFileError": "Unable to read file for reason: %s",
@@ -1156,8 +1166,9 @@
1156
1166
  "core.createProjectQuestion.mcpForDa.ClientSecret.required": "OAuth Client Secret is required.",
1157
1167
  "core.createProjectQuestion.mcpForDa.Scopes.title": "OAuth Scopes (optional)",
1158
1168
  "core.createProjectQuestion.mcpForDa.Scopes.placeholder": "Space-separated OAuth scopes, e.g. 'read:user repo'",
1159
- "core.createProjectQuestion.mcpForDa.ApiKey.title": "API Key (optional)",
1169
+ "core.createProjectQuestion.mcpForDa.ApiKey.title": "API Key",
1160
1170
  "core.createProjectQuestion.mcpForDa.ApiKey.placeholder": "Enter the API key sent as a bearer token",
1171
+ "core.createProjectQuestion.mcpForDa.ApiKey.required": "API key is required.",
1161
1172
  "core.createProjectQuestion.mcpForDa.EntraClientId.title": "Microsoft Entra Application (Client) ID",
1162
1173
  "core.createProjectQuestion.mcpForDa.EntraClientId.placeholder": "Enter the Application (client) ID of your Microsoft Entra app registration",
1163
1174
  "core.createProjectQuestion.mcpForDa.EntraClientId.required": "Microsoft Entra Application (Client) ID is required.",
@@ -1182,6 +1193,9 @@
1182
1193
  "core.MCPForDA.mcpAuthDcrPlaceholderWarning": "Scaffolding succeeded, but the OAuth endpoints couldn't be discovered automatically. Your MCP server is reachable, but it doesn't advertise its OAuth endpoints — ATK checks the server's OAuth metadata ('.well-known/oauth-authorization-server') and found 'none'. Replace the 'wellKnownAuthorizationServer' placeholder in 'm365agents.yml' with the right value before provisioning.",
1183
1194
  "core.MCPForDA.mcpAuthOAuthPlaceholderWarning": "Scaffolding succeeded, but the OAuth endpoints couldn't be discovered automatically. Your MCP server is reachable, but it doesn't advertise its OAuth endpoints — ATK checks the server's OAuth metadata ('.well-known/oauth-authorization-server') and found 'none'. Replace the 'authorizationUrl' and 'tokenUrl' placeholders in 'm365agents.yml' with the right values before provisioning.",
1184
1195
  "core.v4.scaffold.existingFileSkipped": "'%s' exists and was not overwritten. Delete or rename it to rebuild the file.",
1196
+ "core.v4.scaffold.languageOptionsInvalid": "The template package contains invalid language presentation metadata.",
1197
+ "core.v4.scaffold.languageOptionsFailed": "Failed to load language choices from the template package.",
1198
+ "core.v4.scaffold.openApiAuthYamlInvalid": "Cannot add OpenAPI authentication actions. The project YAML must be valid and contain a provision action list.",
1185
1199
  "core.MCPForDA.mcpAuthMetadataUrlNotFound": "Unable to find the authentication metadata from property \"resource_metadata\" from response of the MCP server.",
1186
1200
  "core.MCPForDA.mcpServerMetadataUrlNotFound": "Unable to find the server metadata from property \"authorization_servers\" from response of the Protected Resource Metadata of the MCP server.",
1187
1201
  "core.MCPForDA.authUrlNotFound": "Unable to find the authentication URL(s) from response of Authorization Server Metadata of the MCP server. Attempted: %s",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -76,7 +76,7 @@
76
76
  "label": "template.createProjectQuestion.addSkill.label",
77
77
  "detail": "template.createProjectQuestion.addSkill.detail",
78
78
  "data": "declarative-agent-with-skill",
79
- "featureFlag": "TEAMSFX_AGENT_SKILLS"
79
+ "featureFlag": "ATK_FRONTIER"
80
80
  },
81
81
  {
82
82
  "id": "type-spec",
@@ -105,7 +105,7 @@
105
105
  "label": "template.createProjectQuestion.addSkill.label",
106
106
  "detail": "template.createProjectQuestion.addSkill.detail",
107
107
  "data": "declarative-agent-with-skill",
108
- "featureFlag": "TEAMSFX_AGENT_SKILLS"
108
+ "featureFlag": "ATK_FRONTIER"
109
109
  },
110
110
  {
111
111
  "id": "type-spec",
@@ -76,7 +76,7 @@
76
76
  { "id": "skill",
77
77
  "label": "Add an Agent Skill",
78
78
  "detail": "Create a declarative agent with an agent skill",
79
- "condition": { "featureFlag": "TEAMSFX_AGENT_SKILLS" },
79
+ "condition": { "featureFlag": "ATK_FRONTIER" },
80
80
  "keyPrefix": "template.createProjectQuestion.addSkill" },
81
81
  { "id": "typespec",
82
82
  "label": "Start with TypeSpec for Microsoft 365 Copilot",
@@ -349,7 +349,7 @@
349
349
  "engine": "v4"
350
350
  },
351
351
  {
352
- "when": "projectType=='copilot-agent-type' && daTemplate=='skill' && featureFlag('TEAMSFX_AGENT_SKILLS')",
352
+ "when": "projectType=='copilot-agent-type' && daTemplate=='skill' && featureFlag('ATK_FRONTIER')",
353
353
  "templateId": "da/skill",
354
354
  "engine": "v4"
355
355
  },
Binary file
Binary file