@benzotti/jedi 0.1.31 → 0.1.32
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/dist/index.js +31 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9873,6 +9873,24 @@ function buildProjectContext(ctx) {
|
|
|
9873
9873
|
}
|
|
9874
9874
|
return lines;
|
|
9875
9875
|
}
|
|
9876
|
+
function buildLearningsBlock(techStack) {
|
|
9877
|
+
const lower = techStack.toLowerCase();
|
|
9878
|
+
const base = ".jdi/framework/learnings";
|
|
9879
|
+
const files = [`${base}/general.md`];
|
|
9880
|
+
if (/php|laravel/.test(lower))
|
|
9881
|
+
files.push(`${base}/backend.md`);
|
|
9882
|
+
if (/react|typescript|\.ts|frontend|vite/.test(lower))
|
|
9883
|
+
files.push(`${base}/frontend.md`);
|
|
9884
|
+
if (/test|vitest|pest/.test(lower))
|
|
9885
|
+
files.push(`${base}/testing.md`);
|
|
9886
|
+
if (/docker|ci|deploy/.test(lower))
|
|
9887
|
+
files.push(`${base}/devops.md`);
|
|
9888
|
+
return [
|
|
9889
|
+
`## Learnings`,
|
|
9890
|
+
`Read these learnings files and follow any conventions found (learnings override defaults):`,
|
|
9891
|
+
...files.map((f3) => `- ${f3}`)
|
|
9892
|
+
];
|
|
9893
|
+
}
|
|
9876
9894
|
function agentPaths(cwd) {
|
|
9877
9895
|
return {
|
|
9878
9896
|
baseProtocol: resolve3(cwd, ".jdi/framework/components/meta/AgentBase.md"),
|
|
@@ -9905,6 +9923,8 @@ function buildImplementPrompt(ctx, planPath, overrideFlag) {
|
|
|
9905
9923
|
``,
|
|
9906
9924
|
...buildProjectContext(ctx),
|
|
9907
9925
|
``,
|
|
9926
|
+
...buildLearningsBlock(ctx.techStack),
|
|
9927
|
+
``,
|
|
9908
9928
|
`## Task`,
|
|
9909
9929
|
`Execute implementation plan: ${resolve3(ctx.cwd, planPath)}${overrideFlag ? `
|
|
9910
9930
|
Override: ${overrideFlag}` : ""}`,
|
|
@@ -9934,6 +9954,8 @@ function buildQuickPrompt(ctx, description) {
|
|
|
9934
9954
|
`- Working directory: ${ctx.cwd}`,
|
|
9935
9955
|
`- Project type: ${ctx.projectType}`,
|
|
9936
9956
|
``,
|
|
9957
|
+
...buildLearningsBlock(ctx.techStack),
|
|
9958
|
+
``,
|
|
9937
9959
|
`## Instructions`,
|
|
9938
9960
|
`1. Make the minimal change needed to accomplish the task`,
|
|
9939
9961
|
`2. Keep changes focused \u2014 do not refactor surrounding code`,
|
|
@@ -11709,6 +11731,8 @@ Say **\`Hey Jedi implement\`** when you're ready to go.`;
|
|
|
11709
11731
|
``,
|
|
11710
11732
|
...contextLines,
|
|
11711
11733
|
``,
|
|
11734
|
+
...buildLearningsBlock(techStack),
|
|
11735
|
+
``,
|
|
11712
11736
|
fenceUserInput("conversation-history", conversationHistory),
|
|
11713
11737
|
``,
|
|
11714
11738
|
`## Feedback on Implementation`,
|
|
@@ -11836,6 +11860,8 @@ Use the ClickUp ticket above as the primary requirements source.` : ``,
|
|
|
11836
11860
|
`Read ${resolve11(cwd, ".jdi/framework/components/meta/AgentTeamsOrchestration.md")} for Agent Teams orchestration (if needed).`,
|
|
11837
11861
|
``,
|
|
11838
11862
|
...contextLines,
|
|
11863
|
+
``,
|
|
11864
|
+
...buildLearningsBlock(techStack),
|
|
11839
11865
|
historyBlock,
|
|
11840
11866
|
`## Task`,
|
|
11841
11867
|
`Execute the current implementation plan. Read state.yaml for the active plan path.`,
|
|
@@ -11856,6 +11882,8 @@ Use the ClickUp ticket above as the primary requirements source.` : ``,
|
|
|
11856
11882
|
`Read ${baseProtocol} for the base agent protocol.`,
|
|
11857
11883
|
``,
|
|
11858
11884
|
...contextLines,
|
|
11885
|
+
``,
|
|
11886
|
+
...buildLearningsBlock(techStack),
|
|
11859
11887
|
historyBlock,
|
|
11860
11888
|
`## Task`,
|
|
11861
11889
|
`Make this quick change:`,
|
|
@@ -11931,6 +11959,8 @@ Use the ClickUp ticket above as the primary requirements source.` : ``,
|
|
|
11931
11959
|
``,
|
|
11932
11960
|
...contextLines,
|
|
11933
11961
|
``,
|
|
11962
|
+
...buildLearningsBlock(techStack),
|
|
11963
|
+
``,
|
|
11934
11964
|
`## Task`,
|
|
11935
11965
|
`Execute the most recently created implementation plan in .jdi/plans/.`,
|
|
11936
11966
|
`Follow the implement-plan orchestration.`,
|
|
@@ -12066,7 +12096,7 @@ var setupActionCommand = defineCommand({
|
|
|
12066
12096
|
// package.json
|
|
12067
12097
|
var package_default = {
|
|
12068
12098
|
name: "@benzotti/jedi",
|
|
12069
|
-
version: "0.1.
|
|
12099
|
+
version: "0.1.32",
|
|
12070
12100
|
description: "JDI - Context-efficient AI development framework for Claude Code",
|
|
12071
12101
|
type: "module",
|
|
12072
12102
|
bin: {
|