Release wordcraft-mcp and gridcraft-mcp 0.3.0: client-neutral skills, Cursor plugins.

This commit is contained in:
Dominic Gundel committed 2026-10-19 23:27:06 +02:00
1 parent debdf92877
commit 4c7e3ff720
26 files changed
+1008 -236

No files matched your search

+37 -1
View File
@@ -1,7 +1,10 @@
# Builds ZIP for every skill and .mcpb when skills\<name>\extension\ exists.
# Builds ZIP for every skill, .mcpb when extension/ exists, and Cursor plugin ZIPs.
# Usage: scripts\package-all.ps1
. (Join-Path $PSScriptRoot 'lib.ps1')
Add-Type -AssemblyName System.IO.Compression
Add-Type -AssemblyName System.IO.Compression.FileSystem
& (Join-Path $PSScriptRoot 'package.ps1')
if ($LASTEXITCODE -ne 0) { exit 1 }
@@ -12,3 +15,36 @@ foreach ($n in (Get-SkillNames)) {
if ($LASTEXITCODE -ne 0) { exit 1 }
}
}
& (Join-Path $PSScriptRoot 'build-cursor.ps1')
if ($LASTEXITCODE -ne 0) { exit 1 }
foreach ($n in (Get-SkillNames)) {
$pluginDir = Join-Path $DistDir "cursor\plugins\$n"
if (-not (Test-Path $pluginDir)) { continue }
$ver = Get-SkillVersion (Join-Path $SkillsDir $n)
$out = Join-Path $DistDir "$n-cursor-v$ver.zip"
if (Test-Path $out) { Remove-Item $out -Force }
$src = (Get-Item $pluginDir).FullName
$files = @(Get-ChildItem -Path $src -Recurse -File -Force | ForEach-Object { $_.FullName })
[Array]::Sort($files, [StringComparer]::Ordinal)
$zip = [IO.Compression.ZipFile]::Open($out, [IO.Compression.ZipArchiveMode]::Create)
try {
[void]$zip.CreateEntry("$n/")
foreach ($f in $files) {
$rel = $f.Substring($src.Length).TrimStart('\', '/') -replace '\\', '/'
[void][IO.Compression.ZipFileExtensions]::CreateEntryFromFile($zip, $f, "$n/$rel")
}
}
finally { $zip.Dispose() }
Write-Host ''
Write-Host "dist/$n-cursor-v$ver.zip"
$read = [IO.Compression.ZipFile]::OpenRead($out)
try {
foreach ($e in $read.Entries) { Write-Host ('{0,9} {1}' -f $e.Length, $e.FullName) }
}
finally { $read.Dispose() }
}