@ankhorage/devtools 1.15.5 → 1.15.6

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
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/devtools
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v1.15.5](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v1.15.6](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
8
  Shared tooling, repository automation, runtime policies, and agent standards for Ankhorage TypeScript projects
9
9
 
@@ -147,34 +147,44 @@ jobs:
147
147
  registry_evidence="${RUNNER_TEMP}/npm-publish-verification.json"
148
148
  artifact="${RUNNER_TEMP}/npm-publish-verification.tgz"
149
149
  pack_dir="${RUNNER_TEMP}/npm-pack-verification"
150
- max_attempts=30
150
+ max_attempts=60
151
151
  retry_seconds=30
152
152
  mkdir -p "$pack_dir"
153
153
 
154
+ last_stage="registry-metadata"
154
155
  for attempt in $(seq 1 "$max_attempts"); do
155
156
  echo "Verifying ${package_spec} on npm (attempt ${attempt}/${max_attempts})..."
157
+ last_stage="registry-metadata"
158
+
156
159
  if npm view "$package_spec" version dist.tarball dist.integrity --json > "$registry_evidence"; then
157
160
  resolved_version="$(node -e "const p=require(process.argv[1]); process.stdout.write(p.version ?? '')" "$registry_evidence")"
158
161
  tarball="$(node -e "const p=require(process.argv[1]); process.stdout.write(p['dist.tarball'] ?? '')" "$registry_evidence")"
159
162
  integrity="$(node -e "const p=require(process.argv[1]); process.stdout.write(p['dist.integrity'] ?? '')" "$registry_evidence")"
160
163
 
161
164
  if [ "$resolved_version" = "$PUBLISHED_PACKAGE_VERSION" ] && [ -n "$tarball" ] && [ -n "$integrity" ]; then
165
+ last_stage="tarball-download"
162
166
  if curl --fail --location --silent --show-error --output "$artifact" "$tarball"; then
167
+ last_stage="integrity"
163
168
  if EXPECTED_INTEGRITY="$integrity" ARTIFACT="$artifact" node -e "const { createHash }=require('node:crypto'); const { readFileSync }=require('node:fs'); const actual='sha512-'+createHash('sha512').update(readFileSync(process.env.ARTIFACT)).digest('base64'); if(actual!==process.env.EXPECTED_INTEGRITY){console.error('Downloaded npm tarball integrity mismatch.'); process.exit(1)}"; then
164
- npm pack "$package_spec" --pack-destination "$pack_dir" >/dev/null
165
- echo "Verified ${package_spec}: metadata, integrity, tarball download, and npm pack are available."
166
- exit 0
169
+ last_stage="npm-pack"
170
+ attempt_pack_dir="$pack_dir/attempt-${attempt}"
171
+ mkdir -p "$attempt_pack_dir"
172
+ if npm pack "$package_spec" --pack-destination "$attempt_pack_dir" >/dev/null; then
173
+ echo "Verified ${package_spec}: metadata, integrity, tarball download, and npm pack are available."
174
+ exit 0
175
+ fi
167
176
  fi
168
177
  fi
169
178
  fi
170
179
  fi
171
180
 
181
+ echo "Published npm artifact not ready at stage: ${last_stage}."
172
182
  if [ "$attempt" -lt "$max_attempts" ]; then
173
183
  sleep "$retry_seconds"
174
184
  fi
175
185
  done
176
186
 
177
- echo "Published npm artifact did not become retrievable after ${max_attempts} attempts."
187
+ echo "Published npm artifact did not become retrievable after ${max_attempts} attempts; last stage: ${last_stage}."
178
188
  cat "$registry_evidence" 2>/dev/null || true
179
189
  exit 1
180
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "1.15.5",
3
+ "version": "1.15.6",
4
4
  "description": "Shared tooling, repository automation, runtime policies, and agent standards for Ankhorage TypeScript projects",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ankhorage/devtools#readme",