@benzotti/jedi 0.1.14 → 0.1.15
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 +1 -0
- package/dist/index.js +48 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
# Hey Jedi review — Review the current PR
|
|
16
16
|
# Hey Jedi feedback — Address PR review comments
|
|
17
17
|
# Hey Jedi do <clickup-ticket-url> — Full flow: plan + implement from ticket
|
|
18
|
+
# Hey Jedi ping — Check framework status
|
|
18
19
|
#
|
|
19
20
|
# Conversation: Jedi supports back-and-forth iteration. After Jedi responds,
|
|
20
21
|
# reply with feedback to refine, or say "approved" to finalise.
|
package/dist/index.js
CHANGED
|
@@ -11165,6 +11165,9 @@ function parseComment(comment, isFollowUp) {
|
|
|
11165
11165
|
const clickUpUrl = clickUpMatch ? clickUpMatch[1] : null;
|
|
11166
11166
|
const description = body.replace(/(https?:\/\/[^\s]*clickup\.com\/t\/[a-z0-9]+)/i, "").replace(/\s+/g, " ").trim();
|
|
11167
11167
|
const lower = body.toLowerCase();
|
|
11168
|
+
if (lower.startsWith("ping") || lower.startsWith("status")) {
|
|
11169
|
+
return { command: "ping", description: "", clickUpUrl: null, fullFlow: false, isFeedback: false };
|
|
11170
|
+
}
|
|
11168
11171
|
if (lower.startsWith("plan ")) {
|
|
11169
11172
|
return { command: "plan", description, clickUpUrl, fullFlow: false, isFeedback: false };
|
|
11170
11173
|
}
|
|
@@ -11259,6 +11262,49 @@ var actionCommand = defineCommand({
|
|
|
11259
11262
|
if (repo && commentId) {
|
|
11260
11263
|
await reactToComment(repo, commentId, "eyes").catch(() => {});
|
|
11261
11264
|
}
|
|
11265
|
+
if (intent.command === "ping") {
|
|
11266
|
+
const { existsSync: existsSync13 } = await import("fs");
|
|
11267
|
+
const { join: join12 } = await import("path");
|
|
11268
|
+
const frameworkExists = existsSync13(join12(cwd, ".jdi/framework"));
|
|
11269
|
+
const claudeMdExists = existsSync13(join12(cwd, ".claude/CLAUDE.md"));
|
|
11270
|
+
const stateExists = existsSync13(join12(cwd, ".jdi/config/state.yaml"));
|
|
11271
|
+
const learningsExists = existsSync13(join12(cwd, ".jdi/persistence/learnings.md"));
|
|
11272
|
+
let version = "unknown";
|
|
11273
|
+
try {
|
|
11274
|
+
const pkgPath = join12(cwd, "node_modules/@benzotti/jedi/package.json");
|
|
11275
|
+
if (existsSync13(pkgPath)) {
|
|
11276
|
+
const pkg = JSON.parse(await Bun.file(pkgPath).text());
|
|
11277
|
+
version = pkg.version;
|
|
11278
|
+
}
|
|
11279
|
+
} catch {}
|
|
11280
|
+
const lines = [
|
|
11281
|
+
`### Jedi Framework Status`,
|
|
11282
|
+
``,
|
|
11283
|
+
`| Component | Status |`,
|
|
11284
|
+
`|-----------|--------|`,
|
|
11285
|
+
`| Framework files | ${frameworkExists ? "found" : "missing"} |`,
|
|
11286
|
+
`| CLAUDE.md | ${claudeMdExists ? "found" : "missing"} |`,
|
|
11287
|
+
`| State config | ${stateExists ? "found" : "missing"} |`,
|
|
11288
|
+
`| Learnings | ${learningsExists ? "found" : "missing"} |`,
|
|
11289
|
+
`| Version | \`${version}\` |`,
|
|
11290
|
+
``,
|
|
11291
|
+
`---`,
|
|
11292
|
+
`_Powered by [@benzotti/jedi](https://github.com/zottiben/jedi)_`
|
|
11293
|
+
];
|
|
11294
|
+
if (repo && issueNumber) {
|
|
11295
|
+
await postGitHubComment(repo, issueNumber, lines.join(`
|
|
11296
|
+
`)).catch((err) => {
|
|
11297
|
+
consola.error("Failed to post ping comment:", err);
|
|
11298
|
+
});
|
|
11299
|
+
} else {
|
|
11300
|
+
console.log(lines.join(`
|
|
11301
|
+
`));
|
|
11302
|
+
}
|
|
11303
|
+
if (repo && commentId) {
|
|
11304
|
+
await reactToComment(repo, commentId, "+1").catch(() => {});
|
|
11305
|
+
}
|
|
11306
|
+
return;
|
|
11307
|
+
}
|
|
11262
11308
|
const storage = await createStorage(cwd);
|
|
11263
11309
|
const { learningsPath, codebaseIndexPath } = await loadPersistedState(cwd, storage);
|
|
11264
11310
|
let ticketContext = "";
|
|
@@ -11508,6 +11554,7 @@ var setupActionCommand = defineCommand({
|
|
|
11508
11554
|
" Hey Jedi do <clickup-ticket-url>",
|
|
11509
11555
|
" Hey Jedi review",
|
|
11510
11556
|
" Hey Jedi feedback",
|
|
11557
|
+
" Hey Jedi ping",
|
|
11511
11558
|
"",
|
|
11512
11559
|
"Conversation: Reply to Jedi with feedback to iterate,",
|
|
11513
11560
|
"or say 'approved' to finalise."
|
|
@@ -11518,7 +11565,7 @@ var setupActionCommand = defineCommand({
|
|
|
11518
11565
|
// package.json
|
|
11519
11566
|
var package_default = {
|
|
11520
11567
|
name: "@benzotti/jedi",
|
|
11521
|
-
version: "0.1.
|
|
11568
|
+
version: "0.1.15",
|
|
11522
11569
|
description: "JDI - Context-efficient AI development framework for Claude Code",
|
|
11523
11570
|
type: "module",
|
|
11524
11571
|
bin: {
|