@ankhorage/devtools 2.3.42 → 2.3.44

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: v2.3.42](././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) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v2.3.44](././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) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Shared tooling, repository automation, and agent standards for Ankhorage TypeScript projects
9
9
 
@@ -78,20 +78,6 @@ jobs:
78
78
  echo "No build script found; skipping."
79
79
  fi
80
80
 
81
- - name: Synchronize package capability metadata
82
- run: |
83
- if node -e "const p=require('./package.json'); process.exit(p.ankh === undefined ? 1 : 0)"; then
84
- if node -e "const p=require('./package.json'); process.exit(p.name === '@ankhorage/devtools' ? 0 : 1)"; then
85
- bun ./dist/cli/bin/repository.js package sync .
86
- bun ./dist/cli/bin/repository.js package status .
87
- else
88
- bunx --bun --no-install ankhorage-repository package sync .
89
- bunx --bun --no-install ankhorage-repository package status .
90
- fi
91
- else
92
- echo "No Ankh package metadata found; skipping capability materialization."
93
- fi
94
-
95
81
  - name: Verify npm release baseline
96
82
  id: release-baseline
97
83
  if: hashFiles('.changeset/config.json') != ''
@@ -148,6 +134,62 @@ jobs:
148
134
  fi
149
135
  echo "highest_published_version=$highest_published_version" >> "$GITHUB_OUTPUT"
150
136
 
137
+ - name: Detect published release recovery
138
+ id: published-release-recovery
139
+ if: hashFiles('.changeset/config.json') != ''
140
+ env:
141
+ HIGHEST_PUBLISHED_VERSION: ${{ steps.release-baseline.outputs.highest_published_version }}
142
+ run: |
143
+ echo "recovery=false" >> "$GITHUB_OUTPUT"
144
+ if [ -n "$(find .changeset -maxdepth 1 -type f -name '*.md' ! -name README.md -print -quit)" ]; then
145
+ exit 0
146
+ fi
147
+
148
+ current_version="$(node -p "require('./package.json').version")"
149
+ release_sha=""
150
+ for candidate_sha in $(git rev-list HEAD); do
151
+ candidate_subject="$(git show -s --format=%s "$candidate_sha")"
152
+ if [ "$candidate_subject" != "chore(release): version packages [skip ci]" ]; then
153
+ continue
154
+ fi
155
+ candidate_version="$(git show "${candidate_sha}:package.json" | node -e "let s=''; process.stdin.on('data',(d)=>s+=d); process.stdin.on('end',()=>process.stdout.write(JSON.parse(s).version ?? ''))")"
156
+ if [ "$candidate_version" = "$current_version" ]; then
157
+ release_sha="$candidate_sha"
158
+ break
159
+ fi
160
+ done
161
+
162
+ if [ -z "$release_sha" ]; then
163
+ exit 0
164
+ fi
165
+
166
+ release_tag="v$current_version"
167
+ tagged_sha="$(git rev-parse -q --verify "refs/tags/${release_tag}^{commit}" 2>/dev/null || true)"
168
+ if [ -n "$tagged_sha" ] && [ "$tagged_sha" != "$release_sha" ]; then
169
+ echo "::error title=Release tag mismatch::${release_tag} points to ${tagged_sha}, expected ${release_sha}."
170
+ exit 1
171
+ fi
172
+
173
+ if [ "$HIGHEST_PUBLISHED_VERSION" = "$current_version" ]; then
174
+ echo "Validated published release recovery for ${release_tag} at ${release_sha}; skipping package capability synchronization."
175
+ echo "recovery=true" >> "$GITHUB_OUTPUT"
176
+ fi
177
+
178
+ - name: Synchronize package capability metadata
179
+ if: steps.published-release-recovery.outputs.recovery != 'true'
180
+ run: |
181
+ if node -e "const p=require('./package.json'); process.exit(p.ankh === undefined ? 1 : 0)"; then
182
+ if node -e "const p=require('./package.json'); process.exit(p.name === '@ankhorage/devtools' ? 0 : 1)"; then
183
+ bun ./dist/cli/bin/repository.js package sync .
184
+ bun ./dist/cli/bin/repository.js package status .
185
+ else
186
+ bun ./node_modules/.bin/ankhorage-repository package sync .
187
+ bun ./node_modules/.bin/ankhorage-repository package status .
188
+ fi
189
+ else
190
+ echo "No Ankh package metadata found; skipping capability materialization."
191
+ fi
192
+
151
193
  - name: Validate release contract
152
194
  run: |
153
195
  if node -e "const p=require('./package.json'); process.exit(p.name === '@ankhorage/doctor' ? 0 : 1)"; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "2.3.42",
3
+ "version": "2.3.44",
4
4
  "description": "Shared tooling, repository automation, and agent standards for Ankhorage TypeScript projects",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ankhorage/devtools#readme",