mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 15:46:52 +00:00
- 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)
18 lines
588 B
TypeScript
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;
|
|
}
|