geminize 1.0.0 → 1.2.0
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.
- checksums.yaml +4 -4
- data/.cursor/mcp.json +3 -0
- data/.cursor/rules/isolation_rules/Core/command-execution.mdc +235 -0
- data/.cursor/rules/isolation_rules/Core/complexity-decision-tree.mdc +187 -0
- data/.cursor/rules/isolation_rules/Core/creative-phase-enforcement.mdc +145 -0
- data/.cursor/rules/isolation_rules/Core/creative-phase-metrics.mdc +195 -0
- data/.cursor/rules/isolation_rules/Core/file-verification.mdc +198 -0
- data/.cursor/rules/isolation_rules/Core/platform-awareness.mdc +71 -0
- data/.cursor/rules/isolation_rules/Level3/planning-comprehensive.mdc +159 -0
- data/.cursor/rules/isolation_rules/Level3/task-tracking-intermediate.mdc +135 -0
- data/.cursor/rules/isolation_rules/Phases/CreativePhase/creative-phase-architecture.mdc +187 -0
- data/.cursor/rules/isolation_rules/main.mdc +123 -0
- data/.cursor/rules/isolation_rules/visual-maps/archive-mode-map.mdc +277 -0
- data/.cursor/rules/isolation_rules/visual-maps/creative-mode-map.mdc +224 -0
- data/.cursor/rules/isolation_rules/visual-maps/implement-mode-map.mdc +321 -0
- data/.cursor/rules/isolation_rules/visual-maps/plan-mode-map.mdc +269 -0
- data/.cursor/rules/isolation_rules/visual-maps/qa-mode-map.mdc +495 -0
- data/.cursor/rules/isolation_rules/visual-maps/reflect-mode-map.mdc +234 -0
- data/.cursor/rules/isolation_rules/visual-maps/van-mode-map.mdc +902 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-complexity-determination.mdc +60 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-file-verification.mdc +49 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-mode-map.mdc +49 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-platform-detection.mdc +50 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/build-test.mdc +117 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/config-check.mdc +103 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/dependency-check.mdc +147 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/environment-check.mdc +104 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/file-verification.mdc +1 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-main.mdc +142 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/common-fixes.mdc +92 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/mode-transitions.mdc +101 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/reports.mdc +149 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/rule-calling-guide.mdc +66 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/rule-calling-help.mdc +19 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-validation.md.old +363 -0
- data/.env.example +7 -0
- data/.memory_bank/activeContext.md +102 -0
- data/.memory_bank/progress.md +93 -0
- data/.memory_bank/projectbrief.md +45 -0
- data/.memory_bank/systemPatterns.md +90 -0
- data/.memory_bank/tasks.md +142 -0
- data/.memory_bank/techContext.md +73 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +42 -0
- data/README.md +223 -5
- data/examples/function_calling.rb +218 -0
- data/examples/models_api.rb +125 -0
- data/examples/safety_settings.rb +82 -0
- data/lib/geminize/configuration.rb +4 -4
- data/lib/geminize/model_info.rb +87 -8
- data/lib/geminize/models/content_request_extensions.rb +219 -0
- data/lib/geminize/models/content_request_safety.rb +123 -0
- data/lib/geminize/models/content_response_extensions.rb +120 -0
- data/lib/geminize/models/function_declaration.rb +112 -0
- data/lib/geminize/models/function_response.rb +70 -0
- data/lib/geminize/models/model.rb +101 -109
- data/lib/geminize/models/model_list.rb +70 -28
- data/lib/geminize/models/safety_setting.rb +102 -0
- data/lib/geminize/models/tool.rb +47 -0
- data/lib/geminize/models/tool_config.rb +52 -0
- data/lib/geminize/module_extensions.rb +228 -0
- data/lib/geminize/module_safety.rb +135 -0
- data/lib/geminize/request_builder.rb +29 -0
- data/lib/geminize/version.rb +1 -1
- data/lib/geminize.rb +83 -14
- metadata +57 -2
@@ -0,0 +1,234 @@
|
|
1
|
+
---
|
2
|
+
description:
|
3
|
+
globs:
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
---
|
7
|
+
description: Visual process map for REFLECT mode (Task Reflection)
|
8
|
+
globs: "**/reflect*/**", "**/review*/**", "**/retrospect*/**"
|
9
|
+
alwaysApply: false
|
10
|
+
---
|
11
|
+
|
12
|
+
# REFLECT MODE: TASK REVIEW PROCESS MAP
|
13
|
+
|
14
|
+
> **TL;DR:** This visual map guides the REFLECT mode process, focusing on structured review of the implementation, documenting lessons learned, and preparing insights for future reference.
|
15
|
+
|
16
|
+
## 🧭 REFLECT MODE PROCESS FLOW
|
17
|
+
|
18
|
+
```mermaid
|
19
|
+
graph TD
|
20
|
+
Start["START REFLECT MODE"] --> ReadTasks["Read tasks.md<br>and progress.md"]
|
21
|
+
|
22
|
+
%% Initial Assessment
|
23
|
+
ReadTasks --> VerifyImplement{"Implementation<br>Complete?"}
|
24
|
+
VerifyImplement -->|"No"| ReturnImplement["Return to<br>IMPLEMENT Mode"]
|
25
|
+
VerifyImplement -->|"Yes"| AssessLevel{"Determine<br>Complexity Level"}
|
26
|
+
|
27
|
+
%% Level-Based Reflection
|
28
|
+
AssessLevel -->|"Level 1"| L1Reflect["LEVEL 1 REFLECTION<br>Level1/reflection-basic.md"]
|
29
|
+
AssessLevel -->|"Level 2"| L2Reflect["LEVEL 2 REFLECTION<br>Level2/reflection-standard.md"]
|
30
|
+
AssessLevel -->|"Level 3"| L3Reflect["LEVEL 3 REFLECTION<br>Level3/reflection-comprehensive.md"]
|
31
|
+
AssessLevel -->|"Level 4"| L4Reflect["LEVEL 4 REFLECTION<br>Level4/reflection-advanced.md"]
|
32
|
+
|
33
|
+
%% Level 1 Reflection (Quick)
|
34
|
+
L1Reflect --> L1Review["Review<br>Bug Fix"]
|
35
|
+
L1Review --> L1Document["Document<br>Solution"]
|
36
|
+
L1Document --> L1Update["Update<br>tasks.md"]
|
37
|
+
|
38
|
+
%% Level 2 Reflection (Standard)
|
39
|
+
L2Reflect --> L2Review["Review<br>Enhancement"]
|
40
|
+
L2Review --> L2WWW["Document<br>What Went Well"]
|
41
|
+
L2WWW --> L2Challenges["Document<br>Challenges"]
|
42
|
+
L2Challenges --> L2Lessons["Document<br>Lessons Learned"]
|
43
|
+
L2Lessons --> L2Update["Update<br>tasks.md"]
|
44
|
+
|
45
|
+
%% Level 3-4 Reflection (Comprehensive)
|
46
|
+
L3Reflect & L4Reflect --> L34Review["Review Implementation<br>& Creative Phases"]
|
47
|
+
L34Review --> L34Plan["Compare Against<br>Original Plan"]
|
48
|
+
L34Plan --> L34WWW["Document<br>What Went Well"]
|
49
|
+
L34WWW --> L34Challenges["Document<br>Challenges"]
|
50
|
+
L34Challenges --> L34Lessons["Document<br>Lessons Learned"]
|
51
|
+
L34Lessons --> L34ImproveProcess["Document Process<br>Improvements"]
|
52
|
+
L34ImproveProcess --> L34Update["Update<br>tasks.md"]
|
53
|
+
|
54
|
+
%% Completion & Transition
|
55
|
+
L1Update & L2Update & L34Update --> CreateReflection["Create<br>reflection.md"]
|
56
|
+
CreateReflection --> UpdateSystem["Update System<br>Documentation"]
|
57
|
+
UpdateSystem --> Transition["NEXT MODE:<br>ARCHIVE MODE"]
|
58
|
+
```
|
59
|
+
|
60
|
+
## 📋 REFLECTION STRUCTURE
|
61
|
+
|
62
|
+
The reflection should follow this structured format:
|
63
|
+
|
64
|
+
```mermaid
|
65
|
+
graph TD
|
66
|
+
subgraph "Reflection Document Structure"
|
67
|
+
Header["# TASK REFLECTION: [Task Name]"]
|
68
|
+
Summary["## SUMMARY<br>Brief summary of completed task"]
|
69
|
+
WWW["## WHAT WENT WELL<br>Successful aspects of implementation"]
|
70
|
+
Challenges["## CHALLENGES<br>Difficulties encountered during implementation"]
|
71
|
+
Lessons["## LESSONS LEARNED<br>Key insights gained from the experience"]
|
72
|
+
ProcessImp["## PROCESS IMPROVEMENTS<br>How to improve for future tasks"]
|
73
|
+
TechImp["## TECHNICAL IMPROVEMENTS<br>Better approaches for similar tasks"]
|
74
|
+
NextSteps["## NEXT STEPS<br>Follow-up actions or future work"]
|
75
|
+
end
|
76
|
+
|
77
|
+
Header --> Summary --> WWW --> Challenges --> Lessons --> ProcessImp --> TechImp --> NextSteps
|
78
|
+
```
|
79
|
+
|
80
|
+
## 📊 REQUIRED FILE STATE VERIFICATION
|
81
|
+
|
82
|
+
Before reflection can begin, verify file state:
|
83
|
+
|
84
|
+
```mermaid
|
85
|
+
graph TD
|
86
|
+
Start["File State<br>Verification"] --> CheckTasks{"tasks.md has<br>implementation<br>complete?"}
|
87
|
+
|
88
|
+
CheckTasks -->|"No"| ErrorImplement["ERROR:<br>Return to IMPLEMENT Mode"]
|
89
|
+
CheckTasks -->|"Yes"| CheckProgress{"progress.md<br>has implementation<br>details?"}
|
90
|
+
|
91
|
+
CheckProgress -->|"No"| ErrorProgress["ERROR:<br>Update progress.md first"]
|
92
|
+
CheckProgress -->|"Yes"| ReadyReflect["Ready for<br>Reflection"]
|
93
|
+
```
|
94
|
+
|
95
|
+
## 🔍 IMPLEMENTATION REVIEW APPROACH
|
96
|
+
|
97
|
+
```mermaid
|
98
|
+
graph TD
|
99
|
+
subgraph "Implementation Review"
|
100
|
+
Original["Review Original<br>Requirements"]
|
101
|
+
Plan["Compare Against<br>Implementation Plan"]
|
102
|
+
Actual["Assess Actual<br>Implementation"]
|
103
|
+
Creative["Review Creative<br>Phase Decisions"]
|
104
|
+
Changes["Identify Deviations<br>from Plan"]
|
105
|
+
Results["Evaluate<br>Results"]
|
106
|
+
end
|
107
|
+
|
108
|
+
Original --> Plan --> Actual
|
109
|
+
Plan --> Creative --> Changes
|
110
|
+
Actual --> Results
|
111
|
+
Changes --> Results
|
112
|
+
```
|
113
|
+
|
114
|
+
## 📝 REFLECTION DOCUMENT TEMPLATES
|
115
|
+
|
116
|
+
### Level 1 (Basic) Reflection
|
117
|
+
```
|
118
|
+
# Bug Fix Reflection: [Bug Name]
|
119
|
+
|
120
|
+
## Summary
|
121
|
+
[Brief description of the bug and solution]
|
122
|
+
|
123
|
+
## Implementation
|
124
|
+
[Description of the fix implemented]
|
125
|
+
|
126
|
+
## Testing
|
127
|
+
[Description of testing performed]
|
128
|
+
|
129
|
+
## Additional Notes
|
130
|
+
[Any other relevant information]
|
131
|
+
```
|
132
|
+
|
133
|
+
### Levels 2-4 (Comprehensive) Reflection
|
134
|
+
```
|
135
|
+
# Task Reflection: [Task Name]
|
136
|
+
|
137
|
+
## Summary
|
138
|
+
[Brief summary of the task and what was achieved]
|
139
|
+
|
140
|
+
## What Went Well
|
141
|
+
- [Success point 1]
|
142
|
+
- [Success point 2]
|
143
|
+
- [Success point 3]
|
144
|
+
|
145
|
+
## Challenges
|
146
|
+
- [Challenge 1]: [How it was addressed]
|
147
|
+
- [Challenge 2]: [How it was addressed]
|
148
|
+
- [Challenge 3]: [How it was addressed]
|
149
|
+
|
150
|
+
## Lessons Learned
|
151
|
+
- [Lesson 1]
|
152
|
+
- [Lesson 2]
|
153
|
+
- [Lesson 3]
|
154
|
+
|
155
|
+
## Process Improvements
|
156
|
+
- [Process improvement 1]
|
157
|
+
- [Process improvement 2]
|
158
|
+
|
159
|
+
## Technical Improvements
|
160
|
+
- [Technical improvement 1]
|
161
|
+
- [Technical improvement 2]
|
162
|
+
|
163
|
+
## Next Steps
|
164
|
+
- [Follow-up task 1]
|
165
|
+
- [Follow-up task 2]
|
166
|
+
```
|
167
|
+
|
168
|
+
## 📊 REFLECTION QUALITY METRICS
|
169
|
+
|
170
|
+
```mermaid
|
171
|
+
graph TD
|
172
|
+
subgraph "Reflection Quality Metrics"
|
173
|
+
Specific["Specific<br>Not general or vague"]
|
174
|
+
Actionable["Actionable<br>Provides clear direction"]
|
175
|
+
Honest["Honest<br>Acknowledges successes and failures"]
|
176
|
+
Forward["Forward-Looking<br>Focuses on future improvement"]
|
177
|
+
Evidence["Evidence-Based<br>Based on concrete examples"]
|
178
|
+
end
|
179
|
+
```
|
180
|
+
|
181
|
+
## 📋 TASKS.MD UPDATE FORMAT
|
182
|
+
|
183
|
+
During reflection, update tasks.md with:
|
184
|
+
|
185
|
+
```
|
186
|
+
## Status
|
187
|
+
- [x] Initialization complete
|
188
|
+
- [x] Planning complete
|
189
|
+
[For Level 3-4:]
|
190
|
+
- [x] Creative phases complete
|
191
|
+
- [x] Implementation complete
|
192
|
+
- [x] Reflection complete
|
193
|
+
- [ ] Archiving
|
194
|
+
|
195
|
+
## Reflection Highlights
|
196
|
+
- **What Went Well**: [Key successes]
|
197
|
+
- **Challenges**: [Key challenges]
|
198
|
+
- **Lessons Learned**: [Key lessons]
|
199
|
+
- **Next Steps**: [Follow-up actions]
|
200
|
+
```
|
201
|
+
|
202
|
+
## 📊 REFLECTION VERIFICATION CHECKLIST
|
203
|
+
|
204
|
+
```
|
205
|
+
✓ REFLECTION VERIFICATION
|
206
|
+
- Implementation thoroughly reviewed? [YES/NO]
|
207
|
+
- What Went Well section completed? [YES/NO]
|
208
|
+
- Challenges section completed? [YES/NO]
|
209
|
+
- Lessons Learned section completed? [YES/NO]
|
210
|
+
- Process Improvements identified? [YES/NO]
|
211
|
+
- Technical Improvements identified? [YES/NO]
|
212
|
+
- Next Steps documented? [YES/NO]
|
213
|
+
- reflection.md created? [YES/NO]
|
214
|
+
- tasks.md updated with reflection status? [YES/NO]
|
215
|
+
|
216
|
+
→ If all YES: Reflection complete - ready for ARCHIVE mode
|
217
|
+
→ If any NO: Complete missing reflection elements
|
218
|
+
```
|
219
|
+
|
220
|
+
## 🔄 MODE TRANSITION NOTIFICATION
|
221
|
+
|
222
|
+
When reflection is complete, notify user with:
|
223
|
+
|
224
|
+
```
|
225
|
+
## REFLECTION COMPLETE
|
226
|
+
|
227
|
+
✅ Implementation thoroughly reviewed
|
228
|
+
✅ Reflection document created
|
229
|
+
✅ Lessons learned documented
|
230
|
+
✅ Process improvements identified
|
231
|
+
✅ tasks.md updated with reflection status
|
232
|
+
|
233
|
+
→ NEXT RECOMMENDED MODE: ARCHIVE MODE
|
234
|
+
```
|