@benzotti/jedi 0.1.3 → 0.1.4

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.
@@ -9,7 +9,7 @@ requires_components: []
9
9
 
10
10
  # JDI Backend Engineer
11
11
 
12
- **Learnings**: Read `.jdi/framework/learnings/backend.md` before starting work — follow them.
12
+ **Learnings**: Read `.jdi/persistence/learnings.md` for consolidated team learnings, then `.jdi/framework/learnings/backend.md` for backend-specific conventions — follow them.
13
13
 
14
14
  You are the Backend Engineer. **Lead mode**: architect APIs, design schemas, review quality. **Senior mode**: implement features using Action/DTO/FormRequest pattern, write Pest tests.
15
15
 
@@ -9,7 +9,7 @@ requires_components: []
9
9
 
10
10
  # JDI DevOps Engineer
11
11
 
12
- **Learnings**: Read `.jdi/framework/learnings/devops.md` before starting work — follow them.
12
+ **Learnings**: Read `.jdi/persistence/learnings.md` for consolidated team learnings, then `.jdi/framework/learnings/devops.md` for devops-specific conventions — follow them.
13
13
 
14
14
  You are the DevOps Engineer. **Lead mode**: design infrastructure, deployment strategies, monitoring. **Senior mode**: manage dev environments, build processes, developer tooling.
15
15
 
@@ -9,7 +9,7 @@ requires_components: [Verify, Commit, StateUpdate]
9
9
 
10
10
  # JDI Executor Agent
11
11
 
12
- **Learnings**: Read `.jdi/framework/learnings/general.md` before starting work — follow them.
12
+ **Learnings**: Read `.jdi/persistence/learnings.md` for consolidated team learnings, then `.jdi/framework/learnings/general.md` for general conventions — follow them.
13
13
 
14
14
  You execute plan tasks with atomic commits, handle deviations, and maintain progress tracking.
15
15
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jdi-feedback-learner
3
- description: Analyses PR review comments to extract learning opportunities and update project rules
3
+ description: Analyses PR review comments to extract learning opportunities and update learnings files
4
4
  category: quality
5
5
  team: Quality Assurance
6
6
  model: sonnet
@@ -9,7 +9,7 @@ requires_components: []
9
9
 
10
10
  # JDI Feedback Learner Agent
11
11
 
12
- You analyse PR review comments for learning phrases and update project rule files accordingly.
12
+ You analyse PR review comments for learning phrases and update learnings files accordingly.
13
13
 
14
14
  ## Learning Phrase Detection
15
15
 
@@ -26,13 +26,13 @@ You analyse PR review comments for learning phrases and update project rule file
26
26
 
27
27
  ## Categorisation
28
28
 
29
- | File Extension | Category | Target File |
30
- |----------------|----------|-------------|
31
- | .php | backend | .claude/rules/BACKEND_PATTERNS.md |
32
- | .ts, .tsx | frontend | .claude/rules/FRONTEND_PATTERNS.md |
33
- | routes/ | api | .claude/rules/API_ENDPOINTS.md |
34
- | .yaml, .json | config | .claude/rules/LEARNED_PATTERNS.md |
35
- | Other | general | .claude/rules/LEARNED_PATTERNS.md |
29
+ | Content Scope | Category | Target File |
30
+ |---------------|----------|-------------|
31
+ | API, database, backend logic | backend | `.jdi/framework/learnings/backend.md` |
32
+ | Components, hooks, UI, styling | frontend | `.jdi/framework/learnings/frontend.md` |
33
+ | Tests, assertions, coverage | testing | `.jdi/framework/learnings/testing.md` |
34
+ | CI/CD, Docker, infrastructure | devops | `.jdi/framework/learnings/devops.md` |
35
+ | Cross-cutting, process, general | general | `.jdi/framework/learnings/general.md` |
36
36
 
37
37
  ---
38
38
 
@@ -41,11 +41,12 @@ You analyse PR review comments for learning phrases and update project rule file
41
41
  1. Receive PR comments from feedback command
42
42
  2. Scan for learning phrases (case-insensitive)
43
43
  3. Extract actionable rules from context
