This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Commit c0de7eb
chore: Comprehensive security audit and repository maintenance (#25)
This pull request primarily focuses on cleaning up dependencies, modernizing dynamic imports, and improving type safety and code maintainability throughout the codebase. The most significant changes include a major dependency cleanup in `package.json`, replacing synchronous `require` calls with asynchronous `import()` for better compatibility, and updating method signatures to use unused parameter conventions. Additionally, a demo file was removed, and compression logic was refactored for async support.
**Dependency Cleanup and Configuration Changes**
* Removed several unused or legacy dependencies from `package.json`, including `bcryptjs`, `cheerio`, `jimp`, `kafka-node`, `mongodb`, `mongoose`, `multer`, `pg`, and `sequelize`. Also removed commit tooling dependencies (`commitizen`, `cz-conventional-changelog`) and related config/husky hooks, streamlining the project dependencies and configuration. [[1]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L110-L112) [[2]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R121-L144) [[3]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L175-L178) [[4]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L222-L230)
**Modernization of Dynamic Imports**
* Updated dynamic module loading in `src/adapters/dynamic-adapter-loader.ts` and compression logic in `src/services/google-services/infrastructure/a2a-multimedia-protocol.ts` to use async `import()` instead of `require`, improving compatibility with ES modules and async workflows. [[1]](diffhunk://#diff-97bcb0453e5c52eb4053224d87c334f2021889986be7107056f11523ec7b2eceL358-R362) [[2]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL1920-R1936) [[3]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL2007-R2029) [[4]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL2041-R2040) [[5]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL2052-R2051)
**Codebase Maintenance and Type Safety**
* Refactored multiple method signatures across adapters and agents to use unused parameter conventions (prefixing with `_`) for better clarity and to avoid unused variable warnings. This affects files such as `deepmind-adapter.ts`, `gemini-adapter.ts`, `jules-workflow-adapter.ts`, `unified-api.ts`, and `research-coordinator.ts`. [[1]](diffhunk://#diff-e3cb3105a8c253aa95f487f3a4411fa6238ca87cced34a77ef74689f3d2bdd4cL141-R141) [[2]](diffhunk://#diff-e3cb3105a8c253aa95f487f3a4411fa6238ca87cced34a77ef74689f3d2bdd4cL159-R159) [[3]](diffhunk://#diff-f483363a04d674e1aac6643a85b530fc417b8b8d118860ff94dfc65d20225cc3L58-R58) [[4]](diffhunk://#diff-f483363a04d674e1aac6643a85b530fc417b8b8d118860ff94dfc65d20225cc3L158-R158) [[5]](diffhunk://#diff-f483363a04d674e1aac6643a85b530fc417b8b8d118860ff94dfc65d20225cc3L176-R176) [[6]](diffhunk://#diff-5e8dd1ed5dd92845b2c39b6bf119074c5af7da276f9645a512b80fdf4d88714dL158-R158) [[7]](diffhunk://#diff-5e8dd1ed5dd92845b2c39b6bf119074c5af7da276f9645a512b80fdf4d88714dL181-R181) [[8]](diffhunk://#diff-6a8fc6178261a51c1547a28d6c14795e0917d16b7c850fe27ac2ae78f4b63af3L1123-R1121) [[9]](diffhunk://#diff-ceb122ff7fe4742a2e7848ef3786e17b77e57b65d5600ca9e8d3ce7d431fcbaaL974-R1014) [[10]](diffhunk://#diff-ceb122ff7fe4742a2e7848ef3786e17b77e57b65d5600ca9e8d3ce7d431fcbaaL1071-R1071)
**Demo and Legacy Code Removal**
* Deleted the `src/memory/demo-sqlite-fallback.ts` demo file, removing legacy demonstration code and reducing clutter in the codebase.
**Compression Logic Refactoring**
* Refactored the compression engine in `a2a-multimedia-protocol.ts` to support asynchronous compression/decompression methods for `lz4` and `zstd`, improving flexibility and error handling for optional libraries. [[1]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL1920-R1936) [[2]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL2007-R2029) [[3]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL2041-R2040) [[4]](diffhunk://#diff-d562b28f649af83eb6eda30222fc1d512f7df051f2e3db4f090a49a1c7b8550dL2052-R2051)
Let me know if you want details on any specific change or how these updates might affect your workflow!
Also:
* Fix security vulnerabilities and modernize CommonJS imports
Co-authored-by: clduab11 <185000089+clduab11@users.noreply.github.com>
* Remove unused dependencies and fix linting issues
Co-authored-by: clduab11 <185000089+clduab11@users.noreply.github.com>
* Major cleanup: Move test files and remove obsolete demo code
Co-authored-by: clduab11 <185000089+clduab11@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: clduab11 <185000089+clduab11@users.noreply.github.com>
Co-authored-by: clduab11 <chrisldukes@gmail.com>1 parent db7ad96 commit c0de7eb
File tree
82 files changed
+8029
-13471
lines changed- src
- adapters
- agents
- memory
- services/google-services/infrastructure
- tests
- a2a
- compliance
- setup
- agentspace/__tests__
- core/__tests__
- e2e
- fixtures
- integration
- protocols
- __tests__
- a2a
- consensus/__tests__
- memory/__tests__
- services/google-services
- __tests__
- infrastructure/tests
- streaming
- __tests__
- testing
- tests/adapters
- unit
- adapters
- agents
- cli
- core
- protocols
- validation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
82 files changed
+8029
-13471
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | | - | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| 121 | + | |
123 | 122 | | |
124 | | - | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
128 | 125 | | |
129 | 126 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 127 | | |
| 128 | + | |
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
137 | | - | |
138 | 132 | | |
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
142 | 136 | | |
143 | 137 | | |
144 | | - | |
145 | 138 | | |
146 | 139 | | |
147 | 140 | | |
| |||
172 | 165 | | |
173 | 166 | | |
174 | 167 | | |
175 | | - | |
176 | 168 | | |
177 | 169 | | |
178 | | - | |
179 | 170 | | |
180 | 171 | | |
181 | 172 | | |
| |||
219 | 210 | | |
220 | 211 | | |
221 | 212 | | |
222 | | - | |
223 | 213 | | |
224 | 214 | | |
225 | 215 | | |
226 | | - | |
227 | | - | |
228 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
1121 | 1123 | | |
1122 | 1124 | | |
1123 | 1125 | | |
1124 | | - | |
| 1126 | + | |
1125 | 1127 | | |
1126 | 1128 | | |
1127 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
971 | 970 | | |
972 | 971 | | |
973 | 972 | | |
974 | | - | |
| 973 | + | |
975 | 974 | | |
976 | 975 | | |
977 | | - | |
| 976 | + | |
978 | 977 | | |
979 | 978 | | |
980 | | - | |
| 979 | + | |
981 | 980 | | |
982 | 981 | | |
983 | | - | |
| 982 | + | |
984 | 983 | | |
985 | 984 | | |
986 | 985 | | |
987 | | - | |
988 | | - | |
| 986 | + | |
| 987 | + | |
989 | 988 | | |
990 | 989 | | |
991 | 990 | | |
992 | 991 | | |
993 | | - | |
| 992 | + | |
994 | 993 | | |
995 | 994 | | |
996 | 995 | | |
997 | 996 | | |
998 | 997 | | |
999 | 998 | | |
1000 | | - | |
| 999 | + | |
1001 | 1000 | | |
1002 | 1001 | | |
1003 | 1002 | | |
1004 | 1003 | | |
1005 | | - | |
| 1004 | + | |
1006 | 1005 | | |
1007 | 1006 | | |
1008 | 1007 | | |
1009 | 1008 | | |
1010 | | - | |
| 1009 | + | |
1011 | 1010 | | |
1012 | 1011 | | |
1013 | 1012 | | |
1014 | 1013 | | |
1015 | | - | |
| 1014 | + | |
1016 | 1015 | | |
1017 | 1016 | | |
1018 | 1017 | | |
| |||
1068 | 1067 | | |
1069 | 1068 | | |
1070 | 1069 | | |
1071 | | - | |
1072 | | - | |
| 1070 | + | |
| 1071 | + | |
1073 | 1072 | | |
1074 | 1073 | | |
1075 | 1074 | | |
| |||
0 commit comments