Skip to content

Commit 94bb707

Browse files
committed
Update the module manifest and check the PSReadLine version
1 parent d9c5e06 commit 94bb707

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

shell/AIShell.Integration/AIShell.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@{
22
RootModule = 'AIShell.psm1'
33
NestedModules = @("AIShell.Integration.dll")
4-
ModuleVersion = '1.0.3'
4+
ModuleVersion = '1.0.4'
55
GUID = 'ECB8BEE0-59B9-4DAE-9D7B-A990B480279A'
66
Author = 'Microsoft Corporation'
77
CompanyName = 'Microsoft Corporation'
@@ -13,5 +13,5 @@
1313
VariablesToExport = '*'
1414
AliasesToExport = @('aish', 'askai', 'fixit')
1515
HelpInfoURI = 'https://aka.ms/aishell-help'
16-
PrivateData = @{ PSData = @{ Prerelease = 'preview3'; ProjectUri = 'https://github.com/PowerShell/AIShell' } }
16+
PrivateData = @{ PSData = @{ Prerelease = 'preview4'; ProjectUri = 'https://github.com/PowerShell/AIShell' } }
1717
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
$module = Get-Module -Name PSReadLine
2+
if ($null -eq $module -or $module.Version -lt [version]"2.4.1") {
3+
throw "The PSReadLine v2.4.1-beta1 or higher is required for the AIShell module to work properly."
4+
}
15

26
## Create the channel singleton when loading the module.
37
$null = [AIShell.Integration.Channel]::CreateSingleton($host.Runspace, [Microsoft.PowerShell.PSConsoleReadLine])

0 commit comments

Comments
 (0)