@benzotti/jedi 0.1.30 → 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.
@@ -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: |
@@ -165,6 +166,7 @@ jobs:
165
166
  .jdi/persistence/
166
167
  .jdi/framework/
167
168
  .jdi/config/
169
+ .jdi/plans/
168
170
  .claude/
169
171
  key: jedi-state-${{ github.repository }}-${{ steps.pr.outputs.branch || github.head_ref || github.ref_name }}-${{ github.run_id }}
170
172
 
@@ -183,6 +185,7 @@ jobs:
183
185
  .jdi/persistence/
184
186
  .jdi/framework/
185
187
  .jdi/config/
188
+ .jdi/plans/
186
189
  .claude/
187
190
  key: jedi-state-${{ github.repository }}-main-promotion-${{ github.sha }}
188
191
  restore-keys: |
@@ -196,5 +199,6 @@ jobs:
196
199
  .jdi/persistence/
197
200
  .jdi/framework/
198
201
  .jdi/config/
202
+ .jdi/plans/
199
203
  .claude/
200
204
  key: jedi-state-${{ github.repository }}-main-${{ github.sha }}
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.30",
12099
+ version: "0.1.32",
12070
12100
  description: "JDI - Context-efficient AI development framework for Claude Code",
12071
12101
  type: "module",
12072
12102
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benzotti/jedi",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "JDI - Context-efficient AI development framework for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {