From 3db2e0f29ef535695961f9d2eff421e90cc5558c Mon Sep 17 00:00:00 2001 From: Yuqi Zhou Date: Fri, 13 Sep 2024 11:22:15 +0800 Subject: [PATCH] refactor: template file rename --- .../src/component/generator/apiSpec/generator.ts | 2 +- .../generator/copilotExtension/generator.ts | 2 +- .../component/generator/apiSpecGenerator.test.ts | 10 +++++----- .../generator/copilotExtensionGenerator.test.ts | 12 ++++++------ templates/common/copilot-gpt-basic/README.md | 2 +- ...iveCopilot.json.tpl => declarativeAgent.json.tpl} | 0 .../copilot-gpt-basic/appPackage/manifest.json.tpl | 4 ++-- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 .../js/api-plugin-from-scratch-bearer/README.md.tpl | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 .../js/api-plugin-from-scratch-oauth/README.md.tpl | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...pilot.json.tpl => repairDeclarativAgent.json.tpl} | 0 templates/js/api-plugin-from-scratch/README.md.tpl | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 .../js/copilot-gpt-from-scratch-plugin/README.md | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 .../ts/api-plugin-from-scratch-bearer/README.md.tpl | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 .../ts/api-plugin-from-scratch-oauth/README.md.tpl | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 templates/ts/api-plugin-from-scratch/README.md.tpl | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 .../ts/copilot-gpt-from-scratch-plugin/README.md | 2 +- .../appPackage/manifest.json.tpl | 4 ++-- ...ilot.json.tpl => repairDeclarativeAgent.json.tpl} | 0 33 files changed, 42 insertions(+), 42 deletions(-) rename templates/common/copilot-gpt-basic/appPackage/{declarativeCopilot.json.tpl => declarativeAgent.json.tpl} (100%) rename templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/js/api-plugin-from-scratch-bearer/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/js/api-plugin-from-scratch-oauth/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativAgent.json.tpl} (100%) rename templates/js/api-plugin-from-scratch/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/js/copilot-gpt-from-scratch-plugin/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/ts/api-plugin-from-scratch-bearer/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/ts/api-plugin-from-scratch-oauth/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/ts/api-plugin-from-scratch/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) rename templates/ts/copilot-gpt-from-scratch-plugin/appPackage/{repairDeclarativeCopilot.json.tpl => repairDeclarativeAgent.json.tpl} (100%) diff --git a/packages/fx-core/src/component/generator/apiSpec/generator.ts b/packages/fx-core/src/component/generator/apiSpec/generator.ts index b50911e8ad..fc8cbf0b11 100644 --- a/packages/fx-core/src/component/generator/apiSpec/generator.ts +++ b/packages/fx-core/src/component/generator/apiSpec/generator.ts @@ -75,7 +75,7 @@ const copilotPluginExistingApiSpecUrlTelemetryEvent = "copilot-plugin-existing-a const apiPluginFromApiSpecTemplateName = "api-plugin-existing-api"; const failedToUpdateCustomApiTemplateErrorName = "failed-to-update-custom-api-template"; -const defaultDeclarativeCopilotManifestFileName = "declarativeCopilot.json"; +const defaultDeclarativeCopilotManifestFileName = "declarativeAgent.json"; const enum telemetryProperties { templateName = "template-name", diff --git a/packages/fx-core/src/component/generator/copilotExtension/generator.ts b/packages/fx-core/src/component/generator/copilotExtension/generator.ts index f40d1e1546..f4fa4f6920 100644 --- a/packages/fx-core/src/component/generator/copilotExtension/generator.ts +++ b/packages/fx-core/src/component/generator/copilotExtension/generator.ts @@ -86,7 +86,7 @@ export class CopilotExtensionGenerator extends DefaultTemplateGenerator { }; const filterFn = (fileName: string) => { - if (fileName.toLowerCase().includes("declarativecopilot.json")) { + if (fileName.toLowerCase().includes("declarativeagent.json")) { return isDeclarativeCopilot; } else if (fileName.includes(declarativeCopilotInstructionFileName)) { return isDeclarativeCopilot && featureFlagManager.getBooleanValue(FeatureFlags.EnvFileFunc); diff --git a/packages/fx-core/tests/component/generator/apiSpecGenerator.test.ts b/packages/fx-core/tests/component/generator/apiSpecGenerator.test.ts index fb5e76b10c..2e1d4f4cce 100644 --- a/packages/fx-core/tests/component/generator/apiSpecGenerator.test.ts +++ b/packages/fx-core/tests/component/generator/apiSpecGenerator.test.ts @@ -1423,7 +1423,7 @@ describe("SpecGenerator", async () => { assert.equal(res.value[0].templateName, "api-plugin-existing-api"); assert.equal(res.value[0].replaceMap!["DeclarativeCopilot"], ""); - let filterResult = res.value[0].filterFn!("declarativeCopilot.json.tpl"); + let filterResult = res.value[0].filterFn!("declarativeAgent.json.tpl"); assert.isFalse(filterResult); filterResult = res.value[0].filterFn!("test.json"); assert.isTrue(filterResult); @@ -1439,7 +1439,7 @@ describe("SpecGenerator", async () => { assert.equal(res.value[0].templateName, "api-plugin-existing-api"); assert.equal(res.value[0].replaceMap!["DeclarativeCopilot"], "true"); - let filterResult = res.value[0].filterFn!("declarativeCopilot.json.tpl"); + let filterResult = res.value[0].filterFn!("declarativeAgent.json.tpl"); assert.isTrue(filterResult); filterResult = res.value[0].filterFn!("instruction.txt"); assert.isTrue(filterResult); @@ -1486,7 +1486,7 @@ describe("SpecGenerator", async () => { assert.equal(res.value[0].templateName, "api-plugin-existing-api"); assert.equal(res.value[0].replaceMap!["DeclarativeCopilot"], "true"); - let filterResult = res.value[0].filterFn!("declarativeCopilot.json.tpl"); + let filterResult = res.value[0].filterFn!("declarativeAgent.json.tpl"); assert.isTrue(filterResult); filterResult = res.value[0].filterFn!("instruction.txt"); assert.isFalse(filterResult); @@ -1553,7 +1553,7 @@ describe("SpecGenerator", async () => { assert.equal(res.value[0].templateName, "api-plugin-existing-api"); assert.equal(res.value[0].replaceMap!["DeclarativeCopilot"], ""); - let filterResult = res.value[0].filterFn!("declarativeCopilot.json.tpl"); + let filterResult = res.value[0].filterFn!("declarativeAgent.json.tpl"); assert.isFalse(filterResult); filterResult = res.value[0].filterFn!("test.json"); assert.isTrue(filterResult); @@ -1597,7 +1597,7 @@ describe("SpecGenerator", async () => { assert.equal(res.value[0].templateName, "api-plugin-existing-api"); assert.equal(res.value[0].replaceMap!["DeclarativeCopilot"], ""); - let filterResult = res.value[0].filterFn!("declarativeCopilot.json.tpl"); + let filterResult = res.value[0].filterFn!("declarativeAgent.json.tpl"); assert.isFalse(filterResult); filterResult = res.value[0].filterFn!("test.json"); assert.isTrue(filterResult); diff --git a/packages/fx-core/tests/component/generator/copilotExtensionGenerator.test.ts b/packages/fx-core/tests/component/generator/copilotExtensionGenerator.test.ts index 4fbb829e12..5edae12582 100644 --- a/packages/fx-core/tests/component/generator/copilotExtensionGenerator.test.ts +++ b/packages/fx-core/tests/component/generator/copilotExtensionGenerator.test.ts @@ -75,7 +75,7 @@ describe("copilotExtension", async () => { if (info.isOk()) { const filterFn = info.value[0].filterFn; - assert.isFalse(filterFn?.("repairDeclarativeCopilot.json")); + assert.isFalse(filterFn?.("repairDeclarativeAgent.json")); assert.isFalse(filterFn?.("instruction.txt")); assert.isTrue(filterFn?.("test.json")); } @@ -118,7 +118,7 @@ describe("copilotExtension", async () => { if (info.isOk()) { const filterFn = info.value[0].filterFn; - assert.isTrue(filterFn?.("repairDeclarativeCopilot.json")); + assert.isTrue(filterFn?.("repairDeclarativeAgent.json")); assert.isTrue(filterFn?.("instruction.txt")); assert.isTrue(filterFn?.("test.json")); } @@ -143,7 +143,7 @@ describe("copilotExtension", async () => { if (info.isOk()) { const filterFn = info.value[0].filterFn; - assert.isTrue(filterFn?.("repairDeclarativeCopilot.json")); + assert.isTrue(filterFn?.("repairDeclarativeAgent.json")); assert.isFalse(filterFn?.("instruction.txt")); assert.isTrue(filterFn?.("test.json")); } @@ -164,7 +164,7 @@ describe("copilotExtension", async () => { sandbox .stub(copilotGptManifestUtils, "getManifestPath") - .resolves(ok("declarativeCopilot.json")); + .resolves(ok("declarativeAgent.json")); sandbox .stub(generatorHelper, "addExistingPlugin") .resolves(ok({ destinationPluginManifestPath: "test.json", warnings: [] })); @@ -194,7 +194,7 @@ describe("copilotExtension", async () => { const logStub = sandbox.stub(MockLogProvider.prototype, "info").resolves(); sandbox .stub(copilotGptManifestUtils, "getManifestPath") - .resolves(ok("declarativeCopilot.json")); + .resolves(ok("declarativeAgent.json")); sandbox.stub(generatorHelper, "addExistingPlugin").resolves( ok({ destinationPluginManifestPath: "test.json", @@ -246,7 +246,7 @@ describe("copilotExtension", async () => { sandbox .stub(copilotGptManifestUtils, "getManifestPath") - .resolves(ok("declarativeCopilot.json")); + .resolves(ok("declarativeAgent.json")); sandbox .stub(generatorHelper, "addExistingPlugin") .resolves(err(new UserError("fakeError", "fakeError", "fakeError", "fakeError"))); diff --git a/templates/common/copilot-gpt-basic/README.md b/templates/common/copilot-gpt-basic/README.md index bb6888864d..e171cfb72e 100644 --- a/templates/common/copilot-gpt-basic/README.md +++ b/templates/common/copilot-gpt-basic/README.md @@ -36,7 +36,7 @@ The following files can be customized and demonstrate an example implementation | File | Contents | | ------------------------------------ | ------------------------------------------------------------------------------ | -| `appPackage/declarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/declarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | | `appPackage/manifest.json` | Teams application manifest that defines metadata for your declarative agent. | The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/common/copilot-gpt-basic/appPackage/declarativeCopilot.json.tpl b/templates/common/copilot-gpt-basic/appPackage/declarativeAgent.json.tpl similarity index 100% rename from templates/common/copilot-gpt-basic/appPackage/declarativeCopilot.json.tpl rename to templates/common/copilot-gpt-basic/appPackage/declarativeAgent.json.tpl diff --git a/templates/common/copilot-gpt-basic/appPackage/manifest.json.tpl b/templates/common/copilot-gpt-basic/appPackage/manifest.json.tpl index ec97c3bfa9..7835f376fc 100644 --- a/templates/common/copilot-gpt-basic/appPackage/manifest.json.tpl +++ b/templates/common/copilot-gpt-basic/appPackage/manifest.json.tpl @@ -30,8 +30,8 @@ "copilotExtensions": { "declarativeCopilots": [ { - "id": "declarativeCopilot", - "file": "declarativeCopilot.json" + "id": "declarativeAgent", + "file": "declarativeAgent.json" } ] }, diff --git a/templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl b/templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl index 627d2f4b80..7e1d4e9520 100644 --- a/templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl +++ b/templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl @@ -26,8 +26,8 @@ "copilotExtensions": { "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ], "plugins": [ diff --git a/templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeCopilot.json.tpl b/templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/csharp/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/js/api-plugin-from-scratch-bearer/README.md.tpl b/templates/js/api-plugin-from-scratch-bearer/README.md.tpl index 20fcf64d97..88e2806d18 100644 --- a/templates/js/api-plugin-from-scratch-bearer/README.md.tpl +++ b/templates/js/api-plugin-from-scratch-bearer/README.md.tpl @@ -90,7 +90,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/manifest.json` | Teams application manifest that defines metadata for your plugin inside Microsoft Teams. | | `appPackage/ai-plugin.json` | The manifest file for your API Plugin that contains information for your API and used by LLM. | {{#DeclarativeCopilot}} -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | {{/DeclarativeCopilot}} The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/js/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl b/templates/js/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl index 2025c2a9ce..bbc0cdd9cc 100644 --- a/templates/js/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl +++ b/templates/js/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl @@ -34,8 +34,8 @@ {{#DeclarativeCopilot}} "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ] {{/DeclarativeCopilot}} diff --git a/templates/js/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeCopilot.json.tpl b/templates/js/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/js/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/js/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/js/api-plugin-from-scratch-oauth/README.md.tpl b/templates/js/api-plugin-from-scratch-oauth/README.md.tpl index fab63a060b..51ee8ed2f5 100644 --- a/templates/js/api-plugin-from-scratch-oauth/README.md.tpl +++ b/templates/js/api-plugin-from-scratch-oauth/README.md.tpl @@ -73,7 +73,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/ai-plugin.dev.json` | The manifest file for your API Plugin that contains information for your API and used by LLM. | | `appPackage/ai-plugin.local.json` | The manifest file for your API Plugin for local execution and debugging. | {{#DeclarativeCopilot}} -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | {{/DeclarativeCopilot}} The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/js/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl b/templates/js/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl index f09c7440fe..394b463b62 100644 --- a/templates/js/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl +++ b/templates/js/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl @@ -34,8 +34,8 @@ {{#DeclarativeCopilot}} "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ] {{/DeclarativeCopilot}} diff --git a/templates/js/api-plugin-from-scratch-oauth/appPackage/repairDeclarativeCopilot.json.tpl b/templates/js/api-plugin-from-scratch-oauth/appPackage/repairDeclarativAgent.json.tpl similarity index 100% rename from templates/js/api-plugin-from-scratch-oauth/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/js/api-plugin-from-scratch-oauth/appPackage/repairDeclarativAgent.json.tpl diff --git a/templates/js/api-plugin-from-scratch/README.md.tpl b/templates/js/api-plugin-from-scratch/README.md.tpl index 657503e104..f3b9735510 100644 --- a/templates/js/api-plugin-from-scratch/README.md.tpl +++ b/templates/js/api-plugin-from-scratch/README.md.tpl @@ -72,7 +72,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/manifest.json` | Teams application manifest that defines metadata for your plugin inside Microsoft Teams. | | `appPackage/ai-plugin.json` | The manifest file for your API Plugin that contains information for your API and used by LLM. | {{#DeclarativeCopilot}} -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | {{/DeclarativeCopilot}} The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/js/api-plugin-from-scratch/appPackage/manifest.json.tpl b/templates/js/api-plugin-from-scratch/appPackage/manifest.json.tpl index 6aa1645dd7..69a740e679 100644 --- a/templates/js/api-plugin-from-scratch/appPackage/manifest.json.tpl +++ b/templates/js/api-plugin-from-scratch/appPackage/manifest.json.tpl @@ -34,8 +34,8 @@ {{#DeclarativeCopilot}} "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ] {{/DeclarativeCopilot}} diff --git a/templates/js/api-plugin-from-scratch/appPackage/repairDeclarativeCopilot.json.tpl b/templates/js/api-plugin-from-scratch/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/js/api-plugin-from-scratch/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/js/api-plugin-from-scratch/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/js/copilot-gpt-from-scratch-plugin/README.md b/templates/js/copilot-gpt-from-scratch-plugin/README.md index cf5b0b3db4..4e689dcdfd 100644 --- a/templates/js/copilot-gpt-from-scratch-plugin/README.md +++ b/templates/js/copilot-gpt-from-scratch-plugin/README.md @@ -41,7 +41,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/apiSpecificationFile/repair.yml` | A file that describes the structure and behavior of the repair API. | | `appPackage/manifest.json` | Teams application manifest that defines metadata for your API plugin and declarative agent. | | `appPackage/ai-plugin.json` | The manifest file for your declarative agent that contains information for your API and used by LLM. | -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/js/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl b/templates/js/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl index 79c3557efc..3336f56f44 100644 --- a/templates/js/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl +++ b/templates/js/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl @@ -25,8 +25,8 @@ "copilotExtensions": { "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ], "plugins": [ diff --git a/templates/js/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeCopilot.json.tpl b/templates/js/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/js/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/js/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/ts/api-plugin-from-scratch-bearer/README.md.tpl b/templates/ts/api-plugin-from-scratch-bearer/README.md.tpl index bd75d67006..8604c8db0f 100644 --- a/templates/ts/api-plugin-from-scratch-bearer/README.md.tpl +++ b/templates/ts/api-plugin-from-scratch-bearer/README.md.tpl @@ -90,7 +90,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/manifest.json` | Teams application manifest that defines metadata for your plugin inside Microsoft Teams. | | `appPackage/ai-plugin.json` | The manifest file for your API plugin that contains information for your API and used by LLM. | {{#DeclarativeCopilot}} -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | {{/DeclarativeCopilot}} The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/ts/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl b/templates/ts/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl index 58a24ffa32..5caba495da 100644 --- a/templates/ts/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl +++ b/templates/ts/api-plugin-from-scratch-bearer/appPackage/manifest.json.tpl @@ -34,8 +34,8 @@ {{#DeclarativeCopilot}} "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ] {{/DeclarativeCopilot}} diff --git a/templates/ts/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeCopilot.json.tpl b/templates/ts/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/ts/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/ts/api-plugin-from-scratch-bearer/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/ts/api-plugin-from-scratch-oauth/README.md.tpl b/templates/ts/api-plugin-from-scratch-oauth/README.md.tpl index e7bbed810f..2d0427c70c 100644 --- a/templates/ts/api-plugin-from-scratch-oauth/README.md.tpl +++ b/templates/ts/api-plugin-from-scratch-oauth/README.md.tpl @@ -73,7 +73,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/ai-plugin.dev.json` | The manifest file for your API plugin that contains information for your API and used by LLM. | | `appPackage/ai-plugin.local.json` | The manifest file for your API plugin for local execution and debugging. | {{#DeclarativeCopilot}} -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | {{/DeclarativeCopilot}} The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/ts/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl b/templates/ts/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl index f09c7440fe..394b463b62 100644 --- a/templates/ts/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl +++ b/templates/ts/api-plugin-from-scratch-oauth/appPackage/manifest.json.tpl @@ -34,8 +34,8 @@ {{#DeclarativeCopilot}} "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ] {{/DeclarativeCopilot}} diff --git a/templates/ts/api-plugin-from-scratch-oauth/appPackage/repairDeclarativeCopilot.json.tpl b/templates/ts/api-plugin-from-scratch-oauth/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/ts/api-plugin-from-scratch-oauth/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/ts/api-plugin-from-scratch-oauth/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/ts/api-plugin-from-scratch/README.md.tpl b/templates/ts/api-plugin-from-scratch/README.md.tpl index 2c4e29dd70..704f55e6d5 100644 --- a/templates/ts/api-plugin-from-scratch/README.md.tpl +++ b/templates/ts/api-plugin-from-scratch/README.md.tpl @@ -71,7 +71,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/manifest.json` | Teams application manifest that defines metadata for your plugin inside Microsoft Teams. | | `appPackage/ai-plugin.json` | The manifest file for your API Plugin that contains information for your API and used by LLM. | {{#DeclarativeCopilot}} -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | {{/DeclarativeCopilot}} The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/ts/api-plugin-from-scratch/appPackage/manifest.json.tpl b/templates/ts/api-plugin-from-scratch/appPackage/manifest.json.tpl index 8a191eb65e..6e33224367 100644 --- a/templates/ts/api-plugin-from-scratch/appPackage/manifest.json.tpl +++ b/templates/ts/api-plugin-from-scratch/appPackage/manifest.json.tpl @@ -34,8 +34,8 @@ {{#DeclarativeCopilot}} "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ] {{/DeclarativeCopilot}} diff --git a/templates/ts/api-plugin-from-scratch/appPackage/repairDeclarativeCopilot.json.tpl b/templates/ts/api-plugin-from-scratch/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/ts/api-plugin-from-scratch/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/ts/api-plugin-from-scratch/appPackage/repairDeclarativeAgent.json.tpl diff --git a/templates/ts/copilot-gpt-from-scratch-plugin/README.md b/templates/ts/copilot-gpt-from-scratch-plugin/README.md index 4ee06c8678..2d3e97f6e7 100644 --- a/templates/ts/copilot-gpt-from-scratch-plugin/README.md +++ b/templates/ts/copilot-gpt-from-scratch-plugin/README.md @@ -41,7 +41,7 @@ The following files can be customized and demonstrate an example implementation | `appPackage/apiSpecificationFile/repair.yml` | A file that describes the structure and behavior of the repair API. | | `appPackage/manifest.json` | Teams application manifest that defines metadata for your API plugin and declarative agent. | | `appPackage/ai-plugin.json` | The manifest file for your declarative agent that contains information for your API and used by LLM. | -| `appPackage/repairDeclarativeCopilot.json` | Define the behaviour and configurations of the declarative agent. | +| `appPackage/repairDeclarativeAgent.json` | Define the behaviour and configurations of the declarative agent. | The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works. diff --git a/templates/ts/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl b/templates/ts/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl index 79c3557efc..3336f56f44 100644 --- a/templates/ts/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl +++ b/templates/ts/copilot-gpt-from-scratch-plugin/appPackage/manifest.json.tpl @@ -25,8 +25,8 @@ "copilotExtensions": { "declarativeCopilots": [ { - "id": "repairDeclarativeCopilot", - "file": "repairDeclarativeCopilot.json" + "id": "repairDeclarativeAgent", + "file": "repairDeclarativeAgent.json" } ], "plugins": [ diff --git a/templates/ts/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeCopilot.json.tpl b/templates/ts/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeAgent.json.tpl similarity index 100% rename from templates/ts/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeCopilot.json.tpl rename to templates/ts/copilot-gpt-from-scratch-plugin/appPackage/repairDeclarativeAgent.json.tpl