aigent-hive 0.9.0-test → 0.9.0-test.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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # aigent-hive
2
2
 
3
- Aigent Hive 0.9.0 package 0.9.0-test. Install the CLI with `npm install -g aigent-hive`.
3
+ Aigent Hive 0.9.0 package 0.9.0-test.10. Install the CLI with `npm install -g aigent-hive`.
package/install.cmd CHANGED
@@ -1,6 +1,6 @@
1
1
  @echo off
2
2
  setlocal EnableExtensions DisableDelayedExpansion
3
- set "HIVE_INSTALL_PACKAGE_VERSION=0.9.0-test"
3
+ set "HIVE_INSTALL_PACKAGE_VERSION=0.9.0-test.10"
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,13 +2,13 @@ param(
2
2
  [ValidatePattern('^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$')]
3
3
  [string]$Version = "0.9.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.9.0-test",
5
+ [string]$PackageVersion = "0.9.0-test.10",
6
6
  [string]$Prefix = "$env:LOCALAPPDATA\AigentHive"
7
7
  )
8
8
 
9
9
  $ErrorActionPreference = "Stop"
10
10
  $AuthorizedSignerThumbprint = ""
11
- $ExpectedArchiveSha256 = "704636aa62ec28c44e2dd9ed2799b5c4187645e589f3954c8a14dc5825b94d4e"
11
+ $ExpectedArchiveSha256 = "115d3df239951afe9d9a3f5638d321cc0c281a33dd2ad996d19142db3a1d412b"
12
12
  if ($AuthorizedSignerThumbprint -like "__AIGENT_HIVE_*") {
13
13
  $AuthorizedSignerThumbprint = ""
14
14
  }
@@ -36,12 +36,29 @@ function Test-HiveVersionOutput {
36
36
  [AllowEmptyString()]
37
37
  [string]$Output,
38
38
  [Parameter(Mandatory = $true)]
39
- [string]$ExpectedVersion
39
+ [string]$ExpectedVersion,
40
+ [Parameter(Mandatory = $true)]
41
+ [string]$ExpectedPackageVersion
40
42
  )
41
43
 
42
- $escapedVersion = [regex]::Escape($ExpectedVersion)
44
+ if ($ExpectedPackageVersion -eq $ExpectedVersion) {
45
+ $expected = "^AIgent Hive v" + [regex]::Escape($ExpectedVersion) +
46
+ " \(released [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
47
+ }
48
+ elseif ($ExpectedPackageVersion -eq "${ExpectedVersion}-test") {
49
+ $expected = "^AIgent Hive v" + [regex]::Escape($ExpectedVersion) +
50
+ "-test " + [regex]::Escape([char]0x00B7) +
51
+ " developer test build \(released [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
52
+ }
53
+ else {
54
+ $revision = $ExpectedPackageVersion.Substring(("${ExpectedVersion}-test.").Length)
55
+ $expected = "^AIgent Hive v" + [regex]::Escape($ExpectedVersion) +
56
+ "-test #" + [regex]::Escape($revision) +
57
+ " " + [regex]::Escape([char]0x00B7) +
58
+ " developer test build \(released [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
59
+ }
43
60
  return $Output -cmatch (
44
- "^hive $escapedVersion \(released [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
61
+ $expected
45
62
  )
46
63
  }
47
64
 
