This repository was archived by the owner on Apr 23, 2025. It is now read-only.
forked from raizamartin/gemini-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory_backup.json
More file actions
200 lines (200 loc) · 7.51 KB
/
memory_backup.json
File metadata and controls
200 lines (200 loc) · 7.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
{
"entities": [
{
"type": "entity",
"name": "James",
"entityType": "Person",
"observations": [
"Is the current user I am interacting with",
"GitHub username is ipv1337",
"GitHub token is stored in keyring",
"GitHub Organization is BlueCentre"
]
},
{
"type": "entity",
"name": "SlackConnection",
"entityType": "Connection",
"observations": [
"Connection ID: a7ea21c2-02f8-4ac1-bca0-ed02014496de",
"Status: ACTIVE",
"Created at: 2025-04-03T08:33:29.676Z",
"Updated at: 2025-04-03T08:33:52.375Z"
]
},
{
"type": "entity",
"name": "Slack Integration",
"entityType": "Tool Connection",
"observations": [
"Has active connection with ID: a7ea21c2-02f8-4ac1-bca0-ed02014496de",
"Can fetch conversation history",
"Can post messages",
"Can add reactions",
"Can create reminders",
"Can list custom emojis"
]
},
{
"type": "entity",
"name": "Google Tasks Integration",
"entityType": "Tool Connection",
"observations": [
"No active connection found",
"Connection attempt failed with error: Could not find a connection",
"Requires authentication setup",
"Connection successfully established with ID: 63629ab1-e9f9-4c8c-b8c3-e34ceec4e028",
"Access to 6 task lists including: My Tasks, DCX Tasks, OOMS Tasks, HR Tasks, Documentation Tasks, and My Long Term Tasks",
"Can list, create, update, and delete tasks and task lists",
"Connection established via OAuth",
"Last connection update: 2025-04-03T08:42:11.549Z"
]
},
{
"type": "entity",
"name": "GCP Integration",
"entityType": "Tool Connection",
"observations": [
"Has active connection",
"Access to multiple projects (500+ projects listed)",
"Can perform GCP operations",
"Can run GCP code",
"Can manage billing information",
"Can manage GKE clusters"
]
},
{
"type": "entity",
"name": "Development Best Practices",
"entityType": "Workflow",
"observations": [
"Always test and validate changes locally before committing and pushing to the repository",
"For configuration changes, verify that all supported configurations work as expected",
"When adding new features like environment variable support, test with real settings"
]
},
{
"type": "entity",
"name": "GitHub CLI Auth Workaround",
"entityType": "TechnicalSolution",
"observations": [
"When GitHub CLI operations fail with 'Resource not accessible by personal access token' errors, temporarily unset GITHUB_TOKEN",
"Command pattern to use: GITHUB_TOKEN=\"\" gh <command>",
"This bypasses the environment variable token and uses the properly scoped token stored in keyring",
"For this user, the keyring token has 'admin:public_key', 'codespace', 'gist', 'read:org', 'repo' scopes"
]
},
{
"type": "entity",
"name": "CLI-Code Development Workflow",
"entityType": "Workflow",
"observations": [
"Step 1: Analysis and Planning - Understand requirements, run local SonarCloud scan, review current metrics",
"Step 2: Plan Implementation Steps - Break down solution, document the plan, consider edge cases",
"Step 3: Implementation - First fetch latest from main (git fetch origin main), create a new feature branch (git checkout -b feature/name), then execute plan step by step, follow code style, avoid scope creep, commit major changes to feature branch regularly in case reversion is needed",
"Step 4: Testing - Add/update tests, maintain code coverage, run tests frequently",
"Step 5: Verification - Perform end-to-end testing, get user feedback, run final SonarCloud scan",
"Step 6: Documentation - Update relevant docs, add code comments, update README if needed",
"Step 7: Commit Preparation - Prepare detailed commit description, write clear messages, reference issues",
"Step 8: Review and Submit - Final review, push only completed changes, submit PR"
]
},
{
"type": "entity",
"name": "SonarCloud Analysis Process",
"entityType": "TechnicalProcess",
"observations": [
"Generate coverage report with: pytest --cov=src test_dir --cov-report=xml",
"Run local SonarCloud scan with: sonar-scanner -Dsonar.login=YOUR_SONARCLOUD_TOKEN or use environment variable",
"Local analysis allows for faster feedback loop before pushing changes",
"GitHub Actions workflow automatically runs scans on push",
"Add coverage_report.xml to .gitignore to avoid committing generated test artifacts"
]
},
{
"type": "entity",
"name": "GitHub PR Process",
"entityType": "TechnicalProcess",
"observations": [
"When creating PRs with GitHub CLI, use: GITHUB_TOKEN=\"\" gh pr create --title \"[Title]\" --body \"[Description]\" --base main --head [branch-name]",
"The GITHUB_TOKEN=\"\" prefix bypasses any environment variable token and uses properly scoped token in keyring",
"If encountering 'GraphQL: Resource not accessible by personal access token' error, ensure GITHUB_TOKEN is unset",
"Reference relevant issues in PR description",
"Ensure all tests pass and code quality metrics meet standards before submitting PR",
"Follow the project's PR template if available"
]
},
{
"type": "entity",
"name": "Code Quality Standards",
"entityType": "Guidelines",
"observations": [
"Follow the project's code style enforced by ruff",
"Address SonarCloud issues proactively",
"Document public functions and methods with docstrings",
"Aim for comprehensive test coverage with unit and integration tests",
"Test edge cases and failure scenarios",
"Mock external dependencies appropriately",
"Be mindful of performance implications",
"Profile code for expensive operations when necessary",
"Consider memory usage for larger data processing"
]
}
],
"relations": [
{
"type": "relation",
"from": "James",
"to": "SlackConnection",
"relationType": "has authenticated"
},
{
"type": "relation",
"from": "Slack Integration",
"to": "Tool Connection",
"relationType": "is connected"
},
{
"type": "relation",
"from": "GCP Integration",
"to": "Tool Connection",
"relationType": "is connected"
},
{
"type": "relation",
"from": "Google Tasks Integration",
"to": "Tool Connection",
"relationType": "is connected"
},
{
"type": "relation",
"from": "CLI-Code Development Workflow",
"to": "SonarCloud Analysis Process",
"relationType": "includes"
},
{
"type": "relation",
"from": "CLI-Code Development Workflow",
"to": "GitHub PR Process",
"relationType": "includes"
},
{
"type": "relation",
"from": "CLI-Code Development Workflow",
"to": "Code Quality Standards",
"relationType": "enforces"
},
{
"type": "relation",
"from": "GitHub PR Process",
"to": "GitHub CLI Auth Workaround",
"relationType": "utilizes"
},
{
"type": "relation",
"from": "SonarCloud Analysis Process",
"to": "Code Quality Standards",
"relationType": "supports"
}
]
}