appback-remoteagent 0.22.1 → 0.22.2

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/docs/RELEASING.md CHANGED
@@ -74,7 +74,7 @@ The publish script performs:
74
74
  - `npm run build`
75
75
  - `npm pack`
76
76
  - guarded `npm publish`
77
- - exact published version and `latest` dist-tag verification
77
+ - exact published version and `latest` dist-tag verification with bounded propagation retries
78
78
 
79
79
  The package publish entrypoint is `npm run release:publish`.
80
80
  `scripts/prepublish-guard.mjs` routes manual publish attempts back to that entrypoint.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appback-remoteagent",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Personal installable session server for continuing local AI work across PC and Telegram",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,10 +57,17 @@ REMOTEAGENT_PUBLISH_GUARD_OK=1 npm publish "$TARBALL" --access public
57
57
 
58
58
  echo
59
59
  echo "Verifying registry version:"
60
- PUBLISHED_VERSION="$(npm view "$PACKAGE_NAME@$VERSION" version --prefer-online)"
61
- LATEST_VERSION="$(npm view "$PACKAGE_NAME@latest" version --prefer-online)"
62
- echo "published=$PUBLISHED_VERSION"
63
- echo "latest=$LATEST_VERSION"
60
+ PUBLISHED_VERSION=""
61
+ LATEST_VERSION=""
62
+ for ATTEMPT in {1..12}; do
63
+ PUBLISHED_VERSION="$(npm view "$PACKAGE_NAME@$VERSION" version --prefer-online 2>/dev/null || true)"
64
+ LATEST_VERSION="$(npm view "$PACKAGE_NAME@latest" version --prefer-online 2>/dev/null || true)"
65
+ echo "attempt=$ATTEMPT published=${PUBLISHED_VERSION:-missing} latest=${LATEST_VERSION:-missing}"
66
+ if [[ "$PUBLISHED_VERSION" == "$VERSION" && "$LATEST_VERSION" == "$VERSION" ]]; then
67
+ break
68
+ fi
69
+ sleep 5
70
+ done
64
71
 
65
72
  if [[ "$PUBLISHED_VERSION" != "$VERSION" || "$LATEST_VERSION" != "$VERSION" ]]; then
66
73
  echo "Registry verification failed: expected published/latest=$VERSION" >&2