@benzotti/jedi 0.1.26 → 0.1.27

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.
@@ -47,9 +47,20 @@ jobs:
47
47
  && contains(github.event.comment.body, 'Hey Jedi')
48
48
  runs-on: ubuntu-latest
49
49
  steps:
50
+ # Resolve the PR head branch for issue_comment events
51
+ # (github.head_ref is only set on pull_request events, not issue_comment)
52
+ - name: Resolve PR branch
53
+ id: pr
54
+ if: github.event.issue.pull_request
55
+ run: |
56
+ PR_DATA=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.issue.number }} --jq '{head_ref: .head.ref, head_sha: .head.sha}')
57
+ echo "branch=$(echo "$PR_DATA" | jq -r .head_ref)" >> "$GITHUB_OUTPUT"
58
+ env:
59
+ GH_TOKEN: ${{ github.token }}
60
+
50
61
  - uses: actions/checkout@v4
51
62
  with:
52
- ref: ${{ github.head_ref || github.ref }}
63
+ ref: ${{ steps.pr.outputs.branch || github.head_ref || github.ref }}
53
64
 
54
65
  # Restore persisted Jedi state (learnings + codebase-index)
55
66
  # 1. Exact match for this branch
@@ -63,7 +74,7 @@ jobs:
63
74
  .jdi/framework/
64
75
  .jdi/config/
65
76
  .claude/
66
- key: jedi-state-${{ github.repository }}-${{ github.head_ref || github.ref_name }}
77
+ key: jedi-state-${{ github.repository }}-${{ steps.pr.outputs.branch || github.head_ref || github.ref_name }}
67
78
  restore-keys: |
68
79
  jedi-state-${{ github.repository }}-main
69
80
 
@@ -135,7 +146,7 @@ jobs:
135
146
  .jdi/framework/
136
147
  .jdi/config/
137
148
  .claude/
138
- key: jedi-state-${{ github.repository }}-${{ github.head_ref || github.ref_name }}-${{ github.run_id }}
149
+ key: jedi-state-${{ github.repository }}-${{ steps.pr.outputs.branch || github.head_ref || github.ref_name }}-${{ github.run_id }}
139
150
 
140
151
  # ── Promote learnings to main baseline when PRs merge ──
141
152
  promote-learnings:
package/dist/index.js CHANGED
@@ -11770,7 +11770,7 @@ var setupActionCommand = defineCommand({
11770
11770
  // package.json
11771
11771
  var package_default = {
11772
11772
  name: "@benzotti/jedi",
11773
- version: "0.1.26",
11773
+ version: "0.1.27",
11774
11774
  description: "JDI - Context-efficient AI development framework for Claude Code",
11775
11775
  type: "module",
11776
11776
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benzotti/jedi",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "JDI - Context-efficient AI development framework for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {