Skip to content

Commit 663b3c5

Browse files
committed
Release 1.230.2025
1 parent fde9c56 commit 663b3c5

3 files changed

Lines changed: 20 additions & 27 deletions

File tree

Functions/GenXdev.AI.Queries/Find-IndexedImage.ps1

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,29 +1182,22 @@ function Find-IndexedImage {
11821182
{
11831183
}
11841184
}
1185-
1186-
# Build description hashtable
1187-
if ($DbResult.description_json) {
1188-
$result.Description.has_explicit_content = [bool]$DbResult.has_explicit_content
1189-
$result.Description.has_nudity = [bool]$DbResult.has_nudity
1190-
$result.Description.picture_type = if ($DbResult.picture_type) { $DbResult.picture_type } else { '' }
1191-
$result.Description.overall_mood_of_image = if ($DbResult.overall_mood_of_image) { $DbResult.overall_mood_of_image } else { '' }
1192-
$result.Description.style_type = if ($DbResult.style_type) { $DbResult.style_type } else { '' }
1193-
$result.Description.keywords = @(if ($DbResult.description_keywords) {
1194-
try {
1195-
$DbResult.description_keywords |
1196-
Microsoft.PowerShell.Utility\ConvertFrom-Json
1197-
} catch {
1198-
Microsoft.PowerShell.Utility\Write-Verbose "[Find-IndexedImage] Exception: $($_.Exception.Message)"
1199-
@()
1200-
}
1201-
}
1202-
)
1203-
1204-
# Add optional description content properties if available
1205-
$result.Description.short_description = $DbResult.short_description;
1206-
$result.Description.long_description = $DbResult.long_description;
1185+
# Build description hashtable (always assign if fields are present)
1186+
$result.Description.Has_Explicit_Content = [bool]$DbResult.has_explicit_content
1187+
$result.Description.Has_Nudity = [bool]$DbResult.has_nudity
1188+
$result.Description.Picture_Type = if ($DbResult.picture_type) { $DbResult.picture_type } else { '' }
1189+
$result.Description.Overall_MoodOf_Image = if ($DbResult.overall_mood_of_image) { $DbResult.overall_mood_of_image } else { '' }
1190+
$result.Description.Style_Type = if ($DbResult.style_type) { $DbResult.style_type } else { '' }
1191+
$result.Description.Keywords = @()
1192+
if ($DbResult.description_keywords) {
1193+
try {
1194+
$result.Description.Keywords = $DbResult.description_keywords | Microsoft.PowerShell.Utility\ConvertFrom-Json
1195+
} catch {
1196+
$result.Description.Keywords = @($DbResult.description_keywords)
1197+
}
12071198
}
1199+
$result.Description.Short_Description = [string]::IsNullOrWhiteSpace($DbResult.short_description) ? '' : $DbResult.short_description
1200+
$result.Description.Long_Description = [string]::IsNullOrWhiteSpace($DbResult.long_description) ? '' : $DbResult.long_description
12081201

12091202
# Build scenes hashtable
12101203
if ($DbResult.scenes_json) {

Functions/GenXdev.AI/Start-GenXdevMCPServer.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function Start-GenXdevMCPServer {
9999
}
100100
serverInfo = @{
101101
name = 'GenXdev-PowerShell-MCP-Server'
102-
version = '1.228.2025'
102+
version = '1.230.2025'
103103
}
104104
}
105105
}
@@ -197,7 +197,7 @@ function Start-GenXdevMCPServer {
197197
}
198198
serverInfo = @{
199199
name = 'GenXdev-PowerShell-MCP-Server'
200-
version = '1.228.2025'
200+
version = '1.230.2025'
201201
}
202202
}
203203
}

GenXdev.AI.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: genXdev
55
#
6-
# Generated on: 02/08/2025
6+
# Generated on: 04/08/2025
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'GenXdev.AI.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.228.2025'
15+
ModuleVersion = '1.230.2025'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core'
@@ -51,7 +51,7 @@ ClrVersion = '9.0.0.1'
5151
ProcessorArchitecture = 'Amd64'
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'GenXdev.Queries'; ModuleVersion = '1.228.2025'; })
54+
RequiredModules = @(@{ModuleName = 'GenXdev.Queries'; ModuleVersion = '1.230.2025'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
# RequiredAssemblies = @()

0 commit comments

Comments
 (0)