ignore: python sdk (#2779)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Kevin King 2025-10-28 19:32:45 -04:00 committed by GitHub
parent fc8db6cdf9
commit 0e60f66604
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
229 changed files with 22322 additions and 8 deletions

View file

@ -0,0 +1,22 @@
# Files & Projects
Access file status and project information.
```python
from opencode_ai import OpenCodeClient
client = OpenCodeClient()
# Projects
for p in client.list_projects() or []:
print(p.id, p.directory)
# Current path
pinfo = client.get_path()
print(pinfo.directory)
# File status
files = client.file_status() or []
for f in files:
print(f.path, f.type)
```