Mercurial
annotate mrjunejune/main.py @ 279:b3b547563ec7
Add Google connector service and agent wiki
Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:22:36 -0700 |
| parents | d2bb317e01db |
| children |
| rev | line source |
|---|---|
|
41
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
1 from cffi import FFI |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
2 import os |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
3 |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
4 ffi = FFI() |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
5 ffi.cdef("void start_server(void);") |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
6 |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
7 # Bazel runs binaries from a sandbox, so use runfiles to locate the .so |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
8 import pathlib |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
9 runfiles_dir = pathlib.Path(__file__).parent |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
10 libpath = runfiles_dir / "mrjunejune_server_so.so" |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
11 |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
12 C = ffi.dlopen(str(libpath)) |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
13 C.start_server() |
|
d2bb317e01db
[Experiment] Calling seobeo in a python server and see.
MrJuneJune <me@mrjunejune.com>
parents:
diff
changeset
|
14 |