Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
colab #
the colab extension (requires python and remote) manages Google Colab
runtimes from the kernel and reaches one through remote.
- sign-in:
/login colabstores a Google account underaccounts["google-colab"]in creds.json (access,refresh,expires,email). the OAuth mechanics (code exchange, userinfo email, locked refresh) arealbedo_google_oauth.erl's, shared with antigravity;albedo_colab_auth.erlis the colab client and account choice: the selected account, else the first. - tokens stay in the daemon: the kernel never reads creds.json. the
colab.accounthost route (extension.gleam) answers{access, email}with the token refreshed and saved under the credential lock, or a refusal thatcolab.pyraises asColabError. every API call asks again, so a long session outlives the hour a token lives. - runtimes:
colab.instances(),status(),launch()andstop()call the/tun/m/*endpoints with the XSRF handshake. an instance is aColabInstancerecord withconnect()andstop()methods. - connect:
colab.connect(vm)takes a fresh listing (the runtime proxy token expires), registers an ssh aliascolab-<id>and returnsremote.connect()on it. the alias'sProxyCommandispython -m albedo_plugins.ws, which bridges stdio towss://<proxy>/colab/ssh; the proxy url and the public key header reach it asALBEDO_WS_URLandALBEDO_WS_HEADERSin its environment. nothing is written to~/.ssh/config. a missing ssh public key (~/.ssh/id_ed25519.pub,id_ecdsa.pub, orssh_key=) is an error before anything connects.stop()drops the alias; it does not close a connection already open on it. - tests:
test/harness/colab_plugin_test.py(the plugin against a faked HTTP layer),ws_test.py(frames, and the bridge in a real subprocess) andgoogle_oauth_test.gleam(the refresh against a local token endpoint).