@benzotti/jedi 0.1.13 → 0.1.14
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/action.yml +1 -1
- package/action/workflow-template.yml +9 -9
- package/dist/index.js +12 -12
- package/package.json +1 -1
package/action/action.yml
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
# - Set CLICKUP_API_TOKEN secret for ClickUp ticket integration
|
|
10
10
|
# - Run `npx @benzotti/jedi init` locally to customise framework files
|
|
11
11
|
#
|
|
12
|
-
# Usage: Comment on any issue or PR with
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
#
|
|
12
|
+
# Usage: Comment on any issue or PR with "Hey Jedi" followed by a command:
|
|
13
|
+
# Hey Jedi plan <description> — Create an implementation plan
|
|
14
|
+
# Hey Jedi quick <description> — Make a small, focused change
|
|
15
|
+
# Hey Jedi review — Review the current PR
|
|
16
|
+
# Hey Jedi feedback — Address PR review comments
|
|
17
|
+
# Hey Jedi do <clickup-ticket-url> — Full flow: plan + implement from ticket
|
|
18
18
|
#
|
|
19
19
|
# Conversation: Jedi supports back-and-forth iteration. After Jedi responds,
|
|
20
20
|
# reply with feedback to refine, or say "approved" to finalise.
|
|
@@ -39,11 +39,11 @@ permissions:
|
|
|
39
39
|
id-token: write
|
|
40
40
|
|
|
41
41
|
jobs:
|
|
42
|
-
# ── Triggered by
|
|
42
|
+
# ── Triggered by "Hey Jedi" comments on issues/PRs ──
|
|
43
43
|
jedi:
|
|
44
44
|
if: >-
|
|
45
45
|
(github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment')
|
|
46
|
-
&& contains(github.event.comment.body, '
|
|
46
|
+
&& contains(github.event.comment.body, 'Hey Jedi')
|
|
47
47
|
runs-on: ubuntu-latest
|
|
48
48
|
steps:
|
|
49
49
|
- uses: actions/checkout@v4
|
|
@@ -94,7 +94,7 @@ jobs:
|
|
|
94
94
|
uses: anthropics/claude-code-action@v1
|
|
95
95
|
with:
|
|
96
96
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
97
|
-
trigger_phrase: '
|
|
97
|
+
trigger_phrase: 'Hey Jedi'
|
|
98
98
|
bot_name: 'jedi[bot]'
|
|
99
99
|
env:
|
|
100
100
|
CLICKUP_API_TOKEN: ${{ secrets.CLICKUP_API_TOKEN }}
|
package/dist/index.js
CHANGED
|
@@ -11097,7 +11097,7 @@ function buildConversationContext(thread, currentCommentId) {
|
|
|
11097
11097
|
for (const comment of thread) {
|
|
11098
11098
|
if (comment.id === currentCommentId)
|
|
11099
11099
|
break;
|
|
11100
|
-
if (comment.body
|
|
11100
|
+
if (/hey\s+jedi/i.test(comment.body)) {
|
|
11101
11101
|
inJediConversation = true;
|
|
11102
11102
|
jediSegments.push(comment);
|
|
11103
11103
|
} else if (inJediConversation) {
|
|
@@ -11147,7 +11147,7 @@ function formatResultComment(command, success, summary) {
|
|
|
11147
11147
|
|
|
11148
11148
|
// src/commands/action.ts
|
|
11149
11149
|
function parseComment(comment, isFollowUp) {
|
|
11150
|
-
const match = comment.match(
|
|
11150
|
+
const match = comment.match(/hey\s+jedi\s+(.+)/is);
|
|
11151
11151
|
if (!match) {
|
|
11152
11152
|
if (isFollowUp) {
|
|
11153
11153
|
return {
|
|
@@ -11209,12 +11209,12 @@ function parseComment(comment, isFollowUp) {
|
|
|
11209
11209
|
var actionCommand = defineCommand({
|
|
11210
11210
|
meta: {
|
|
11211
11211
|
name: "action",
|
|
11212
|
-
description: "GitHub Action entry point \u2014 parse
|
|
11212
|
+
description: "GitHub Action entry point \u2014 parse 'Hey Jedi' comment and run workflow"
|
|
11213
11213
|
},
|
|
11214
11214
|
args: {
|
|
11215
11215
|
comment: {
|
|
11216
11216
|
type: "positional",
|
|
11217
|
-
description: "The raw comment body containing
|
|
11217
|
+
description: "The raw comment body containing 'Hey Jedi' mention",
|
|
11218
11218
|
required: true
|
|
11219
11219
|
},
|
|
11220
11220
|
"comment-id": {
|
|
@@ -11252,7 +11252,7 @@ var actionCommand = defineCommand({
|
|
|
11252
11252
|
}
|
|
11253
11253
|
const intent = parseComment(args.comment, isFollowUp);
|
|
11254
11254
|
if (!intent) {
|
|
11255
|
-
consola.error("Could not parse
|
|
11255
|
+
consola.error("Could not parse 'Hey Jedi' intent from comment");
|
|
11256
11256
|
process.exit(1);
|
|
11257
11257
|
}
|
|
11258
11258
|
consola.info(`Parsed intent: ${intent.isFeedback ? "feedback on previous" : intent.command}${intent.fullFlow ? " (full flow)" : ""}`);
|
|
@@ -11491,7 +11491,7 @@ var setupActionCommand = defineCommand({
|
|
|
11491
11491
|
"Jedi GitHub Action Setup",
|
|
11492
11492
|
"",
|
|
11493
11493
|
"Uses: anthropics/claude-code-action@v1",
|
|
11494
|
-
"Trigger:
|
|
11494
|
+
"Trigger: 'Hey Jedi' in issue/PR comments",
|
|
11495
11495
|
"",
|
|
11496
11496
|
"Required secrets (set via GitHub UI or CLI):",
|
|
11497
11497
|
"",
|
|
@@ -11503,11 +11503,11 @@ var setupActionCommand = defineCommand({
|
|
|
11503
11503
|
"",
|
|
11504
11504
|
"Usage: Comment on any issue or PR with:",
|
|
11505
11505
|
"",
|
|
11506
|
-
"
|
|
11507
|
-
"
|
|
11508
|
-
"
|
|
11509
|
-
"
|
|
11510
|
-
"
|
|
11506
|
+
" Hey Jedi plan <description>",
|
|
11507
|
+
" Hey Jedi quick <small fix>",
|
|
11508
|
+
" Hey Jedi do <clickup-ticket-url>",
|
|
11509
|
+
" Hey Jedi review",
|
|
11510
|
+
" Hey Jedi feedback",
|
|
11511
11511
|
"",
|
|
11512
11512
|
"Conversation: Reply to Jedi with feedback to iterate,",
|
|
11513
11513
|
"or say 'approved' to finalise."
|
|
@@ -11518,7 +11518,7 @@ var setupActionCommand = defineCommand({
|
|
|
11518
11518
|
// package.json
|
|
11519
11519
|
var package_default = {
|
|
11520
11520
|
name: "@benzotti/jedi",
|
|
11521
|
-
version: "0.1.
|
|
11521
|
+
version: "0.1.14",
|
|
11522
11522
|
description: "JDI - Context-efficient AI development framework for Claude Code",
|
|
11523
11523
|
type: "module",
|
|
11524
11524
|
bin: {
|