Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@powerpages][5x5] Update Webpage Content and Create Site Records on DV #1073

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9b03e50
Refactor CreateSiteHelper to include poplulate record call
Nov 13, 2024
9ed7bac
Add PowerPages site and component models, constants, and entity names
Nov 15, 2024
b5eff91
Enhance CreateSiteCommand to include extension context and add Readon…
Nov 20, 2024
17aaad6
Implement EditableFileSystemProvider for site page editing and update…
Nov 22, 2024
b9d7301
Integrate CreateSiteCommand into CommandRegistry and update related c…
Nov 22, 2024
8b32d09
Disable copy functionality in EditableFileSystemProvider implementation
Nov 22, 2024
2636dcd
Remove ReadonlyFileSystemProvider implementation
Nov 22, 2024
7b26d08
Add telemetry constant for previewing site pages and refactor related…
Nov 22, 2024
66240c4
Refactor CommandRegistry and add command registration utility for cha…
Nov 22, 2024
255c97e
Add constants for site creation parameters and refactor NL2SiteServic…
Nov 22, 2024
7653622
Refactor CreateSiteCommand and CreateSiteHelper to use structured opt…
Nov 25, 2024
537414c
Add error telemetry constant for previewing site pages and handle err…
Nov 26, 2024
0f73785
Rename fileContentMap to _fileContentMap for consistency and clarity …
Nov 26, 2024
ba1dde6
Implement multi-step input for site creation and register command for…
Nov 27, 2024
04aa45e
Merge branch 'main' of https://github.com/microsoft/powerplatform-vsc…
Nov 27, 2024
f921e3b
Enhance copilot availability checks and update response structure in …
Nov 27, 2024
22dc98f
Add site creation inputs and environment info interfaces; refactor Cr…
Nov 27, 2024
32bb589
Add eslint directive for sitePages property in IPreviewSitePagesConte…
Nov 28, 2024
9df6e81
Add PowerPages site and component models, constants, and entity names
Nov 15, 2024
898470c
CreateSiteManager
Nov 18, 2024
e9b31e6
Enhance CreateSiteHelper and CreateSiteManager to accept orgUrl param…
Nov 22, 2024
3bd245d
Remove copyright comment from CreateSiteConstants.ts
Nov 29, 2024
e47e0e2
Add HTTP methods constants and refactor CreateSiteUtils for HTTP requ…
Nov 29, 2024
c4883f9
Merge branch 'users/amitjoshi/@powerpagesCreateSiteRecordsOnDV' of ht…
Dec 3, 2024
81bf921
Comment out websiteId in createSite return object
Dec 3, 2024
0b57401
Add page constants and refactor site data handling in CreateSite modu…
Dec 6, 2024
1d9a209
Enhance Command interface and PowerPagesChatParticipant to utilize Ed…
Dec 6, 2024
d596ee9
Throw an error if intelligence API endpoint is not provided in create…
Dec 10, 2024
e900b16
Merge branch 'main' into users/amitjoshi/@powerpagesCreateSiteRecords…
Dec 16, 2024
926df6a
[PowerPages] Update localization strings for site creation and improv…
Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 29 additions & 26 deletions l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,40 +83,18 @@
"Hi! Power Pages lets you build secure, professional websites that you can quickly configure and publish across web browsers and devices.\n\nTo create your website, visit the [Power Pages](https://powerpages.microsoft.com/).\nReturn to this chat and @powerpages can help you write and edit your website code.": "Hi! Power Pages lets you build secure, professional websites that you can quickly configure and publish across web browsers and devices.\n\nTo create your website, visit the [Power Pages](https://powerpages.microsoft.com/).\nReturn to this chat and @powerpages can help you write and edit your website code.",
"Checking for active auth profile...": "Checking for active auth profile...",
"@PowerPages is not yet available in your region.": "@PowerPages is not yet available in your region.",
"Failed to get site content from NL2Site service": "Failed to get site content from NL2Site service",
"Generating webpages...": "Generating webpages...",
"Generating a new Power Pages site...": "Generating a new Power Pages site...",
"Failed to create a new Power Pages site. Please try again.": "Failed to create a new Power Pages site. Please try again.",
"Creating Site Records": "Creating Site Records",
"Initializing site manager...": "Initializing site manager...",
"Saving site...": "Saving site...",
"Select Folder for new PCF Control/Do not translate 'PCF' as it is a product name.": {
"message": "Select Folder for new PCF Control",
"comment": [
"Do not translate 'PCF' as it is a product name."
]
},
"Preparing pac CLI (v{0}).../{0} represents the version number": {
"message": "Preparing pac CLI (v{0})...",
"comment": [
"{0} represents the version number"
]
},
"The pac CLI is ready for use in your VS Code terminal!": "The pac CLI is ready for use in your VS Code terminal!",
"Cannot install pac CLI: {0}/{0} represents the error message returned from the exception": {
"message": "Cannot install pac CLI: {0}",
"comment": [
"{0} represents the error message returned from the exception"
]
},
"Installing Power Pages generator(v{0}).../{0} represents the version number": {
"message": "Installing Power Pages generator(v{0})...",
"comment": [
"{0} represents the version number"
]
},
"dotnet sdk 6.0 or greater must be installed/Do not translate 'dotnet' or 'sdk'": {
"message": "dotnet sdk 6.0 or greater must be installed",
"comment": [
"Do not translate 'dotnet' or 'sdk'"
]
},
"File might be referenced by name {0} here./{0} represents the name of the file": {
"message": "File might be referenced by name {0} here.",
"comment": [
Expand Down Expand Up @@ -188,6 +166,12 @@
"Do not translate 'npm'"
]
},
"Installing Power Pages generator(v{0}).../{0} represents the version number": {
"message": "Installing Power Pages generator(v{0})...",
"comment": [
"{0} represents the version number"
]
},
"Cannot install Power Pages generator: {0}/{0} represents the error message returned from the exception": {
"message": "Cannot install Power Pages generator: {0}",
"comment": [
Expand Down Expand Up @@ -217,6 +201,25 @@
"The {3} represents Dataverse Environment's Organization ID (GUID)"
]
},
"Preparing pac CLI (v{0}).../{0} represents the version number": {
"message": "Preparing pac CLI (v{0})...",
"comment": [
"{0} represents the version number"
]
},
"The pac CLI is ready for use in your VS Code terminal!": "The pac CLI is ready for use in your VS Code terminal!",
"Cannot install pac CLI: {0}/{0} represents the error message returned from the exception": {
"message": "Cannot install pac CLI: {0}",
"comment": [
"{0} represents the error message returned from the exception"
]
},
"dotnet sdk 6.0 or greater must be installed/Do not translate 'dotnet' or 'sdk'": {
"message": "dotnet sdk 6.0 or greater must be installed",
"comment": [
"Do not translate 'dotnet' or 'sdk'"
]
},
"Confirm": "Confirm",
"Are you sure you want to clear all the Auth Profiles?": "Are you sure you want to clear all the Auth Profiles?",
"Cancel": "Cancel",
Expand Down
15 changes: 12 additions & 3 deletions loc/translations-export/vscode-powerplatform.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
<trans-unit id="++CODE++b749e205302cc21952a1e9646569ca0af9017cc5f39dd741830551bdd4ae823e">
<source xml:lang="en">Copy to clipboard</source>
</trans-unit>
<trans-unit id="++CODE++6dc7db56b51f2fb60ba165717916e54647dd57ed444c8e4f9224aa37fc1a9f40">
<source xml:lang="en">Creating Site Records</source>
</trans-unit>
<trans-unit id="++CODE++446092146c92f1aa2441a29971d3844b0add13a951c45c491423f506bbe4edab">
<source xml:lang="en">Creating {0}...</source>
<note>{0} will be replaced by the entity type.</note>
Expand Down Expand Up @@ -143,6 +146,9 @@ The {3} represents Solution's Type (Managed or Unmanaged), but that test is loca
<trans-unit id="++CODE++f9e17ed11037dab93f8820c30db63b2ff2a045b5761f71818b7291afae60f199">
<source xml:lang="en">Explain the following code {% include 'Page Copy'%}</source>
</trans-unit>
<trans-unit id="++CODE++b985f1515c42b4b5b0c11a3d7b3286fc9d66997d476668ab1f93a4a11499fef5">
<source xml:lang="en">Failed to create a new Power Pages site. Please try again.</source>
</trans-unit>
<trans-unit id="++CODE++2310c6b7e5953cab877859ba1fcfa98e58e1508677df9412010e9b578ea237f4">
<source xml:lang="en">Failed to create: {0}.</source>
<note>{0} will be replaced by the error message.</note>
Expand All @@ -159,9 +165,6 @@ The {3} represents Solution's Type (Managed or Unmanaged), but that test is loca
<trans-unit id="++CODE++862d6197d64601aa13ce30db5ec5b8f819ad00fe21e3b031a3e47fe22ef68fb3">
<source xml:lang="en">Failed to get file ready for edit: {0}</source>
</trans-unit>
<trans-unit id="++CODE++41405814c44fb391a3f8e31d1a3bc20299cd2e87979ebfbd1eb9488be12c617a">
<source xml:lang="en">Failed to get site content from NL2Site service</source>
</trans-unit>
<trans-unit id="++CODE++a9e36b880dd45b64ae5601865540605296febf9bd855fc46d9c35c2c2ed9a7f2">
<source xml:lang="en">Feature is not enabled for this geo.</source>
</trans-unit>
Expand Down Expand Up @@ -214,6 +217,9 @@ Return to this chat and @powerpages can help you write and edit your website cod
<trans-unit id="++CODE++08295f3385931e35c850b945e2ae04882452c4bf0dd575f70e95aaa6ed00daa9">
<source xml:lang="en">In your own words, describe what you need. You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.</source>
</trans-unit>
<trans-unit id="++CODE++76b6e817a87a4f7034544e174c3d44a0a6ecf2418a585b2c9d613cade58806d0">
<source xml:lang="en">Initializing site manager...</source>
</trans-unit>
<trans-unit id="++CODE++e992151b1efc99f93484c7d7f3076b66ab072a8af2383e96104cc597c971339c">
<source xml:lang="en">Insert code into editor</source>
</trans-unit>
Expand Down Expand Up @@ -357,6 +363,9 @@ The {3} represents Dataverse Environment's Organization ID (GUID)</note>
<trans-unit id="++CODE++b62120c5416487f4c793d75aee7fea083971e5ac665a3f35767023f408f482e5">
<source xml:lang="en">Response data is empty</source>
</trans-unit>
<trans-unit id="++CODE++c9e3c5bda1d9c4ccdf4ae79e0026c22152a6d39a81630aeb19b2f193562003f5">
<source xml:lang="en">Saving site...</source>
</trans-unit>
<trans-unit id="++CODE++0134bc37f2fdeb11daa9e760ecee0ef9706989b33f77a38daadb8b7aae685749">
<source xml:lang="en">Saving your file ...</source>
</trans-unit>
Expand Down
3 changes: 2 additions & 1 deletion src/common/chat-participants/CommandRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
*/

