Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 0 additions & 19 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function Start-Build
$out_dir = Join-Path $PSScriptRoot "out"
$app_out_dir = Join-Path $out_dir $config "app"
$module_out_dir = Join-Path $out_dir $config "module" "AIShell"
$module_help_dir= Join-Path $PSScriptRoot "docs" "cmdlets"

$openai_out_dir = Join-Path $app_out_dir "agents" "AIShell.OpenAI.Agent"
$az_out_dir = Join-Path $app_out_dir "agents" "AIShell.Azure.Agent"
Expand Down Expand Up @@ -144,24 +143,6 @@ function Start-Build
$moduleManifest = $moduleManifest -replace "ModuleVersion = '.*'", "ModuleVersion = '$version'"
$moduleManifest = $moduleManifest -replace "}", " ${privateData}`n}`n"
Set-Content -Path $module_out_dir/AIShell.psd1 -Value $moduleManifest -NoNewline

$installHelp = $false
if (Get-Module -Name PlatyPS -ListAvailable) {
$installHelp = $true
} else {
Write-Host "`n The 'PlatyPS' module is not installed. Installing for creating in-shell help ..." -ForegroundColor Green
Install-Module -Name platyPS -RequiredVersion 0.14.2 -Repository PSGallery -Force -Verbose:$false
if ($?) {
$installHelp = $true
} else {
Write-Host "`n Failed to install the 'PlatyPS' module. In-shell help for the 'AIShell' module will not be created." -ForegroundColor Red
}
}

if ($installHelp) {
$null = New-ExternalHelp -Path $module_help_dir -OutputPath $module_out_dir -Force
Write-Host " In-shell help for the 'AIShell' module has been created." -ForegroundColor Green
}
}

if ($LASTEXITCODE -eq 0) {
Expand Down
1 change: 1 addition & 0 deletions shell/AIShell.Integration/AIShell.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
CmdletsToExport = @('Start-AIShell','Invoke-AIShell','Resolve-Error')
VariablesToExport = '*'
AliasesToExport = @('aish', 'askai', 'fixit')
HelpInfoURI = 'https://aka.ms/aishell-help'
}