Files
openclaw/extensions/tlon/src/urbit/upload.ts
Hunter Miller 6d1fafd3d2 feat(tlon): sync with openclaw-tlon master
- Add tlon CLI tool registration with binary lookup
- Add approval, media, settings, foreigns, story, upload modules
- Add http-api wrapper for Urbit connection patching
- Update types for defaultAuthorizedShips support
- Fix type compatibility with core plugin SDK
- Stub uploadFile (API not yet available in @tloncorp/api-beta)
- Remove incompatible test files (security, sse-client, upload)
2026-03-02 15:46:16 -08:00

18 lines
588 B
TypeScript

/**
* Upload an image from a URL to Tlon storage.
*
* NOTE: uploadFile is not yet available in @tloncorp/api-beta.
* For now, this returns the original URL. Once the API supports uploads,
* we can implement proper Tlon storage uploads.
*/
/**
* Fetch an image from a URL and upload it to Tlon storage.
* Returns the uploaded URL, or falls back to the original URL on error.
*/
export async function uploadImageFromUrl(imageUrl: string): Promise<string> {
// TODO: Implement once @tloncorp/api exports uploadFile
// For now, just return the original URL
return imageUrl;
}