import * as vscode from "vscode";
import { EditableFileSystemProvider } from "../utilities/EditableFileSystemProvider";

export interface Command {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
execute(request: any, stream: vscode.ChatResponseStream): Promise<any>;
execute(request: any, stream: vscode.ChatResponseStream, contentProvider: EditableFileSystemProvider): Promise<any>;
}

export class CommandRegistry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ActiveOrgOutput } from '../../../client/pac/PacTypes';
import { AUTHENTICATION_FAILED_MSG, COPILOT_NOT_AVAILABLE_MSG, COPILOT_NOT_RELEASED_MSG, DISCLAIMER_MESSAGE, INVALID_RESPONSE, NO_PROMPT_MESSAGE, PAC_AUTH_INPUT, PAC_AUTH_NOT_FOUND, POWERPAGES_CHAT_PARTICIPANT_ID, POWERPAGES_COMMANDS, RESPONSE_AWAITED_MSG, RESPONSE_SCENARIOS, SKIP_CODES, STATER_PROMPTS, WELCOME_MESSAGE, WELCOME_PROMPT } from './PowerPagesChatParticipantConstants';
import { ORG_DETAILS_KEY, handleOrgChangeSuccess, initializeOrgDetails } from '../../utilities/OrgHandlerUtils';
import { createAndReferenceLocation, getComponentInfo, getEndpoint, provideChatParticipantFollowups, handleChatParticipantFeedback, createErrorResult, createSuccessResult, removeChatVariables, registerButtonCommands } from './PowerPagesChatParticipantUtils';
import { createAndReferenceLocation, getComponentInfo, getEndpoint, provideChatParticipantFollowups, handleChatParticipantFeedback, createErrorResult, createSuccessResult, removeChatVariables, registerButtonCommands } from './PowerPagesChatParticipantUtils';
import { checkCopilotAvailability, fetchRelatedFiles, getActiveEditorContent } from '../../utilities/Utils';
import { IIntelligenceAPIEndpointInformation } from '../../services/Interfaces';
import { v4 as uuidv4 } from 'uuid';
Expand All @@ -24,6 +25,8 @@ import { ADX_WEBPAGE, IApiRequestParams, IRelatedFiles } from '../../constants';
import { oneDSLoggerWrapper } from '../../OneDSLoggerTelemetry/oneDSLoggerWrapper';
import { CommandRegistry } from '../CommandRegistry';
import { VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_INVOKED, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_ORG_DETAILS_NOT_FOUND, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_ORG_DETAILS, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_NOT_AVAILABLE_ECS, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_SUCCESSFUL_PROMPT, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_WELCOME_PROMPT, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_NO_PROMPT, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_LOCATION_REFERENCED, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_WEBPAGE_RELATED_FILES, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_SCENARIO, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_ERROR, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_COMMAND_TRIGGERED } from './PowerPagesChatParticipantTelemetryConstants';
import { EditableFileSystemProvider } from '../../utilities/EditableFileSystemProvider';
import { EDITABLE_SCHEME } from './commands/create-site/CreateSiteConstants';

