@agent-native/recap-cli 0.5.4 → 0.5.5

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.
@@ -33,8 +33,7 @@ jobs:
33
33
  timeout-minutes: 10
34
34
  permissions:
35
35
  contents: read
36
- issues: write
37
- pull-requests: write
36
+ pull-requests: read
38
37
  outputs:
39
38
  run: ${{ steps.decide.outputs.run }}
40
39
  agent: ${{ steps.decide.outputs.agent }}
@@ -199,50 +198,6 @@ jobs:
199
198
  core.notice(`Visual recap skipped: ${reasons.join('; ')}`);
200
199
  }
201
200
 
202
- // When skipping, upsert a sticky recap comment with a short skip
203
- // line so the PR always explains why the recap job did not run.
204
- if (!run && pr) {
205
- try {
206
- const MARKER = '<!-- pr-visual-recap -->';
207
- const { data: comments } = await github.rest.issues.listComments({
208
- owner: context.repo.owner,
209
- repo: context.repo.repo,
210
- issue_number: pr.number,
211
- per_page: 100,
212
- });
213
- const existing = comments.find(
214
- (c) => c.user && c.user.type === 'Bot' && c.body && c.body.includes(MARKER)
215
- );
216
- const headShort = (process.env.HEAD_SHA || '').slice(0, 7);
217
- const shaRef = headShort ? `\`${headShort}\`` : 'latest push';
218
- const primaryReason = reasons.filter(
219
- (r) => !r.startsWith('could not list PR files for the self-modifying guard')
220
- )[0] || reasons[0] || 'skipped';
221
- const skipLine = `_Recap skipped for ${shaRef}: ${primaryReason}._`;
222
- const baseBody = `${MARKER}\n### Visual recap — skipped\n\nThe visual recap job did not run for this pull request. This is informational only and does **not** block the PR.`;
223
- const planIdMatch = (existing && existing.body ? existing.body : '').match(/<!--\s*plan-id:\s*([A-Za-z0-9_-]{1,64})\s*-->/);
224
- const planIdMarker = planIdMatch ? `\n\n<!-- plan-id: ${planIdMatch[1]} -->` : '';
225
- const updatedBody = `${baseBody}${planIdMarker}\n\n${skipLine}`;
226
- if (existing) {
227
- await github.rest.issues.updateComment({
228
- owner: context.repo.owner,
229
- repo: context.repo.repo,
230
- comment_id: existing.id,
231
- body: updatedBody,
232
- });
233
- } else {
234
- await github.rest.issues.createComment({
235
- owner: context.repo.owner,
236
- repo: context.repo.repo,
237
- issue_number: pr.number,
238
- body: updatedBody,
239
- });
240
- }
241
- } catch (e) {
242
- core.warning(`Could not update recap skip comment: ${e.message}`);
243
- }
244
- }
245
-
246
201
  recap:
247
202
  name: Generate visual recap
248
203
  needs: gate
@@ -1055,7 +1010,7 @@ jobs:
1055
1010
  retention-days: 14
1056
1011
 
1057
1012
  - name: Upsert sticky comment
1058
- if: always() && !cancelled()
1013
+ if: always() && !cancelled() && steps.diff.outputs.tiny != 'true'
1059
1014
  continue-on-error: true
1060
1015
  env:
1061
1016
  PLAN_URL: ${{ steps.url.outputs.plan_url }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/recap-cli",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Dependency-light PR visual recap CLI for Agent-Native workflows.",
5
5
  "homepage": "https://github.com/BuilderIO/agent-native#readme",
6
6
  "bugs": {