@agent-native/recap-cli 0.5.68-nightly-20261009153146 → 0.5.69

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.
@@ -231,6 +231,7 @@ jobs:
231
231
  PLAN_RECAP_APP_URL: ${{ secrets.PLAN_RECAP_APP_URL || 'https://plan.agent-native.com' }}
232
232
  PLAN_RECAP_TOKEN: ${{ secrets.PLAN_RECAP_TOKEN }}
233
233
  GH_TOKEN: ${{ github.token }}
234
+ REPOSITORY_ID: ${{ github.repository_id }}
234
235
  PR_NUMBER: ${{ github.event.pull_request.number }}
235
236
  PR_STATE: ${{ github.event.pull_request.state }}
236
237
  PR_MERGED: ${{ github.event.pull_request.merged }}
@@ -478,7 +479,6 @@ jobs:
478
479
  id: prompt
479
480
  if: steps.diff.outputs.tiny != 'true' && steps.route_health.outputs.unhealthy != 'true' && steps.scan.outputs.suppressed != 'true'
480
481
  env:
481
- PREV_PLAN_ID: ${{ steps.prev.outputs.plan_id }}
482
482
  DIFF_HUGE: ${{ steps.diff.outputs.huge }}
483
483
  IS_FORK: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
484
484
  run: |
@@ -486,7 +486,6 @@ jobs:
486
486
  ARGS=(--diff recap.diff --stat recap.stat --block-reference recap-blocks.md --pr "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --head "$HEAD_SHA" --app-url "$PLAN_RECAP_APP_URL" --skill-source "$VISUAL_RECAP_SKILL_SOURCE" --out recap-prompt.md)
487
487
  if [ "${DIFF_HUGE:-}" = "true" ]; then ARGS+=(--huge); fi
488
488
  if [ "${IS_FORK:-}" = "true" ]; then ARGS+=(--fork-pr true); fi
489
- if [ -n "${PREV_PLAN_ID:-}" ]; then ARGS+=(--prev-plan-id "$PREV_PLAN_ID"); fi
490
489
  $RECAP_CLI recap build-prompt "${ARGS[@]}"
491
490
 
492
491
  - name: Run agent (Claude Code)
@@ -638,12 +637,11 @@ jobs:
638
637
  id: publish
639
638
  if: steps.diff.outputs.tiny != 'true' && steps.route_health.outputs.unhealthy != 'true' && steps.scan.outputs.suppressed != 'true' && steps.source_status.outputs.ready == 'true'
640
639
  continue-on-error: true
641
- env:
642
- PREV_PLAN_ID: ${{ steps.prev.outputs.plan_id }}
643
640
  run: |
644
641
  set -uo pipefail
645
642
  ARGS=(--source recap-source.json --out recap-url.txt --repo "$GITHUB_REPOSITORY" --pr "$PR_NUMBER" --app-url "$PLAN_RECAP_APP_URL" --token "$PLAN_RECAP_TOKEN")
646
- if [ -n "${PREV_PLAN_ID:-}" ]; then ARGS+=(--prev-plan-id "$PREV_PLAN_ID"); fi
643
+ # Plan caps idempotency keys at 200 characters; the numeric repository ID keeps this bounded.
644
+ ARGS+=(--idempotency-key "pr-recap:$REPOSITORY_ID:$PR_NUMBER:$HEAD_SHA:$GITHUB_RUN_ID:$GITHUB_RUN_ATTEMPT")
647
645
  ARGS+=(--source-type pull-request --source-repo "$GITHUB_REPOSITORY" --source-pr-number "$PR_NUMBER")
648
646
  if [ "${PR_MERGED:-false}" = "true" ] || [ -n "${PR_MERGED_AT:-}" ]; then
649
647
  ARGS+=(--source-pr-state merged)
@@ -756,12 +754,10 @@ jobs:
756
754
  id: publish_repair
757
755
  if: steps.repaired_source.outputs.ok == 'true'
758
756
  continue-on-error: true
759
- env:
760
- PREV_PLAN_ID: ${{ steps.prev.outputs.plan_id }}
761
757
  run: |
762
758
  set -uo pipefail
763
759
  ARGS=(--source recap-source.json --out recap-url.txt --repo "$GITHUB_REPOSITORY" --pr "$PR_NUMBER" --app-url "$PLAN_RECAP_APP_URL" --token "$PLAN_RECAP_TOKEN")
764
- if [ -n "${PREV_PLAN_ID:-}" ]; then ARGS+=(--prev-plan-id "$PREV_PLAN_ID"); fi
760
+ ARGS+=(--idempotency-key "pr-recap:$REPOSITORY_ID:$PR_NUMBER:$HEAD_SHA:$GITHUB_RUN_ID:$GITHUB_RUN_ATTEMPT")
765
761
  ARGS+=(--source-type pull-request --source-repo "$GITHUB_REPOSITORY" --source-pr-number "$PR_NUMBER")
766
762
  if [ "${PR_MERGED:-false}" = "true" ] || [ -n "${PR_MERGED_AT:-}" ]; then
767
763
  ARGS+=(--source-pr-state merged)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/recap-cli",
3
- "version": "0.5.68-nightly-20261009153146",
3
+ "version": "0.5.69",
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": {