Commit b62257a
authored
Remove Agent and AI APIs (#165)
## Summary
- remove the Agent/OpenAI API surface (`Codebase.ai`, `set_ai_key`,
`max_ai_requests`, OpenAI secrets/dependency, and related errors/tests)
- delete AI-oriented extensions and examples: semantic/vector index, MCP
servers, generated system prompt resources, SWE-bench agent harness,
attribution/AI impact, RAG/document/training-data examples
- remove Agent run paths/schemas from `docs/api-reference/openapi3.json`
and clean live docs/CLI copy so codemod scaffolding is deterministic
only
- refresh root and examples lockfiles after removing
OpenAI/MCP/datasets/lox dependency stacks
## Testing
- `uv run ruff format $(git diff --name-only --diff-filter=ACM | rg
'\.py$' | tr '\n' ' ')`
- `uv run ruff check $(git diff --name-only --diff-filter=ACM | rg
'\.py$' | tr '\n' ' ')`
- `uv run pytest tests/unit/sdk/python/codebase/test_control_flow.py
tests/unit/runner/sandbox/test_executor.py
tests/integration/codegen/sdk/code_generation/test_api_doc_generation.py`
- `uv run pytest tests/unit/cli/commands/parse/test_parse.py
tests/unit/cli/commands/diagnose/test_diagnose.py
tests/unit/cli/commands/run/test_run.py tests/unit/gscli/test_cli.py`
- `jq empty docs/api-reference/openapi3.json`
- `uv run python -c "import graph_sitter; from graph_sitter import
Codebase; import graph_sitter.extensions; import graph_sitter.cli.cli;
print('imports ok')"`
- `PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site
ci`
- `PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site
run build`
## Not run
- `uv run pytest tests/integration/codemod/test_verified_codemods.py
--collect-only -q` is blocked by missing fixture data:
`tests/integration/verified_codemods/codemod_data/Y2Y4MGNkOG.json`.
---------
Co-authored-by: jayhack <2548876+jayhack@users.noreply.github.com>1 parent fb8847a commit b62257a
151 files changed
Lines changed: 1454 additions & 41037 deletions
File tree
- docs
- api-reference
- core
- building-with-graph-sitter
- cli
- graph-sitter
- introduction
- snippets
- tutorials
- examples
- examples
- ai_impact_analysis
- dashboard
- backend
- frontend
- app
- components
- ui
- hooks
- lib
- styles
- codegen-mcp-server
- document_functions
- generate_training_data
- modal_repo_rag
- symbol-attributions
- site/lib
- src/graph_sitter
- ai
- cli
- auth
- codemod
- commands
- create
- init
- mcp
- resources
- utils
- workspace
- code_generation
- prompts
- codebase
- configs
- models
- core
- extensions
- attribution
- 3pp
- index
- mcp
- swebench
- gscli/generate
- output
- typescript
- tests
- integration
- codegen/sdk/code_generation
- codemod
- unit
- runner/sandbox
- sdk/python/codebase
- skills/implementations
- guides
- code-quality-metrics
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 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 | 90 | | |
126 | 91 | | |
127 | 92 | | |
| |||
622 | 587 | | |
623 | 588 | | |
624 | 589 | | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | 590 | | |
634 | 591 | | |
635 | 592 | | |
| |||
647 | 604 | | |
648 | 605 | | |
649 | 606 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | 607 | | |
657 | 608 | | |
658 | 609 | | |
| |||
699 | 650 | | |
700 | 651 | | |
701 | 652 | | |
702 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 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 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 168 | | |
323 | 169 | | |
324 | 170 | | |
| |||
407 | 253 | | |
408 | 254 | | |
409 | 255 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 256 | | |
475 | 257 | | |
476 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 61 | | |
66 | 62 | | |
67 | | - | |
| 63 | + | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
| |||
Lines changed: 2 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 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 | 163 | | |
189 | 164 | | |
190 | 165 | | |
| |||
200 | 175 | | |
201 | 176 | | |
202 | 177 | | |
203 | | - | |
| 178 | + | |
0 commit comments