aigent-hive 0.14.0-test.1 → 0.14.0-test.3
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/install.cmd +1 -1
- package/install.ps1 +15 -8
- package/install.sh +5 -5
- package/package.json +6 -6
package/install.cmd
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@echo off
|
|
2
2
|
setlocal EnableExtensions DisableDelayedExpansion
|
|
3
|
-
set "HIVE_INSTALL_PACKAGE_VERSION=0.14.0-test.
|
|
3
|
+
set "HIVE_INSTALL_PACKAGE_VERSION=0.14.0-test.3"
|
|
4
4
|
set "HIVE_INSTALL_URL=https://unpkg.com/aigent-hive@%HIVE_INSTALL_PACKAGE_VERSION%/install.ps1"
|
|
5
5
|
set "HIVE_INSTALL_SCRIPT=%TEMP%\aigent-hive-install-%RANDOM%-%RANDOM%.ps1"
|
|
6
6
|
|
package/install.ps1
CHANGED
|
@@ -2,14 +2,14 @@ param(
|
|
|
2
2
|
[ValidatePattern('^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$')]
|
|
3
3
|
[string]$Version = "0.14.0",
|
|
4
4
|
[ValidatePattern('^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-test(\.[1-9][0-9]*)?)?$')]
|
|
5
|
-
[string]$PackageVersion = "0.14.0-test.
|
|
5
|
+
[string]$PackageVersion = "0.14.0-test.3",
|
|
6
6
|
[string]$Prefix = "$env:LOCALAPPDATA\AigentHive",
|
|
7
7
|
[switch]$DeferLockedBackup
|
|
8
8
|
)
|
|
9
9
|
|
|
10
10
|
$ErrorActionPreference = "Stop"
|
|
11
11
|
$AuthorizedSignerThumbprint = ""
|
|
12
|
-
$ExpectedArchiveSha256 = "
|
|
12
|
+
$ExpectedArchiveSha256 = "7beadfab60dd72c966c2e038616a956d27f6c6eeaa518021a8f18de423f32f16"
|
|
13
13
|
if ($AuthorizedSignerThumbprint -like "__AIGENT_HIVE_*") {
|
|
14
14
|
$AuthorizedSignerThumbprint = ""
|
|
15
15
|
}
|
|
@@ -519,12 +519,19 @@ try {
|
|
|
519
519
|
-Signature $signature `
|
|
520
520
|
-AuthorizedThumbprint $AuthorizedSignerThumbprint
|
|
521
521
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
522
|
+
$previousOutputEncoding = [Console]::OutputEncoding
|
|
523
|
+
try {
|
|
524
|
+
[Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)
|
|
525
|
+
$binaryVersion = & $binary --version
|
|
526
|
+
if ($LASTEXITCODE -ne 0 -or -not (Test-HiveVersionOutput `
|
|
527
|
+
-Output $binaryVersion `
|
|
528
|
+
-ExpectedVersion $Version `
|
|
529
|
+
-ExpectedPackageVersion $PackageVersion
|
|
530
|
+
)) {
|
|
531
|
+
throw "signed binary version differs from requested release"
|
|
532
|
+
}
|
|
533
|
+
} finally {
|
|
534
|
+
[Console]::OutputEncoding = $previousOutputEncoding
|
|
528
535
|
}
|
|
529
536
|
|
|
530
537
|
Publish-DirectInstall -Binary $binary -Prefix $Prefix -Version $Version `
|
package/install.sh
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
set -eu
|
|
3
3
|
|
|
4
4
|
embedded_product_version='0.14.0'
|
|
5
|
-
embedded_package_version='0.14.0-test.
|
|
5
|
+
embedded_package_version='0.14.0-test.3'
|
|
6
6
|
version=${AIGENT_HIVE_VERSION:-$embedded_product_version}
|
|
7
7
|
package_version=${AIGENT_HIVE_PACKAGE_VERSION:-$embedded_package_version}
|
|
8
8
|
prefix=${AIGENT_HIVE_PREFIX:-"${HOME:?HOME is required}/.local"}
|
|
9
9
|
authorized_team_id=''
|
|
10
|
-
sha_aarch64_apple_darwin='
|
|
11
|
-
sha_x86_64_apple_darwin='
|
|
12
|
-
sha_aarch64_linux_musl='
|
|
13
|
-
sha_x86_64_linux_musl='
|
|
10
|
+
sha_aarch64_apple_darwin='ad0f2dc038c20e50d226a62476e28d2cdfbc2df7a009d7452532c19b55264f9c'
|
|
11
|
+
sha_x86_64_apple_darwin='25210d1e53c64558e29b230d6496ac37bf14a64200cb05a4dbf9c819637d63c4'
|
|
12
|
+
sha_aarch64_linux_musl='ba9087fd647c60d5b2e633e3c9a73a2cfa46e048d555cd26cc03d30ad244c660'
|
|
13
|
+
sha_x86_64_linux_musl='6652d18d09715f8dad83308d9e45193d1e21559c70446d4fdc080fadf98de249'
|
|
14
14
|
|
|
15
15
|
if ! printf '%s\n' "$version" | awk -F. '
|
|
16
16
|
NF != 3 { exit 1 }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aigent-hive",
|
|
3
|
-
"version": "0.14.0-test.
|
|
3
|
+
"version": "0.14.0-test.3",
|
|
4
4
|
"aigentHive": {
|
|
5
5
|
"productVersion": "0.14.0"
|
|
6
6
|
},
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"node": ">=18"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@aigent-hive/darwin-arm64": "0.14.0-test.
|
|
35
|
-
"@aigent-hive/darwin-x64": "0.14.0-test.
|
|
36
|
-
"@aigent-hive/linux-arm64": "0.14.0-test.
|
|
37
|
-
"@aigent-hive/linux-x64": "0.14.0-test.
|
|
38
|
-
"@aigent-hive/win32-x64": "0.14.0-test.
|
|
34
|
+
"@aigent-hive/darwin-arm64": "0.14.0-test.3",
|
|
35
|
+
"@aigent-hive/darwin-x64": "0.14.0-test.3",
|
|
36
|
+
"@aigent-hive/linux-arm64": "0.14.0-test.3",
|
|
37
|
+
"@aigent-hive/linux-x64": "0.14.0-test.3",
|
|
38
|
+
"@aigent-hive/win32-x64": "0.14.0-test.3"
|
|
39
39
|
}
|
|
40
40
|
}
|