Commit 7f3fa42
feat(adapter-codex-local): add device-login proof CLI
Wire the Daytona SDK to the injected SandboxLoginDriver and prove the device
login end to end. Require a Daytona environment id argument and fail loud when it
is absent, when no controlling terminal exists, or when the environment provider
is not daytona. Stream the login output in memory through a non-persisting exec
path, write the URL and the code only to the controlling terminal, install the
credential into a run-scoped proof home, and run a second sandbox that uses the
saved credential. Delete the proof home and every sandbox in a finally block on
every terminal path.
Resolve the environment record through the workspace database client (a
devDependency). Load the Daytona SDK through a dynamic import against a local
interface, so the adapter never declares the heavy SDK dependency; a live run
installs @daytonaio/sdk or sets PAPERCLIP_DAYTONA_SDK_MODULE.
Co-authored-by: Paperclip <noreply@paperclip.ing>1 parent 9e8c585 commit 7f3fa42
6 files changed
Lines changed: 435 additions & 4 deletions
File tree
- packages/adapters/codex-local
- src
- cli
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
0 commit comments