@benzotti/jedi 0.1.29 → 0.1.31

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.
@@ -82,6 +82,7 @@ jobs:
82
82
  .jdi/persistence/
83
83
  .jdi/framework/
84
84
  .jdi/config/
85
+ .jdi/plans/
85
86
  .claude/
86
87
  key: jedi-state-${{ github.repository }}-${{ steps.pr.outputs.branch || github.head_ref || github.ref_name }}
87
88
  restore-keys: |
@@ -127,22 +128,31 @@ jobs:
127
128
  run: bun install -g @anthropic-ai/claude-code
128
129
 
129
130
  # Run Jedi CLI directly — full pipeline with routing, agents, and comment posting
130
- # IMPORTANT: All user input is passed via env vars to avoid shell injection
131
+ # IMPORTANT: All user input is passed via env vars to avoid shell injection.
132
+ # All arguments are individually quoted to prevent shell expansion.
133
+ #
134
+ # Auth gate (opt-in):
135
+ # Set repo variable JEDI_AUTH_ENABLED=true to restrict Jedi to write collaborators.
136
+ # Set JEDI_ALLOWED_USERS to a comma-separated list for explicit allow-listing.
131
137
  - name: Run Jedi
132
138
  run: |
133
- ARGS="--repo $REPO"
134
- [ -n "$COMMENT_ID" ] && ARGS="$ARGS --comment-id $COMMENT_ID"
135
- [ -n "$PR_NUMBER" ] && ARGS="$ARGS --pr-number $PR_NUMBER"
136
- [ -n "$ISSUE_NUMBER" ] && ARGS="$ARGS --issue-number $ISSUE_NUMBER"
137
-
138
- bunx @benzotti/jedi@latest action "$COMMENT_BODY" $ARGS
139
+ bunx @benzotti/jedi@latest action "$COMMENT_BODY" \
140
+ --repo "$REPO" \
141
+ ${COMMENT_ID:+--comment-id "$COMMENT_ID"} \
142
+ ${PR_NUMBER:+--pr-number "$PR_NUMBER"} \
143
+ ${ISSUE_NUMBER:+--issue-number "$ISSUE_NUMBER"} \
144
+ ${COMMENT_AUTHOR:+--comment-author "$COMMENT_AUTHOR"} \
145
+ ${ALLOWED_USERS:+--allowed-users "$ALLOWED_USERS"}
139
146
  env:
140
147
  # Resolve comment body from whichever event type triggered this
141
148
  COMMENT_BODY: ${{ github.event.comment.body || github.event.review.body || '' }}
142
149
  COMMENT_ID: ${{ github.event.comment.id || github.event.review.id || '' }}
143
150
  PR_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number || '' }}
144
151
  ISSUE_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number || '' }}
152
+ COMMENT_AUTHOR: ${{ github.event.comment.user.login || github.event.review.user.login || '' }}
145
153
  REPO: ${{ github.repository }}
154
+ JEDI_AUTH_ENABLED: ${{ vars.JEDI_AUTH_ENABLED || '' }}
155
+ ALLOWED_USERS: ${{ vars.JEDI_ALLOWED_USERS || '' }}
146
156
  ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
147
157
  CLICKUP_API_TOKEN: ${{ secrets.CLICKUP_API_TOKEN }}
148
158
  GH_TOKEN: ${{ github.token }}
@@ -156,6 +166,7 @@ jobs:
156
166
  .jdi/persistence/
157
167
  .jdi/framework/
158
168
  .jdi/config/
169
+ .jdi/plans/
159
170
  .claude/
160
171
  key: jedi-state-${{ github.repository }}-${{ steps.pr.outputs.branch || github.head_ref || github.ref_name }}-${{ github.run_id }}
161
172
 
@@ -174,6 +185,7 @@ jobs:
174
185
  .jdi/persistence/
175
186
  .jdi/framework/
176
187
  .jdi/config/
188
+ .jdi/plans/
177
189
  .claude/
178
190
  key: jedi-state-${{ github.repository }}-main-promotion-${{ github.sha }}
179
191
  restore-keys: |
@@ -187,5 +199,6 @@ jobs:
187
199
  .jdi/persistence/
188
200
  .jdi/framework/
189
201
  .jdi/config/
202
+ .jdi/plans/
190
203
  .claude/
191
204
  key: jedi-state-${{ github.repository }}-main-${{ github.sha }}