@bigking67/pi-67 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/scripts/check.mjs +17 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/scripts/check.mjs
CHANGED
|
@@ -439,12 +439,28 @@ if grep -q "lastChangelogVersion" "$agent_dir/settings.json"; then
|
|
|
439
439
|
echo "marker still present before distro script" >&2
|
|
440
440
|
exit 44
|
|
441
441
|
fi
|
|
442
|
+
`);
|
|
443
|
+
fs.writeFileSync(path.join(repo, "scripts", "pi67-update.ps1"), `param(
|
|
444
|
+
[string]$AgentDir,
|
|
445
|
+
[string]$RepoRoot,
|
|
446
|
+
[string]$SkillsDir,
|
|
447
|
+
[switch]$DryRun,
|
|
448
|
+
[switch]$ForceNpm,
|
|
449
|
+
[switch]$NoNpm,
|
|
450
|
+
[switch]$AllowDirty,
|
|
451
|
+
[switch]$StrictSharedSkills
|
|
452
|
+
)
|
|
453
|
+
$settings = Get-Content -LiteralPath (Join-Path $AgentDir "settings.json") -Raw
|
|
454
|
+
if ($settings -match "lastChangelogVersion") {
|
|
455
|
+
Write-Error "marker still present before distro script"
|
|
456
|
+
exit 44
|
|
457
|
+
}
|
|
442
458
|
`);
|
|
443
459
|
for (const args of [
|
|
444
460
|
["-C", repo, "init", "-q"],
|
|
445
461
|
["-C", repo, "config", "user.email", "pi67-check@example.invalid"],
|
|
446
462
|
["-C", repo, "config", "user.name", "pi67-check"],
|
|
447
|
-
["-C", repo, "add", "VERSION", "settings.json", "scripts/pi67-update.sh"],
|
|
463
|
+
["-C", repo, "add", "VERSION", "settings.json", "scripts/pi67-update.sh", "scripts/pi67-update.ps1"],
|
|
448
464
|
["-C", repo, "commit", "-q", "-m", "init"],
|
|
449
465
|
]) {
|
|
450
466
|
const result = spawnSync("git", args, { encoding: "utf8" });
|