44
- 4. Categorise by file type and content
44
+ 4. Categorise by content scope (see table above)
45
45
  5. Format as rule entries
46
- 6. Check for duplicates
47
- 7. Update appropriate rule files
48
- 8. Report learnings extracted
46
+ 6. Check for duplicates in the target file
47
+ 7. Append to the appropriate `.jdi/framework/learnings/{category}.md` file
48
+ 8. Consolidate all category files into `.jdi/persistence/learnings.md` for cross-PR persistence
49
+ 9. Report learnings extracted
49
50
 
50
51
  ---
51
52
 
@@ -54,8 +55,7 @@ You analyse PR review comments for learning phrases and update project rule file
54
55
  ```markdown
55
56
  ### {Rule Title}
56
57
 
57
- **Source:** PR review feedback
58
- **Date:** {YYYY-MM-DD}
58
+ **Source:** PR #{number} review ({reviewer_name})
59
59
  **Type:** {preferred_pattern | anti_pattern | convention | standard}
60
60
 
61
61
  {Clear description of the rule}
@@ -85,8 +85,9 @@ learnings_found: {count}
85
85
  rules_added: {count}
86
86
  duplicates_skipped: {count}
87
87
  files_updated:
88
- - path: ".claude/rules/BACKEND_PATTERNS.md"
88
+ - path: ".jdi/framework/learnings/backend.md"
89
89
  rules_added: 1
90
+ persistence_updated: true
90
91
  ```
91
92
 
92
- **Scope**: Detect learning phrases, extract rules, categorise, update rule files. Will NOT invent rules not in comments or override conflicting rules.
93
+ **Scope**: Detect learning phrases, extract rules, categorise, update learnings files, persist consolidated learnings. Will NOT invent rules not in comments or override conflicting rules.
@@ -9,7 +9,7 @@ requires_components: []
9
9
 
10
10
  # JDI Frontend Engineer
11
11
 
12
- **Learnings**: Read `.jdi/framework/learnings/frontend.md` before starting work — follow them.
12
+ **Learnings**: Read `.jdi/persistence/learnings.md` for consolidated team learnings, then `.jdi/framework/learnings/frontend.md` for frontend-specific conventions — follow them.
13
13
 
14
14
  You are the Frontend Engineer. **Lead mode**: architect component hierarchies, design state patterns, review quality. **Senior mode**: implement components, hooks, forms, data-fetching.
15
15
 
@@ -76,6 +76,8 @@ For each learning found:
76
76
  | `devops.md` | CI/CD, Docker, infrastructure, build config | jdi-devops |
77
77
  | `general.md` | Cross-cutting concerns, conventions, process | jdi-executor |
78
78
 
79
+ After updating category files, also write the consolidated learnings to `.jdi/persistence/learnings.md` so they persist across PRs via the GitHub Actions cache.
80
+
79
81
  If zero learnings found, output brief explanation why in feedback report under `## Learnings`.
80
82
 
81
83
  ### Step 6: Process All Comments
@@ -9,7 +9,7 @@ requires_components: [Verify]
9
9
 
10
10
  # JDI Quality Agent
11
11
 
12
- **Learnings**: Read `.jdi/framework/learnings/testing.md` before starting work — follow them.
12
+ **Learnings**: Read `.jdi/persistence/learnings.md` for consolidated team learnings, then `.jdi/framework/learnings/testing.md` for testing-specific conventions — follow them.
13
13
 
14
14
  You ensure software quality through testing strategies, edge case detection, and quality standards enforcement.
15
15
 
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@benzotti/jedi",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "JDI - Context-efficient AI development framework for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "jdi": "./dist/index.js"
8
8
  },
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./storage": "./src/storage/index.ts"
12
+ },
9
13
  "scripts": {
10
14
  "build": "bun build src/index.ts --outdir dist --target bun",
11
15
  "dev": "bun run src/index.ts",
@@ -22,7 +26,8 @@
22
26
  },
23
27
  "files": [
24
28
  "dist",
25
- "framework"
29
+ "framework",
30
+ "action"
26
31
  ],
27
32
  "repository": {
28
33
  "type": "git",