@@ -185,7 +202,8 @@ function Assert-ExistingDirectInstall {
185
202
  $priorVersionOutput = & $Destination --version
186
203
  if (-not (Test-HiveVersionOutput `
187
204
  -Output $priorVersionOutput `
188
- -ExpectedVersion $priorReceipt.version
205
+ -ExpectedVersion $priorReceipt.version `
206
+ -ExpectedPackageVersion $priorReceipt.package_version
189
207
  )) {
190
208
  throw "existing hive binary is not owned by the direct installer"
191
209
  }
@@ -377,7 +395,8 @@ try {
377
395
  }
378
396
  if (-not (Test-HiveVersionOutput `
379
397
  -Output (& $binary --version) `
380
- -ExpectedVersion $Version
398
+ -ExpectedVersion $Version `
399
+ -ExpectedPackageVersion $PackageVersion
381
400
  )) {
382
401
  throw "signed binary version differs from requested release"
383
402
  }
package/install.sh CHANGED
@@ -2,15 +2,15 @@
2
2
  set -eu
3
3
 
4
4
  embedded_product_version='0.9.0'
5
- embedded_package_version='0.9.0-test'
5
+ embedded_package_version='0.9.0-test.10'
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='8c9bdd5f24075564c9b7b6f6e4ba20381753fa6959d608867a8a8029bdfbaa36'
11
- sha_x86_64_apple_darwin='5cc69947abd97da375b939a03777fa7850a78fcbaccccebef422712b2d5cd3a2'
12
- sha_aarch64_linux_musl='ba0ce4c98ebe84177ec07524aab0eba399e32680ffe552009eeff2fe732bb5e6'
13
- sha_x86_64_linux_musl='fa9db846fc5f1b59e1e11e30f8888152eaed733e6f3fd23b73b97adc6373d46a'
10
+ sha_aarch64_apple_darwin='b5a97b6111804efe5f91c438e72e39d51f7f4fd07c5057cb7e78abb1f8b46cfc'
11
+ sha_x86_64_apple_darwin='c7687e9c5481423b4b22408fcad386a6f1e367bfa900f5fe7f17e95501eac767'
12
+ sha_aarch64_linux_musl='151aa9e18b7ef6dd27dcd87f11fbcc26916b9d4c3ddfcf96ecf3bae61a909564'
13
+ sha_x86_64_linux_musl='5f9bfd4aac34a1049a1fe6de835378889a8cc2c1b6d7df7d8b20855e8575ff37'
14
14
 
15
15
  if ! printf '%s\n' "$version" | awk -F. '
16
16
  NF != 3 { exit 1 }
@@ -108,8 +108,16 @@ trap 'rm -rf "$work"; test -z "$staged_binary" || rm -f "$staged_binary"; test -
108
108
 
109
109
  matches_hive_version() {
110
110
  hive_version_output=$1
111
- hive_expected_version=$2
112
- hive_version_prefix="hive $hive_expected_version (released "
111
+ hive_product_version=$2
112
+ hive_package_version=$3
113
+ if [ "$hive_product_version" = "$hive_package_version" ]; then
114
+ hive_version_prefix="AIgent Hive v$hive_product_version (released "
115
+ elif [ "$hive_package_version" = "$hive_product_version-test" ]; then
116
+ hive_version_prefix="AIgent Hive v$hive_product_version-test · developer test build (released "
117
+ else
118
+ hive_revision=${hive_package_version#"$hive_product_version-test."}
119
+ hive_version_prefix="AIgent Hive v$hive_product_version-test #$hive_revision · developer test build (released "
120
+ fi
113
121
  case "$hive_version_output" in
114
122
  "$hive_version_prefix"????-??-??")") ;;
115
123
  *) return 1 ;;
@@ -315,7 +323,7 @@ if [ "$operating_system" = Darwin ] && [ -n "$authorized_team_id" ]; then
315
323
  exit 5
316
324
  fi
317
325
  fi
318
- if ! matches_hive_version "$("$binary" --version)" "$version"; then
326
+ if ! matches_hive_version "$("$binary" --version)" "$version" "$package_version"; then
319
327
  echo "signed binary version differs from requested release" >&2
320
328
  exit 5
321
329
  fi
@@ -370,9 +378,10 @@ if [ -e "$prefix/bin/hive" ] || [ -L "$prefix/bin/hive" ] \
370
378
  exit 3
371
379
  fi
372
380
  prior_version=$parsed_version
381
+ prior_package_version=$parsed_package_version
373
382
  if ! matches_hive_version \
374
383
  "$("$prefix/bin/hive" --version 2>/dev/null || true)" \
375
- "$prior_version"; then
384
+ "$prior_version" "$prior_package_version"; then
376
385
  echo "existing hive binary is not owned by the direct installer" >&2
377
386
  exit 3
378
387
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aigent-hive",
3
- "version": "0.9.0-test",
3
+ "version": "0.9.0-test.10",
4
4
  "aigentHive": {
5
5
  "productVersion": "0.9.0"
6
6
  },
@@ -31,10 +31,10 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@aigent-hive/darwin-arm64": "0.9.0-test",
35
- "@aigent-hive/darwin-x64": "0.9.0-test",
36
- "@aigent-hive/linux-arm64": "0.9.0-test",
37
- "@aigent-hive/linux-x64": "0.9.0-test",
38
- "@aigent-hive/win32-x64": "0.9.0-test"
34
+ "@aigent-hive/darwin-arm64": "0.9.0-test.10",
35
+ "@aigent-hive/darwin-x64": "0.9.0-test.10",
36
+ "@aigent-hive/linux-arm64": "0.9.0-test.10",
37
+ "@aigent-hive/linux-x64": "0.9.0-test.10",
38
+ "@aigent-hive/win32-x64": "0.9.0-test.10"
39
39
  }
40
40
  }