@benzotti/jedi 0.1.25 → 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.
- package/action/workflow-template.yml +14 -3
- package/dist/index.js +23 -21
- package/package.json +1 -1
|
@@ -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
|
@@ -9351,11 +9351,11 @@ Implementation only happens when the user explicitly approves ("approved", "lgtm
|
|
|
9351
9351
|
|
|
9352
9352
|
## Auto-Commit (CI Mode)
|
|
9353
9353
|
|
|
9354
|
-
You are
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9354
|
+
You are already on the correct PR branch. Do NOT create new branches or switch branches.
|
|
9355
|
+
After **implementing** changes (NOT after planning or plan refinement):
|
|
9356
|
+
1. \`git add\` only source files you changed (NOT .jdi/ or .claude/)
|
|
9357
|
+
2. \`git commit -m "feat: ..."\` with a conventional commit message
|
|
9358
|
+
3. \`git push\` (no -u, no origin, no branch name \u2014 just \`git push\`)
|
|
9359
9359
|
Plan files (\`.jdi/plans/\`) are cached separately and should NOT be committed.
|
|
9360
9360
|
|
|
9361
9361
|
## Iterative Refinement
|
|
@@ -11559,11 +11559,11 @@ Use the ClickUp ticket above as the primary requirements source.` : ``,
|
|
|
11559
11559
|
`Follow the implement-plan orchestration.`,
|
|
11560
11560
|
``,
|
|
11561
11561
|
`## Auto-Commit`,
|
|
11562
|
-
`You are
|
|
11563
|
-
`
|
|
11564
|
-
`
|
|
11565
|
-
`
|
|
11566
|
-
`
|
|
11562
|
+
`You are already on the correct PR branch. Do NOT create new branches or switch branches.`,
|
|
11563
|
+
`After implementing all changes:`,
|
|
11564
|
+
`1. \`git add\` only source files you changed (NOT .jdi/ or .claude/)`,
|
|
11565
|
+
`2. \`git commit -m "feat: ..."\` with a conventional commit message`,
|
|
11566
|
+
`3. \`git push\` (no -u, no origin, no branch name \u2014 just \`git push\`)`,
|
|
11567
11567
|
`Present a summary of what was implemented and committed.`
|
|
11568
11568
|
].join(`
|
|
11569
11569
|
`);
|
|
@@ -11579,11 +11579,12 @@ Use the ClickUp ticket above as the primary requirements source.` : ``,
|
|
|
11579
11579
|
`Keep changes minimal and focused.`,
|
|
11580
11580
|
``,
|
|
11581
11581
|
`## Auto-Commit`,
|
|
11582
|
-
`You are
|
|
11583
|
-
`
|
|
11584
|
-
`
|
|
11585
|
-
`
|
|
11586
|
-
`
|
|
11582
|
+
`You are already on the correct PR branch. Do NOT create new branches or switch branches.`,
|
|
11583
|
+
`After making changes:`,
|
|
11584
|
+
`1. \`git add\` only source files you changed (NOT .jdi/ or .claude/)`,
|
|
11585
|
+
`2. \`git commit -m "..."\` with a conventional commit message`,
|
|
11586
|
+
`3. \`git push\` (no -u, no origin, no branch name \u2014 just \`git push\`)`,
|
|
11587
|
+
`Present what you changed.`
|
|
11587
11588
|
].join(`
|
|
11588
11589
|
`);
|
|
11589
11590
|
break;
|
|
@@ -11647,11 +11648,12 @@ Use the ClickUp ticket above as the primary requirements source.` : ``,
|
|
|
11647
11648
|
`Follow the implement-plan orchestration.`,
|
|
11648
11649
|
``,
|
|
11649
11650
|
`## Auto-Commit`,
|
|
11650
|
-
`You are
|
|
11651
|
-
`
|
|
11652
|
-
`
|
|
11653
|
-
`
|
|
11654
|
-
`
|
|
11651
|
+
`You are already on the correct PR branch. Do NOT create new branches or switch branches.`,
|
|
11652
|
+
`After implementing all changes:`,
|
|
11653
|
+
`1. \`git add\` only source files you changed (NOT .jdi/ or .claude/)`,
|
|
11654
|
+
`2. \`git commit -m "feat: ..."\` with a conventional commit message`,
|
|
11655
|
+
`3. \`git push\` (no -u, no origin, no branch name \u2014 just \`git push\`)`,
|
|
11656
|
+
`Present a summary of what was implemented and committed.`
|
|
11655
11657
|
].join(`
|
|
11656
11658
|
`);
|
|
11657
11659
|
const implResult = await spawnClaude(implementPrompt, {
|
|
@@ -11768,7 +11770,7 @@ var setupActionCommand = defineCommand({
|
|
|
11768
11770
|
// package.json
|
|
11769
11771
|
var package_default = {
|
|
11770
11772
|
name: "@benzotti/jedi",
|
|
11771
|
-
version: "0.1.
|
|
11773
|
+
version: "0.1.27",
|
|
11772
11774
|
description: "JDI - Context-efficient AI development framework for Claude Code",
|
|
11773
11775
|
type: "module",
|
|
11774
11776
|
bin: {
|