sequenceDiagram
autonumber
participant C as Client / Pi session
participant G as Gateway Cloudflare Worker
participant L as Account Ledger Durable Object
participant U as Selected upstream provider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <sys/event.h> | |
| #include <sys/time.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| // Watches files for changes and prints which file changed | |
| int main(int argc, char *argv[]) { | |
| if (argc < 2) { |
All files go to the lefos-conversations-dev bucket (config: CONVERSATION_BUCKET), with one shared S3 client at packages/elwing/src/s3/client.ts.
S3 key hierarchy:
{domainId}/{mailboxId}/{conversationId}/
├── artifacts/{filename} # Agent-produced files
Elwing uses Polar (polar.sh) as its billing/subscription provider. Billing is credit-based: users purchase subscriptions or top-ups via Polar, receive credits, and credits are consumed as the AI agent processes emails, chats, and memory operations.
| Concept | Description |
|---|---|
| Credits | Internal currency. Converted from token cost: credits = tokenCents × 12.5 |
| Billing Owner | Each space has one billing owner (user). All charges in that space bill to them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://twitter.com/thorstenball/status/1576619567488475137?s=20&t=KaBdUrc5-M1bnNTMU6tuQA | |
| Working with Unix Processes | |
| Working with TCP Sockets | |
| Working with Ruby Threads | |
| Zed Shaw's C book | |
| Programming From The Ground Up | |
| Destroy All Software | |
| PeepCode Play by Play | |
| Pragmatic Programmer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install Karabiner Elements. | |
| Follow this | |
| https://github.com/tekezo/Karabiner-Elements/issues/638 |
NewerOlder