aigent-hive 0.8.0 → 0.9.0-test

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.8.0 package 0.8.0. Install the CLI with `npm install -g aigent-hive`.
3
+ Aigent Hive 0.9.0 package 0.9.0-test. 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.8.0"
3
+ set "HIVE_INSTALL_PACKAGE_VERSION=0.9.0-test"
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
@@ -1,14 +1,14 @@
1
1
  param(
2
2
  [ValidatePattern('^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$')]
3
- [string]$Version = "0.8.0",
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.8.0",
3
+ [string]$Version = "0.9.0",
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",
6
6
  [string]$Prefix = "$env:LOCALAPPDATA\AigentHive"
7
7
  )
8
8
 
9
9
  $ErrorActionPreference = "Stop"
10
10
  $AuthorizedSignerThumbprint = ""
11
- $ExpectedArchiveSha256 = "105b51508ddfc9ba29c71bfe739993bd64dbaff8bae7d510c082f46ffe0ba89d"
11
+ $ExpectedArchiveSha256 = "704636aa62ec28c44e2dd9ed2799b5c4187645e589f3954c8a14dc5825b94d4e"
12
12
  if ($AuthorizedSignerThumbprint -like "__AIGENT_HIVE_*") {
13
13
  $AuthorizedSignerThumbprint = ""
14
14
  }
@@ -26,9 +26,9 @@ if (-not [Environment]::Is64BitOperatingSystem) {
26
26
  }
27
27
  if (
28
28
  $PackageVersion -ne $Version -and
29
- $PackageVersion -notmatch ('^' + [regex]::Escape($Version) + '-test\.[1-9][0-9]*$')
29
+ $PackageVersion -notmatch ('^' + [regex]::Escape($Version) + '-test(\.[1-9][0-9]*)?$')
30
30
  ) {
31
- throw "PackageVersion must equal Version or use Version-test.N"
31
+ throw "PackageVersion must equal Version or use Version-test[.N]"
32
32
  }
33
33
 
34
34
  function Test-HiveVersionOutput {
@@ -141,7 +141,7 @@ function Get-ValidatedDirectReceipt {
141
141
  (
142
142
  $receipt.package_version -ne $receipt.version -and
143
143
  $receipt.package_version -notmatch (
144
- '^' + [regex]::Escape($receipt.version) + '-test\.[1-9][0-9]*$'
144
+ '^' + [regex]::Escape($receipt.version) + '-test(\.[1-9][0-9]*)?$'
145
145
  )
146
146
  ) -or
147
147
  $receipt.artifact_sha256 -notmatch '^sha256:[0-9a-f]{64}$'
package/install.sh CHANGED
@@ -1,16 +1,16 @@
1
1
  #!/bin/sh
2
2
  set -eu
3
3
 
4
- embedded_product_version='0.8.0'
5
- embedded_package_version='0.8.0'
4
+ embedded_product_version='0.9.0'
5
+ embedded_package_version='0.9.0-test'
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='993bc4f836809a6b3ab9bf292be514e1ee852354fef789108d5b1046416d60c9'
11
- sha_x86_64_apple_darwin='be297b2a01bcee1ab0d7536ae790fff8f7e62a8534ec37d65ea563bf124213ba'
12
- sha_aarch64_linux_musl='c9d637e9664bb534bf7d6ce9f7eb1970d78d3c7ce6e9a1a7ed7febb2bc0b6fa3'
13
- sha_x86_64_linux_musl='474e8407e224cdf9e92dfae8386ae1bab60689a434b7a94aed05f9be18296463'
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'
14
14
 
15
15
  if ! printf '%s\n' "$version" | awk -F. '
16
16
  NF != 3 { exit 1 }
@@ -27,15 +27,16 @@ if ! printf '%s\n' "$version" | awk -F. '
27
27
  fi
28
28
  case "$package_version" in
29
29
  "$version") ;;
30
+ "$version"-test) ;;
30
31
  "$version"-test.[1-9]*)
31
32
  if ! printf '%s\n' "${package_version#"$version-test."}" |
32
33
  awk '/^[1-9][0-9]*$/ { next } { exit 1 }'; then
33
- echo "AIGENT_HIVE_PACKAGE_VERSION must equal PRODUCT_VERSION or use PRODUCT_VERSION-test.N" >&2
34
+ echo "AIGENT_HIVE_PACKAGE_VERSION must equal PRODUCT_VERSION or use PRODUCT_VERSION-test[.N]" >&2
34
35
  exit 2
35
36
  fi
36
37
  ;;
37
38
  *)
38
- echo "AIGENT_HIVE_PACKAGE_VERSION must equal PRODUCT_VERSION or use PRODUCT_VERSION-test.N" >&2
39
+ echo "AIGENT_HIVE_PACKAGE_VERSION must equal PRODUCT_VERSION or use PRODUCT_VERSION-test[.N]" >&2
39
40
  exit 2
40
41
  ;;
41
42
  esac
@@ -195,6 +196,7 @@ parse_receipt() {
195
196
  fi
196
197
  case "$parsed_package_version" in
197
198
  "$parsed_version") ;;
199
+ "$parsed_version"-test) ;;
198
200
  "$parsed_version"-test.[1-9]*)
199
201
  if ! printf '%s\n' "${parsed_package_version#"$parsed_version-test."}" |
200
202
  awk '/^[1-9][0-9]*$/ { next } { exit 1 }'; then
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "aigent-hive",
3
- "version": "0.8.0",
3
+ "version": "0.9.0-test",
4
4
  "aigentHive": {
5
- "productVersion": "0.8.0"
5
+ "productVersion": "0.9.0"
6
6
  },
7
7
  "description": "Provider-neutral local agent harness for subscription-authenticated hosts",
8
8
  "license": "Apache-2.0",
@@ -31,10 +31,10 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@aigent-hive/darwin-arm64": "0.8.0",
35
- "@aigent-hive/darwin-x64": "0.8.0",
36
- "@aigent-hive/linux-arm64": "0.8.0",
37
- "@aigent-hive/linux-x64": "0.8.0",
38
- "@aigent-hive/win32-x64": "0.8.0"
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"
39
39
  }
40
40
  }