@clonecommand/cloud
v0.0.7
Published
The official SDK for CloneCommand managed services
Readme
@clonecommand/cloud
The official SDK for CloneCommand managed services.
This library simplifies integration with ephemeral preview environments and provides access to CloneCommand Cloud services like Login Proxy, Storage, and Email.
🤖 Agent Ready
This package is designed to be easily consumed by AI agents and LLMs. It features:
- Full TypeScript Definitions: All methods, arguments, and return types are strictly typed.
- Rich JSDoc: Comprehensive comments and examples to help agents understand the intent behind every function.
- Clean API Surface: A logical, singleton-based structure that is easy to navigate.
Documentation
Full documentation is available in the docs/ directory.
- 🔐 Login - OAuth Proxy for consistent redirect URIs.
- 📦 Storage - Managed file hosting.
- 📧 Email - Send and receive emails.
Installation
npm install @clonecommand/cloudQuick Start
import { ccc } from '@clonecommand/cloud';
// Initialize (optional in managed environments)
ccc.init({ projectId: '...' });
// Use services
const file = await ccc.storage.importFileFromUrl('...');
const messageId = await ccc.email.send({ to: '...', subject: '...' });