export class PowerPagesChatParticipant {
private static instance: PowerPagesChatParticipant | null = null;
Expand All @@ -35,6 +38,7 @@ export class PowerPagesChatParticipant {
private readonly _disposables: vscode.Disposable[] = [];
private cachedEndpoint: IIntelligenceAPIEndpointInformation | null = null;
private powerPagesAgentSessionId: string;
private contentProvider: EditableFileSystemProvider;

private orgID: string | undefined;
private orgUrl: string | undefined;
Expand Down Expand Up @@ -63,6 +67,13 @@ export class PowerPagesChatParticipant {

this._pacWrapper = pacWrapper;

this.contentProvider = new EditableFileSystemProvider();

// Register the content provider
this.extensionContext.subscriptions.push(
vscode.workspace.registerFileSystemProvider(EDITABLE_SCHEME, this.contentProvider, { isCaseSensitive: true })
);

registerButtonCommands();

this._disposables.push(orgChangeEvent(async (orgDetails: ActiveOrgOutput) => {
Expand Down Expand Up @@ -167,7 +178,7 @@ export class PowerPagesChatParticipant {

if (request.command) {
this.telemetry.sendTelemetryEvent(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_COMMAND_TRIGGERED, { commandName: request.command, sessionId: this.powerPagesAgentSessionId, orgId: this.orgID, environmentId: this.environmentID, userId: userId });
oneDSLoggerWrapper.getLogger().traceInfo(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_COMMAND_TRIGGERED, { commandName: request.command, sessionId: this.powerPagesAgentSessionId, orgId: this.orgID, environmentId: this.environmentID, userId: userId });
oneDSLoggerWrapper.getLogger().traceInfo(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_COMMAND_TRIGGERED, { commandName: request.command, sessionId: this.powerPagesAgentSessionId, orgId: this.orgID, environmentId: this.environmentID, userId: userId });

const command = commandRegistry.get(request.command);

Expand All @@ -184,7 +195,7 @@ export class PowerPagesChatParticipant {
extensionContext: this.extensionContext
};

return await command.execute(commandRequest, stream);
return await command.execute(commandRequest, stream, this.contentProvider);
} else {
if (location) {
this.telemetry.sendTelemetryEvent(VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_LOCATION_REFERENCED, { sessionId: this.powerPagesAgentSessionId, orgId: this.orgID, environmentId: this.environmentID, userId: userId });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ export const VSCODE_EXTENSION_NL2PAGE_REQUEST = 'VSCodeExtensionNL2PageRequest';
export const VSCODE_EXTENSION_NL2SITE_REQUEST = 'VSCodeExtensionNL2SiteRequest';
export const VSCODE_EXTENSION_PREVIEW_SITE_PAGES = 'VSCodeExtensionPreviewSitePages';
export const VSCODE_EXTENSION_PREVIEW_SITE_PAGES_ERROR = 'VSCodeExtensionPreviewSitePagesError';
export const VSCODE_EXTENSION_POPULATE_SITE_RECORDS_START = 'VSCodeExtensionPopulateSiteRecordsStart';
export const VSCODE_EXTENSION_POPULATE_SITE_RECORDS_SUCCESS = 'VSCodeExtensionPopulateSiteRecordsSuccess';
export const VSCODE_EXTENSION_POPULATE_SITE_RECORDS_ERROR = 'VSCodeExtensionPopulateSiteRecordsError';
export const VSCODE_EXTENSION_CREATE_SITE_SAVE_OPERATION_ERROR = 'VSCodeExtensionCreateSiteSaveOperationError';
export const VSCODE_EXTENSION_CREATE_SITE_OPERATION_ERROR = 'VSCodeExtensionCreateSiteOperationError';
export const VSCODE_EXTENSION_CREATE_SITE_OPERATION_SUCCESS = 'VSCodeExtensionCreateSiteOperationSuccess';
export const VSCODE_EXTENSION_CREATE_SITE_COMPONENT_OPERATION_ERROR = 'VSCodeExtensionCreateSiteComponentOperationError';
export const VSCODE_EXTENSION_CREATE_SITE_COMPONENT_OPERATION_SUCCESS = 'VSCodeExtensionCreateSiteComponentOperationSuccess';
export const VSCODE_EXTENSION_CREATE_SITE_COMPONENT_PROCESSING_ERROR = 'VSCodeExtensionCreateSiteComponentProcessingError';
export const VSCODE_EXTENSION_CREATE_SITE__FILE_COMPONENT_OPERATION_ERROR = 'VSCodeExtensionCreateSiteFileComponentOperationError';
export const VSCODE_EXTENSION_CREATE_SITE__FILE_COMPONENT_OPERATION_SUCCESS = 'VSCodeExtensionCreateSiteFileComponentOperationSuccess';
export const VSCODE_EXTENSION_CREATE_SITE__FILE_COMPONENT_PROCESSING_ERROR = 'VSCodeExtensionCreateSiteFileComponentProcessingError';

Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { ITelemetry } from "../../OneDSLoggerTelemetry/telemetry/ITelemetry";
import { ArtemisService } from "../../services/ArtemisService";
import { dataverseAuthentication } from "../../services/AuthenticationProvider";
import { IIntelligenceAPIEndpointInformation } from "../../services/Interfaces";
import { EditableFileSystemProvider } from "../../utilities/EditableFileSystemProvider";
import { CREATE_SITE_BTN_CMD } from "./commands/create-site/CreateSiteConstants";
import { collectSiteCreationInputs, getUpdatedPageContent } from "./commands/create-site/CreateSiteHelper";
import { collectSiteCreationInputs, getUpdatedPageContent, populateSiteRecords } from "./commands/create-site/CreateSiteHelper";
import { ICreateSiteCommandArgs } from "./commands/create-site/CreateSiteModel";
import { SUPPORTED_ENTITIES, EXPLAIN_CODE_PROMPT, FORM_PROMPT, LIST_PROMPT, STATER_PROMPTS, WEB_API_PROMPT } from "./PowerPagesChatParticipantConstants";
import { VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_SCENARIO_FEEDBACK_THUMBSUP, VSCODE_EXTENSION_GITHUB_POWER_PAGES_AGENT_SCENARIO_FEEDBACK_THUMBSDOWN } from "./PowerPagesChatParticipantTelemetryConstants";
import { IComponentInfo, IPowerPagesChatResult } from "./PowerPagesChatParticipantTypes";
Expand Down Expand Up @@ -132,17 +132,22 @@ export function removeChatVariables(userPrompt: string): string {
}

export function registerButtonCommands() {
vscode.commands.registerCommand(CREATE_SITE_BTN_CMD, async (siteName: string, sitePages, envList, contentProvider: EditableFileSystemProvider, isCreateSiteInputsReceived) => {
vscode.commands.registerCommand(CREATE_SITE_BTN_CMD, async ({ siteName, sitePages, sitePagesList, envList, contentProvider, telemetry, isCreateSiteInputsReceived }: ICreateSiteCommandArgs) => {
if (!isCreateSiteInputsReceived) {
//Update Page Content will be used for the site creation
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sitePages.map((page: any) => {
// Update Page Content will be used for the site creation
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const updatedPages = sitePages.map((page: any) => {
return {
...page,
code: getUpdatedPageContent(contentProvider, page.metadata.pageTitle)
}
};
});

const siteCreateInputs = await collectSiteCreationInputs(siteName, envList);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const siteManager = await populateSiteRecords(siteName, sitePagesList, updatedPages, siteCreateInputs.OrgUrl, telemetry);

if (siteCreateInputs) {
isCreateSiteInputsReceived = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import { createSite } from "./CreateSiteHelper";
import { FAILED_TO_CREATE_SITE, NL2SITE_GENERATING_SITE } from "../../PowerPagesChatParticipantConstants";
import { oneDSLoggerWrapper } from "../../../../OneDSLoggerTelemetry/oneDSLoggerWrapper";
import { VSCODE_EXTENSION_CREATE_SITE_COMMAND_FAILED} from "../../PowerPagesChatParticipantTelemetryConstants";
import { EditableFileSystemProvider } from "../../../../utilities/EditableFileSystemProvider";

export class CreateSiteCommand implements Command {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async execute(requestObject: any, stream: vscode.ChatResponseStream): Promise<any> {
async execute(requestObject: any, stream: vscode.ChatResponseStream, contentProvider: EditableFileSystemProvider): Promise<any> {
const { request, intelligenceAPIEndpointInfo, intelligenceApiToken, powerPagesAgentSessionId, telemetry, orgID, envID, userId, extensionContext } = requestObject;

stream.progress(NL2SITE_GENERATING_SITE);
Expand All @@ -28,7 +29,8 @@ export class CreateSiteCommand implements Command {
orgId: orgID,
envId: envID,
userId,
extensionContext
extensionContext,
contentProvider
});
// Process the result

Expand Down
Loading
Loading